Update.
[glibc.git] / ChangeLog
blob918eb09f82849870cd4520c3054e514c540a40bc
1 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
3         * include/libc-symbols.h: Change *hidden_proto macros to accept
4         option parameters and pass those to the attribute definition.
5         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
7         * include/unistd.h: Declare __libc_pause.
9         * include/sys/socket.h: Declare __libc_send, __libc_recv,
10         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
12         * include/unistd.h: Declare __libc_fork.
14 2002-09-17  Roland McGrath  <roland@redhat.com>
16         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
17         (passwd2des): Define it as an alias.
18         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
20 2002-09-12  Bruno Haible  <bruno@clisp.org>
22         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
23         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
25         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
26         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
28 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
30         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
31         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
32         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
33         PowerPC64 does not have separate 64-bit syscalls.
35 2002-09-16  Roland McGrath  <roland@redhat.com>
37         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
39         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
40         New macro.
42         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
44         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
45         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
46         * sysdeps/generic/_exit.c: Likewise.
48 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
50         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
52         * elf/rtld.c (struct dl_start_final_info): New.
53         (_dl_start_final): Change second argument to struct
54         dl_start_final_info *.  Set start_time from info.
55         (_dl_start): Remove bootstrap_map variable, add info.
56         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
57         store HP_TIMING_NOW result into info.start_time.
59 2002-09-16  Andreas Jaeger  <aj@suse.de>
61         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
62         to _Exit.
63         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
65 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
67         * sysdeps/powerpc/abort-instr.h: New file.
69 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
71         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
72         comment.
74         * test-skeleton.c (main): Provide more information in case waitpid
75         fails.
77         * include/unistd.h: Declare __exit_thread.
78         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
79         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
80         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
81         * sysdeps/unix/sysv/linux/_exit.c: New file.
82         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
83         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
84         Add exit-thread.
86         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
88 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
90         * sysdeps/i386/dl-machine.h (elf_machine_rel)
91         (case R_386_TLS_DTPMOD32): Don't use addend.
92         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
93         (elf_machine_rela): Add support for TLS relocs.
95 2002-09-14  Roland McGrath  <roland@redhat.com>
97         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
99 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
101         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
102         specific asm macros for multiple percision integer math.
104 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
106         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
107         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
108         Remove per-machine conditionals for FLAG_* cases.
109         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
110         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
113 2002-09-10  Alan Modra <amodra@bigpond.net.au>
115         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
116         defined in entry.h.
117         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
118         lowest address for profiling in  __monstartup call.
119         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
121 2002-09-14  Roland McGrath  <roland@redhat.com>
123         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
124         instead of __NR_pread.
125         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
126         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
127         instead of __NR_pwrite.
128         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
130 2002-09-13  Roland McGrath  <roland@redhat.com>
132         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
134 2002-09-13  Andreas Jaeger  <aj@suse.de>
136         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
137         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
139 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
141         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
143 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
145         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
146         reading the headers.
148 2002-09-12  Roland McGrath  <roland@redhat.com>
150         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
151         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
152         find the ELF header.
154         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
155         executable if needed, in case it's actually a shared object.
157 2002-09-11  Roland McGrath  <roland@redhat.com>
159         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
160         l_map_start to adjust l_tls_initimage.
162         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
163         when using h_errno and it's not set to NETDB_INTERNAL.
164         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
166         * Makefile ($(common-objpfx)testrun.sh): New target.
167         (others): Depend on it.
168         (postclean-generated): Append it.
170         * nss/bug-erange.c: New file.
171         * nss/Makefile (tests): Add it.
173         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
174         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
176         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
177         strncmp, keeps the code smaller for a non-performance-critical case.
179         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
180         no longer wrongly matches arbitrary prefixes of NAME.
181         Reported by Jakub Jelinek <jakub@redhat.com>.
183 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
185         * posix/bug-regex11.c (tests): New array.
186         (main): Rewritten to run more different tests.
188 2002-09-10  Roland McGrath  <roland@redhat.com>
190         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
191         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
192         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
194         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
195         well so we don't get it declared by include/math.h's hidden_proto.
196         Then do hidden_proto for __isnanf locally so hidden_def works right.
198         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
199         a cast to turn nl_langinfo return value into an integer.
201 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
203         * posix/regexec.c (build_trtable): Fix the destination of
204         newline to prevent wrong states from overwriting.
205         Append break statements to optimization.
207 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
209         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
210         (build_range_exp): Add castings to strlen invocations.
211         (build_collating_symbol): Restore the type of characters from "char"
212         to "unsigned char", and supplement castings.
213         (build_collating_symbol): Likewise.
214         (build_equiv_class): Likewise.
215         (build_charclass): Likewise.
216         (seek_collating_symbol_entry): Likewise.
217         (parse_bracket_exp): Likewise.
218         (build_word_op): Supplement a casting.
219         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
220         (re_string_allocate): Fix castings.
221         (re_string_construct): Likewise.
222         (re_string_construct_common): Likewise.
223         (re_string_realloc_buffers): Likewise.
224         (build_wcs_buffer): Likewise.
225         (build_wcs_upper_buffer): Likewise.
226         (re_string_skip_chars): Likewise.
227         (re_string_reconstruct): Likewise.
228         * posix/regex_internal.h: Restore the type of characters in
229         re_string_t and bracket_elem_t from "char" to "unsigned char".
230         (re_string_elem_size_at): Fix castings.
231         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
232         (transit_state_bkref_loop): Restore the type of characters from
233         "char" to "unsigned char", and append a cast to "char*" pointer in
234         array subscript.
235         (check_node_accept_bytes): Likewise.
236         (find_collation_sequence_value): Likewise.
238 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
240         * sysdeps/mips/memcpy.S: New file.
241         * sysdeps/mips/memset.S: New file.
242         * sysdeps/mips/fpu/e_sqrt.c:  New file.
243         * sysdeps/mips/fpu/e_sqrtf.c: New file.
245         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
246         functional before. Also removed all SHLIB_COMPAT stuff.
247         * fpu/fegetenv.c: Likewise.
248         * fpu/fesetenv.c:: Likewise.
249         * fpu/feupdateenv.c: Likewise.
250         * fpu/fgetexcptflg.c: Likewise.
251         * fpu/fraiseexcpt.c: Likewise.
253         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
255 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
257         * include/math.h (__finite_internal, __finitef_internal,
258         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
259         (isfinite): Remove.
260         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
261         __isinfl, __isnanl): Add hidden_proto.
262         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
263         libm_hidden_proto.
264         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
265         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
266         __is{inf,nan} calls.
267         * stdio-common/printf_size.c (printf_size): Likewise.
268         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
269         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
270         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
271         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
272         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
273         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
274         (__finite): Add hidden_def.
275         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
276         (__finitef): Add hidden_def.
277         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
278         (__finitel): Add hidden_def.
279         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
280         hidden_def.
281         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
282         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
283         libm_hidden_def.
284         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
285         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
286         hidden_def.
287         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
288         (__isinfl): Remove INTDEF.
289         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
290         hidden_def.
291         (__isnanl): Remove INTDEF.
292         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
293         libm_hidden_def.
294         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
295         instead of sin and cos.
296         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
297         Add hidden_def.
298         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
299         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
300         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
301         libm_hidden_def.
302         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
303         Add hidden_def.
304         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
305         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
306         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
307         libm_hidden_def.
308         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
309         libm_hidden_def.
310         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
311         Add hidden_def.
312         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
313         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
314         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
315         libm_hidden_def.
316         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
317         __finitel_internal): Remove aliases.
318         (__finite, __finitef, __finitel): Add hidden_def.
319         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
320         __isnanl_internal): Remove aliases.
321         (__isnan, __isnanf, __isnanl): Add hidden_def.
322         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
323         __isinfl_internal): Remove aliases.
324         (__isinf, __isinff, __isinfl): Add hidden_def.
325         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
326         __fpclassifyl): Add libm_hidden_def.
327         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
328         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
329         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
330         (hidden_defx): Define and use.
331         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
332         libm_hidden_def.
333         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
334         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
335         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
336         Remove INTDEF.
337         (__isnan, __isnanf): Add hidden_def.
338         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
339         (__finitel): Add libm_hidden_def.
340         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
342         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
343         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
344         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
345         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
346         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
347         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
348         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
349         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
350         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
351         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
352         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
353         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
354         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
355         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
356         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
357         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
358         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
359         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
360         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
361         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
362         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
363         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
364         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
365         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
366         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
367         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
368         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
370 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
372         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
374 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
376         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
377         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
379 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
381         * string/stratcliff.c: Some more strncpy tests.
382         Patch by Daniel Jacobowitz <drow@mvista.com>.
384 2002-09-08  Roland McGrath  <roland@redhat.com>
386         * resolv/resolv.h: Include <sys/types.h> for u_long even in
387         the [__need_res_state] case.
388         Reported by Bruno Haible <bruno@clisp.org>.
390 2002-09-04  Bruno Haible  <bruno@clisp.org>
392         * sysdeps/generic/bits/ustat.h: Comment fix.
393         * io/sys/sendfile.h: Comment fix.
394         * sysdeps/posix/pread.c: Comment fix.
395         * sysdeps/posix/pread64.c: Comment fix.
396         * sysdeps/posix/pwrite.c: Comment fix.
397         * sysdeps/posix/pwrite64.c: Comment fix.
399 2002-09-06  Roland McGrath  <roland@redhat.com>
401         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
402         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
403         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
404         (_UTSNAME_MACHINE_LENGTH): Likewise.
405         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
407 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
409         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
410         test for filesystem type name of mount points.
412         * include/errno.h: Use errno definition with __thread for now only
413         in libc and ld.so.
415         * test-skeleton.c (main): Improve error message for unexpected
416         signal case.
418 2002-09-05  Roland McGrath  <roland@redhat.com>
420         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
421         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
423 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
425         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
426         case of failure.
428 2002-09-04  Bruno Haible  <bruno@clisp.org>
430         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
431         sigset_get_old_mask): Turn into inline functions.
432         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
433         sigset_get_old_mask): Likewise.
434         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
435         sigset_get_old_mask): Likewise.
436         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
437         syntax.
439         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
441         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
442         default definitions.
443         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
444         _sys_nerr_internal instead of _sys_nerr.
446         * nscd/connections.c (handle_request): Declare CALLER inside #if.
448 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
450         * sysdeps/powerpc/__longjmp.S: Moved to...
451         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
452         * sysdeps/powerpc/add_n.S: Moved to...
453         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
454         * sysdeps/powerpc/addmul_1.S: Moved to...
455         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
456         * sysdeps/powerpc/atomicity.h: Moved to...
457         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
458         * sysdeps/powerpc/backtrace.c: Moved to...
459         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
460         * sysdeps/powerpc/bp-asm.h: Moved to...
461         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
462         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
463         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
464         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
465         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
466         * sysdeps/powerpc/dl-machine.c: Moved to...
467         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
468         * sysdeps/powerpc/dl-machine.h: Moved to...
469         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
470         * sysdeps/powerpc/dl-start.S: Moved to...
471         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
472         * sysdeps/powerpc/gprrest0.S: Moved to...
473         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
474         * sysdeps/powerpc/gprrest1.S: Moved to...
475         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
476         * sysdeps/powerpc/gprsave0.S: Moved to...
477         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
478         * sysdeps/powerpc/gprsave1.S: Moved to...
479         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
480         * sysdeps/powerpc/lshift.S: Moved to...
481         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
482         * sysdeps/powerpc/memset.S: Moved to...
483         * sysdeps/powerpc/powerpc32/memset.S: ...here.
484         * sysdeps/powerpc/mul_1.S: Moved to...
485         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
486         * sysdeps/powerpc/ppc-mcount.S: Moved to...
487         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
488         * sysdeps/powerpc/register-dump.h: Moved to...
489         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
490         * sysdeps/powerpc/rshift.S: Moved to...
491         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
492         * sysdeps/powerpc/setjmp.S: Moved to...
493         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
494         * sysdeps/powerpc/stpcpy.S: Moved to...
495         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
496         * sysdeps/powerpc/strchr.S: Moved to...
497         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
498         * sysdeps/powerpc/strcmp.S: Moved to...
499         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
500         * sysdeps/powerpc/strcpy.S: Moved to...
501         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
502         * sysdeps/powerpc/strlen.S: Moved to...
503         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
504         * sysdeps/powerpc/sub_n.S: Moved to...
505         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
506         * sysdeps/powerpc/submul_1.S: Moved to...
507         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
508         * sysdeps/powerpc/elf/bzero.S: Moved to...
509         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
510         * sysdeps/powerpc/elf/start.S: Moved to...
511         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
512         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
513         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
514         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
515         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
516         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
517         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
518         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
519         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
520         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
521         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
522         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
523         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
524         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
526         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
528         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
530         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
532         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
534         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
536         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
538         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
539         powerpc/powerpc64.
541 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
543         * FAQ.in: Add powerpc64 to supported targets list. Also state the
544         minimum gcc version is 3.2
545         * README: Add powerpc64 to supported targets list.
546         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
547         Add powerpc64 and machine=powerpc/powerpc64.
548         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
549         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
550         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
551         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
552         * sysdeps/powerpc/powerpc32/Dist: New file.
553         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
554         * sysdeps/powerpc/powerpc32/Implies: New file.
555         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
556         ($(with-fp) = no): Move test to powerpc32/Makefile.
557         ($(subdir) = misc): Move to powerpc32/Makefile.
558         ($(build-shared) = yes): Move to powerpc32/Makefile.
559         ($(subdir) = csu): Move to powerpc32/Makefile.
560         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
561         * sysdeps/powerpc/powerpc32/Makefile: New file.
562         * sysdeps/powerpc/Versions: Remove libgcc functions.
563         * sysdeps/powerpc/powerpc32/Versions: New file.
564         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
565         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
566         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
567         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
568         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
569         ($machine): Add powerpc/powerpc64 to if ... | for
570         libc_cv_slibdir=/libc64.
571         (powerpc*): Set ldd_rewrite_script.
572         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
573         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
575         Add clone.S.
576         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
577         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
578         functions.  Remove GLIBC_2.2 functions except getrlimit and
579         setrlimit.  Moved them to ...
580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
582 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
584         * libio/tst-atime.c: Include <errno.h>.
585         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
587 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
589         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
590         warnings of some compilers.
591         (build_collating_symbol): Change the type of characters from
592         "unsigned char" to "char", and append a cast to "char*" pointer in
593         array subscript.
594         (build_collating_symbol): Likewise.
595         (build_equiv_class): Likewise.
596         (build_charclass): Likewise.
597         (re_compile_pattern): Remove incorrect cast.
598         (re_compile_fastmap_iter): Change the type of characters from
599         "unsigned char" to "char", and append a cast to "char*" pointer
600         in array subscript.
601         (parse_bracket_exp): Likewise.
602         * posix/regex_internal.c (re_string_construct_common): Likewise.
603         (re_string_allocate): Likewise.
604         (re_string_construct): Likewise.
605         (re_string_realloc_buffers): Likewise.
606         (build_wcs_buffer): Likewise.
607         (re_string_reconstruct): Likewise.
608         * posix/regex_internal.h: Change the type of characters in
609         re_string_t and bracket_elem_t from "unsigned char" to "char".
610         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
611         warnings of some compilers.
612         (transit_state_bkref_loop): Change the type of characters from
613         "unsigned char" to "char", and append a cast to "char*" pointer in
614         array subscript.
615         (check_node_accept_bytes): Likewise.
616         (find_collation_sequence_value): Likewise.
618 2002-09-04  Roland McGrath  <roland@redhat.com>
620         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
621         from 1024 to 65536, to avoid buffer overrun.
623 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
625         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
627 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
629         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
630         for filesystem.
632 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
634         * posix/bug-regex11.c: New test.
635         * posix/Makefile (tests): Add bug-regex11.
637 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
639         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
640         newlocale.
642 2002-09-02  Roland McGrath  <roland@redhat.com>
644         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
645         __pthread_initialize_minimal and __libc_check_standard_fds to
646         match the generic version.
648         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
649         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
651         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
652         warnings on platorms where char is unsigned.
654 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
656         * version.h (VERSION): Bump to 2.2.93.
658         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
660 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
662         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
663         as relocated.
665 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
667         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
669 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
671         * locale/localeinfo.h (struct locale_data): Add private.ctype.
672         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
673         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
674         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
675         (__wcsmbs_load_conv): Remove const from argument.
676         (_nl_cleanup_ctype): New proto.
677         (get_gconv_fcts): New function.
678         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
679         (__wcsmbs_to_wc): Rename back to...
680         (to_wc): ... this.
681         (__wcsmbs_gconv_fcts): Rename to...
682         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
683         (lock): Removed.
684         (__libc_setlocale_lock): New extern.
685         (__wcsmbs_load_conv): Remove const from argument.
686         Initialize new_category->private.ctype instead of a global
687         variable.
688         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
689         update_function_ptrs.  No locking is necessary.
690         (_nl_cleanup_ctype): New function.
691         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
692         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
693         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
694         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
695         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
696         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
697         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
698         * wcsmbs/wctob.c (wctob): Likewise.
699         * stdlib/mblen.c (mblen): Likewise.
700         * stdlib/mbtowc.c (mbtowc): Likewise.
701         * stdlib/wctomb.c (wctomb): Likewise.
702         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
703         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
704         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
705         Removed.
707 2002-09-02  Roland McGrath  <roland@frob.com>
709         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
711 2002-09-01  Roland McGrath  <roland@redhat.com>
713         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
714         Variable declarations removed.
715         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
716         these functions to replace them.
717         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
718         functions plus an indirection rather than the old global variables.
719         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
720         Macros removed.
721         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
722         inline functions.
723         * ctype/ctype-info.c: Revert last reversion back the other way.
724         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
725         Define real function versions of include/ctype.h inlines here.
726         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
727         __ctype_tolower_loc, __ctype_toupper_loc.
728         * locale/lc-ctype.c: Revert last reversion back the other way.
729         (_nl_postload_ctype): If current thread uses the global locale,
730         update its tsd vars.
731         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
732         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
733         CTYPE_TOLOWER, CTYPE_TOUPPER.
735         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
736         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
737         from __libc_tsd_threadvar_location.
738         (__libc_tsd_set, __libc_tsd_get): Update uses.
740 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
742         * ctype/ctype.h: Undo the patch before the last one.  Put back the
743         macro definitions for the standard functions to access the
744         classification and mapping arrays.
745         * include/ctype.h: Partly revert last patch.  Move the macro
746         definitions for the exported functions back to the public header.
747         #undef all the macros defined here before redefining.
748         * ctype/ctype-info.c: Revert last patch.
749         * locale/lc-ctype.c: Revert last patch.
751         * ctype/Makefile (routines): Add isctype.
752         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
753         * ctype/ctype.h: Add declaration of isctype.
754         * include/ctype.h: Declare __isctype.
755         * ctype/isctype.c: New file.
757 2002-09-01  Roland McGrath  <roland@redhat.com>
759         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
760         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
762         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
764         * locale/findlocale.c (_nl_remove_locale): Don't search in
765         _nl_locale_file_list if DATA->alloc is ld_archive.
766         Use _nl_unload_locale to do the rest of the work.
768         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
769         of new structure to UNDELETABLE.
771         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
772         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
773         towlower, towupper): Macros removed.
774         * ctype/ctype.h (__tobody): Put parens around macro argument.
775         (__isctype): Macro removed.
776         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
777         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
778         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
779         tolower, toupper): Macros and inlines removed.
780         * include/ctype.h [! NOT_IN_libc]
781         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
782         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
783         tolower, toupper): Define here instead, using _NL_CURRENT.
784         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
785         using _NL_CURRENT.
786         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
787         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
788         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
789         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
790         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
791         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
792         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
793         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
794         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
795         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
796         (ISSORTMASK): Update use.
797         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
798         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
799         (_nss_files_getENTNAME_r): Likewise.
800         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
801         Likewise.
803         * Makerules (all-nonlib): Renamed from all-tests.
804         Include $(others) here too.
805         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
806         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
807         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
808         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
809         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
810         the program modules via cppflags-iterator.mk.
811         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
812         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
814 2002-08-31  Roland McGrath  <roland@redhat.com>
816         * posix/tst-getconf.sh: If no third arg, work with static linking.
818         * locale/categories.def (LC_TIME): No more _nl_postload_time.
820         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
821         [_NL_CURRENT_INDIRECT].
823 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
825         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
827 2002-08-31  Roland McGrath  <roland@redhat.com>
829         * locale/newlocale.c (__newlocale): Don't use strdup for names.
830         Instead, make the single allocation of the structure larger to hold
831         the name strings.
832         * locale/duplocale.c (__duplocale): Don't strdup names individually.
833         Instead, calculate size for a single allocation and copy into it.
834         * locale/freelocale.c (__freelocale): Don't free names individually.
836         * locale/newlocale.c (__newlocale): Don't leak old data or names.
838         * locale/xlocale.h (__locale_struct): Move __names member last,
839         for binary compatibility.
841         * locale/duplocale.c (__duplocale): Free names from the right array.
843         * locale/uselocale.c (__uselocale): Return previous locale when
844         setting a new one.
846         * locale/newlocale.c: Commit changes from 2002-08-30
847         batch where I failed to commit this file:
848         (__newlocale): Fill in __names array.
850 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
852         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
853         errlist-compat.c if versioning==yes.
855 2002-08-31  Andreas Jaeger  <aj@suse.de>
857         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
858         external functions with hidden attribute.
859         (elf_machine_rela): Optimize.
861         * sysdeps/x86_64/memset.S: New file.
862         * sysdeps/x86_64/bzero.S: New file.
863         * sysdeps/x86_64/stpcpy.S: New file.
864         * sysdeps/x86_64/strcat.S: New file.
865         * sysdeps/x86_64/strchr.S: New file.
866         * sysdeps/x86_64/strcpy.S: New file.
867         * sysdeps/x86_64/strcspn.S: New file.
868         * sysdeps/x86_64/strlen.S: New file.
869         * sysdeps/x86_64/strpbrk.S: New file.
870         * sysdeps/x86_64/strspn.S: New file.
871         * sysdeps/x86_64/strcmp.S: New file.
872         * sysdeps/x86_64/strtok_r.S: New file.
873         * sysdeps/x86_64/strtok.S: New file.
874         * sysdeps/x86_64/memcpy.S: New file.
875         * sysdeps/x86_64/mempcpy.S: New file.
877         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
879         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
881 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
883         * stdio-common/Makefile (generated): Add errlist-compat.c.
885         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
887         * locale/localeinfo.h: Pretty printing.
889         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
890         form_number handling.
892 2002-08-31  Andreas Jaeger  <aj@suse.de>
894         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
895         double tests.
897         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
898         __start_context.
900         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
902         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
904         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
905         registers used for passing args.
907         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
908         all needed registers.
910         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
911         registers.
913         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
914         registers.
916 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
918         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
919         always_inline attribute.
921 2002-08-30  Roland McGrath  <roland@redhat.com>
923         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
924         presume it's the stub and bail without error.
926         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
927         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
929         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
931         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
932         macros replace the i686 versions for 64-bit mode.
934         * locale/duplocale.c: Include <string.h>.
936         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
937         [_LIBC] (category_to_name): Don't define the function.  Instead
938         define a macro using _nl_category_names.
940         * locale/xlocale.h (struct __locale_struct): New member `__names'.
941         * locale/xlocale.c (_nl_C_locobj): Update initializer.
942         * locale/global-locale.c (_nl_global_locale): Likewise.
943         * locale/duplocale.c (__duplocale): strdup __names elements.
944         * locale/freelocale.c (__freelocale): Free __names elements.
945         * locale/localename.c (_nl_current_names): Variable removed.
946         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
947         * locale/localeinfo.h (_nl_current_names): Removed decl.
948         * locale/setlocale.c: Use _nl_global_locale->__names in place of
949         _nl_current_names throughout.
951         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
953         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
954         and sys_nerr in the output file.
956         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
957         * scripts/cpp: Just use the environment variable.
959         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
960         * libio/tst-mmap-offend.c (do_test): Likewise.
961         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
962         * libio/tst-mmap-eofsync.c (do_test): Likewise.
963         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
965         * locale/localename.c: If the current locale is the global locale, use
966         _nl_current_names; otherwise use the locale object.
968 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
970         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
971         'm' to enable mmap I/O.
972         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
973         former wasn't used (anymore?).
974         (_IO_FLAGS2_MMAP): New define.
975         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
976         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
977         _IO_FLAGS2_MMAP bit is set.
978         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
979         Enable mmap-using mode only if 'm' was set.
981 2002-08-29  Roland McGrath  <roland@frob.com>
983         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
985         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
986         Change argument type from int to intptr_t.
988         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
989         initializer on [! _HURD_THREADVAR_H] (bad kludge).
990         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
991         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
992         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
994         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
996         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
998         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1000         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1001         * assert/assert-perr.c: Add libc_hidden_def.
1002         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1004         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1005         found at all.
1006         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1007         sys_errlist stuff to ...
1008         * sysdeps/unix/sysv/linux/Versions: ... here.
1010         * mach/mach.h: Include <features.h>.
1012 2002-08-29  Roland McGrath  <roland@redhat.com>
1014         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1015         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1016         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1018         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1020         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1021         (norm_add_slashes): alloca -> __alloca
1023 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1025         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1026         string_malloced, it is unlikely to be set.
1027         Only call free with non-NULL workspace.
1028         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1029         -mcpu=ultrasparc, not only tune for it.
1030         (ASFLAGS*): Set unconditionally.
1032         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1033         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1034         p_vaddr/p_offset when computing LOADADDR.
1036 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1038         * version.h (VERSION): Bump to 2.2.92.
1040         * time/Makefile (tst-ftime_l-ENV): New variable.
1042         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1044         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1045         <U017A>, <U017D> and <U0179>. Add missing mappings.
1046         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1048         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1049         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1050         (struct tostruct): Use ACRINDEX as type for link field.
1051         (statuc gmonparam): Likewise for froms.
1052         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1053         kcount and froms.
1054         (write_call_graph): Use correct type for from_index and to_index.
1055         * gmon/mcount.c: Use correct types for frompcindex and toindex
1056         variables.
1057         Patches by Dan Kegel <dank@kegel.com>.
1059         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1060         canonical name.
1062         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1063         __isspace_l.  Replace calls to isspace.
1064         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1066 2002-08-29  Roland McGrath  <roland@redhat.com>
1068         * string/tst-strxfrm.c: Remove __ from function names.
1070 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1072         * include/wchar.h: Declare __mbsrtowcs_l.
1073         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1074         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1075         USE_IN_EXTENDED_LOCALE_MODEL.
1076         * wcsmbs/mbsrtowcs_l: New file.
1077         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1078         define as static.  Change all uses.
1079         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1080         Change all callers.
1081         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1082         * time/strftime.c: When translating for the extended locale model
1083         use the _l functions.
1084         * time/Makefile (tests): Add tst-ftime_l.
1085         * time/tst-ftime_l.c: New file.
1087 2002-08-28  Roland McGrath  <roland@redhat.com>
1089         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1090         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1091         from _nl_find_locale ok if for _nl_C_name.
1093         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1094         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1095         we know they are all linked in.
1097         * NEWS: Added 2.2.6 text from 2.2 branch version.
1099         * time/strptime.c (strptime_internal): Remove spurious const.
1101         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1102         _nl_select_era_entry): Moved to ...
1103         * time/era.c: ... here, new file.
1104         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1105         Add internal_function to definitions.  Take an additional argument
1106         giving the `struct locale_data *' to use.
1107         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1108         _nl_parse_alt_digit): Moved to ...
1109         * time/alt_digit.c: ... here, new file.
1110         * time/lc-time-cleanup.c: New file.
1111         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1112         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1113         (_nl_cleanup_time): Declare it.
1114         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1115         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1116         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1117         * time/strftime.c: Pass locale data to helper functions.
1118         * time/strptime.c: Likewise.
1120         * locale/localeinfo.h (struct locale_data): New member `private'
1121         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1122         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1123         * locale/C-collate.c: Update initializer.
1124         * locale/C-identification.c: Likewise.
1125         * locale/C-measurement.c: Likewise.
1126         * locale/C-telephone.c: Likewise.
1127         * locale/C-address.c: Likewise.
1128         * locale/C-name.c: Likewise.
1129         * locale/C-paper.c: Likewise.
1130         * locale/C-time.c: Likewise.
1131         * locale/C-numeric.c: Likewise.
1132         * locale/C-monetary.c: Likewise.
1133         * locale/C-messages.c : Likewise.
1134         * locale/C-ctype.c: Likewise.
1136         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1137         Redefine this too.
1139 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1141         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1142         (_rtld_global): Use it.
1144         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1145         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1146         object directory.  Pass all Versions files to the awk script.
1147         * sysdeps/gnu/errlist-compat.c: Removed.
1148         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1149         first Versions file in the search path which has them.
1150         Allow multiple errlist symbol versions to have the same count of
1151         errors.
1152         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1153         of "errlist-compat.c".
1154         * sysdeps/gnu/errlist.c: Regenerated.
1155         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1156         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1157         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1158         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1159         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1160         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1161         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1162         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1163         ECANCELLED if not defined by kernel headers.
1164         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1165         already defined by kernel headers.
1166         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1167         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1168         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1169         is a macro.
1170         * Versions.def (GLIBC_2.3) [librt]: Add.
1172         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1174 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1176         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1177         missing comma to .type directive.
1179 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1181         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1182         unconditionally.
1183         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1184         check.
1185         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1187 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1189         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1190         check to close_and_out close.  Replace return NULL statements where
1191         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1192         when it is no longer needed.
1194 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1196         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1197         string constants.
1198         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1199         * sysdeps/arm/dl-machine.h: Likewise.
1200         * sysdeps/cris/dl-machine.h: Likewise.
1201         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1202         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1204 2002-08-28  Roland McGrath  <roland@redhat.com>
1206         * Makeconfig (default_cflags): Revert unintended change.
1208 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1210         * version.h (VERSION): Bump to 2.2.91.
1212         * configure.in: Disable TLS support by default for now.
1214         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1216         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1217         warnings.
1219         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1221         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1222         fprintf/fwprintf calls.
1224 2002-08-28  Roland McGrath  <roland@redhat.com>
1226         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1227         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1229         * locale/setlocale.c: Declare postload functions weak.
1231         * elf/tst-tls1-static.c: New file.
1232         * elf/tst-tls2-static.c: New file.
1233         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1235         Make uselocale support static linking.
1236         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1237         This file again just defines _nl_C_locobj.
1238         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1239         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1240         using all weak references in the initializer.
1241         * locale/Makefile (aux): Add global-locale.
1242         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1243         these unconditional, along with the tsd decl.
1244         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1245         Define it under these conditions.
1246         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1247         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1248         `extern __thread struct locale_data *const *'.
1249         [NL_CURRENT_INDIRECT]
1250         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1251         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1252         the thread variable _nl_current_LC_FOO and also a special absolute
1253         symbol _nl_current_LC_FOO_used.
1254         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1255         Set each _nl_current_LC_FOO symbol to point into the new locale,
1256         using weak references to test if _nl_current_LC_FOO_used was linked in.
1257         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1258         [NL_CURRENT_INDIRECT]: ... with this one.
1259         (_nl_current, _nl_C): Variables removed.
1260         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1261         weak references to _nl_current_LC_FOO_used.
1262         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1263         (free_category): New function, broken out of ...
1264         (free_mem): ... here.  Call that.
1265         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1266         instead of a loop.
1268         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1269         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1270         it is already absolute.
1272         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1273         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1274         [$(build-static) = yes] (tests-static): New variable.
1275         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1277 2002-08-26  Christoph Hellwig  <hch@lst.de>
1279         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1280         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1282 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1284         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1286         * sysdeps/s390/Dist: Add bits/link.h.
1288         * sysdeps/sh/Dist: New file.
1290         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1292         * sysdeps/wordsize-32/Dist: New file.
1294         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1295         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1296         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1298         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1299         sys/personality.h.
1301         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1302         sparc/dl-brk.S.
1304         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1306         * sysdeps/unix/bsd/sun/Dist: New file.
1308         * sysdeps/unix/bsd/osf/Dist: New file.
1310         * sysdeps/unix/bsd/hp/Dist: New file.
1312         * sysdeps/unix/arm/Dist: New file.
1314         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1316         * sysdeps/mach/hurd/Dist: Add set-init.c.
1318         * sysdeps/i386/Dist: Add bits/link.h.
1320         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1322         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1324         * locale/Makefile (distribute): Add hashval.h.
1326         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1328         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1330         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1331         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1332         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1333         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1334         implementations.
1335         * libio/stdio.h: Likewise.
1336         * locale/locale.h: Likewise.
1337         * math/math.h: Likewise.
1338         * math/bits/mathcalls.h: Likewise.
1339         * setjmp/setjmp.h: Likewise.
1340         * signal/signal.h: Likewise.
1341         * stdlib/stdlib.h: Likewise.
1342         * string/string.h: Likewise.
1343         * time/time.h: Likewise.
1344         * wcsmbs/wchar.h: Likewise.
1345         * wctype/wctype.h: Likewise.
1347 2002-08-28  Roland McGrath  <roland@redhat.com>
1349         * locale/tst-C-locale.c (run_test): Remove __ from function names.
1351 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1352             Roland McGrath <roland@redhat.com>
1354         * locale/hashval.h (compute_hashval): Use prototype defn.
1355         (hashval_t): New macro, defined to unsigned long int
1356         if not already defined.
1357         (compute_hashval): Return hashval_t instead of unsigned long int.
1358         * locale/loadarchive.c (hashval_t): New macro.
1359         * locale/programs/locarchive.c: Include hashval.h directly instead
1360         of simple-hash.h.
1361         (compute_hashval, hashval_t): Define these macros first.
1362         (insert_name): Use archive_hashval instead of compute_hashval.
1363         (add_locale, delete_locales_from_archive): Likewise.
1365 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1367         * locale/programs/locarchive.c (insert_name): Suppress warnings about
1368         hash collisions if be_quiet.
1370 2002-08-27  Roland McGrath  <roland@redhat.com>
1372         * locale/locale.h (__newlocale, __duplocale, __freelocale,
1373         __uselocale): Don't declare these any more.
1374         * include/locale.h (__uselocale): Declare here instead, using __typeof.
1376         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1377         and treat it as an EOF return.
1378         * sysdeps/unix/readdir_r.c: Likewise.
1380         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1381         From Alexandre Oliva <aoliva@redhat.com>.
1382         * sysdeps/gnu/errlist-compat.c: Regenerated.
1384 2002-08-27  Brian Youmans  <3diff@gnu.org>
1386         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1387         wording at request of copyright holder Stephen Moshier.
1388         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1389         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1390         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1391         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1392         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1393         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1394         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1395         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1396         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1397         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1398         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1399         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1400         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1401         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1403 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1405         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1406         * ctype/ctype-extn.c (isblank_l): Add weak alias.
1407         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1408         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1409         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1410         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1411         * wctype/iswctype_l.c (iswctype_l): Likewise.
1413 2002-08-27  Roland McGrath  <roland@redhat.com>
1415         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1417         * ctype/ctype.h (__exctype_l): Don't declare __ name.
1418         * stdlib/stdlib.h: Don't declare __*_l names.
1419         * include/stdlib.h: Declare them here instead.
1420         * include/string.h: Don't declare __*_l names.
1421         * string/string.h: Declare them here instead.
1422         * time/time.h: Don't declare __*_l names.
1423         * include/time.h: Declare them here instead.
1424         * wcsmbs/wchar.h: Don't declare __*_l names.
1425         * include/wchar.h: Declare them here instead.
1426         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1427         Don't declare __*_l names.
1428         * include/wctype.h: Declare them here instead.
1429         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1430         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1431         * locale/langinfo.h: Don't declare __nl_langinfo_l.
1432         * include/langinfo.h: Declare it here with __typeof.
1434         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1435         instead, taking an extra __locale_t argument.
1436         * time/Makefile (routines): Add strptime_l.
1437         * time/time.h (__strptime_l, strptime_l): Declare them.
1438         * time/strptime_l.c: New file.
1440         * time/time.h (__strftime_l, strftime_l): Declare them.
1441         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1442         * time/strftime_l.c: New file.
1443         * time/wcsftime_l.c: New file.
1444         * time/Makefile (routines): Add strftime_l, wcsftime_l.
1445         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1446         strftime_l, wcsftime_l.
1447         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1448         or __wcsftime_l instead, taking an extra __locale_t argument.
1450         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1451         (libc: GLIBC_2.3): ... here.
1453 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1455         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1457         * Makefile (distribute): Add LICENSES.
1459         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1460         sys/debugreg.h.
1462         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1464         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1466         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1468         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1470         * sysdeps/mach/hurd/alpha/Dist: New file.
1472         * sysdeps/arm/Dist: Add bits/link.h.
1474         * sunrpc/Makefile: Distribute thrsvc.
1476         * stdio-common/Makefile: Remove more left-overs from old stdio.
1478         * include/linewrap.h: Removed.
1480         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1482         * intl/Makefile (distribute): Add plural-eval.c.
1484 2002-08-27  Roland McGrath  <roland@redhat.com>
1486         * manual/sysinfo.texi (Mount Information): Correct file name to macro
1487         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1488         Say mtab is in either /var/run or /etc.
1490 2002-08-26  Roland McGrath  <roland@redhat.com>
1492         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1493         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1495         * sysdeps/gnu/Versions: New file.
1496         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1497         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1498         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1499         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1500         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1501         and _sys_nerr_internal instead of anything else.  Make it include
1502         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1503         Make it emit some asm magic if [EMIT_ERR_MAX].
1504         * sysdeps/gnu/errlist.c: Regenerated.
1505         * sysdeps/gnu/errlist-compat.awk: New file.
1506         * sysdeps/gnu/errlist-compat.c: New file (generated).
1507         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1508         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1509         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1510         (SYS_ERRLIST, SYS_NERR): Macros removed.
1511         (sys_nerr, _sys_nerr): Remove these weak aliases.
1512         * sysdeps/unix/sysv/linux/errlist.c: File removed.
1513         * sysdeps/unix/sysv/linux/errlist.h: File removed.
1514         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1516         * include/libc-symbols.h (declare_symbol): New macro.
1517         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1518         * configure.in: New check to define it.
1519         * configure: Regenerated.
1521 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1523         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
1524         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
1526         * Make-dist: Remove traces of old stdio.
1527         * Makeconfig: Likewise.
1529         * locale/Makefile (localedef-aux): New variable.  Only md5
1530         assigned to it.  These files are not ddistributed in this directory.
1532         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1533         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1534         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1536         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1538         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1539         set h_errno to NO_RECOVERY [PR libc/4360].
1541 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1543         * libio/Makefile (tests): Add bug-fopena+.
1544         * libio/bug-fopena+.c: New file.
1545         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1546         file for _IO_IS_APPENDING if file isn't opened for reading, too.
1548         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1550         * locale/xlocale.c: Fix the last change.  The variable still has
1551         to end in _data.
1552         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1553         (__libc_tsd_set): Add _data prefix to variable name.
1555 2002-08-26  Roland McGrath  <roland@redhat.com>
1557         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1558         macro with inline function.
1559         (sigset_get_old_mask): Likewise.
1560         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1561         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1562         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1563         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1564         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1565         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1566         values.
1567         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1568         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1570 2002-07-06  Bruno Haible  <bruno@clisp.org>
1572         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1573         sigset_get_old_mask): Make it work with larger sigset_t.
1574         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1575         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1576         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1578 2002-08-26  Roland McGrath  <roland@redhat.com>
1580         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1581         * manual/filesys.texi (File Times): Document lutimes and futimes.
1582         * misc/Makefile (routines): Add them.
1583         * misc/Versions (libc: GLIBC_2.3): Likewise.
1584         * sysdeps/generic/lutimes.c: New file.
1585         * sysdeps/generic/futimes.c: New file.
1586         * sysdeps/mach/hurd/lutimes.c: New file.
1587         * sysdeps/mach/hurd/futimes.c: New file.
1589         * manual/filesys.texi (File Times): Add explicit note about null
1590         pointer argument to utimes.
1592 2002-08-26  Roland McGrath  <roland@frob.com>
1594         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1595         (__ifreq): Add a cast.  Remove an unused variable.
1597         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1598         _HURD_THREADVAR_LOCALE.
1600 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
1602         * posix/regexec.c (re_search_stub): Return correct match length
1603         if start != 0.
1604         * posix/bug-regex10.c: New test.
1605         * posix/Makefile (tests): Add bug-regex10.
1607 2002-08-26  Brian Youmans  <3diff@gnu.org>
1609         * COPYING.LIB: Replaced with fresh copy from
1610         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1611         suggested copying permission notice now says version 2.1 instead
1612         of version 2.
1614         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1615         from Library GPL.
1616         * crypt/crypt_util.c: Likewise.
1617         * crypt/ufc.c: Likewise.
1618         * elf/dl-conflict.c: Likewise.
1619         * elf/dl-iteratephdr.c: Likewise.
1620         * iconv/iconvconfig.h: Likewise.
1621         * malloc/arena.c: Likewise.
1622         * malloc/hooks.c: Likewise.
1623         * malloc/malloc.c: Likewise.
1624         * posix/glob/Makefile.ami: Likewise.
1625         * posix/glob/Makefile.in: Likewise.
1626         * stdlib/gmp-impl.h: Likewise.
1627         * stdlib/gmp.h: Likewise.
1628         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1629         * sysdeps/generic/strnlen.c: Likewise.
1630         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1631         * sysdeps/mach/hurd/recvmsg.c: Likewise.
1632         * sysdeps/mach/hurd/sendmsg.c: Likewise.
1633         * sysdeps/mach/hurd/spawni.c: Likewise.
1634         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1635         * sysdeps/mach/powerpc/sysdep.h: Likewise.
1636         * sysdeps/mach/powerpc/thread_state.h: Likewise.
1637         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1638         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1639         * sysdeps/x86_64/gmp-mparam.h: Likewise.
1641         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1642         Lesser GPL copying permission notice from 2 to 2.1.
1643         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1644         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1645         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1646         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1647         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1648         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1649         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1650         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1651         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1652         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1653         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1654         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1655         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1656         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1657         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1658         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1659         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1660         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1661         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1662         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1663         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1664         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1665         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1666         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1667         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1668         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1669         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1670         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1671         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1672         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1673         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1674         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1675         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1676         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1677         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1678         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1679         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1680         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1681         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1682         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1683         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1684         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1685         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1686         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1687         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1688         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1689         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1690         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1691         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1692         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1693         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1694         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1695         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1696         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1697         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1699         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1700         Moshier and Lesser GPL copying permission notice, per license from
1701         Moshier.
1702         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1703         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1704         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1705         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1706         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1707         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1708         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1709         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1710         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1711         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1712         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1713         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1714         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1715         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1717         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
1718         notice, per license from copyright holder Stephen Moshier.
1719         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1720         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1721         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1722         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1723         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1724         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1725         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1726         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1727         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1729 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1731         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
1732         (shared-only-routines): Likewise.
1734 2002-08-26  Roland McGrath  <roland@redhat.com>
1736         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
1737         name of "", store a null pointer instead.
1739         * configure.in (elf): Set to yes for freebsd*, netbsd*.
1740         * configure: Regenerated.
1742         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
1743         Initialize this instead of __libc_tsd_LOCALE_data.
1745         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
1746         ptsname_r to EINVAL.
1748         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
1750         * rt/Makefile: Revert last change, it was inappropriate to presume aio
1751         implementations depend on pthreads.
1752         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
1753         * rt/tst-aio64.c (do_test): Likewise.
1754         * rt/tst-aio2.c (do_test): Likewise.
1755         * rt/tst-aio3.c (do_test): Likewise.
1756         * rt/tst-aio4.c (do_test): Likewise.
1757         * rt/tst-aio5.c (do_test): Likewise.
1758         * rt/tst-aio6.c (do_test): Likewise.
1759         * rt/tst-aio7.c (do_test): Likewise.
1761         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
1762         void so as to avoid compiler warnings.
1764         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
1765         _IO_wide_data_FD, which is never used here.
1767         * libio/iofread.c
1768         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
1769         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
1770         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
1772         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
1773         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
1775         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
1776         (closelog): Likewise.
1778 2002-07-06  Bruno Haible  <bruno@clisp.org>
1780         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
1782         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
1783         * sysdeps/unix/alpha/pipe.S: ... here.
1784         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
1786         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
1788         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
1789         * sysdeps/unix/i386/fork.S: Likewise.
1790         * sysdeps/unix/i386/pipe.S: Likewise.
1791         * sysdeps/unix/i386/wait.S: Likewise.
1793         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
1794         * sysdeps/unix/arm/fork.S: Likewise.
1796         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
1797         arguments.
1798         (DO_CALL): Swap argument order.
1799         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
1800         arguments.
1801         (DO_CALL): Swap argument order.
1802         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
1803         arguments.
1804         (DO_CALL): Swap argument order.
1805         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
1806         arguments.
1807         (DO_CALL): Swap argument order.
1808         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
1809         arguments.
1810         (DO_CALL): Swap argument order.
1811         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
1812         arguments.
1813         (DO_CALL): Swap argument order.
1814         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
1815         arguments.
1816         (DO_CALL): Swap argument order.
1818         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
1819         (L): Define right for ELF.
1820         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
1821         Now defined in sysdeps/i386/sysdep.h.
1823         * sysdeps/posix/readv.c: Ansify function definition.
1824         * sysdeps/posix/writev.c: Likewise.
1826         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
1827         have the same size. Avoid direct cast from size_t to off_t.
1829         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
1830         nul byte in entry[n].ut_user.
1831         (simulate_logout): Likewise.
1833         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
1834         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
1835         existence of corresponding members of 'struct utmp'.
1836         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
1837         !_HAVE_UT_TYPE.
1839         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
1840         allocate a buffer of at least BUFSIZ bytes, not just of
1841         sizeof (struct dirent).
1843         * sysdeps/generic/glob.c: Include <limits.h>.
1844         (NAME_MAX): Define a fallback.
1845         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
1846         stack.
1847         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
1848         (main): Allocate enough room for a 'struct dirent64' on the stack.
1849         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
1850         'struct dirent'.
1852         * sysdeps/unix/sysv/linux/init-first.c: Don't include
1853         kernel-features.h.
1855         * inet/htontest.c: Include <sys/types.h>.
1857         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
1859         * include/sys/sysctl.h: Comment fix.
1861         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
1862         _dl_load_lock.
1863         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
1865         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
1867         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
1868         (__getpeername): New alias.
1869         (__getsockname): New alias.
1870         (__socket): New alias.
1872         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
1874         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
1875         (__fcntl_internal): New alias.
1876         (__profil): New alias.
1878 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1880         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
1881         entry was for getaddr* lookup or not.  Add only matching cache
1882         entry.  Change all callers [PR libc/4317].
1884         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
1885         finding the read position [PR libc/4265].
1886         * libio/Makefile (tests): Add bug-rewind2.
1887         * libio/bug-rewind2.c: New file.
1889         * libio/bug-rewind.c: Fix creation of temp file.
1891 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1893         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
1894         neither SUCCESS nor TRYAGAIN [PR libc/4259].
1895         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
1896         to ENOENT if no entry is found.
1897         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
1898         failure.
1899         * nis/nss_compat/compat-initgroups.c: Likewise.
1900         * nis/nss_compat/compat-pwd.c: Likewise.
1901         * nis/nss_compat/compat-spwd.c: Likewise.
1902         * nis/nss_nis/nis-alias.c: Likewise.
1903         * nis/nss_nis/nis-ethers.c: Likewise.
1904         * nis/nss_nis/nis-grp.c: Likewise.
1905         * nis/nss_nis/nis-hosts.c: Likewise.
1906         * nis/nss_nis/nis-initgroups.c: Likewise.
1907         * nis/nss_nis/nis-netgrp.c: Likewise.
1908         * nis/nss_nis/nis-network.c: Likewise.
1909         * nis/nss_nis/nis-proto.c: Likewise.
1910         * nis/nss_nis/nis-publickey.c: Likewise.
1911         * nis/nss_nis/nis-pwd.c: Likewise.
1912         * nis/nss_nis/nis-rpc.c: Likewise.
1913         * nis/nss_nis/nis-service.c: Likewise.
1914         * nis/nss_nis/nis-spwd.c: Likewise.
1915         * resolv/nss_dns/dns-host.c: Likewise.
1916         * resolv/nss_dns/dns-network.c: Likewise.
1917         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
1918         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
1919         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1920         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
1921         * nis/nss_nisplus/nisplus-network.c: Likewise.
1922         * nis/nss_nisplus/nisplus-proto.c: Likewise.
1923         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1924         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
1925         * nis/nss_nisplus/nisplus-service.c: Likewise.
1926         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
1927         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
1928         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
1929         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
1930         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
1932         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
1933         declaring __restore and __restore_rt as hidden (if possible).
1935 2002-08-25  Roland McGrath  <roland@redhat.com>
1937         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
1939         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
1940         (getutent_r_file, internal_getut_r): Updated all callers.
1941         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
1943 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1945         * locale/programs/locale.c: Don't print aliases for non-existing
1946         locales for 'locale -a'.
1947         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
1949 2002-07-19  H.J. Lu  <hjl@gnu.org>
1951         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
1953 2002-07-16  H.J. Lu  <hjl@gnu.org>
1955         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1956         sys/personality.h.
1957         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
1959 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1961         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
1962         not moved ahead of the fputs call.
1963         * elf/tst-tlsmod2.c (in_dso): Likewise.
1964         * elf/tst-tlsmod3.c (in_dso2): Likewise.
1965         * elf/tst-tlsmod4.c (in_dso): Likewise.
1967 2002-08-25  Andreas Schwab  <schwab@suse.de>
1969         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
1971 2002-08-25  Roland McGrath  <roland@redhat.com>
1973         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
1974         resetting handler, to avoid the possibility of a spurious SIGALRM
1975         delivered to the user's handler.
1976         Reported by Amit D. Chaudhary <amitc@brocade.com>,
1978         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
1979         set -fkeep-inline-functions, which is not needed for the current file.
1981         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
1982         (_dl_setup_hash): Add attribute_hidden.
1983         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
1984         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
1985         (_dl_new_object, _dl_map_object_deps): Likewise.
1986         (_dl_map_object_deps_internal): Remove decl.
1987         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
1989         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
1990         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
1991         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
1992         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
1993         instead relying on the compiler to produce only GOTOFF variable refs.
1995 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1997         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
1999         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2000         inline to avoid defining it in every file which includes this header.
2002         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2003         defining DONT_USE_BOOTSTRAP_MAP.
2005         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2006         * libio/tst-mmap-setvbuf.c (main): Likewise.
2007         * libio/tst-widetext.c (main): Likewise.
2009         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2010         message.
2011         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2012         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2014         * sysdeps/i386/elf/configure.in: Unconditionally define
2015         PI_STATIC_AND_HIDDEN.
2016         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2017         PI_STATIC_AND_HIDDEN is defined as well.
2018         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2020 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2022         * sysdeps/ia64/bzero.S: Define __bzero as well.
2024         * locale/programs/charmap.c (charmap_new_char): Don't use
2025         ULONG_MAX as maximum UCS4 value.
2027         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2029         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2031         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2032         * malloc/malloc.c (mALLINFo): Likewise.
2034         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2036         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2037         examining result of _IO_do_flush call.
2039         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2040         Use prec not spec when sizing buffers.
2042         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2043         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2044         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2045         * stdio-common/vfscanf.c (inchar): Likewise.
2046         * misc/efgcvt_r.c (fcvt_r): Likewise.
2047         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2048         * elf/readlib.c (process_file): Likewise.
2049         * elf/sprof.c (load_profdata): Likewise.
2050         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2051         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2052         * locale/programs/charmap.c (charmap_read): Likewise.
2053         * libio/fileops.c: Likewise.
2054         * libio/fmemopen.c: Likewise.
2055         * stdlib/strtod.c: Likewise.
2056         * elf/dl-load.c: Likewise.
2057         * iconv/iconvconfig.c: Likewise.
2058         * iconv/iconv_prog.c (process_block): Likewise.
2059         * elf/rtld.c (dl_main): Likewise.
2061         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2062         macro to calm down the compiler.
2064         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2066         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2068         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2069         placement of errno definition.
2070         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2071         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2072         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2073         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2074         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2076         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2077         from 1024 to 65536, to avoid buffer overrun.
2079 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2081         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2082         from 1024 to 65536, to avoid buffer overrun.
2083         * resolv/res_query.c (MAXPACKET): Likewise.
2085 2002-08-24  Andreas Jaeger  <aj@suse.de>
2087         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2089 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2091         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2092         two52 locally.
2093         (log2): Likewise.
2094         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2095         Patch by Simon Gee <simong@agile.tv>.
2097         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2098         Prefer reading /proc/stat since it is more uniform across
2099         architectures.
2101         * manual/texinfo.tex: Update to latest official version.
2103         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2104         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2105         * sysdeps/gnu/bits/shm.h: Likewise.
2106         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2107         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2108         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2109         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2110         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2111         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2112         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2113         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2114         since this is what the kernel says.
2116         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2117         since ssize_t is needed as well.  Replace const with __const.
2119 2002-08-23  Roland McGrath  <roland@redhat.com>
2121         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2122         __malloc_hook, __realloc_hook, __memalign_hook,
2123         __after_morecore_hook): Variable definitions moved to ...
2124         * malloc/malloc.c: ... here, so as to be before all references.
2126         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2127         global variable reference in an unused asm parameter, to ensure the
2128         compiler has set up the GOT register before we use it.
2130         * malloc/hooks.c: Move variable definitions ahead of uses.
2131         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2132         initializers that make reference to variables they define.
2134 2002-08-23  Andreas Jaeger  <aj@suse.de>
2136         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2137         alloca, free, qsort.
2139         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2141         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2142         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2144         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2145         <hch@lst.de>.
2146         * sysdeps/generic/fgetxattr.c: New file.
2147         * sysdeps/generic/flistxattr.c: New file.
2148         * sysdeps/generic/fremovexattr.c: New file.
2149         * sysdeps/generic/fsetxattr.c: New file.
2150         * sysdeps/generic/getxattr.c: New file.
2151         * sysdeps/generic/listxattr.c: New file.
2152         * sysdeps/generic/lgetxattr.c: New file.
2153         * sysdeps/generic/llistxattr.c: New file.
2154         * sysdeps/generic/lremovexattr.c: New file.
2155         * sysdeps/generic/lsetxattr.c: New file.
2156         * sysdeps/generic/removexattr.c: New file.
2157         * sysdeps/generic/setxattr.c: New file.
2158         * misc/Makefile (headers): Add sys/xattr.h.
2159         (routines): Add *xattr calls.
2160         * misc/Versions: Add *xattr calls with version 2.3.
2161         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2162         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2163         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2164         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2165         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2166         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2167         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2168         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2170 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2172         * sysdeps/powerpc/elf/libc-start.c
2173         (__cache_line_size): Declare.
2174         (__aux_init_cache): New function.
2175         (__libc_start_main): Change type of `auxvec' parameter to
2176         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2177         __aux_init_cache.
2178         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2179         (__cache_line_size): Declare.
2180         (__aux_init_cache): New function.
2181         (DL_PLATFORM_INIT): Define.
2182         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2183         value to select the correct stride for dcbz.
2185 2002-08-22  Andreas Jaeger  <aj@suse.de>
2187         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2188         shmat.
2190 2002-08-22  Roland McGrath  <roland@redhat.com>
2192         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2193         position indicated by locrectab against file bounds before rounding to
2194         page size.  In mapping loop, always set TO before breaking out of
2195         contiguous range coalescing loop.
2197         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2198         (or MAP_COPY if available) instead of MAP_SHARED.
2200         * scripts/firstversions.awk: When encountering a version newer than
2201         the specified earliest version, be sure to emit the specified earliest
2202         version first if any renaming of an older version to that has been.
2204 2002-08-21  Roland McGrath  <roland@redhat.com>
2206         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2207         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2208         (Configuring and compiling): Don't mention older GCC versions any more.
2209         * INSTALL: Regenerated.
2211         * manual/install.texi (Configuring and compiling, Installation,
2212         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2214         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2215         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2216         and with noinline otherwise.  Remove hack alloca use to prevent
2217         inlining, we can ask for it explicitly nowadays.
2219         * dlfcn/bug-dlsym1.c: New file.
2220         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2221         * dlfcn/Makefile (distribute): Add them.
2222         (tests): Add bug-dlsym1 here.
2223         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2224         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2225         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2227 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2229         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2230         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2231         before relocation.
2232         (_dl_start): Don't use local bootstrap_map variable if
2233         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2234         pass bootstrap_map to _dl_start_final in this case either.  Don't
2235         pass start_time to _dl_start_final ever.
2236         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2238         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2239         This cripples the scope lists necessary to search for symbols in
2240         dependencies which are not in the global scope.
2242         * include/setjmp.h (__libc_longjmp): Add declaration.
2244 2002-08-21  Andreas Jaeger  <aj@suse.de>
2246         * sysdeps/x86_64/_mcount.S: Fix assembler.
2248         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2249         with biarch support.
2251 2002-08-21  Andreas Jaeger  <aj@suse.de>
2253         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2255         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2257         * sysdeps/x86_64/machine-gmon.h: New file.
2258         * sysdeps/x86_64/_mcount.S: New file.
2260 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2262         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2263         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2264         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2265         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2266         to TL_INIT_TP.  Otherwise pass 1.
2267         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2268         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2270 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2272         * locale/programs/localedef.c (add_to_readlist): Error about
2273         circular dependencies only if the locale in question hasn't
2274         been finished.
2275         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2276         CTYPE_LOCALE to load_locale.
2277         * locale/programs/locfile.c (locfile_read): Don't include
2278         unneeded but available locales in locale_mask.
2280         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2281         print any messages about enlarging archive.
2283 2002-08-20  Brian Youmans  <3diff@gnu.org>
2285         * manual/contrib.texi: Removed licenses, added acknowledgements
2286         for contributions by Intel, IBM, Craig Metz.
2287         * LICENSES: New file, contains the text of all non-FSF licenses in the
2288         distribution that require putting the notice in the accompanying
2289         documentation.
2290         * README.template, README: Mention LICENSES.
2292         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2293         new one modelled on the modern BSD license, per recent letter
2294         of permission from CMU.
2295         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2297         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2298         from IBM to FSF, per the recent Software Letter.  Changed the
2299         distribution terms from GPL to LGPL.
2301         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2302         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2303         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2304         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2305         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2306         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2307         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2308         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2309         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2310         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2312         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2313         from IBM to FSF, per the recent Software Letter.  Corrected the
2314         text of the copying permission notice to say Lesser GPL instead
2315         of GPL in warranty disclaimer paragraph.
2316         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2317         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2318         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2319         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2320         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2321         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2322         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2323         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2324         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2325         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2326         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2327         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2328         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2329         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2330         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2331         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2332         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2333         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2334         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2335         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2336         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2338         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2339         permission notice to say Lesser GPL instead of GPL in warranty
2340         disclaimer paragraph.
2341         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2342         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2343         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2344         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2345         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2346         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2347         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2348         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2349         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2350         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2351         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2352         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2353         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2354         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2355         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2356         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2357         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2358         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2359         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2360         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2361         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2362         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2363         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
2365 2002-08-20  Roland McGrath  <roland@redhat.com>
2367         Fix ABI compatibility with libc compiled with old tools on powerpc.
2368         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2369         and Jack Howarth <howarth@bromo.med.uc.edu>.
2370         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2371         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2372         pass -DHAVE_DOT_HIDDEN for these files.
2373         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2374         __floatdisf.
2375         * sysdeps/powerpc/divdi3.c: New file.
2376         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2377         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2379 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
2381         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2382         partially overlapping mappings.  Remove unneeded (char *) casts.
2383         Never allow duplication of ranges in mapped areas.
2385 2002-08-20  Roland McGrath  <roland@redhat.com>
2387         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2388         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
2390 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2392         * include/unistd.h: Don't hide _exit.
2394         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2395         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2396         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2397         argument 1 to TLS_INIT_TP.
2398         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2400         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2402         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2403         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2404         memory allocation to...
2405         (allocate_dtv): ...here.  New function.
2406         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
2407         call allocate_dtv instead of _dl_allocate_tls_storage.
2408         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
2409         (_dl_get_tls_static_info): New function.
2410         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2411         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
2413 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
2415         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2416         immediately if result == NULL.
2418 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2420         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2422 2002-08-18  Roland McGrath  <roland@frob.com>
2424         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2425         instead of __file_name_split.
2426         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2428         * sysdeps/mach/hurd/dl-sysdep.c
2429         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2430         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2432 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2434         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2435         in change before last: MAX -> MIN.
2437 2002-08-15  Roland McGrath  <roland@redhat.com>
2439         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2440         if seek would go past it.
2441         (mmap_remap_check): If file position is at or past EOF after check,
2442         leave read pointers at EOF and don't seek.
2444         * libio/tst-mmap-offend.c: New file.
2445         * libio/Makefile (tests): Add it.
2447         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2448         the name as passed, rather than the name in the archive dictionary.
2450 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2452         * csu/Makefile: Define elide-routines.os not static-only-routines.
2454         * include/sched.h (__clone): Add varargs at the end.
2456         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2457         case.
2458         (TLS_INIT_HELPER): If defined, use it.
2459         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2461 2002-08-15  Roland McGrath  <roland@redhat.com>
2463         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2464         on L->l_prev; it can happen under rtld --verify too.
2466         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2467         header separately, just map an initial window of 2MB from the file
2468         and remap if that is not large enough to cover the whole header.
2470 2002-08-15  Andreas Jaeger  <aj@suse.de>
2472         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2473         version 2.3.
2474         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2475         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2476         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2477         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2478         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2479         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2480         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2481         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2482         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2483         Patch by Andreas Gruenbacher <agruen@suse.de>.
2485         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2487 2002-08-14  Roland McGrath  <roland@redhat.com>
2489         * locale/locarchive.h (struct locale_category_data): Give this name to
2490         the type of locale_data_t's elements.
2491         * locale/programs/locarchive.c (cmpcategorysize): New static function.
2492         (add_locale): Use that to sort the categories by size and put all
2493         those that fit into two pages into the LC_ALL block, instead of
2494         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2495         (show_archive_content): Detect categories inside LC_ALL block
2496         directly, instead of hard-coding.
2497         (oldlocrecentcmp): Compare just on file locations used.
2499 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
2501         * locale/programs/locarchive.c (struct oldlocrecent): New type.
2502         (oldlocrecentcmp): New function.
2503         (enlarge_archive): Re-add locales in the order they were added
2504         to the archive.
2505         (add_locale): Put all the small locale files together, if the small
2506         locale file block would occupy less pages if page size aligned, align
2507         it.
2508         (show_archive_content): Adjust for locale archives optimized for speed.
2510 2002-08-14  Roland McGrath  <roland@frob.com>
2512         * configure.in: Use "MISSING" as not-found value for MIG.
2513         * sysdeps/mach/configure.in: Fatal if mig not found.
2514         * configure, sysdeps/mach/configure: Regenerated.
2516 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2518         * locale/loadarchive.c (archfname): Add missing slash.
2520         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2521         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2523 2002-08-12  Roland McGrath  <roland@redhat.com>
2525         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2526         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2527         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2528         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2529         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2530         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2531         * sysdeps/generic/waitpid.c: Likewise.
2533         * include/net/if.h: New file.  Use libc_hidden_proto
2534         for if_nametoindex and if_indextoname.
2535         * sysdeps/generic/if_index.c: Add libc_hidden_def.
2536         * sysdeps/mach/hurd/if_index.c: Likewise.
2537         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2539         * include/grp.h (setgroups): Add libc_hidden_proto.
2540         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2541         * sysdeps/mach/hurd/setgroups.c: Likewise.
2542         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2543         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2545 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2547         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2548         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2549         * sysdeps/generic/setegid.c (setegid): Likewise.
2550         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2551         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2552         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2553         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2554         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2555         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2556         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2557         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2558         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2559         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2560         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2561         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2562         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2564         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2565         __lxstat_internal, __lxstat64_internal): Remove.
2566         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2567         Add hidden_proto.
2568         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2569         Remove INTDEF where present, remove #undef at the beginning.
2570         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2571         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2572         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2573         * sysdeps/generic/xstat.c (__xstat): Likewise.
2574         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2575         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2576         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2577         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2578         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2579         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2580         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2581         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2582         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2583         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2584         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2585         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2586         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2587         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2588         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2589         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2590         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2591         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2592         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2593         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2594         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2595         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2596         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2597         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2598         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2599         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2600         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2601         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2602         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2603         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2604         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2605         * sysdeps/unix/xstat.c (__xstat): Likewise.
2607         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2608         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2609         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2610         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2611         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2612         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2613         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2615         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2616         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2617         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2618         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2619         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2620         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2621         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2622         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2623         Likewise.
2624         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2625         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2626         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2627         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2628         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2629         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2630         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2631         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2633         * include/string.h (strcoll): Add libc_hidden_proto.
2634         * string/strcoll.c (strcoll): Add libc_hidden_def.
2636         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2638 2002-08-11  Philip Blundell  <philb@gnu.org>
2640         * sysdeps/arm/Makefile: New file.
2642 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2644         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2645         by another '|', end of regex or enclosing ')', clear branch.
2646         * posix/bug-regex9.c: New test.
2647         * posix/Makefile (tests): Add bug-regex9.
2649 2002-08-12  Roland McGrath  <roland@redhat.com>
2651         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2652         start count condition, use TOTAL instead of variable that was never
2653         set.  Fix outer loop termination condition to TOTAL >= after update.
2655         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2656         dl_tls_static_align and dl_tls_static_nelem.
2658 2002-08-11  Roland McGrath  <roland@redhat.com>
2660         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2661         of the TLS macros, otherwise the compiler might not have initialized
2662         the PIC register yet when we use the PLT via asm.
2663         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2664         * elf/tst-tlsmod2.c (in_dso): Likewise.
2666         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2668         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2669         Evaluate argument exactly once.  Remove __volatile__ from asm's.
2671         * include/unistd.h: Use libc_hidden_proto for getdomainname
2672         and getlogin_r.
2673         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2674         * sysdeps/mach/hurd/getdomain.c: Likewise.
2675         * sysdeps/unix/getlogin_r.c: Likewise.
2676         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2677         * sysdeps/generic/getlogin_r.c: Likewise.
2679         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2680         * sunrpc/rtime.c: Add libc_hidden_def.
2682         * include/string.h: Use libc_hidden_proto for basename.
2683         * string/basename.c [_LIBC]: Add libc_hidden_def.
2685         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2687         * locale/loadarchive.c: munmap -> __munmap throughout.
2689         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2690         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2691         * sysdeps/generic/gai_strerror.c: Likewise.
2693         * include/sys/errno.h: New file.
2695         * include/signal.h: No libc_hidden_proto for raise,
2696         __libc_current_sigrtmin, __libc_current_sigrtmax.
2697         These need to be overridden by linuxthreads.
2698         * sysdeps/posix/raise.c: Reverted.
2699         * sysdeps/generic/raise.c: Reverted.
2700         * signal/allocrtsig.c: Reverted.
2702         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
2704 2002-08-10  Roland McGrath  <roland@redhat.com>
2706         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2707         * locale/localeinfo.h: Declare it.
2708         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2709         current locale if it's not in the file list.
2710         Call _nl_archive_subfreeres.
2712 2002-08-10  Andreas Jaeger  <aj@suse.de>
2714         * sysdeps/i386/strchr.S: Add comment.
2716 2002-08-10  Roland McGrath  <roland@redhat.com>
2718         * include/wchar.h (putwc): Use libc_hidden_proto.
2719         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
2720         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
2721         * stdio-common/dprintf.c: Add libc_hidden_def.
2722         * stdio-common/fprintf.c: Likewise.
2723         * stdio-common/sprintf.c: Likewise.
2724         * stdio-common/sscanf.c: Likewise.
2725         * libio/iofwrite.c: Likewise.
2726         * libio/memstream.c: Likewise.
2727         * libio/putwc.c: Likewise.
2728         * stdio-common/perror.c: Likewise.
2729         * sysdeps/posix/remove.c: Likewise.
2730         * sysdeps/generic/remove.c: Likewise.
2731         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
2732         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
2734 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
2736         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2737         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
2738         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2739         towlower, towupper): Add libc_hidden_weak.
2741         * include/bits/dlfcn.h: New file.
2742         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
2744         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
2745         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
2746         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
2747         * include/pwd.h (_nss_files_parse_pwent): Likewise.
2748         * include/shadow.h (_nss_files_parse_spent): Likewise.
2749         * include/netdb.h (_nss_files_parse_protoent,
2750         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
2751         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
2752         (LINE_PARSER): Use it.
2753         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
2754         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
2756         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
2757         #endif.
2759         * manual/debug.texi (%MENU%): Remove trailing dot.
2760         Reported by <hayastan132@hotmail.com>.
2762         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
2763         aliases.
2764         (lseek): Dummy.
2765         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
2766         Likewise.
2768 2002-08-09  Roland McGrath  <roland@redhat.com>
2770         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
2771         name to find codeset name (if any) and normalize it.  If the
2772         normalized name differs, look up only that in the archive.
2773         * locale/programs/locarchive.c (add_locale_to_archive): If the name
2774         contains a codeset, normalize the codeset store only the normalized
2775         name in the archive.  If not, add an alias containing the locale's
2776         normalized codeset name.  Apply codeset name normalization when
2777         matching entries in the alias file.
2779         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
2780         decrement HEAD->namehash_used here.
2781         (add_locale): Only need to insert name string when name_offset != 0.
2783         * locale/programs/localedef.c (options): Add -A/--alias-file.
2784         (alias_file): New variable.
2785         (parse_opt): Grok -A, set that.
2786         * locale/programs/localedef.h: Declare it.
2788         * locale/locarchive.h (struct locrecent): Add `refs' member.
2789         * locale/programs/locarchive.c (insert_name): New function, broken out
2790         of ...
2791         (add_locale_to_archive): ... here.  Call that.
2792         (add_alias): New function.
2793         (add_locale): New static function, add_locale_to_archive renamed.
2794         (add_locale_to_archive): Call that and use add_alias to add an alias
2795         for the name with codeset if the given name lacks it.
2796         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
2798         * locale/Makefile (routines): Add loadarchive.
2799         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
2800         (_nl_load_locale_from_archive): New function.
2801         * locale/localeinfo.h: Declare it.
2802         * locale/findlocale.c (_nl_find_locale): If using default locale path,
2803         try _nl_load_locale_from_archive first.
2805         * locale/loadlocale.c (_nl_intern_locale_data): New function,
2806         broken out of _nl_load_locale.
2807         (_nl_load_locale): Call that.
2808         * locale/localeinfo.h: Declare it.
2809         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
2810         (struct locale_data): Remove unused member `options'.
2811         * locale/findlocale.c (_nl_remove_locale): Update uses.
2812         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2813         * locale/C-collate.c: Update initializer.
2814         * locale/C-identification.c: Likewise.
2815         * locale/C-measurement.c: Likewise.
2816         * locale/C-telephone.c: Likewise.
2817         * locale/C-address.c: Likewise.
2818         * locale/C-name.c: Likewise.
2819         * locale/C-paper.c: Likewise.
2820         * locale/C-time.c: Likewise.
2821         * locale/C-numeric.c: Likewise.
2822         * locale/C-monetary.c: Likewise.
2823         * locale/C-messages.c : Likewise.
2824         * locale/C-ctype.c: Likewise.
2826         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
2827         use CHAR_BIT instead of BITSPERBYTE.
2829         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
2830         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
2831         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
2832         (_nl_remove_locale): Likewise.
2833         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2835         * locale/findlocale.c (_nl_default_locale_path): New variable.
2836         (_nl_find_locale): If LOCALE_PATH is null, default to that.
2837         * locale/localeinfo.h: Declare it.
2838         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
2839         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
2840         * locale/newlocale.c (__newlocale): Likewise.
2842         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
2843         * inet/rexec.c (rexec_af): Add libc_hidden_def.
2844         * sysdeps/generic/morecore.c: Likewise.
2845         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
2846         (__libc_current_sigrtmax): Likewise.
2848 2002-08-08  Roland McGrath  <roland@redhat.com>
2850         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
2851         * catgets/open_catalog.c (__open_catalog): Likewise.
2853         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
2854         from typo INITIAL_NUM_NANES.
2855         (create_archive): Update use.
2857 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
2859         * sysdeps/unix/sysv/linux/sigwait.c: New file.
2861 2002-08-08  Roland McGrath  <roland@frob.com>
2863         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
2865 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2867         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
2868         else and undefine after including wcstol_l.c.
2869         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
2871 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
2873         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
2875 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
2877         * configure.in: Make the test for broken_alias_attribute stricter.
2879 2002-05-24  Robert Love  <rml@tech9.net>
2881         * posix/Makefile (routines): Add sched_getaffinity and
2882         sched_setaffinity.
2883         * posix/sched.h: Add declarations for sched_getaffinity and
2884         sched_setaffinity.
2885         * sysdeps/generic/sched_getaffinity.c: New file.
2886         * sysdeps/generic/sched_setaffinity.c: New file.
2887         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
2888         sched_setaffinity.
2890 2002-08-06  Andreas Schwab  <schwab@suse.de>
2892         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
2894 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
2896         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
2897         message.
2899         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
2900         It is known to be defined.
2902         * include/string.h: Define index and rindex only if _ISOMAC is not
2903         defined.
2905         * elf/rtld.c: Include <errno.h>.
2906         * sysdeps/generic/libc-tls.c: Likewise.
2908 2002-08-07  Roland McGrath  <roland@redhat.com>
2910         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
2911         it internally.
2912         (precsize_aton): Likewise.
2914         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
2915         the static symbols added in the last change (doofus is me).
2917         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
2918         loop to notice missing categories in a composite name.
2920         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
2921         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
2922         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
2923         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
2925 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
2927         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
2929 2002-08-07  Roland McGrath  <roland@redhat.com>
2931         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
2932         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
2933         Reported by Jakub Jelinek  <jakub@redhat.com>.
2935 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
2937         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
2938         division.
2940 2002-08-06  Roland McGrath  <roland@redhat.com>
2942         * include/getopt.h: Put private decls inside [_GETOPT_H].
2943         Use libc_hidden_proto for getopt_long, getopt_long_only.
2944         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
2945         Add libc_hidden_def.
2947         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
2948         Define as a macro for __dl_iterate_phdr.
2950         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
2951         made static.  Add __ name as a strong alias.
2952         (internal_endnetgrent): Likewise.
2953         (internal_getnetgrent_r): Likewise.
2955         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
2956         with no __ prefix.
2957         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
2958         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
2959         all *_l functions with no __ prefix.
2960         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
2961         * ctype/ctype_l.c: Likewise.
2962         * locale/nl_langinfo.c: Likewise.
2963         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
2964         * stdlib/stdlib.h [__USE_GNU]: Likewise.
2965         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
2966         * wctype/wctype.h [__USE_GNU]: Likewise.
2967         * string/strcoll_l.c (strcoll_l): Define as weak alias.
2968         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
2969         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
2970         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
2971         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
2972         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
2973         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
2974         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
2975         (__wcscasecmp_l): Add libc_hidden_def.
2976         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
2977         (__wcsncasecmp_l): Add libc_hidden_def.
2978         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
2979         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
2980         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
2981         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
2982         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
2983         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
2984         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
2985         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
2986         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
2987         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
2988         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
2989         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
2990         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
2991         * wctype/wctype_l.c (wctype_l) Define as weak alias.
2993 2002-08-05  Roland McGrath  <roland@redhat.com>
2995         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
2996         netname2user, host2netname, user2netname, key_gendes.
2997         * sunrpc/netname.c: Add libc_hidden_def.
2998         * sunrpc/key_call.c: Likewise.
3000         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3001         freeaddrinfo.
3002         * inet/getnameinfo.c: Add libc_hidden_def.
3003         * sysdeps/generic/getaddrinfo.c: Likewise.
3004         * sysdeps/posix/getaddrinfo.c: Likewise.
3006         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3007         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3008         * wcsmbs/wmemset.c: Add libc_hidden_def.
3010         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3011         (index, rindex): Define as macros for strchr, strrchr.
3013         * string/envz.c (envz_strip): index -> strchr
3015         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3016         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3018         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3019         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3021         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3022         * stdlib/wctomb.c: Add libc_hidden_def.
3024         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3025         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3026         * resolv/herror.c: Likewise.
3027         * inet/rcmd.c: Add libc_hidden_def.
3028         * inet/ruserpass.c: Likewise.
3029         * inet/getnetgrent_r.c: Likewise.
3031         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3032         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3033         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3034         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3035         libc_hidden_def.
3036         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3037         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3039         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3040         __libc_system.
3041         (__libc_system): Call it, putting just the line == NULL test here.
3043         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3044         variables work right.
3046         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3047         * elf/dl-close.c (_dl_close): Likewise.
3049         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3050         in6addr_any, in6addr_loopback.  Remove decls for
3051         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3052         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3053         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3054         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3055         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3056         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3057         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3058         in6addr_loopback.
3059         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3061         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3062         ether_aton_r.
3063         * inet/ether_aton_r.c: Add libc_hidden_def.
3064         * inet/ether_ntoa_r.c: Likewise.
3066         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3067         xprt_unregister.
3068         * sunrpc/svc.c: Add libc_hidden_def.
3069         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3070         pmap_set, pmap_unset.
3071         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3072         * sunrpc/pm_getport.c: Likewise.
3073         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3074         * sunrpc/publickey.c: Add libc_hidden_def.
3076 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3078         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3079         the other memset call in this function.
3081         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3082         at correct index.  Clear BSS region now that memalign is used.
3084 2002-08-05  Roland McGrath  <roland@redhat.com>
3086         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3087         * sysdeps/generic/uname.c: Add libc_hidden_def.
3088         * sysdeps/mach/hurd/uname.c: Likewise.
3090 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3092         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3093         wcspbrk): Add libc_hidden_proto.
3094         * time/strftime.c (my_strftime): Add libc_hidden_def.
3095         (strftime): Remove libc_hidden_def.
3096         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3097         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3098         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3099         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3100         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3101         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3103         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3104         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3105         __rpc_thread_createerr): Add libc_hidden_proto.
3106         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3107         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3108         __rpc_thread_createerr): Add libc_hidden_def.
3110         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3111         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3112         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3113         clnt_perror, clnt_sperror): Add libc_hidden_def.
3114         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3116         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3117         libc_hidden_proto.
3118         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3119         * sunrpc/des_soft.c (des_setparity): Likewise.
3121         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3122         Add libc_hidden_proto.
3123         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3124         Add libc_hidden_def.
3126 2002-08-05  Roland McGrath  <roland@redhat.com>
3128         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3129         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3130         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3131         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3132         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3133         old data, abandoning the original memory allocated by rtld at startup,
3134         instead of calling realloc normally.
3136 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3138         * po/fr.po: Update from translation team.
3140 2002-08-04  Roland McGrath  <roland@redhat.com>
3142         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3143         then generate a dummy module under the given name, obeying the
3144         normal rules for the "caller" field.
3146         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3147         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3149         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3150         weak here; we declare it weak or strong in the one place we use it.
3151         * sysdeps/generic/libc-start.c: ... which is here.
3152         Don't make the decl weak if [USE_TLS], since static programs need TLS
3153         setup even when single-threaded.
3155         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3157         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3158         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3159         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3160         all these variables.
3162 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3164         * include/stdio.h: Don't define macro magic to redirect function
3165         calls if _ISOMAC is defined.
3167         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3168         ldouble asin tests.
3170 2002-08-04  Roland McGrath  <roland@redhat.com>
3172         * stdlib/lrand48_r.c: Add libc_hidden_def.
3174         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3175         TCB with __libc_memalign instead of mmap.
3176         (_dl_deallocate_tls): Free it with free instead of munmap.
3178         * Makerules (cpp-srcs-left): When setting this to run
3179         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3180         words.  Combine the two loops into one on the concatenated list,
3181         including those as well as $(test-srcs).
3183         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3184         since we align here with optimally minimal waste anyway.
3185         (malloc): Just call that.
3187         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3188         the right variable.
3190         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3191         to compute memory location for l_tls_initimage.
3192         * elf/rtld.c (_dl_start): Likewise.
3193         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3195         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3196         because the .d file is generated in the non-shared case and
3197         so fails to catch them otherwise.
3199         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3200         split out of _dl_allocate_tls.
3201         (_dl_allocate_tls_init): Likewise.
3202         (_dl_allocate_tls): Call those.
3203         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3204         * elf/rtld.c (dl_main): Call them separately instead of calling
3205         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3206         is finished, so that the initializer data has been relocated before we
3207         copy it into the main thread's TLS block.
3209         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3210         loop conditions, prevented the last used module from being initialized.
3212 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3214         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3215         if glob resp. globfree are not macros.
3216         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3217         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3218         Add libc_hidden_ver.
3219         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3220         libc_hidden_def.
3221         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3222         instead of libc_hidden_weak.
3223         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3224         libc_hidden_ver instead of libc_hidden_def.
3225         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3226         libc_hidden_ver instead of libc_hidden_def.
3227         (wcstoll, wcstoq): Remove libc_hidden_weak.
3228         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3229         libc_hidden_ver.
3230         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3231         libc_hidden_ver.
3232         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3233         libc_hidden_ver.
3234         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3235         libc_hidden_ver.
3237 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3239         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3240         to access _sys_siglist.
3241         * string/strsignal.c: Likewise.
3242         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3243         * sysdeps/gnu/siglist.c: Likewise.
3244         * sysdeps/unix/siglist.c: Likewise.
3245         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3247         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3249         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3251         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3252         alias and use it.
3253         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3255         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3256         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3257         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3259         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3260         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3262         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3263         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3264         and __gconv_get_cache respectively.
3265         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3266         defined static.  Change all users.
3267         (__gconv_get_cache): New function.
3268         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3269         (__gconv_get_alias_db): New function.
3270         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3271         (__conv_modules_db): Likewise.
3272         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3273         and __gconv_get_alias_db.
3274         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3275         variables.
3277         * include/stdlib.h: Add prototype and libc_hidden_proto for
3278         __default_morecore.
3279         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3281         * malloc/obstack.c: Remove fputs macro.
3283         * malloc/mtrace.c: Remove fopen macro.
3285 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3287         * manual/debug.texi: Fix spelling to programmatically.
3288         Reported by <hayastan132@hotmail.com>.
3290 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3292         * include/libio.h: Add libc_hidden_proto for __uflow.
3293         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3294         fgetpos to _IO_* names.
3295         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3296         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3297         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3298         putwc_unlocked, vswscanf.
3299         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3300         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3301         * libio/fseek.c: Likewise.
3302         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3303         not fopencookie.
3304         * libio/genops.c (__uflow): Add libc_hidden_def.
3305         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3306         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3307         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3308         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3309         * libio/iofread_u.c (fread_unlocked): Likewise.
3310         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3311         * libio/iovswscanf.c (vswscanf): Likewise.
3312         * libio/putwc_u.c (putwc_unlocked): Likewise.
3313         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3314         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3315         * malloc/mtrace.c: Likewise.
3317         * sunrpc/clnt_perr.c: Remove fputs macro.
3318         * sunrpc/svc_simple.c: Likewise.
3319         * sunrpc/svc_tcp.c: Likewise.
3320         * sunrpc/svc_udp.c: Likewise.
3321         * sunrpc/xdr_rec.c: Likewise.
3322         * sunrpc/xdr_ref.c: Likewise.
3324         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3325         iconv_prog, linereader, and charmap-dir.
3326         * locale/Makefile: Likewise for locale and charmap-dir.
3327         * malloc/Makefile: Likewise for memusagestat.
3328         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3329         * sunrpc/Makefile: Likewise for rpc_main.
3330         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3331         * timezone/Makefile: Likewise for zic.
3333         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3335         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3336         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3337         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3338         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3339         _dl_close.
3341         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3342         __wunderflow.
3343         * libio/genops.c (__underflow): Add libc_hidden_def.
3344         * libio/wgenops.c (__wuflow): Likewise.
3345         (__wunderflow): Likewise.
3347         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3348         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3350         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3351         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3353         * include/string.h: Add libc_hidden_proto for __strverscmp.
3354         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3356         * include/unistd.h: Add libc_hidden_proto for __sysconf.
3357         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3358         * sysdeps/posix/sysconf.c: Likewise.
3359         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3360         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3362         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3363         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3364         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3365         __iswxdigit_l, __towlower_l, __towupper_l.
3366         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3367         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3369         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3370         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3371         * sysdeps/mach/hurd/xmknod.c: Likewise.
3372         * sysdeps/unix/xmknod.c: Likewise.
3373         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3374         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3375         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3377         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3379 2002-08-03  Roland McGrath  <roland@redhat.com>
3381         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3382         setpriority.
3383         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3384         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3385         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3386         * sysdeps/mach/hurd/setpriority.c: Likewise.
3387         * sysdeps/mach/hurd/getpriority.c: Likewise.
3388         * sysdeps/generic/setpriority.c: Likewise.
3389         * sysdeps/generic/getpriority.c: Likewise.
3391         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3392         * malloc/mcheck.c: Add libc_hidden_def.
3394         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3395         * misc/hsearch_r.c: Add libc_hidden_def.
3397         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3398         * posix/fnmatch.c: Add libc_hidden_weak.
3400         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3401         execl, execle, execlp, execvp, getpid, getsid.
3402         * sysdeps/generic/alarm.c: Add libc_hidden_def.
3403         * sysdeps/unix/alarm.c: Likewise.
3404         * posix/confstr.c: Likewise.
3405         * posix/execvp.c: Likewise.
3406         * posix/execlp.c: Likewise.
3407         * posix/execle.c: Likewise.
3408         * posix/execl.c: Likewise.
3409         * sysdeps/generic/getsid.c: Likewise.
3410         * sysdeps/mach/hurd/getsid.c: Likewise.
3411         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3412         * sysdeps/mach/hurd/getpid.c: Likewise.
3414         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3415         qecvt_r, qfcvt_r, lrand48_r.
3416         * misc/efgcvt_r.c: Add libc_hidden_def.
3418         * include/wordexp.h: Use libc_hidden_proto for wordfree.
3419         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3421         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3422         * locale/nl_langinfo.c: Add libc_hidden_def.
3424         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3425         * sysdeps/generic/glob.c: Add libc_hidden_def.
3426         * sysdeps/generic/glob64.c: Likewise.
3427         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3429         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3431         * elf/Makefile (CFLAGS-vismod2.c): New variable.
3433         * locale/setlocale.c (_nl_current_names): Variable moved ...
3434         * locale/localename.c (_nl_current_names): ... here, new file.
3435         Make it global, with attribute_hidden.
3436         * locale/localeinfo.h: Declare it.
3437         * locale/Makefile (aux): Add localename.
3438         * locale/localename.c (__current_locale_name): New function.
3439         * include/locale.h (__current_locale_name): Declare it.
3440         * intl/dcigettext.c (guess_category_value): Use that instead of
3441         calling setlocale.
3443         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3444         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3445         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3446         * locale/newlocale.c: Add alias to __ name.
3447         * locale/duplocale.c: Likewise.
3448         * locale/freelocale.c: Likewise.
3449         * locale/uselocale.c: New file.
3450         * locale/Makefile (routines): Add it.
3451         * locale/Versions (libc: GLIBC_2.3): New set.
3452         Add newlocale, duplocale, freelocale, uselocale.
3453         (libc: GLIBC_PRIVATE): Add __uselocale.
3455         * locale/localeinfo.h [SHARED]
3456         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3457         (_NL_CURRENT_DATA): Define using that.
3458         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3459         (_NL_CURRENT_DEFINE): Define to empty.
3460         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3461         conditionalized on this.
3462         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3463         taking initializer of _nl_C_locobj.
3464         [SHARED] (_nl_global_locale): New variable, using that initializer.
3465         (_nl_C_locobj): Use new macro for initialzier.
3466         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3467         [! SHARED] (CATEGORY_USED): New macro.
3468         [SHARED] (CATEGORY_USED, _nl_C): New macros.
3469         (setdata, setlocale): Use that macro instead of examining _nl_current.
3470         (setdata): Set the slot in _nl_global_locale.
3471         Conditionalize setting of _nl_current on [! SHARED].
3472         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3473         declaration as an extern.
3474         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3476         * include/locale.h: Use libc_hidden_proto for setlocale.
3477         * locale/setlocale.c: Add libc_hidden_def.
3479         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3481         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3482         * misc/hsearch_r.c: Add libc_hidden_def.
3483         * misc/lsearch.c: Likewise.
3485         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3486         endttyent.
3487         * misc/getttyent.c: Add libc_hidden_def.
3489         * include/mcheck.h: Use libc_hidden_proto for mcheck.
3490         * malloc/mcheck.c: Add libc_hidden_def.
3492         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3493         * include/argz.h: Use libc_hidden_proto for argz_delete.
3494         * string/argz-delete.c: Add libc_hidden_def.
3495         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
3497         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3498         HIDDEN_JUMPTARGET for _exit.
3499         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3500         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3501         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3502         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3504         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3505         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3506         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3507         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3509         * include/stdlib.h: Use libc_hidden_proto for abort,
3510         __strtof_internal, __strtod_internal, __strtold_internal,
3511         __strtol_internal, __strtoll_internal, __strtoul_internal,
3512         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3513         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3514         __strtoul_l_internal, __strtoull_l_internal.
3515         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3516         __wcstod_internal, __wcstold_internal, __wcstol_internal,
3517         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3518         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3519         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3520         __wcsncasecmp_l.
3521         * sysdeps/generic/abort.c: Add libc_hidden_def.
3522         * stdlib/strtod.c: Likewise.
3523         * sysdeps/generic/strtol.c: Likewise.
3524         * sysdeps/wordsize-64/strtol.c: Likewise.
3525         * sysdeps/wordsize-64/wcstol.c: Likewise.
3526         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3528         * include/stdlib.h: Use libc_hidden_proto for qsort.
3529         * stdlib/msort.c: Add libc_hidden_def.
3531         * include/utime.h: Use libc_hidden_proto for utime.
3532         * sysdeps/generic/utime.c: Add libc_hidden_def.
3533         * sysdeps/unix/utime.c: Likewise.
3535         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3536         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3537         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3538         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3539         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3541         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3542         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3543         and __libc_current_sigrtmax.
3544         * signal/sigismem.c: Add libc_hidden_def.
3545         * signal/sigfillset.c: Likewise.
3546         * signal/sigempty.c: Likewise.
3547         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3548         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3549         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3550         * sysdeps/posix/raise.c: Likewise.
3551         * sysdeps/generic/raise.c: Likewise.
3553 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3555         * include/string.h: Use libc_hidden_proto for __stpcpy.
3556         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3557         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3558         * sysdeps/generic/stpcpy.c: Likewise.
3559         * sysdeps/i386/stpcpy.S: Likewise.
3560         * sysdeps/i386/i586/stpcpy.S: Likewise.
3561         * sysdeps/powerpc/stpcpy.S: Likewise.
3562         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3563         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3565         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3566         __strncasecmp_l, __strdup, __strndup, __strerror_r.
3567         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3568         libc_hidden_def.
3569         * string/strdup.c (__strdup): Likewise.
3570         * string/strndup.c (__strndup): Likewise.
3571         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3572         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3574 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3576         * include/libio.h: New file.
3577         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3578         * libio/iolibio.h: #include <libio.h>, not "libio.h".
3579         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3580         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3581         * sysdeps/unix/common/syscalls.list: Likewise.
3582         * sysdeps/unix/inet/syscalls.list: Likewise.
3583         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3584         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3585         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3586         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3587         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3588         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3589         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3590         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3591         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3592         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3593         * sysdeps/unix/syscalls.list: Likewise.
3595 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3596             Ulrich Drepper  <drepper@redhat.com>
3598         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3599         the arguments is big enough to cause an overflow.
3601 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3603         * assert/assert.c: Use hidden_def not INTDEF.
3605 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3607         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3608         not defined.
3610 2002-08-03  Roland McGrath  <roland@redhat.com>
3612         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3613         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3614         verr, verrx.
3615         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3616         * misc/syslog.c: Add libc_hidden_def.
3617         * misc/err.c: Likewise.
3618         * stdlib/exit.c: Likewise.
3619         * stdlib/bsearch.c: Likewise.
3620         * sysdeps/generic/getenv.c: Likewise.
3622         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3624         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3625         libc_hidden_weak for every system call symbol defined.
3627         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3628         timelocal, localtime, strftime.
3629         * time/asctime.c: Add libc_hidden_def.
3630         * time/mktime.c: Likewise.
3631         * time/localtime.c: Likewise.
3632         * time/strftime.c: Likewise.
3633         * time/strptime.c: Likewise.
3634         * sysdeps/generic/time.c: Likewise.
3635         * sysdeps/unix/time.c: Likewise.
3636         * sysdeps/unix/sysv/i386/time.S: Likewise.
3637         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3639         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3640         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3641         * resolv/inet_ntop.c: Likewise.
3642         * resolv/inet_pton.c: Likewise.
3643         * inet/inet_mkadr.c: Add libc_hidden_def.
3644         * inet/inet_netof.c: Likewise.
3645         * resolv/inet_addr.c: Likewise.
3647         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3648         clauses from conditionals for now.  Will have to be fixed later
3649         for older compilers.
3651         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3653 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3655         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3656         broken alias attribute handling.
3657         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3659 2002-08-02  Roland McGrath  <roland@frob.com>
3661         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3662         since it sets the variables we use in a -D switch.
3664 2002-08-02  Roland McGrath  <roland@redhat.com>
3666         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3667         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3668         matches long int, not int.
3670         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3671         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3672         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3673         * wctype/wctrans.c (wctrans): Likewise.
3674         * wctype/wctype.c (__wctype): Likewise.
3675         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3677 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3679         * assert/assert.c (__assert_fail): Fix typo in comment.
3681         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3682         * sunrpc/rpc_thread.c: Define it without static.
3683         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3685 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3687         * assert/assert.c (__assert_fail): Remove undef.
3688         Replace INTDEF with libc_hidden_def.
3689         * assert/__assert.c (__assert): Remove INTUSE.
3690         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3691         libc_hidden_weak.
3692         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3693         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3694         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3695         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3696         libm_hiden_ver): Define.
3697         * include/assert.h (__assert_fail_internal): Remove.
3698         (__assert_fail): Add prototype.  Add hidden_proto.
3699         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3700         libc_hidden_proto.
3701         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3702         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
3703         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3704         Add libc_hidden_proto.
3705         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3706         __fcntl): Add libc_hidden_proto.  Remove macros.
3707         (__open_internal, __fcntl_internal): Remove.
3708         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3709         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3710         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3711         libc_hiden_proto.
3712         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3713         libc_hidden_def.
3714         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
3715         Add libc_hidden_def.
3716         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
3717         * sysdeps/generic/open.c (__open): Remove undef.
3718         Add libc_hidden_def.  Remove INTDEF.
3719         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
3720         Add libc_hidden_def.
3721         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
3722         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
3723         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
3724         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3725         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3726         (__libc_fcntl): Add libc_hidden_def.
3727         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
3728         (__open): Remove INTDEF2.  Add libc_hidden_weak.
3729         (__libc_open): Add libc_hidden_def.
3730         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
3731         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
3732         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3733         Add libc_hidden_def.
3734         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
3735         Add libc_hidden_def.
3736         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
3737         undef.
3738         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3739         (__libc_fcntl): Add libc_hidden_def.
3740         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
3741         __getpgid_internal, __chown_internal): Remove.
3742         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
3743         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
3744         __GI___chown): Add.
3745         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
3746         __getpid_internal, __open_internal, __write_internal): Remove.
3747         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
3748         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
3749         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
3750         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
3751         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
3752         Replace INTDEF with libc_hidden_def.
3753         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
3754         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
3755         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
3756         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
3757         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
3758         Add libc_hidden_proto.
3759         * include/sys/poll.h (__poll): Add libc_hidden_proto.
3760         * include/sys/select.h (__select): Likewise.
3761         * include/sys/socket.h (__send): Likewise.
3762         * include/sys/statfs.h (__statfs): Likewise.
3763         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
3764         __getpid, __getpgid, __setpgid, __close, __read, __write,
3765         __getpagesize, __sbrk): Likewise.
3766         (__chown_internal, __dup2_internal, __getpid_internal,
3767         __getpgid_internal, __close_internal, __write_internal,
3768         __getpagesize_internal): Remove.
3769         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
3770         Remove macros.
3771         * include/printf.h (__printf_fp): Add libc_hidden_proto.
3772         * include/sched.h (__sched_setscheduler): Likewise.
3773         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
3774         * include/stdlib.h (__secure_getenv): Likewise.
3775         * include/signal.h (__sigaction, __sigsuspend): Likewise.
3776         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
3777         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
3778         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
3779         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
3780         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
3781         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
3782         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
3783         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
3784         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
3785         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
3786         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
3787         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
3788         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
3789         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
3790         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
3791         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3792         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3793         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3794         * libio/genops.c (__overflow): Add libc_hidden_def.
3795         * libio/iovdprintf.c: Remove libio.h include.
3796         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
3797         libc_hidden_weak): Define to nothing if not defined.
3798         (__overflow, __woverflow): Add libc_hidden_proto.
3799         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
3800         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
3801         (DB_LOOKUP_FCT): Add libc_hidden_proto.
3802         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
3803         (DB_LOOKUP_FCT): Add libc_hidden_proto.
3804         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
3805         and libc_hidden_def.
3806         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
3807         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
3808         (__getpgid): Add libc_hidden_proto.
3809         (__bsd_getpgrp): Remove INTUSE.
3810         * resolv/res_init.c (__res_ninit, __res_randomid): Add
3811         libc_hidden_def.
3812         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
3813         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
3814         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
3815         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
3816         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
3817         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
3818         __rpc_thread_createerr): Add libc_hidden_def.
3819         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
3820         libc_hidden_def.
3821         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
3822         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
3823         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
3824         * sysdeps/generic/chown.c (__chown): Likewise.
3825         * sysdeps/generic/close.c (__close): Likewise.
3826         * sysdeps/generic/dup2.c (__dup2): Likewise.
3827         * sysdeps/generic/pipe.c (__pipe): Likewise.
3828         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
3829         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
3830         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
3831         * sysdeps/generic/read.c (__libc_read): Likewise.
3832         (__read): Add libc_hidden_weak.
3833         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
3834         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
3835         * sysdeps/generic/select.c (__select): Likewise.
3836         * sysdeps/generic/send.c (__send): Likewise.
3837         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
3838         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
3839         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
3840         * sysdeps/generic/statfs.c (__statfs): Likewise.
3841         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
3842         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
3843         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
3844         Remove undef and INTDEF.
3845         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
3846         * sysdeps/generic/getpid.c (__getpid): Likewise.
3847         * sysdeps/generic/write.c (__libc_write): Likewise.
3848         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
3849         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
3850         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3851         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
3852         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
3853         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
3854         Remove undef and INTDEF.
3855         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
3856         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
3857         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
3858         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
3859         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
3860         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
3861         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
3862         (__pipe): Add libc_hidden_def.
3863         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
3864         libc_hidden_weak.
3865         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
3866         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
3867         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
3868         (__read): Add libc_hidden_weak.
3869         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
3870         (__libc_pwrite64): Add libc_hidden_def.
3871         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
3872         * sysdeps/mach/hurd/select.c (__select): Likewise.
3873         * sysdeps/mach/hurd/send.c (__send): Likewise.
3874         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
3875         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
3876         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
3877         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
3878         * sysdeps/posix/dup2.c: Likewise.
3879         Remove undef and INTDEF.
3880         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
3881         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
3882         (__pwrite64): Add libc_hidden_weak.
3883         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
3884         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
3885         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
3886         * sysdeps/standalone/close.c (__close): Likewise.
3887         * sysdeps/standalone/write.c (__libc_write): Likewise.
3888         (__write): Add libc_hidden_weak.
3889         * sysdeps/standalone/read.c (__read): Likewise.
3890         (__libc_read): Add libc_hidden_def.
3891         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
3892         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
3893         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
3894         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
3895         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
3896         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
3897         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
3898         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
3899         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
3900         __GI___sigaction): Add.
3901         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
3902         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
3903         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
3904         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
3905         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
3906         __GI___setpgid): Add.
3907         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
3908         Remove undef and INTDEF.
3909         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
3910         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
3911         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
3912         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
3913         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
3914         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
3915         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
3916         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
3917         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
3918         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
3919         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
3920         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
3921         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
3922         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
3923         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
3924         __GI___statfs, __GI___send): Add.
3925         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
3926         libc_hidden_ver resp. libc_hidden_def.
3927         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
3928         libc_hidden_def.
3929         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
3930         Likewise.  Remove undef and INTDEF.
3931         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
3932         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
3933         __GI___statfs, __GI___send): Add.
3934         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
3935         libc_hidden_def.
3936         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
3937         Likewise.
3938         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
3939         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
3940         libc_hidden_ver resp. libc_hidden_def.
3941         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
3942         __GI___send): Add.
3943         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
3944         Add libc_hidden_weak.
3945         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
3946         Add libc_hidden_def.
3947         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
3948         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
3949         libc_hidden_weak.
3950         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
3951         resp. libc_hidden_def.
3952         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
3953         libc_hidden_weak.
3954         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
3955         INTDEF.
3956         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
3957         Likewise.  Remove undef.
3958         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
3959         libc_hidden_weak.
3960         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
3961         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
3962         libc_hidden_weak.
3963         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
3964         libc_hidden_def.
3965         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
3966         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
3967         Likewise.  Remove undef and INTDEF.
3968         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
3969         libc_hidden_def.
3970         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
3971         libc_hidden_weak.
3972         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
3973         libc_hidden_def.
3974         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
3975         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
3976         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
3977         libc_hidden_weak.
3978         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
3979         Add libc_hidden_def.
3980         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
3981         __GI___statfs): Add.
3982         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
3983         libc_hidden_weak.
3984         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
3985         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
3986         Remove undef and INTDEF.
3987         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
3988         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
3989         libc_hidden_def.
3990         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
3991         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
3992         libc_hidden_weak.
3993         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
3994         libc_hidden_def.
3995         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
3996         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
3997         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
3998         Add.
3999         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4000         libc_hidden_def.  Remove undef and INTDEF.
4001         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4002         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4003         libc_hidden_def.
4004         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4005         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4006         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4007         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4008         Remove undef and INTDEF.
4009         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4010         broken visibility attribute handling.
4011         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4013 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4015         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4016         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4018         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4019         previous patch.
4021 2002-06-29  Todd Fries  <todd@openbsd.org>
4023         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4025 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4027         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4029 2002-07-30  Roland McGrath  <roland@redhat.com>
4031         * resolv/resolv.h (_res): Define macro unconditionally.
4032         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4033         * include/resolv.h: ... here.
4034         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4035         as a __thread variable.
4036         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4037         a __thread variable instead of a global.
4038         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4040         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4041         time we test it.
4043         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4045         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4046         decls of memset and memcpy.
4048         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4049         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4051         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4053         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4054         (__libc_tsd_define): Define using __thread.
4056         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4057         (__rpc_thread_variables): Use __libc_tsd_get.
4058         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4059         __rpc_thread_variables, which might allocate what we're about to free.
4061         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4062         thread-local variable.
4063         * resolv/netdb.h (h_errno): Define macro unconditionally.
4064         [_LIBC] (__set_h_errno): Macro moved to ...
4065         * include/netdb.h: ... here.
4066         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4067         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4068         [! _LIBC_REENTRANT]: #undef h_errno here.
4070         * include/errno.h: Protect from multiple inclusion.
4072         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4073         before defining them, since Linux's <linux/posix_types.h> might have
4074         defined them.
4076 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4078         * malloc/malloc.c (public_cALLOc): Check for overflow on
4079         multiplication.
4080         * sunrpc/xdr_array.c (xdr_array): Likewise.
4081         * sunrpc/rpc/types.h (mem_free): Add comment.
4082         Patch by Solar Designer <solar@openwall.com>.
4084 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4086         * sysdeps/unix/sysv/linux/kernel-features.h
4087         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4089 2002-08-01  Roland McGrath  <roland@redhat.com>
4091         * libio/fileops.c (_IO_file_sync_mmap): New function.
4092         (_IO_file_jumps_mmap): Use it.
4093         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4094         repeat the stat check and resize the mapped buffer as necessary.
4096 2002-07-31  Roland McGrath  <roland@redhat.com>
4098         * libio/fileops.c (decide_maybe_mmap): New static function.
4099         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4100         mmap the file contents.  Then switch the jump tables to the mmap
4101         tables if it worked, or the vanilla file tables if not.
4102         (_IO_file_underflow_maybe_mmap): New function.
4103         (_IO_file_seekoff_maybe_mmap): New function.
4104         (_IO_file_xsgetn_maybe_mmap): New function.
4105         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4106         * libio/libioP.h: Declare those.
4107         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4108         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4109         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4110         If the stream is read-only, set its jump tables to those new ones.
4111         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4112         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4113         We need the tables set before _IO_file_attach.
4115         * libio/tst-mmap-eofsync.c: New file.
4116         * libio/tst-mmap-fflushsync.c: New file.
4117         * libio/bug-mmap-fflush.c: New file.
4118         * libio/tst-mmap2-eofsync.c: New file.
4119         * libio/Makefile (tests): Add them.
4121         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4122         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4124 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4126         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4127         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4128         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4129         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4130         declare sys_errlist and sys_nerr.
4131         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4132         provide declarations.
4134 2002-07-31  Roland McGrath  <roland@redhat.com>
4136         * elf/rtld.c (dl_main): Fix typo in error message.
4138 2002-07-31  Roland McGrath  <roland@frob.com>
4140         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4141         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4142         sysdeps/mach/hurd/dl-sysdep.c change.
4144 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4146         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4147         -r`/build/include for kernel headers.
4149         * po/fi.po: New file.
4151 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4153         * configure.in (static_nss): Set to `yes' if --disable-shared.
4155 2002-07-23  Bruno Haible  <bruno@clisp.org>
4157         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4158         is set.
4160 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4162         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4163         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4164         arguments.
4166 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4168         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4169         alias.
4171 2002-07-21  Bruno Haible  <bruno@clisp.org>
4173         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4174         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4175         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4176         trans_sysdep_tab_offset.
4177         (struct sysdep_segment): New type.
4178         (struct sysdep_string): New type.
4179         (SEGMENTS_END): New macro.
4180         * intl/gettextP.h (struct sysdep_string_desc): New type.
4181         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4182         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4183         orig_tab, trans_tab, hash_tab to const pointers because they point
4184         into read-only memory.
4185         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4186         (PRI*): Define fallback values.
4187         (get_sysdep_segment_value): New function.
4188         (_nl_load_domain): Distinguish major and minor revision parts. Add
4189         support for minor revision 1 with system dependent strings.
4190         (_nl_unload_domain): Also free the 'malloced' field.
4191         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4192         now done in loadmsgcat.c. Add support for system dependent strings.
4194 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4196         * posix/bug-regex7.c: New file.
4197         * posix/bug-regex8.c: New file.
4198         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4200 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4202         * posix/bug-regex4.c (main): Fix typos.
4203         * posix/bug-regex6.c (main): Likewise.
4205 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4207         * posix/bug-regex6.c (main): Fix warnings.
4209         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4211         * iconv/iconv_prog.c (main): Improve error message for the cases
4212         where -t and/or -f parameter are missing.
4214 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4216         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4217         (re_search): Likewise.
4218         (re_match_2): Likewise.
4219         (re_search_2): Likewise.
4220         (re_search_stub): New function.
4221         (re_search_2_stub): New function.
4222         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4224 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4226         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4227         (re_string_eoi): Use STOP instead of LEN.
4228         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4229         (re_string_construct): Likewise.
4230         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4231         * posix/regexec.c (re_search_internal): Add a new argument STOP
4232         so that it can handle the argument STOP of re_search_2 and re_match_2
4233         correctly.
4234         (regexec): Adapt to new I/F of re_search_internal.
4235         (re_search_stub): Likewise.
4237 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4239         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4241         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4243         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4244         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4245         of __divdi3.
4247         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4248         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4249         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4250         alias for adjtimex syscall.
4252         * elf/dl-minimal.c: Define __assert_fail_internal.
4253         * assert/assert.c: Likewise.
4254         * include/assert.h: Define __assert_file macro if !SHARED and not
4255         NOT_IN_libc.
4257         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4258         programs.
4259         * locale/Makefile: Likewise.
4260         * nscd/Makefile: Likewise.
4261         * catgets/Makefile: Likewise.
4263 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4265         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4266         compute current position.
4268         * stdio-common/tst-fseek.c (main): Improve error messages.
4270         * libio/tst-freopen.c (main): Remove unused variable.
4272         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4273         succesful seek call.  Simplify error checking.
4275 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4277         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4278         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4280 2002-07-19  Roland McGrath  <roland@frob.com>
4282         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4283         __libc_enable_secure is set.
4285 2002-07-24  Roland McGrath  <roland@frob.com>
4287         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4288         This implementation supports only IPv4.
4289         * inet/ifaddrs.h: New file.
4290         * sysdeps/generic/ifaddrs.c: New file.
4291         * sysdeps/gnu/ifaddrs.c: New file.
4292         * inet/test-ifaddrs.c: New file.
4293         * inet/Makefile (routines): Add ifaddrs.
4294         (headers): Add ifaddrs.h here.
4295         (tests): Add test-ifaddrs.
4296         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4298         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4299         socket call to get an AF_INET socket, instead of using __opensock.
4300         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4302         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4303         if not -1 use it instead of calling __opensock.
4304         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4305         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4306         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4308         * sysdeps/mach/hurd/ifreq.h: New file.
4309         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4310         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4311         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4313         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4314         which gets moved around.  Calculate size of mmap'd buffer instead.
4316 2002-07-24  Philip Blundell  <philb@gnu.org>
4318         * sysdeps/unix/arm/brk.S: Improve schedule.
4319         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4320         efficient instruction.
4321         (__socket): Optimize return sequence.
4323 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4325         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4326         sockets on old kernels.
4328 2002-07-22  Philip Blundell  <philb@gnu.org>
4330         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4331         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4332         alias.
4334 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4336         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4337         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4339         * locale/programs/locarchive.c (add_locale_to_archive): Correct
4340         test to detect duplicate locales.
4342         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4343         position would be before beginning of file.
4344         (_IO_file_seekoff_mmap): Likewise.
4345         * libio/Makefile (tests): Add bug-fseek.
4346         * libio/bug-fseek.c: New file.
4348         * intl/explodename.c: Remove support for CEN-style locale variables.
4349         It was never used and shouldn't be since it's not portable.
4350         * intl/finddomain.c: Likewise.
4351         * intl/l10nflist.c: Likewise.
4352         * intl/loadinfo.h: Likewise.
4353         * locale/findlocale.c: Likewise.
4355 2002-07-24  Roland McGrath  <roland@frob.com>
4357         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4358         position, calculate it to take into account an active pushback buffer.
4360         * libio/Makefile (tests): Add bug-ungetc.
4361         * libio/bug-ungetc.c: New file.
4363 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
4365         * sysdeps/generic/libc-tls.c: New file.
4366         * csu/Makefile (routines): Add libc-tls.
4367         (static-only-routines): Add libc-tls.
4368         * elf/dl-support.c (_dl_phdr): New variable.
4369         (_dl_phnum): New variable.
4370         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4371         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4372         for !SHARED.  First look through auxiliary vector.  If TLS always
4373         call __pthread_initialize_minimal.
4375         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4376         in mmap call is never zero.
4378 2002-07-23  Andreas Jaeger  <aj@suse.de>
4380         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4381         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4383 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
4385         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4386         creation and removal of the temp file.
4388         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
4389         file creation.
4390         * test-skeleton.c (create_temp_file): New function.
4392 2002-07-22  Andreas Jaeger  <aj@suse.de>
4394         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4395         local label.
4397 2002-07-21  Roland McGrath  <roland@frob.com>
4399         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4400         put -I../include before -I../stdlib so we get the right errno.h et al.
4401         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4402         (CFLAGS-wcstof.c): Likewise.
4403         (CFLAGS-wcstold.c): Likewise.
4404         (CFLAGS-wcstod_l.c): Likewise.
4405         (CFLAGS-wcstof_l.c): Likewise.
4406         (CFLAGS-wcstold_l.c): Likewise.
4408 2002-07-19  Roland McGrath  <roland@frob.com>
4410         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4412 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
4414         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4415         __ASSUME_AT_XID is defined.
4416         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4417         for 2.4.1 and up.
4418         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4419         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4421         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4422         (CFLAGS-wcstof.c): Likewise.
4423         (CFLAGS-wcstold.c): Likewise.
4424         (CFLAGS-wcstod_l.c): Likewise.
4425         (CFLAGS-wcstof_l.c): Likewise.
4426         (CFLAGS-wcstold_l.c): Likewise.
4428 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
4430         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4431         __priority_which_t): Always typedef to int for C++.
4433 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
4435         * configure.in: Add test for __thread support in compiler.
4436         * config.h.in: Add HAVE___THREAD.
4437         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4438         * include/sys/errno.h: Moved to...
4439         * stdlib/sys/errno.h: ...here.  New file.
4440         * stdlib/errno.h: New file.  Moved from...
4441         * include/errno.h: ...here.  Changed into an internal header defining
4442         libc-local things like __set_errno.
4443         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4444         bits/errno.h.
4445         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
4446         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
4447         either.
4448         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4449         from...
4450         (_dl_start_final): ...here.  Add code to initialize tls elements from
4451         bootstrap_map.
4452         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4453         if USE_TLS && HAVE___THREAD.
4454         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4455         * sysdeps/mach/hurd/bits/errno.h: Likewise.
4456         * sysdeps/standalone/arm/bits/errno.h: Likewise.
4457         * sysdeps/standalone/bits/errno.h: Likewise.
4458         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4459         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4460         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4461         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4462         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4463         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4464         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4465         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4466         use GL(dl_rtld_map), use map parameter.
4467         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4468         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4469         USE_TLS && HAVE___THREAD.
4470         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4471         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
4472         TLS code sequence.
4473         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4475         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4476         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4477         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4478         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4479         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4480         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4482 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
4484         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4485         MS_INVALIDATE values.
4487 2002-07-17  Andreas Schwab  <schwab@suse.de>
4488             Ulrich Drepper  <drepper@redhat.com>
4490         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4491         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4492         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4493         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4495 2002-07-01  H.J. Lu  <hjl@gnu.org>
4497         * elf/circleload1.c (load_dso): Call "circlemod1" and check
4498         return value.
4500         * elf/circlemod1.c (circlemod1): Return int.
4501         * elf/circlemod2.c (circlemod2): Likewise.
4502         * elf/circlemod2a.c (circlemod2): Likewise.
4503         * elf/circlemod3.c (circlemod3): Likewise.
4504         (circlemod3a): A new function.
4506 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
4508         * catgets/tst-catgets.c (main): Don't expect results for
4509         untranslated messages.
4511         * glibcbug.in: Fix little typo.  Remove STDIO.
4513         * config.h.in: Fail if __FAST_MATH__ is defined.
4514         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4515         (CPPFLAGS-test-idouble.c): Likewise.
4516         (CPPFLAGS-test-ildouble.c): Likewise.
4518 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4520         * intl/tst-gettext.sh: Pass -f option to msgfmt.
4521         * intl/tst-gettext.c: Correctly handle untranslated messages in
4522         positive tests.
4524         * po/de.po: Update from translation team.
4526 2002-07-02  H.J. Lu  <hjl@gnu.org>
4528         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
4529         use ll/sc.
4530         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4532         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4533         to 2.4.0 for mips.
4535 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4537         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4538         TLS fail if USE_TLS is not defined.
4540         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4541         and adjust state for seek position.  [PR libc/4070]
4542         * libio/Makefile (tests): Add bug-rewind.
4543         * libio/bug-rewind.c: New file.
4545 2002-07-12  Philip Blundell  <philb@gnu.org>
4547         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4548         (__backtrace): Use it.
4549         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
4551 2002-07-12  Philip Blundell  <philb@gnu.org>
4553         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4554         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4555         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4556         (elf_machine_rela): Remove unused variable.
4558         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4559         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4560         define.
4562 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
4564         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4566 2002-07-14  Andreas Jaeger  <aj@suse.de>
4568         * sysdeps/x86_64/bits/link.h: Add biarch support.
4570 2002-07-13  Andreas Jaeger  <aj@suse.de>
4572         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4573         Use correct indices.
4574         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4576 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4578         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4579         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4580         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4581         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4582         * sysdeps/s390/s390-32/bits/link.h: Remove.
4583         * sysdeps/s390/s390-64/bits/link.h: Remove.
4584         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4585         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4586         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4587         * sysdeps/s390/bits/wordsize.h: New file.
4588         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4589         elfclass.h.
4590         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4591         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4592         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4593         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4594         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4595         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4596         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4597         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4598         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4599         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4600         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4601         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4602         resource.h.
4603         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4604         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4605         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4606         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4607         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4608         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4609         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4610         sigaction.h.
4611         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4612         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4613         siginfo.h.
4614         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4615         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4616         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4617         socket.h.
4618         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4619         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4620         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4621         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4622         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4623         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4624         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4625         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4626         procfs.h.
4627         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4628         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4629         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4630         ucontext.h.
4631         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4632         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4634 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4636         * Versions.def (libc): Add GLIBC_2.3.
4637         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4638         * stdlib/canonicalize.c: Add compatibility version for realpath
4639         and make new code available in GLIBC_2.3.
4641 2002-07-06  Bruno Haible  <bruno@clisp.org>
4643         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4645 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4647         * resolv/res_hconf.c (_res_hconf_init): Move code into new
4648         function do_init.  Use __libc_once.
4649         (do_init): New function.
4651         * iconvdata/iso8859-11.h: Removed.
4652         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4653         (distribute): Remove iso8859-11.h.
4654         * iconvdata/tst-tables.sh: Add ISO-8859-11.
4656         * stdio-common/vfscanf.c (inchar): Restore errno from previous
4657         underflow operation if c == (W)EOF.
4659 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4661         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4662         non-zero, adjust exponent.
4663         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4664         Remove NO_LONG_DOUBLE aliases.
4665         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4666         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4667         (__log1pl): Raise divide by zero and invalid exceptions when needed.
4668         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4669         1**y and -1**+-Inf.
4670         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4671         Fix BITS_PER_MP_LIMB 32 extraction.
4672         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4673         exceptions for qNaNs.
4674         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4675         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4676         Raise exceptions when needed.  Don't recurse unnecessarily.
4677         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4678         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4679         exceptions for qNaNs.
4680         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4681         to fix *quo return value sign.
4682         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4683         case -Inf argument.
4684         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4686 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4688         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4689         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4690         -DNDEBUG.
4692 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4694         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4695         the result.
4697         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4698         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
4700         * Versions.def (libthread_db): Add GLIBC_2.3.
4702 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
4704         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4705         new stream if possible.
4706         * libio/freopen64.c (freopen64): Likewise.
4707         * libio/Makefile (tests): Add tst-freopen.
4708         * libio/tst-freopen.c: New file.
4710 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4712         * libio/stdio.h (obstack_printf): Add format attribute.
4713         (obstack_vprintf): Likewise.
4715 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4717         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
4718         resp. 16 bytes on 32-bit resp. 64-bit platforms.
4719         (re_charset_t, re_string_t): Reorder structure members for 64-bit
4720         architectures.
4722 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4724         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
4725         (init_dfa): ...here.
4727 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
4729         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
4730         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
4731         nodes in parse trees.
4732         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
4733         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
4734         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
4735         nodes which can epsilon transit.
4736         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
4737         to IS_EPSILON_NODE macro.
4738         * posix/regexec.c (update_regs): New function to update registers
4739         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
4740         (proceed_next_node): Use the entities of the nodes to determine
4741         whether the node can transit to.
4742         (set_regs): Use update_regs function to update registers.
4744 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4746         * posix/bug-regex4.c (main): Remove duplicate setlocale.
4747         * posix/bug-regex6.c: New file.
4748         * posix/Makefile (tests): Add bug-regex6.
4749         (bug-regex6-ENV): Set LOCPATH.
4751 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4753         * Versions.def [libpthread]: Add GLIBC_2.2.6.
4754         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
4756 2002-07-06  Bruno Haible  <bruno@clisp.org>
4758         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
4760 2002-07-06  Bruno Haible  <bruno@clisp.org>
4762         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
4763         declarations.
4765         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
4767         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
4769         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
4770         not _UTSNAME_H.
4771         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
4773         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
4774         * sysdeps/generic/bits/ustat.h: Likewise.
4776         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
4778 2002-07-08  Andreas Jaeger  <aj@suse.de>
4780         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
4782 2002-07-08  Andreas Jaeger  <aj@suse.de>
4784         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
4786 2002-07-06  Andreas Jaeger  <aj@suse.de>
4788         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
4789         * sysdeps/x86_64/fpu/s_copysign.S: New file.
4790         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
4791         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
4792         * sysdeps/x86_64/fpu/s_finitel.S: New file.
4793         * sysdeps/x86_64/fpu/s_fmax.S: New file.
4794         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
4795         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
4796         * sysdeps/x86_64/fpu/s_fmin.S: New file.
4797         * sysdeps/x86_64/fpu/s_fminf.S: New file.
4798         * sysdeps/x86_64/fpu/s_fminl.S: New file.
4800 2002-06-05  Brian Youmans <3diff@gnu.org>
4802         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
4803         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
4804         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
4805         * sysdeps/ia64/fpu/e_asin.S: Likewise.
4806         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
4807         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
4808         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
4809         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
4810         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
4811         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
4812         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
4813         * sysdeps/ia64/fpu/e_exp.S: Likewise.
4814         * sysdeps/ia64/fpu/e_expf.S: Likewise.
4815         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
4816         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
4817         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
4818         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
4819         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
4820         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
4821         * sysdeps/ia64/fpu/e_log.S: Likewise.
4822         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4823         * sysdeps/ia64/fpu/e_pow.S: Likewise.
4824         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4825         * sysdeps/ia64/fpu/e_powl.S: Likewise.
4826         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
4827         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
4828         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
4829         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
4830         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
4831         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
4832         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
4833         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
4834         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
4835         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
4836         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
4837         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
4838         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
4839         * sysdeps/ia64/fpu/libm_error.c: Likewise.
4840         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
4841         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
4842         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
4843         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
4844         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
4845         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
4846         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
4847         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
4848         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
4849         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
4850         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
4851         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
4852         * sysdeps/ia64/fpu/s_logb.S: Likewise.
4853         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
4854         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
4855         * sysdeps/ia64/fpu/s_modf.S: Likewise.
4856         * sysdeps/ia64/fpu/s_modff.S: Likewise.
4857         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
4858         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
4859         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
4860         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
4861         * sysdeps/ia64/fpu/s_rint.S: Likewise.
4862         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
4863         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
4864         * sysdeps/ia64/fpu/s_round.S: Likewise.
4865         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
4866         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
4867         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
4868         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
4869         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
4870         * sysdeps/ia64/fpu/s_significand.S: Likewise.
4871         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
4872         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
4873         * sysdeps/ia64/fpu/s_tan.S: Likewise.
4874         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
4875         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
4876         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
4877         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
4878         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
4879         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
4880         reflect IBM donation of math library to FSF
4881         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4882         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4883         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4884         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4885         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4886         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4887         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4888         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4889         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4890         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4891         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4892         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
4893         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
4894         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
4895         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
4896         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4897         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4898         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4899         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4900         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
4901         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
4902         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
4903         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
4904         * sysdeps/vax/__longjmp.c: Likewise.
4905         * sysdeps/vax/setjmp.c: Likewise.
4906         * libio/filedoalloc.c: Fixed BSD copying permission notice to
4907         remove advertising clause
4908         * sysdeps/vax/htonl.s: Likewise.
4909         * sysdeps/vax/htons.s: Likewise.
4910         * libio/wfiledoalloc.c: Likewise.
4911         * stdlib/random.c: Likewise.
4912         * stdlib/random_r.c: Likewise.
4913         * sysdeps/mach/sys/reboot.h: Likewise.
4914         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
4915         * sysdeps/posix/getaddrinfo.c: Likewise.
4916         * sunrpc/des_impl.c: Updated license permission notice to Lesser
4917         GPL and corrected pointer to point to the correct license.
4919 2002-07-04  Andreas Jaeger  <aj@suse.de>
4921         * scripts/config.guess: New upstream version.
4922         * scripts/config.sub: Likewise.
4924 2002-07-02  Andreas Schwab  <schwab@suse.de>
4926         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
4927         in parallel to bumping up the buffer pointer.
4929 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4931         * math/libm-test.inc (acos_test): Add missing L suffix for
4932         expected result.
4933         (cpow_test): Likewise.
4934         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
4935         error for acos (0.0625).
4937 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
4939         * locale/iso-639.def: Add entry for Ganda.
4940         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
4941         definition.
4942         (address_finish): Handle entries with two letter ISO 639 code.
4944         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
4945         directory if it existed before.
4946         * iconv/iconvconfig.c: Implement --prefix option.
4948         * math/libm-test.inc (cexp_test): Add missing L suffix for
4949         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
4950         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
4951         1.25 i).
4953 2002-05-29  H.J. Lu  <hjl@gnu.org>
4955         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
4956         is turned on.
4958 2002-05-28  H.J. Lu  <hjl@gnu.org>
4960         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
4961         are not dlopened on the dependency list of a dlopened object.
4963 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
4965         * elf/dl-lookup.c (add_dependency): It is not necessary to add
4966         dependencies if they are created between objects which are created
4967         while processing RTLD_NOW for objects loaded as part of the same
4968         dlopen call.
4970 2002-06-14  H.J. Lu  <hjl@gnu.org>
4972         * elf/Makefile (tests): Add circleload1.
4973         (modules-names): Add circlemod1, circlemod2, circlemod3,
4974         circlemod1a, circlemod2a and circlemod3a.
4975         ($(objpfx)circleload1): New target.
4976         ($(objpfx)circleload1.out): Likewise.
4977         ($(objpfx)circlemod1.so): Likewise.
4978         ($(objpfx)circlemod2.so): Likewise.
4979         ($(objpfx)circlemod1a.so): Likewise.
4980         ($(objpfx)circlemod2a.so): Likewise.
4981         * elf/circleload1.c: New file.
4982         * elf/circlemod1.c: New file.
4983         * elf/circlemod1a.c: New file.
4984         * elf/circlemod2.c: New file.
4985         * elf/circlemod2a.c: New file.
4986         * elf/circlemod3.c: New file.
4987         * elf/circlemod3a.c: New file.
4989 2002-06-18  Amos Waterland  <apw@us.ibm.com>
4991         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
4992         file descriptor.
4993         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
4994         add check for fd not open for writing.
4996         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
4997         completed element(s) and do not suspend thread if so.  Patch
4998         heavily modified by drepper.
5000         * rt/tst-aio7.c: New file.  Regression test for problems which the
5001         above three changes fix.
5002         * rt/Makefile (tests): Add tst-aio7.
5004 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5006         * rt/tst-aio6.c: Fix comment.
5008         * catgets/gencat.c (read_input_file): Handle more than one slash
5009         at end of line correctly [PR libc/3926].
5010         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5012         * catgets/sample.SJIS: Add test case for above bug.
5013         * catgets/test-gencat.c: Adjust test code.
5014         * catgets/test-gencat.sh: Adjust expected results.
5016         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5017         to skip relative relocations.
5018         Patch by Geoff Keating <geoffk@redhat.com>.
5020 2002-05-26  Bruno Haible  <bruno@clisp.org>
5022         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5023         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5024         All callers changed.
5025         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5026         STANDARD_FROM_LOOP_ERR_HANDLER.
5027         (utf8_internal_loop): Likewise.
5028         (ucs2_internal_loop): Likewise.
5029         (internal_ucs2_loop): Perform error handling like in
5030         STANDARD_FROM_LOOP_ERR_HANDLER.
5031         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5032         in STANDARD_FROM_LOOP_ERR_HANDLER.
5033         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5034         handling.
5035         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5036         in STANDARD_FROM_LOOP_ERR_HANDLER.
5037         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5038         handling.
5039         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5040         in STANDARD_FROM_LOOP_ERR_HANDLER.
5041         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5042         handling.
5043         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5044         STANDARD_FROM_LOOP_ERR_HANDLER.
5045         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5046         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5047         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5048         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5049         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5050         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5051         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5052         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5053         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5054         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5055         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5056         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5057         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5058         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5059         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5060         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5061         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5062         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5063         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5064         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5065         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5066         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5067         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5068         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5069         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5070         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5071         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5072         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5073         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5074         an error, still set result = __GCONV_ILLEGAL_INPUT.
5075         (BODY for TO_LOOP): Likewise.
5076         * iconvdata/ibm930.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/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5080         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5081         handling.
5082         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5083         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5084         STANDARD_FROM_LOOP_ERR_HANDLER.
5085         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5086         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5087         STANDARD_FROM_LOOP_ERR_HANDLER.
5088         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5089         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5090         STANDARD_FROM_LOOP_ERR_HANDLER.
5091         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5092         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5093         STANDARD_FROM_LOOP_ERR_HANDLER.
5094         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5095         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5096         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5097         handling.
5098         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5099         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5100         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5101         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5103 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5105         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5106         labels in assembler instructions.
5108 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5110         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5111         not enough content is available.
5112         * libio/tst-eof.c: New file.
5113         * libio/Makefile (tests): Add tst-eof.
5115         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5116         update atime.
5117         * libio/tst-atime.c: New file.
5118         * libio/Makefile (tests): Add tst-atime.
5120         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5121         handling of overly long words.
5123 2002-06-25  Andreas Jaeger  <aj@suse.de>
5125         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5126         to not use 32-bit pc relative relocations.
5127         (elf_machine_dynamic): Likewise.
5129 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5131         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5132         (__GETDENTS): Check for failed getdents64 syscall.
5133         * dirent/Makefile (tests): Add bug-readdir1.
5134         * dirent/bug-readdir1.c: New file.
5136 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5138         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5139         lookups.
5140         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5141         code.  Print TLS modid and offset for modules containing PT_TLS
5142         segments.
5144 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5146         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5147         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5148         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5149         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5151 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5153         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5154         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5155         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5156         * nss/getXXent_r.c (NEW, NEW1): Define.
5157         (NEW (REENTRANT_GETNAME)): Strong alias to
5158         INTERNAL (REENTRANT_GETNAME).
5159         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5161 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5163         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5164         (_IO_file_jumps_mmap): Use it.
5165         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5166         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5167         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5168         prototype.
5169         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5170         (_IO_wfile_jumps_mmap): Don't use it anymore.
5171         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5172         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5173         _IO_wdefault_setbuf.
5174         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5175         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5176         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5178 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5180         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5181         * libio/tst-mmap-setvbuf.c: New test.
5183 2002-06-21  Andreas Jaeger  <aj@suse.de>
5185         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5187 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5189         * include/unistd.h (__fork_internal): Remove.
5190         (__fork): Don't define to __fork_internal.
5191         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5192         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5193         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5194         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5195         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5197 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5199         * po/hr.po: New file.
5201 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5203         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5204         Reported by Michael Meissner <meissner@redhat.com>.
5206 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5208         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5209         Patch by Hans Boehm <hans_boehm@hp.com>.
5211 2002-06-20  Andreas Jaeger  <aj@suse.de>
5213         * math/libm-test.inc: Use exact values as input parameters,
5214         compute output parameters with 36 digits for 128-bit long doubles.
5215         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5216         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5217         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5219 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5221         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5222         argument or result is subnormal.
5224 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5226         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5227         quotient.
5228         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5229         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5231         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5233 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5235         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5236         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5237         Reported by Peter A. Buhr.
5239 2002-06-15  Roland McGrath  <roland@frob.com>
5241         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5242         warning.
5244         * sysdeps/mach/hurd/getcwd.c
5245         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5247         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5248         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5250         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5251         jump to local subroutine.
5253 2002-06-14  Roland McGrath  <roland@frob.com>
5255         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5256         * sysdeps/mach/hurd/Makeconfig: ... here.
5258 2002-06-13  Andreas Schwab  <schwab@suse.de>
5260         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5261         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5262         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5264 2002-06-13  Roland McGrath  <roland@frob.com>
5266         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5267         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5268         Use intptr_t instead of int for argc in stack layout.
5269         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5270         (_dl_init_first): Likewise.
5271         (_hurd_stack_setup): Likewise.
5272         (init1): Add a cast.
5273         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5275         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5276         argument to pfinet_siocgifconf RPC.
5278 2002-06-13  Andreas Schwab  <schwab@suse.de>
5280         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5281         expansion order.
5283 2002-06-12  Roland McGrath  <roland@frob.com>
5285         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5286         if already defined.
5287         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5288         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5290 2002-06-11  Roland McGrath  <roland@frob.com>
5292         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5293         file on [!RTLD_STAT64].
5294         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5296         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5297         (__fdopen): Use INTUSE.
5298         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5300         * stdio-common/tmpfile64.c: File removed.
5301         * sysdeps/generic/tmpfile64.c: New file.
5302         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5303         if not already defined.
5304         (tmpfile): Use it in place of __GT_FILE.
5306         * include/unistd.h: Declare __chown_internal.
5308         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5309         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5311 2002-06-09  Roland McGrath  <roland@frob.com>
5313         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5314         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5315         value of HURD_INTERFACE_VERSION >= 20020609.
5316         * sysdeps/mach/hurd/configure: Regenerated.
5317         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5318         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5319         convert a struct stat64 into a struct stat and return 0 or -1
5320         with errno set to EOVERFLOW.
5321         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5322         for struct statfs64 to struct statfs.
5323         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5324         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5325         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5326         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5327         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5328         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5329         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5330         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5331         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5332         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5333         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5334         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5335         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5336         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5337         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5338         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5339         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5340         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5341         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5342         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5343         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5344         Use struct stat64 for io_stat argument.
5345         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5346         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5347         to io_seek.
5348         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5349         * hurd/fd-write.c (_hurd_fd_write): Likewise.
5350         * hurd/hurd/fd.h: Update decls.
5351         * sysdeps/mach/hurd/getcwd.c
5352         (_hurd_canonicalize_directory_name_internal): Use ino64_t
5353         and struct dirent64.
5354         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5355         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5356         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5357         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5359 2002-06-08  Roland McGrath  <roland@frob.com>
5361         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5362         instead of unsigned long int for __allocation and __size members.
5364 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5366         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5367         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5368         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5369         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5371 2002-06-07  Roland McGrath  <roland@frob.com>
5373         * sysdeps/mach/hurd/bits/environments.h: File removed.
5375 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5377         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5378         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5379         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5380         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5381         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5382         (sendfile64): Likewise.
5383         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5384         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5385         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5386         Likewise.
5387         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5389         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5390         already defined.
5392 2002-06-04  Bruno Haible  <bruno@clisp.org>
5394         * sysdeps/cris/stackinfo.h: New file.
5396         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5397         to an integer type before performing bit operations on it.
5399 2002-06-05  Roland McGrath  <roland@frob.com>
5401         * sysdeps/generic/sendfile.c: Include <errno.h>.
5402         * sysdeps/generic/sendfile64.c: Likewise.
5404         * io/Makefile (routines): Add sendfile and sendfile64.
5405         (headers): Add sys/sendfile.h to the list.
5406         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5407         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5408         * io/sys/sendfile.h: ... here.
5409         * sysdeps/generic/sendfile.c: New file.
5410         * sysdeps/generic/sendfile64.c: New file.
5412         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5413         Move sendfile, sendfile64 to ...
5414         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5415         * sysdeps/mach/hurd/sendfile.c: New file.
5416         * sysdeps/mach/hurd/sendfile64.c: New file.
5418         * sysdeps/mach/nanosleep.c: New file.
5420 2002-06-04  Roland McGrath  <roland@frob.com>
5422         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
5423         * sysdeps/alpha/elf/configure: New file (generated).
5425 2002-06-02  Roland McGrath  <roland@frob.com>
5427         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5429 2002-06-01  Roland McGrath  <roland@frob.com>
5431         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5432         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5434 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5436         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5437         Add nsmap.
5438         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5439         Remove nstimes setting.
5440         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5441         * resolv/res_send.c (res_nsend): Don't close unconditionally if
5442         there is mix of IPv6 and IPv4 nameservers.
5443         Use nsmap array to find free slots and preserve nameserver ordering.
5444         Fix RES_ROTATE.
5446 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5448         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5449         use this header with LFS.
5451         * po/sk.po: Update from translation team.
5453 2002-05-28  Andreas Schwab  <schwab@suse.de>
5455         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5456         message when finding object of wrong class.
5458 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
5460         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5461         Patch by <radu@netsoft.ro>.
5463 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5465         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5466         Add readahead.
5467         * sysdeps/unix/sysv/linux/readahead.c: New file.
5468         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5469         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5470         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5471         Add sendfile64 alias to sendfile syscall.
5472         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5473         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5474         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5475         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5476         syscall.
5478         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5479         special section for PIC register loading.
5480         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5482         * config.h.in: Define HAVE_HIDDEN.
5483         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5485         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5487 2002-05-28  Roland McGrath  <roland@frob.com>
5489         * sysdeps/mach/alpha/setfpucw.c: New file.
5491 2002-05-26  Roland McGrath  <roland@frob.com>
5493         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5494         Use integer_t instead of int for IOC_VOID case.
5496 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
5498         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5500 2002-05-26  Bruno Haible  <bruno@clisp.org>
5502         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5503         end of the ISO-8859-7 from idx table.
5505 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
5507         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5509 2002-05-24  David S. Miller  <davem@redhat.com>
5511         * string/bits/string2.h (memset): Do not try to optimize when
5512         not _STRING_ARCH_unaligned if GCC will do the right thing.
5514 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
5516         * posix/regex.c: Define `inline' as a macro into nothing for the
5517         compilers which lack the keyword.
5518         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5519         for the compatibility of gawk.
5520         * posix/regcomp.c: Add fake implementation of isblank() for the
5521         environments which lack the function.
5522         Don't use free_charset() in case of non-i18n envs.
5523         (build_range_exp): Don't use i18n related code in case of non-i18n
5524         envs.
5525         (build_collating_symbol): Likewise.
5526         (build_equiv_class): Likewise.
5527         (build_charclass): Likewise.
5528         (re_compile_fastmap_iter): Likewise.
5529         (parse_bracket_exp): Likewise.
5530         (build_word_op): Likewise.
5531         (regfree): Don't use free_charset() in case of non-i18n envs.
5532         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5533         re_token_type_t in case of non-i18n envs.
5534         Don't define re_charset_t in case of non-i18n envs.
5535         Change the type of wcs of re_string_t from wchar_t to wint_t,
5536         since we store also WEOF.
5537         * posix/regex_internal.c: (re_string_realloc_buffers): Change
5538         the type of wcs of re_string_t from wchar_t to wint_t.
5539         (re_string_reconstruct): Likewise.
5540         (create_ci_newstate): Don't use i18n related code in case of
5541         non-i18n envs.
5542         (create_cd_newstate): Likewise.
5544 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
5546         * iconv/loop.c: Fix typo.
5548 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5550         * inet/ether_line.c (ether_line): Fix a typo causing only
5551         lower 4 bits of each ethernet address byte being assigned.
5552         Don't modify what line points to.
5553         * inet/tst-ether_aton.c (main): Add ether_line tests.
5555 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
5557         * manual/filesys.texi: Don't make readlink example leak memory
5558         when readlink fails.
5560 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
5562         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
5563         some more security checks.
5565 2002-05-17  David S. Miller  <davem@redhat.com>
5567         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5569 2002-05-16  David S. Miller  <davem@redhat.com>
5571         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5572         (elf_machine_dynamic): Use it to force PIC register to be loaded.
5573         (elf_machine_load_address): Likewise.
5574         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5576         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5577         is unaligned, do not forget to fully initialize %g1 magic value.
5579         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5580         register definitions and provide 32-bit variants of structures
5581         during 64-bit builds.
5583         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5584         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5585         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5586         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5587         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5588         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5589         Do not clear implicit one bit here, it must be done post-rounding.
5590         Only pad to the left using left shift if value uses less than the
5591         available fractional bits.
5593 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5595         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5596         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5597         (shared-only-routines): Likewise.
5598         * sysdeps/powerpc/libgcc-compat.c: New file.
5599         * sysdeps/wordsize-32/cmpdi2.c: Removed.
5600         * sysdeps/wordsize-32/fixdfdi.c: Removed.
5601         * sysdeps/wordsize-32/fixsfdi.c: Removed.
5602         * sysdeps/wordsize-32/shdi3.c: Removed.
5604 2002-05-16  Bruno Haible  <bruno@clisp.org>
5606         * MakeTAGS (libc.pot): Don't sort the output.
5607         * po/header.pot: Update to match xgettext 0.11 output.
5609 2002-05-16  Bruno Haible  <bruno@clisp.org>
5611         * MakeTAGS (subdirs): Remove duplicates.
5613 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5615         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5616         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5617         alias.
5619 2002-05-19  Andreas Jaeger  <aj@suse.de>
5621         * sysdeps/unix/sysv/linux/configure.in: Warn against an
5622         installation in /usr/local.
5624 2002-05-16  Bruno Haible  <bruno@clisp.org>
5626         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5627         string as argument of #error.
5629 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
5631         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5632         don't define static.  Remove old __realpath function.  TC1 of
5633         POSIX 2001 will allow the second parameter to be NULL.
5634         * stdlib/test-canon.c: Comment out test for NULL as second
5635         parameter of realpath.
5637         * time/offtime.c (__offtime): Set errno if overflow is detected.
5639         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5640         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5641         dl-brk and dl-sbrk.
5643         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5644         (fdimf): Likewise.
5646 2002-05-15  Roland McGrath  <roland@frob.com>
5648         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5650 2002-05-12  Bruno Haible  <bruno@clisp.org>
5652         * iconvdata/testdata/EUC-JISX0213: New file.
5653         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5654         * iconvdata/testdata/SHIFT_JISX0213: New file.
5655         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5656         * iconvdata/testdata/ISO-2022-JP-3: New file.
5657         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5658         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5659         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5660         contains comments indicating precomposed characters.
5662 2002-04-21  Bruno Haible  <bruno@clisp.org>
5664         * iconvdata/iso-2022-jp-3.c: New file.
5665         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5666         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5667         (LDFLAGS-ISO-2022-JP-3.so): New variable.
5668         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5669         (distribute): Add iso-2022-jp-3.c.
5671 2002-05-12  Bruno Haible  <bruno@clisp.org>
5673         * iconvdata/tst-table-to.c (main): Restore handling of
5674         transliterations, broken by last patch.
5676 2002-05-12  Bruno Haible  <bruno@clisp.org>
5678         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5680 2002-05-12  Bruno Haible  <bruno@clisp.org>
5682         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5683         when there is not enough room in the output buffer.
5684         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5686 2002-04-20  Bruno Haible  <bruno@clisp.org>
5688         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5689         macros.
5690         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5691         Also make this macro work if FROM_DIRECTION evaluates to 0.
5692         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5693         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5694         of consume_incomplete.
5695         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5696         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5697         4, not 8.
5698         * iconvdata/cp1258.c: Likewise.
5699         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5700         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5701         not 2.
5702         * iconvdata/ibm933.c: Likewise.
5703         * iconvdata/ibm935.c: Likewise.
5704         * iconvdata/ibm937.c: Likewise.
5705         * iconvdata/ibm939.c: Likewise.
5706         * iconvdata/iso-2022-cn.c: Define
5707         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5708         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5709         * iconvdata/iso-2022-cn-ext.c: Likewise.
5710         * iconvdata/iso-2022-jp.c: Define
5711         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5712         {MIN,MAX}_NEEDED_{FROM,TO}.
5713         * iconvdata/tcvn5712-1.c: Define
5714         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5715         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
5716         * iconvdata/euc-jisx0213.c: Define
5717         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5718         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
5719         * iconvdata/shift_jisx0213.c: Likewise.
5721 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5723         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
5724         shdi3, fixdfdi, fixsfdi in csu dir.
5725         (shared-only-routines): Likewise.
5726         * sysdeps/wordsize-32/cmpdi2.c: New file.
5727         * sysdeps/wordsize-32/shdi3.c: New file.
5728         * sysdeps/wordsize-32/fixdfdi.c: New file.
5729         * sysdeps/wordsize-32/fixsfdi.c: New file.
5730         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
5731         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
5732         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
5734         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
5735         Only use va_arg if the argument will be used [PR libc/3259].
5737 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
5739         * catgets/catgets.c (catopen): Free buffer if internal catalog
5740         open fails.
5742 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5744         * debug/xtrace.sh: Make more robust.  For realtime tracking use
5745         non-buffering methods.
5746         * debug/pcprofiledump.c: Implement -u option.
5747         Patch by Roger Luethi <rl@hellgate.ch>.
5749 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
5751         * include/netinet/in.h (bindresvport_internal): Add prototype.
5752         * include/rpc/auth.h  (authunix_create_internal,
5753         authunix_create_default_internal, authnone_create_internal,
5754         authdes_pk_create_internal): Add prototypes.
5755         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
5756         clntudp_create_internal, clntudp_bufcreate_internal,
5757         clntunix_create_internal): Add prototypes.
5758         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
5759         svc_getreq_internal, svc_getreq_common_internal,
5760         svc_getreqset_internal, svc_getreq_poll_internal,
5761         svc_register_internal, svc_unregister_internal,
5762         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
5763         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
5764         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
5765         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
5766         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
5767         * inet/rcmd.c (rcmd_af): Use __listen.
5768         (rresvport_af): Use __bind.
5769         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
5770         authunix_create, authunix_create_default, authnone_create,
5771         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
5772         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
5773         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
5774         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
5775         _authenticate, add INTDEF after such function definitions.
5776         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
5777         __setsockopt, __getsockname instead of non-__ variants.
5778         * sunrpc/pmap_rmt.c: Likewise.
5779         * sunrpc/rtime.c: Likewise.
5780         * sunrpc/svc_udp.c: Likewise.
5781         * sunrpc/clnt_unix.c: Likewise.
5782         * sunrpc/svc_unix.c: Likewise.
5783         * sunrpc/bindrsvprt.c: Likewise.
5784         * sunrpc/svc_tcp.c: Likewise.
5785         * sunrpc/auth_none.c: Likewise.
5786         * sunrpc/clnt_raw.c: Likewise.
5787         * sunrpc/clnt_tcp.c: Likewise.
5788         * sunrpc/auth_unix.c: Likewise.
5789         * sunrpc/key_call.c: Likewise.
5790         * sunrpc/clnt_gen.c: Likewise.
5791         * sunrpc/pm_getmaps.c: Likewise.
5792         * sunrpc/clnt_simp.c: Likewise.
5793         * sunrpc/pmap_clnt.c: Likewise.
5794         * sunrpc/svc_run.c: Likewise.
5795         * sunrpc/svc.c: Likewise.
5796         * sunrpc/svc_simple.c: Likewise.
5797         * sunrpc/pm_getport.c: Likewise.
5798         * sunrpc/auth_des.c: Likewise.
5799         * sunrpc/svc_auth.c: Likewise.
5800         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
5801         __register_frame_info_table_bases, __deregister_frame_info_bases):
5802         Add INTDEF.
5803         (__register_frame_info_bases_internal,
5804         __register_frame_info_table_bases_internal,
5805         __deregister_frame_info_bases_internal): Add prototypes.
5806         (__register_frame_info, __register_frame): Use INTUSE in call to
5807         __register_frame_info_bases.
5808         (__register_frame_info_table): Similarly.
5809         (__deregister_frame_info, __deregister_frame): Similarly.
5810         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
5811         sendto as weak alias.
5812         * sysdeps/mach/hurd/sendto.c: Likewise.
5813         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
5814         recvfrom as weak alias.
5815         * sysdeps/mach/hurd/recvfrom.c: Likewise.
5816         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
5817         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
5818         recvmsg as weak alias.
5819         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
5820         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
5821         sendmsg as weak alias.
5822         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
5823         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
5824         setsockopt, add setsockopt as weak alias.
5825         * sysdeps/mach/hurd/setsockopt.c: Likewise.
5826         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
5827         weak alias.
5828         * sysdeps/mach/hurd/bind.c: Likewise.
5829         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
5830         as weak alias.
5831         * sysdeps/mach/hurd/listen.c: Likewise.
5832         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
5833         getsockname, add getsockname as weak alias.
5834         * sysdeps/mach/hurd/getsockname.c: Likewise.
5835         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
5836         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
5837         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
5838         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
5839         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
5840         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
5841         Add aliases.
5842         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5843         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5844         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5845         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5846         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
5847         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
5848         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
5849         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
5850         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
5851         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
5852         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
5853         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
5855 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
5857         * locale/programs/localedef.h (show_archive_content): Add verbose
5858         argument.
5859         * locale/programs/localedef.c (main): Adjust caller.
5860         * locale/programs/locarchive.c (struct nameent, struct dataent): New
5861         types.
5862         (nameentcmp, dataentcmp): New functions.
5863         (xstrcmp): Remove.
5864         (show_archive_content): Print verbose listing with --list-archive -v.
5866 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5868         * locale/programs/locarchive.c (open_archive): Take extra argument
5869         readonly.  If true open file with O_RDONLY and don't create the
5870         archive if it doesn't exist.
5871         Adapt all callers.
5872         (close_archive): Don't do anything if fd element is -1.
5873         * locale/programs/localedef.h (open_archive): Adjust prototype.
5874         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
5875         call.
5877         * malloc/malloc.c (__posix_memalign): Correct check for size of
5878         alignment value [PR libc/3444].
5880         * include/stdio.h: Remove references to old stdio implementation.
5882         * libio/Makefile (bug-ungetwc2-ENV): Define.
5884 2002-05-13  Roland McGrath  <roland@frob.com>
5886         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
5888         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
5890 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
5892         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5893         Allocate three, not two, more than LEN when appending '/.'.
5894         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
5895         if NAME ends with '/.' if it is shorter than 2 chars.
5897 2002-05-12  Roland McGrath  <roland@frob.com>
5899         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
5900         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
5902         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
5903         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
5905 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
5907         * sysdeps/ia64/Makefile: Remove extra endif.
5908         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
5910 2002-05-10  Andreas Schwab  <schwab@suse.de>
5912         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
5914 2002-05-09  Andreas Jaeger  <aj@suse.de>
5916         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
5917         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
5918         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
5920         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
5921         * sysdeps/wordsize-64/glob.c: ...here.
5922         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
5923         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
5924         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
5926 2002-05-08  Roland McGrath  <roland@frob.com>
5928         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
5929         O_NOTRANS flag in "." lookup.
5931 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
5933         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
5935 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
5937         * locale/duplocale.c (__duplocale): Update special members only
5938         when allocation succeeded.
5940 2002-05-03  Roland McGrath  <roland@frob.com>
5942         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
5943         we can only build libc.so.0.3(GLIBC_2.2.6) now.
5945 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
5947         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
5948         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
5949         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
5950         * sysdeps/ia64/ia64libgcc.S: New file.
5952 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
5954         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
5956         * malloc/memusage.c: Distinguish anonymous mmap.
5958 2002-05-01  Roland McGrath  <roland@frob.com>
5960         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
5961         and use INTDEF on it.
5962         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
5964         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
5966         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
5968 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
5970         * malloc/memusage.c: Add support for tracking mmap & friends.
5971         * malloc/memusage.sh: Implement -m/--mmap option.
5973 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
5975         * locale/programs/locarchive.c (create_archive): Add archivefname
5976         argument, create fname from it.
5977         (enlarge_archive): Honour output_prefix.
5978         (open_archive): Likewise.
5980 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
5982         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
5983         too many stpcpy macros.
5985 2002-04-26  Bruno Haible  <bruno@clisp.org>
5987         * locale/programs/ld-collate.c (collate_read): Cast first argument
5988         for "%.*s" to int.
5990 2002-04-26  Bruno Haible  <bruno@clisp.org>
5992         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
5993         __dcngettext_internal): New declarations.
5994         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
5995         attribute declarations.
5997 2002-04-30  Roland McGrath  <roland@frob.com>
5999         Removed old GNU stdio implementation; GNU libio is now the only option.
6000         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6001         Define USE_IN_LIBIO unconditionally.
6002         * configure: Regenerated.
6003         * Makeconfig (stdio): Set to libio by default.
6004         * config.make.in (stdio): Variable removed.
6005         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6006         * sysdeps/unix/sysv/linux/configure: Regenerated.
6007         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6008         * sysdeps/mach/hurd/configure: Regenerated.
6009         * stdio/.cvsignore: File removed.
6010         * stdio/Makefile: File removed.
6011         * stdio/Versions: File removed.
6012         * stdio/__fbufsize.c: File removed.
6013         * stdio/__flbf.c: File removed.
6014         * stdio/__fpending.c: File removed.
6015         * stdio/__fpurge.c: File removed.
6016         * stdio/__freadable.c: File removed.
6017         * stdio/__freading.c: File removed.
6018         * stdio/__fsetlocking.c: File removed.
6019         * stdio/__fwritable.c: File removed.
6020         * stdio/__fwriting.c: File removed.
6021         * stdio/clearerr.c: File removed.
6022         * stdio/fclose.c: File removed.
6023         * stdio/fcloseall.c: File removed.
6024         * stdio/feof.c: File removed.
6025         * stdio/ferror.c: File removed.
6026         * stdio/fflush.c: File removed.
6027         * stdio/fgetc.c: File removed.
6028         * stdio/fgetpos.c: File removed.
6029         * stdio/fgets.c: File removed.
6030         * stdio/fileno.c: File removed.
6031         * stdio/fmemopen.c: File removed.
6032         * stdio/fopen.c: File removed.
6033         * stdio/fopncook.c: File removed.
6034         * stdio/fputc.c: File removed.
6035         * stdio/fputs.c: File removed.
6036         * stdio/fread.c: File removed.
6037         * stdio/freopen.c: File removed.
6038         * stdio/fseek.c: File removed.
6039         * stdio/fsetpos.c: File removed.
6040         * stdio/ftell.c: File removed.
6041         * stdio/fwrite.c: File removed.
6042         * stdio/getc.c: File removed.
6043         * stdio/getchar.c: File removed.
6044         * stdio/getdelim.c: File removed.
6045         * stdio/gets.c: File removed.
6046         * stdio/glue.c: File removed.
6047         * stdio/internals.c: File removed.
6048         * stdio/linewrap.c: File removed.
6049         * stdio/linewrap.h: File removed.
6050         * stdio/memstream.c: File removed.
6051         * stdio/newstream.c: File removed.
6052         * stdio/obstream.c: File removed.
6053         * stdio/putc.c: File removed.
6054         * stdio/putchar.c: File removed.
6055         * stdio/puts.c: File removed.
6056         * stdio/rewind.c: File removed.
6057         * stdio/setbuf.c: File removed.
6058         * stdio/setbuffer.c: File removed.
6059         * stdio/setlinebuf.c: File removed.
6060         * stdio/setvbuf.c: File removed.
6061         * stdio/stdio.h: File removed.
6062         * stdio/ungetc.c: File removed.
6063         * stdio/vasprintf.c: File removed.
6064         * stdio/vscanf.c: File removed.
6065         * stdio/vsnprintf.c: File removed.
6066         * stdio/vsprintf.c: File removed.
6067         * stdio/vsscanf.c: File removed.
6068         * sysdeps/generic/defs.c: File removed.
6069         * sysdeps/generic/fdopen.c: File removed.
6070         * sysdeps/generic/pipestream.c: File removed.
6071         * sysdeps/generic/stdio_init.c: File removed.
6072         * sysdeps/generic/sysd-stdio.c: File removed.
6073         * sysdeps/generic/vdprintf.c: File removed.
6074         * sysdeps/mach/hurd/defs.c: File removed.
6075         * sysdeps/mach/hurd/fdopen.c: File removed.
6076         * sysdeps/mach/hurd/pipestream.c: File removed.
6077         * sysdeps/mach/hurd/stdio_init.c: File removed.
6078         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6079         * sysdeps/mach/hurd/vdprintf.c: File removed.
6080         * sysdeps/posix/defs.c: File removed.
6081         * sysdeps/posix/fdopen.c: File removed.
6082         * sysdeps/posix/pipestream.c: File removed.
6083         * sysdeps/posix/stdio_init.c: File removed.
6084         * sysdeps/posix/vdprintf.c: File removed.
6085         * sysdeps/unix/pipestream.c: File removed.
6086         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6087         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6088         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6090 2002-04-29  Roland McGrath  <roland@frob.com>
6092         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6094 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6096         * sysdeps/generic/tls.h: Describe what must be defined.
6098         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6099         glob_in_dir [PR libc/3385].
6100         * posix/globtest.sh: Add test case.
6102         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6103         //TRANSLIT twice.
6105 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6107         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6108         _internal symbol handling.
6109         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6111 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6113         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6114         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6116 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6118         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6119         not _LIBC and RE_ENABLE_I18N.
6120         (build_range_exp): Implement for not _LIBC.
6121         (build_collating_symbol): Likewise.
6122         (parse_bracket_exp): Unify redundant error handlings.
6123         Don't erase mbcset for non matching list in multibyte envs.
6124         (build_word_op): Add '_' to matching list for \w operator.
6125         * posix/regex_internal.c (re_string_construct): Invoke
6126         build_upper_buffer in case of not RE_ENABLE_I18N.
6127         (re_string_reconstruct): Don't touch cur_state in case of not
6128         RE_ENABLE_I18N.
6129         * posix/regex_internal.h (attribute_hidden): New macro in case of
6130         not _LIBC.
6131         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6132         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6133         RE_ENABLE_I18N.
6134         (transit_state_mb): Likewise.
6135         (check_node_accept_bytes): Implement the code evaluating range
6136         expression in case of not _LIBC.
6137         (find_collation_sequence_value): Hide in case of not _LIBC.
6139 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6141         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6142         i386/semctl.c.
6143         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6144         be used.
6146 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6148         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6150         * sysdeps/ia64/strncpy.S: Fix recovery code.
6151         Patch by David Mosberger <davidm@hpl.hp.com>.
6153 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6155         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6156         GLIBC_2.2.6.
6158 2002-04-14  Bruno Haible  <bruno@clisp.org>
6160         * posix/regex.c (re_max_failures): Add back symbol for binary
6161         compatibility.
6163 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6165         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6166         of buffer building functions.
6167         * posix/regex_internal.c (re_string_allocate): New function.
6168         (re_string_realloc_buffers): New function.
6169         (re_string_skip_chars): New function.
6170         (re_string_reconstruct): New function.
6171         (re_string_construct): Adapt it to new interface of buffer building
6172         functions.
6173         (re_string_construct_common): Likewise.
6174         (build_wcs_buffer): Likewise.
6175         (build_wcs_upper_buffer): Likewise.
6176         (build_upper_buffer): Likewise.
6177         (re_string_translate_buffer): Likewise.
6178         (re_string_context_at): Adapt it to variable length buffers.
6179         * posix/regex_internal.h (re_string_t): Add new fields to handle
6180         variable length buffers.
6181         (re_match_context_t): Likewise.
6182         * posix/regexec.c (re_search_internal): Adapt it to new interface
6183         of re_string_t and re_match_context_t.
6184         (acquire_init_state_context): Likewise.
6185         (check_matching): Likewise.
6186         (check_halt_state_context): Likewise.
6187         (proceed_next_node): Likewise.
6188         (set_regs): Likewise.
6189         (sift_states_backward): Likewise.
6190         (clean_state_log_if_need): Likewise.
6191         (sift_states_iter_mb): Likewise.
6192         (sift_states_iter_bkref): Likewise.
6193         (add_epsilon_backreference): Likewise.
6194         (transit_state): Likewise.
6195         (transit_state_sb): Likewise.
6196         (transit_state_mb): Likewise.
6197         (transit_state_bkref): Likewise.
6198         (transit_state_bkref_loop): Likewise.
6199         (check_node_accept): Likewise.
6200         (match_ctx_init): Likewise.
6201         (extend_buffers): New function.
6203 2002-04-21  Bruno Haible  <bruno@clisp.org>
6205         * iconvdata/tst-table.sh: For the second check, use the truncated
6206         GB18030 charmap table, like for the first check.
6208 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6210         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6211         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6213 2002-04-23  H.J. Lu  <hjl@gnu.org>
6215         * include/math.h (isfinite): Fix a typo.
6217 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6219         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6220         which is created by the test suite.
6222 2002-04-20  Bruno Haible  <bruno@clisp.org>
6224         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6225         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6227 2002-04-20  Bruno Haible  <bruno@clisp.org>
6229         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6230         to avoid gcc warning.
6232 2002-04-20  Bruno Haible  <bruno@clisp.org>
6234         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6235         of data->__statep->__count.
6237 2002-04-20  Bruno Haible  <bruno@clisp.org>
6239         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6240         tag characters.
6241         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6243 2002-04-24  Roland McGrath  <roland@frob.com>
6245         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6246         use END macro instead of our own .end directive.
6247         Use `callsys' insn mnemonic instead of `call_pal'.
6249         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6251         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6252         macro; we need this for Hurd.
6254         Log entry was missing for 2002/03/24 commit of rev 1.8,
6255         goes with 2002-03-17 changes.
6256         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6257         (sysdep_routines): Append ioperm here.
6258         (sysdep_headers): Append sys/io.h here.
6260 2002-04-23  Roland McGrath  <roland@frob.com>
6262         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6263         * sysdeps/mach/hurd/sendto.c: Likewise.
6264         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6265         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6266         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6268 2002-04-22  Roland McGrath  <roland@frob.com>
6270         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6271         failure from i386_io_perm_* RPCs to ENOSYS.
6273 2002-04-22  Andreas Jaeger  <aj@suse.de>
6275         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6277         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6279         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6280         register instead of destroying %rbx.
6282 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6284         * string/string.h: Declare strerror_r also for XPG6.
6286 2002-04-19  Roland McGrath  <roland@frob.com>
6288         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6290 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6292         * Makefile: Add handling of xtests and xcheck targets.
6293         * MakeTAGS: Likewise.
6294         * Makeconfig: Likewise.
6295         * Makerules: Likewise.
6296         * Rules: Likewise.
6297         * manual/Makefile: Likewise.
6298         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6299         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6301 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6303         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6304         authnone_private_s.
6305         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6306         Delete #ifdef _RPC_THREAD_SAFE_ block.
6307         (authnone_private): Make a struct, not a pointer to struct.
6308         (authnone_private_guard): New once-control variable.
6309         (authnone_create_once): New function, split out of
6310         authnone_create.  No need to allocate memory.
6311         (authnone_create): Just call authnone_create_once via
6312         __libc_once, then return &authnone_private->no_client.
6313         (authnone_marshal): Access private data via CLIENT argument,
6314         not authnone_private pointer.
6315         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6316         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6317         authnone_private_s.
6319 2002-04-12  H.J. Lu  <hjl@gnu.org>
6321         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6323 2002-04-18  Bruno Haible  <bruno@clisp.org>
6325         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6326         FROM_DIRECTION): Make the FROM direction stateless.
6327         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6328         FROM_DIRECTION): Likewise.
6330 2002-04-15  Bruno Haible  <bruno@clisp.org>
6332         * iconvdata/JISX0213.TXT: New file.
6333         * iconvdata/jisx0213.h: New file.
6334         * iconvdata/jisx0213.c: New file.
6335         * iconvdata/euc-jisx0213.c: New file.
6336         * iconvdata/shift_jisx0213.c: New file.
6337         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6338         * iconvdata/EUC-JISX0213.precomposed: New file.
6339         * iconvdata/SHIFT_JISX0213.precomposed: New file.
6340         * iconvdata/SHIFT_JISX0213.irreversible: New file.
6341         * iconvdata/tst-table-to.c (main): Make it work for encodings for
6342         which the "to" direction is stateful.
6343         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6344         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6345         SHIFT_JISX0213.
6346         (libJISX0213-routines): New variable.
6347         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6348         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6349         (LDFLAGS-libJISX0213.so): New variable.
6350         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6351         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6352         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6354 2002-04-15  Bruno Haible  <bruno@clisp.org>
6356         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6357         uint32_t.  Update to Unicode 3.2.
6358         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6359         (BODY for TO_LOOP): Handle the ASCII range specially.
6360         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6361         * iconvdata/testdata/BIG5HKSCS: Remove a character.
6362         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6364 2002-04-15  Bruno Haible  <bruno@clisp.org>
6366         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6367         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6369 2002-04-15  Bruno Haible  <bruno@clisp.org>
6371         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6372         (ucs4_to_cns11643): Update.
6373         * iconvdata/cns11643.c: Update to Unicode 3.2.
6374         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6375         __cns11643_from_ucs4p2_tab): Regenerated.
6376         (__cns11643_from_ucs4p2c_tab): New array.
6377         * iconvdata/cvs11643l1.c: Update comments.
6378         * iconvdata/EUC-TW.irreversible: Remove two entries.
6380 2002-04-15  Bruno Haible  <bruno@clisp.org>
6382         * locale/C-translit.h.in: Update to Unicode 3.2.
6383         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6384         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6386 2002-04-15  Bruno Haible  <bruno@clisp.org>
6388         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6389         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6391 2002-04-15  Bruno Haible  <bruno@clisp.org>
6393         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6394         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6395         always one byte, not 0 bytes in some cases and 2 bytes in others.
6397         * iconvdata/tst-table-from.c (main): Correct the usage message.
6399 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6401         * posix/regcomp.c (parse_expression): Fix incorrect error code.
6402         (parse_dup_op): Fix error handling like "a{}".
6403         (parse_bracket_exp): Add error handling.
6404         (fetch_number): Add error handling for "a{<very_large_number>}".
6406 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6408         * posix/regcomp.c (parse_bracket_symbol): Add error handling
6409         in case that the symbol name is too long.
6410         (build_charclass): Handle [:lower:]/[:uppper:] correctly
6411         in case of REG_ICASE.
6413 2002-04-19  Andreas Jaeger  <aj@suse.de>
6415         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6416         <hartvige@mips.com>.
6418 2002-04-15  H.J. Lu  <hjl@gnu.org>
6420         * include/math.h (__finitel_internal): Declare only if
6421         __NO_LONG_DOUBLE_MATH is not defined.
6422         (__isinfl_internal): Likewise.
6423         (__isnanl_internal): Likewise.
6425         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6426         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6427         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6428         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6429         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6430         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6431         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6433         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6434         __fcntl_internal.
6436         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6437         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6439 2002-04-15  Bruno Haible  <bruno@clisp.org>
6441         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6442         (BODY for TO_LOOP): Likewise.
6443         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6444         * iconvdata/tst-table.sh: Add support for encodings which contain
6445         precomposed Unicode characters, known to the iconv converter in both
6446         directions but not listed in the charmap.
6447         * iconvdata/IBM856.irreversible: New file.
6448         * iconvdata/IBM922.irreversible: New file.
6449         * iconvdata/IBM1132.irreversible: New file.
6450         * iconvdata/IBM1133.irreversible: New file.
6451         * iconvdata/IBM1160.irreversible: New file.
6452         * iconvdata/IBM1161.irreversible: New file.
6453         * iconvdata/IBM1163.irreversible: New file.
6454         * iconvdata/IBM1164.irreversible: New file.
6455         * iconvdata/ARMSCII-8.irreversible: New file.
6456         * iconvdata/TCVN5712-1.precomposed: New file.
6457         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6458         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6459         ARMSCII-8, TCVN5712-1.
6460         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6461         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6462         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6463         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6465 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6467         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
6468         for EVENING69.  Include offsets in TZ environment variable.
6470 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
6472         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6473         avoid compiler warnings.
6475         * locale/programs/localedef.c (main): Always call
6476         construct_output_path.
6478         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6480         * locale/programs/locfile.c (to_archive): New variable.  To collect
6481         data which has to be added to the locale archive.
6482         (write_all_categories): Take new third parameter with locale name.
6483         Unless no_archive flag set add new locale data to the archive
6484         (write_locale_data): Unless no-archive flag set store generated data
6485         in to_archive data structure instead of generation output file.
6486         Add new parameter with locale category index.
6487         * locale/programs/locfile.h: Add new parameters in declaractions of
6488         write_all_categories and write_locale_data.
6489         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6490         --add-to-archive, and --delete-from-archive options.  Pass extra
6491         parameter to write_all_categories.
6492         * locale/programs/localedef.h: Add prototypes for functions in
6493         locarchive.c.
6494         * locale/locarchive.h: New file.
6495         * locale/programs/locarchive.c: New file.
6496         * locale/Makefile (distribute): Add programs/locarchive.c and
6497         locarchive.h.
6498         (localedef-modules): Add md5 and locarchive.
6499         Add vpath to crypt subdir for md5.c.
6501         * locale/programs/ld-address.c: Pass locale category ID as new second
6502         parameter to write_locale_data.
6503         * locale/programs/ld-collate.c: Likewise.
6504         * locale/programs/ld-ctype.c: Likewise.
6505         * locale/programs/ld-identification.c: Likewise.
6506         * locale/programs/ld-measurement.c: Likewise.
6507         * locale/programs/ld-messages.c: Likewise.
6508         * locale/programs/ld-monetary.c: Likewise.
6509         * locale/programs/ld-name.c: Likewise.
6510         * locale/programs/ld-numeric.c: Likewise.
6511         * locale/programs/ld-paper.c: Likewise.
6512         * locale/programs/ld-telephone.c: Likewise.
6513         * locale/programs/ld-time.c: Likewise.
6515         * locale/simple-hash.c: Move compute_hashval function from here...
6516         * locale/hashval.h: ...to here.  New file.
6517         * locale/simple-hash.h: Add prototype for compute_hashval.
6519         * include/libintl.h: Minor cleanups.
6521 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
6523         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6525 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
6527         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
6529 2002-04-14  Bruno Haible  <bruno@clisp.org>
6531         * locale/programs/charmap.c (charmap_read): Don't access result if
6532         result == NULL.
6534 2002-02-17  Andreas Schwab  <schwab@suse.de>
6536         * elf/reldep7.c: New file.
6537         * elf/reldep7mod1.c: New file.
6538         * elf/reldep7mod2.c: New file.
6539         * elf/Makefile: Add rules to build and run reldep7.
6541 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
6543         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6544         the end of the function.  Pass original flags to recursive call if
6545         add_dependency failed.
6546         (_dl_lookup_versioned_symbol): Likewise.
6548 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
6550         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6551         early, but check whether it overflowed afterwards.
6552         * time/tst-mktime.c (main): Add new tests.
6554 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
6556         * debug/xtrace.sh: Fix program name in help message.
6557         Patch by Roger Luethi <rl@hellgate.ch>.
6559         * include/sys/stat.h: Add prototypes for __lxstat_internal and
6560         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
6561         NOT_IN_libc.
6562         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6563         * sysdeps/mach/hurd/lxstat.c: Likewise.
6564         * sysdeps/unix/common/lxstat.c: Likewise.
6565         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6566         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6567         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6568         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6569         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6570         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6571         * sysdeps/mach/hurd/lxstat64.c: Likewise.
6572         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6573         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6575         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6576         prototypes.  Add __mbrlen and __mbrtowc macros.
6577         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6578         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6580         * include/unistd.h: Add prototype for __write_internal and add
6581         __libc_write macro is SHARED.
6582         * sysdeps/generic/write.c: Use INTDEF for __write.
6583         * sysdeps/mach/hurd/write.c: Likewise.
6584         * sysdeps/unix/sysv/aix/write.c: Likewise.
6585         * sysdeps/unix/syscalls.list: Add __libc_write alias.
6587         * assert/assert.c: Replace STR_N_SIZE with something usable in
6588         macro arguments.
6589         * assert/assert-perr.c: Likewise.
6591         * include/sys/socket.h: Declare __libc_sa_len_internal and define
6592         SA_LEN macro to use it if not NOT_IN_libc.
6593         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6595         * include/fcntl.h: Declare __open_internal and define __open and
6596         __libc_open macros if not NOT_IN_libc.
6597         * sysdeps/generic/open.c: Use INTDEF for __open.
6598         * sysdeps/mach/hurd/open.c: Likewise.
6599         * sysdeps/unix/sysv/aix/open.c: Likewise.
6600         * sysdeps/unix/syscalls.list: Add __open_internal alias.
6602         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6603         has correct number.
6605         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6606         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6607         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6608         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6610         * include/wctype.h: Declare __iswalpha_l_internal,
6611         __iswdigit_l_internal, __iswspace_l_internal,
6612         __iswxdigit_l_internal, and __iswctype_internal.  Define
6613         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6614         __iswxdigit_l macros if not NOT_IN_libc.
6615         * wctype/iswctype.c: Use INTDEF for __iswctype.
6616         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6618         * include/math.h: Declare __isinf_internal, __isinfl_internal,
6619         __isnan_internal, and __isnanl_internal.
6620         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6621         __isnan, and __isnanl.
6622         * stdio-common/printf_size.c: Likewise.
6623         * sysdeps/generic/printf_fphex.c: Likewise.
6624         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6625         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6626         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6627         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6628         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6629         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6630         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6631         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6632         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6633         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6634         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6635         * sysdeps/m68k/s_isinfl.c: Likewise.
6636         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6637         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6639         * include/sys/time.h: Declare __gettimeofday_internal and define
6640         __gettimeofday macro if not NOT_IN_libc.
6641         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6642         * sysdeps/mach/gettimeofday.c: Likewise.
6643         * sysdeps/posix/gettimeofday.c: Likewise.
6644         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6645         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6646         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6647         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6649         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6650         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6651         Remove __lstat and __fstat inline functions.
6652         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6653         * sysdeps/mach/hurd/fxstat.c: Likewise.
6654         * sysdeps/unix/fxstat.c: Likewise.
6655         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6656         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6657         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6658         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6659         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6660         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6661         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6662         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6663         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6665         * include/unistd.h: Declare __getpid_internal and define
6666         __getpid macro if not NOT_IN_libc.
6667         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6668         * sysdeps/generic/getpid.c: Likewise.
6669         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6670         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6672         * include/unistd.h: Declare __getpgid_internal and define
6673         __getpgid macro if not NOT_IN_libc.
6674         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6675         * sysdeps/mach/hurd/getpgid.c: Likewise.
6676         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6677         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6678         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6679         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6681         * include/unistd.h: Declare __getpagesize_internal and define
6682         __getpagesize macro if not NOT_IN_libc.
6683         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6684         __getpagesize.
6685         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6686         * sysdeps/mach/getpagesize.c: Likewise.
6687         * sysdeps/posix/getpagesize.c: Likewise.
6688         * sysdeps/unix/getpagesize.c: Likewise.
6689         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6690         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6691         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6692         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6694 2002-04-13  Andreas Jaeger  <aj@suse.de>
6696         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6697         as clobber to reduce register pressure.
6698         (__strpbrk_cg): Likewise.
6699         (__mempcpy_by4): Likewise.
6700         (__strstr_cg): Likewise.
6701         Add prototype for __memrchr.
6703 2002-04-13  Andreas Schwab  <schwab@suse.de>
6705         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6706         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6707         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6709 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
6711         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
6712         check whether the caller prefers getting the most recent version of
6713         a symbol of the earliest version.
6714         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
6715         _dl_do_lookup to also take the new parameter and pass it on.
6716         Change 'explicit' parameter of _dl_lookup_symbol and
6717         _dl_lookup_versioned_symbol to flags.  Adjust tests.
6718         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6719         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
6720         _dl_lookup_versioned_symbol.
6721         * elf/dl-reloc.c: Likewise.
6722         * elf/dl-runtime.c: Likewise.
6723         * elf/dl-sym.c: Likewise.
6724         * sysdeps/mips/dl-machine.h: Likewise.
6726 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6728         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
6729         in a token.
6730         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
6732 2002-04-10  Andreas Jaeger  <aj@suse.de>
6734         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6736         * include/argz.h: Remove extra char from last patch.
6738 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
6740         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
6741         * sysdeps/unix/sysv/aix/chown.c: Likewise.
6742         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
6743         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
6744         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6745         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
6746         __chown_internal.
6747         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6749         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
6750         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
6751         * intl/ngettext.c: Likewise.
6753         * include/sys/socket.h: Declare __connect_internal and define
6754         __connect macro if not NOT_IN_libc.
6755         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
6756         * sysdeps/unix/sysv/aix/connect.c: Likewise.
6757         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
6759         * include/unistd.h: Declare __close_internal and define __close macro
6760         if not NOT_IN_libc.
6761         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
6762         WJUMP3): Add extra parenthesis to avoid expanding element names with
6763         macors like __close.
6764         * sysdeps/unix/syscalls.list: Add __close_internal alias.
6766         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
6767         if not NOT_IN_libc.
6768         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
6769         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
6770         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
6772         * include/unistd.h: Declare __fork_internal and define __fork macro
6773         if not NOT_IN_libc.
6774         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
6775         * sysdeps/unix/sysv/aix/fork.c: Likewise.
6776         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
6778         * include/stdio_ext.h: Declare __fsetlocking_internal and define
6779         __fsetlocking macro to use it if not NOT_IN_libc.
6780         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
6782         * libio/__fbufsize.c: Correct copyright.
6783         * libio/__flbf.c: Likewise.
6784         * libio/__fpending.c: Likewise.
6785         * libio/__fpurge.c: Likewise.
6786         * libio/__freadable.c: Likewise.
6787         * libio/__freading.c: Likewise.
6788         * libio/__fsetlocking.c: Likewise.
6789         * libio/__fwritable.c: Likewise.
6790         * libio/__fwriting.c: Likewise.
6792         * include/stdio.h: Declare __asprintf_internal and define __asprintf
6793         macro to use it if not NOT_IN_libc.
6794         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
6796         * include/mntent.h: Declare __setmntent_internal,
6797         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
6798         __getmntent_r, and __endmntent macros to use these functions if not
6799         NOT_IN_libc.
6800         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
6801         __endmntent.
6803         * include/math.h: Declare __finite_internal, __finitef_internal, and
6804         __finitel_internal.  Redefine isfinite macro if in libc or libm using
6805         these functions.
6806         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
6807         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
6808         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
6809         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
6810         * sysdeps/i386/fpu/s_finitef.S: Likewise.
6811         * sysdeps/i386/fpu/s_finitel.S: Likewise.
6812         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6813         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6814         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6815         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
6817         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
6818         to use this function if not NOT_IN_libc.
6819         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
6820         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
6821         * sysdeps/mach/hurd/fcntl.c: Likewise.
6822         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6823         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6825         * include/argz.h: Declare __argz_count_internal and
6826         __argz_stringify_internal.
6827         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
6828         __argz_stringify.
6829         * string/argz-count.c: Use INTDEF for __argz_count.
6830         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
6832         * include/stdlib.h: Declare __cxa_atexit_internal and define
6833         __cxa_atexit macro if not NOT_IN_libc.
6834         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
6835         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
6837         * assert/assert.c: Use INTDEF for __assert_fail.
6838         * assert/__assert.c: Use INTUSE for call to __assert_fail.
6839         * include/assert.h: Declare __assert_fail_internal.
6841         * extra-lib.mk: Mark assignment to lib with override.
6843 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6845         * Makerules: Use cppflags-iterator.mk to add defines for all test
6846         source files.
6848 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6850         * elf/elf.h: Define R_SH_TLS_xxx macros.
6851         * elf/rtld.c: Remove an extra parenthesis.
6852         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
6853         TLS_GD macros.
6854         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
6855         * sysdeps/sh/dl-lookupcfg.h: New file.
6856         * sysdeps/sh/dl-tls.h: New file.
6857         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
6858         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
6859         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
6860         R_SH_TLS_TPOFF32 relocations.
6862 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6864         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
6865         of NOT_IN_LIBC.
6866         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
6867         * include/stdlib.h: Likewise.
6869 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
6871         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
6872         instead of _RTLD_LOCAL.
6873         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
6874         * include/unistd.h: Likewise.
6875         * sysdeps/generic/ldsodefs.h: Likewise.
6877         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
6878         if in libc or ld.so.
6880 2002-04-08  Andreas Jaeger  <aj@suse.de>
6882         * elf/cache.c (print_entry): Support x86-64.
6884 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6886         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
6887         with one accessing the locale data structures directly.
6888         * stdio-common/printf-prs.c: Include localeinfo.h for new
6889         MB_CUR_MAX definition.
6891         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
6892         is the name of the source file without extension.
6893         * Makefile (distribute): Add cppflags-iterator.mk.
6894         * cppflags-iterator.mk: New file.
6895         * extra-lib.mk: For the sources of the library run
6896         cppflags-iterator.mk.
6898         * include/libintl.h: Declare __dcgettext_internal and
6899         _libc_intl_domainname_internal.  Define __dcgettext using these
6900         two symbols if used in libc itself.
6901         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
6902         _libc_intl_domainname_internal.
6903         * argp/argp-parse.c: Likewise.
6904         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
6905         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
6906         * intl/gettext.c: Likewise.
6907         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
6908         alias.
6909         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
6910         __dcgettext.
6911         * posix/regex_internal.c (gettext): Likewise.
6913 2002-04-08  Andreas Jaeger  <aj@suse.de>
6915         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
6917         * sysdeps/x86_64/fpu/s_llrint.S: New file.
6918         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
6919         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
6920         * sysdeps/x86_64/fpu/s_lrint.S: New file.
6921         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
6922         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
6924 2002-04-08  Roland McGrath  <roland@frob.com>
6926         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
6927         widening __hurd_fail value.
6929 2002-04-07  Roland McGrath  <roland@frob.com>
6931         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
6932         <mach/machine/alpha_instruction.h>.
6933         (_hurd_setup_sighandler): Take proper arguments for current decls.
6934         Update code to use _hurdsig_catch_fault.
6935         Use `callsys' instruction instead of `call_pal'.
6936         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
6938         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
6939         (ALIGN, at, AT, fp): New macros.
6941 2002-04-06  Roland McGrath  <roland@frob.com>
6943         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
6945         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
6946         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
6948         * sysdeps/mach/hurd/bind.c: Use prototype definition.
6949         * sysdeps/mach/hurd/connect.c: Likewise.
6950         * sysdeps/mach/hurd/getsockopt.c: Likewise.
6951         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6953         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
6954         __msg_sig_post RPC.
6956         * hurd/catch-exc.c: Use integer_t instead of int.
6957         * hurd/hurdfault.c: Likewise.
6959         * sysdeps/mach/hurd/alpha/exc2signal.c
6960         (_hurd_exception2signal): Rewritten.
6961         * sysdeps/mach/hurd/alpha/longjmp-ts.c
6962         (_hurd_longjmp_thread_state): Rewritten.
6964 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
6966         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
6967         DB_LOOKUP_FCT prototype.
6968         * nss/getXXent_r.c: Likewise.
6969         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
6970         * inet/getaliasname_r.c: Likewise.
6971         * inet/getnetbyad_r.c: Likewise.
6972         * inet/getnetbynm_r.c: Likewise.
6973         * inet/getnetent_r.c: Likewise.
6974         * inet/getproto_r.c: Likewise.
6975         * inet/getprtent_r.c: Likewise.
6976         * inet/getprtname_r.c: Likewise.
6977         * inet/getrpcbyname_r.c: Likewise.
6978         * inet/getrpcbynumber_r.c: Likewise.
6979         * inet/getrpcent_r.c: Likewise.
6980         * inet/getservent_r.c: Likewise.
6981         * inet/getsrvbynm_r.c: Likewise.
6982         * inet/getsrvbypt_r.c: Likewise.
6983         * shadow/getspent_r.c: Likewise.
6984         * shadow/getspnam_r.c: Likewise.
6986         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
6988         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
6989         Use i686-friendly PIC code.
6990         * sysdeps/i386/elf/setjmp.S: Likewise.
6992         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
6994         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
6995         list.
6996         * elf/Versions: Remove it here.
6998 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7000         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7001         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7003 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7005         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7006         test just before the test runs.
7007         * intl/tst-translit.sh: Likewise.
7008         * intl/tst-codeset.sh: Likewise.
7010         * timezone/zic.c: Update from tzcode2002c.
7011         * timezone/asia: Update from tzdata2002c.
7012         * timezone/backward: Likewise.
7013         * timezone/europe: Likewise.
7014         * timezone/northamerica: Likewise.
7015         * timezone/northamerica: Likewise.
7016         * timezone/northamerica: Likewise.
7017         * timezone/southamerica: Likewise.
7018         * timezone/zone.tab: Likewise.
7020 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7022         * sysdeps/generic/brk.c (__curbrk): Declare.
7023         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7024         * sysdeps/generic/dl-sbrk.c: Likewise.
7025         * sysdeps/unix/arm/dl-brk.S: New file.
7026         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7027         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7028         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7029         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7030         * sysdeps/unix/i386/dl-brk.S: New file.
7031         * sysdeps/unix/mips/dl-brk.S: New file.
7032         * sysdeps/unix/sparc/dl-brk.S: New file.
7033         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7034         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7035         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7036         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7038 2002-04-03  Andreas Schwab  <schwab@suse.de>
7040         * Makefile (headers): Add gnu/lib-names.h here instead of
7041         install-others.
7042         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7043         installation rule.
7044         (install-headers): Add dependency on install-headers-nosubdir.
7045         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7046         instead of install-others.
7047         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7048         installation rule.
7050 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7052         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7053         Reported by Sam Roberts <sroberts@uniserve.com>.
7055 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7057         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7058         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7059         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7060         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7062 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7064         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7065         (RTLD_START): Ditto.
7066         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7067         dependency violation.
7069 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7071         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7072         all variable declarations.
7074 2002-04-04  Andreas Schwab  <schwab@suse.de>
7076         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7078 2002-04-04  Andreas Jaeger  <aj@suse.de>
7080         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7081         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7083         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7084         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7085         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7087         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7089         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7091         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7092         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7094         * configure.in: Handle all mips entries the same.
7096         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7097         * sysdeps/mips/mips3/*: Likewise.
7098         * sysdeps/mips/p40/bits/endian.h: Likewise.
7100 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7102         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7103         non-null result [PR libc/2600].
7105         * misc/tst-dirname.c: Add more tests.
7107 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7109         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7110         define a code_set_name provide one based on the filename.
7112         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7114 2001-12-28  Andreas Jaeger  <aj@suse.de>
7116         * time/mktime.c (__mktime_internal): Check for year < 70
7117         [PR libc/2738].
7119 2002-04-03  Andreas Jaeger  <aj@suse.de>
7121         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7122         shmat.
7123         Reported by Andi Kleen <ak@suse.de>.
7125 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7127         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7128         * sysdeps/generic/w_lgammaf.c: Likewise.
7129         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7131         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7132         Adjust for new output format of the backtrace functions.
7134         * misc/syslog.c (vsyslog): Only use cleanup handler if
7135         _LIBC_REENTRANT is defined [PR libc/2924].
7137         * libio/Makefile (tests): Add bug-ungetwc2.
7138         * libio/bug-ungetwc2.c: New file.
7140         * manual/install.texi: Typographical and grammatical cleanup.
7141         Patch by Dennis Grace <dgrace@us.ibm.com>.
7143         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7144         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7146         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7147         always "&".  Adjust callers.
7148         Add "_" prefix to several generated definitions.
7149         Patch by paul@serice.net [PR libc/3158].
7151 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7153         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7154         size of _dl_arm_cap_flags.
7155         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7157         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7158         Define as 8.
7160 2002-03-22  H.J. Lu  <hjl@gnu.org>
7162         * scripts/firstversions.awk: Check the first version.
7164 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7166         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7167         dependencies must be stable to work correctly.
7168         Reported by martin.lubich@datacon.at.
7170         * libio/bug-ungetwc1.c: New file.
7171         * libio/Makefile (tests): Add bug-ungetwc1.
7173         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7174         if stream was last used for writing.
7176         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7177         number [PR libc/3111].
7179         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7180         to ...
7181         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7183 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7185         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7186         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7187         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7188         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7189         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7191 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7193         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7194         dynamic tags.
7196 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7198         * sysdeps/i386/fpu/s_fabs.S: New file.
7199         * sysdeps/i386/fpu/s_fabsf.S: New file.
7200         * sysdeps/i386/fpu/s_fabsl.S: New file.
7201         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7202         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7203         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7205 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7207         * rt/tst-shm.c (do_test): Add one more test for size of shared
7208         memory object.
7210 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7212         * malloc/malloc.c: Add short description and prototypes for
7213         malloc_get_state, malloc_set_state and posix_memalign, for
7214         consistency and to avoid warnings with -Wstrict-prototypes.
7215         Reported by Andreas Jaeger <aj@suse.de>.
7217 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7219         * po/gl.po: Update from translation team.
7221 2002-03-31  Roland McGrath  <roland@frob.com>
7223         * hurd/hurdselect.c (_hurd_select): Fix
7224         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7225         Use a union rather than casts to compare mach_msg_type_t as int.
7227 2002-03-25  Roland McGrath  <roland@frob.com>
7229         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7230         check off the end of NAME when it's shorter than 2 chars.
7231         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7233 2002-03-17  Roland McGrath  <roland@frob.com>
7235         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7236         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7237         * sysdeps/mach/hurd/i386/Dist: Add them.
7238         * sysdeps/mach/hurd/i386/Versions
7239         (libc: GLIBC_2.2.6): New set, add ioperm.
7240         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7241         (mach_interface_list): Check for mach_i386.defs.
7242         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7243         * sysdeps/mach/configure: Regenerated.
7245 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7247         * po/fr.po: Update from translation team.
7249 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7251         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7252         getpriority from syscalls list.
7254 2002-03-28  Andreas Jaeger  <aj@suse.de>
7256         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7257         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7258         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7259         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7261 2002-03-27  Andreas Jaeger  <aj@suse.de>
7263         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7264         sigcontext): Follow further kernel change.
7266         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7267         kernel change.
7269         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7270         Change for struct sigcontext change.
7272         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7273         Follow changes in struct sigcontext.
7275         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7276         sysycall, use wrapper instead.
7278 2002-03-26  Andreas Jaeger  <aj@suse.de>
7280         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7281         read and write accesses as detailed as possible.
7282         (__memcpy_by2): Likewise.
7283         (__memcpy_g): Likewise.
7284         (memmove): Likewise.
7285         (memcmp): Likewise.
7286         (__memset_ccn_by4): Likewise.
7287         (__memset_ccn_by2): Likewise.
7288         (__memset_gcn_by4): Likewise.
7289         (__memset_gcn_by2): Likewise.
7290         (memchr): Likewise.
7291         (__memrchr): Likewise.
7292         (rawmemchr): Likewise.
7293         (__strlen_g): Likewise.
7294         (__strcpy_g): Likewise.
7295         (__mempcpy_by4): Likewise.
7296         (__mempcpy_by2): Likewise.
7297         (__mempcpy_byn): Likewise.
7298         (__stpcpy_g): Likewise.
7299         (__strncpy_by4): Likewise.
7300         (__strncpy_by2): Likewise.
7301         (__strncpy_byn): Likewise.
7302         (__strncpy_gg): Likewise.
7303         (__strcat_c): Likewise.
7304         (__strcat_g): Likewise.
7305         (__strncat_g): Likewise.
7306         (__strcmp_gg): Likewise.
7307         (__strncmp_g): Likewise.
7308         (__strchr_c): Likewise.
7309         (__strchr_g): Likewise.
7310         (__strchrnul_c): Likewise.
7311         (__strchrnul_g): Likewise.
7312         (__strrchr_c): Likewise.
7313         (__strrchr_g): Likewise.
7314         (__strrchr_c): Likewise.
7315         (__strrchr_g): Likewise.
7316         (__strcspn_c1): Likewise.
7317         (__strcspn_cg): Likewise.
7318         (__strcspn_g): Likewise.
7319         (__strcspn_g): Likewise.
7320         (__strspn_c1): Likewise.
7321         (__strspn_cg): Likewise.
7322         (__strspn_g): Likewise.
7323         (__strspn_g): Likewise.
7324         (__strpbrk_cg): Likewise.
7325         (__strpbrk_g): Likewise.
7326         (__strstr_cg): Likewise.
7327         (__strstr_g): Likewise.
7329         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
7330         Michal Ludvig <mludvig@suse.cz>.
7332         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7333         compatibilty, adjust for kernel changes.
7335         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7336         sigcontext): Adjust for kernel changes.
7338 2002-03-25  Andreas Jaeger  <aj@suse.de>
7340         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7341         little endian.
7342         Reported by Artur Zaprzala <zybi@talex.com.pl>.
7344 2002-03-24  Andreas Jaeger  <aj@suse.de>
7346         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7348         * stdio-common/tst-fdopen.c (main): Remove unused variable.
7350         * iconv/tst-iconv3.c (main): Use correct printf strings.
7352 2002-03-18  Roland McGrath  <roland@frob.com>
7354         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7355         (CMGROUP_MAX): New macro.
7357 2002-03-23  Roland McGrath  <roland@frob.com>
7359         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7360         * sysdeps/posix/shm_unlink.c: Likewise.
7362 2002-03-22  Roland McGrath  <roland@frob.com>
7364         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7365         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7366         under --enable-libio.
7367         * sysdeps/mach/hurd/configure: Regenerated.
7369 2002-03-23  Roland McGrath  <roland@frob.com>
7371         * sysdeps/mach/hurd/i386/Makefile
7372         (sysdep_routines, shared-only-routines): Don't add framestate,
7373         reverting 2001-10-02 change.
7374         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7375         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7376         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7377         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7378         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7379         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7380         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7381         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7382         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7383         Do it here instead, only if [$(unwind-find-fde) = yes].
7385 2002-03-23  Andreas Jaeger  <aj@suse.de>
7387         * signal/signal.h: Fix typo. Patch by Steve Kemp
7388         <skx@tardis.ed.ac.uk>.
7390 2002-03-22  Andreas Jaeger  <aj@suse.de>
7392         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7393         getresuid.
7395         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7396         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7397         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7398         user_fpregs_struct): Rename fwd.
7400         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7401         Follow sigcontext changes.
7403 2002-03-22  Andreas Jaeger  <aj@suse.de>
7405         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
7406         changes for NaNs on MIPS.
7407         Patch by Hartvig Ekner <hartvige@mips.com>.
7409 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
7411         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7412         Use realloc if too large.
7413         (addgrbyid): Likewise.
7414         * nscd/hstcache.c (addhstbyname): Likewise.
7415         (addhstbyaddr): Likewise.
7416         (addhstbynamev6): Likewise.
7417         (addhstbyaddrv6): Likewise.
7418         * nscd/pwdcache.c (addpwbyname): Likewise.
7419         (addpwbyuid): Likewise.
7421 2002-03-21  Andreas Jaeger  <aj@suse.de>
7423         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7424         _fpstate): Add separate struct for x86-64.
7426         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7427         user_fpregs_struct): Change member names to follow kernel.
7429 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
7431         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7432         Correctly close the UDP connection right away [PR libc/3120].
7434 2002-03-20  Andreas Jaeger  <aj@suse.de>
7436         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7437         user_fpregs_struct): Fix for changed kernel struct.
7438         (struct user_regs_struct): Likewise.
7439         (struct user): Likewise.
7440         Add 32-bit x86 compatibility.
7442         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7444 2002-03-19  Andreas Jaeger  <aj@suse.de>
7446         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7448 2002-03-18  Andreas Jaeger  <aj@suse.de>
7450         * iconvdata/Makefile: Only run tests when shared libs are
7451         available.
7453 2002-03-17  Andreas Jaeger  <aj@suse.de>
7455         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7457         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7459         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7460         bits.
7462         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7463         (CAUSE_SHIFT): New macro.
7464         Patch by Hartvig Ekner <hartvige@mips.com>.
7466         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7467         * sysdeps/generic/unwind-pe.h: Likewise.
7469         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7470         type to _IO_setb.
7472         * libio/stdio.c (AL2): Define variant when visibility attribute is
7473         not supported.
7475         * include/libc-symbols.h (_INTVARDEF): Define variant when
7476         visibility attribute is not supported.
7478 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
7480         * po/fr.po: Update from translation team.
7482 2002-02-25  Bruno Haible  <bruno@clisp.org>
7484         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7486 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7488         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7489         buffers if _IO_file_attach failed.
7491         * libio/fileops.c (_IO_file_open): Close file descriptor if
7492         _IO_SEEKOFF call failed.
7494 2002-03-15  H.J. Lu  <hjl@gnu.org>
7495             Ulrich Drepper  <drepper@redhat.com>
7497         * configure.in: Check for availability of
7498         init_array/fini_array/preinit_array handling in binutils.
7499         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7500         * config.make.in (have-initfini-array): New variable.
7502 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7504         * stdio-common/tst-printf.c (main): Comment out one test which
7505         checked the compiler's ability to fold floating-point constants
7506         but not really printf.
7507         (rfg3): Make s const.
7508         * stdio-common/tst-printf.sh: Adjust for removed test.
7510         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7511         internal function.  Adjust for internal_function calling convention.
7512         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7513         as internal_function.
7515         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7516         hidden.
7518         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7519         declaration and definition.
7520         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7521         declaration.
7522         * nss/getXXent_r.c: Likewise.
7523         * nss/nsswitch.h (db_lookup_function): Add internal_function to
7524         definition.
7526         * include/time.h: Declare __localtime_r as hidden.
7528         * include/aliases.h: Declare __getaliasent_r as hidden.
7529         * include/grp.h: Declare __getgrent_r as hidden.
7530         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7531         __getservent_r, and __getprotoent_r as hidden.
7532         * include/pwd.h: Declare __getpwent_r as hidden.
7533         * include/shadow.h: Declare __getspent_r as hidden.
7534         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7536         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7537         and __gconv_transliterate as hidden.
7538         Add internal_function to __gconv_get_path declaration.
7539         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7540         definition.  Add attribute_hidden to __gconv_read_conf definition.
7542 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
7544         * elf/rtld.c: Declare _environ as hidden.
7545         * sysdeps/generic/dl-environ.c: Likewise.
7546         * sysdeps/generic/dl-sysdep.c: Likewise.
7548         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7549         _dl_mcount_internal as hidden.
7551         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7552         * sysdeps/generic/dl-brk.c: New file.
7553         * sysdeps/generic/dl-sbrk.c: New file.
7554         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7555         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7557         * elf/dl-minimal.c (malloc): Declare _end as hidden.
7558         (__errno_location): New function.  Declare errno as hidden.
7559         * elf/rtld.c (_dl_argc): Define as hidden.
7560         (_dl_skip_args): Define as hidden.
7561         (_begin, _end): Declare as hidden.
7562         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7563         * sysdeps/generic/entry.h (_start): Declare as hidden.
7564         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7565         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7566         _dl_runtime_resolve and _dl_runtime_profile as hidden.
7567         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7569 2002-03-14  Roland McGrath  <roland@frob.com>
7571         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7573         * Makeconfig (%.v.i, %.v): New implicit rules.
7574         (preprocess-versions): Variable removed.
7575         ($(common-objpfx)shlib-versions.v.i): New target giving just the
7576         shlib-versions input files as dependencies.
7577         ($(common-objpfx)soversions.i): Depend on that instead of the input
7578         files.  Use it as input instead of using a pipeline.
7579         (postclean-generated): Append soversions.i, shlib-versions.v, and
7580         shlib-versions.v.i here.
7581         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7582         the Versions.def input files as dependencies.
7583         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7584         ($(common-objpfx)Versions.all): Depend on that instead of the input
7585         files.  Use it as input instead of using a pipeline.
7586         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7587         (postclean-generated): Append those .v and .v.i files here.
7589 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7591         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7592         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7593         Remove.
7595 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7597         * sysdeps/generic/mp_clz_tab.c: New file.
7598         * sysdeps/i386/mp_clz_tab.c: New file.
7599         * sysdeps/hppa/mp_clz_tab.c: New file.
7600         * sysdeps/powerpc/mp_clz_tab.c: New file.
7601         * stdlib/Makefile (aux): Revert last patch.
7602         * math/Makefile (gmp-objs): Likewise.
7604 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7606         * time/strftime.c: Comment fixes for references to obsolescent
7607         standards, In most cases the simplest fix is to remove the
7608         confusing comments.  Cross-referencing all the standards properly
7609         is a bit of a pain, and it should be enough to put that info in
7610         the documentation as I did in my recent time.texi patch.
7612 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7614         * manual/time.texi (Formatting Calendar Time):
7615         ISO C99 also specifies the E and O modifiers.
7616         %P is a GNU extension, and is not in ISO C99.
7617         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7618         %T is also in ISO C99.
7619         The RFC 822 example is not valid in arbitrary locales.
7620         Reword the POSIX.2 wording slightly, to make it a bit clearer
7621         that POSIX.2 formats are also supported by later POSIX versions.
7622         If a format was introduced in ISO C99 it is also required by
7623         POSIX.1-2001.
7625 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7627         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7628         _sys_nerr_internal with INTVARDEF2.
7629         * include/libc-symbols.h (INTVARDEF2): New macro.
7630         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7631         (_sys_nerr_internal): Library.
7633         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7634         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7636         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7638 2002-03-13  Wolfram Gloger  <wg@malloc.de>
7640         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7642 2002-03-02  Andreas Schwab  <schwab@suse.de>
7644         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7645         'h' flag and positional arg.
7646         * stdio-common/tst-printf.c (rfg3): New function to test
7647         positional arguments.
7648         (main): Fix some warnings.
7650 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7652         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7653         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7655 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7657         * grp/initgroups.c (__nss_group_data): Declare as hidden.
7659         * include/locale.h (_nl_C_locobj): Declare as hidden.
7661         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7662         * time/strptime.c (_nl_C_LC_TIME): Likewise.
7664         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7666         * include/sys/gmon.h: Declare _gmonparam as hidden.
7668         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7669         (__ctype32_wctrans): Likewise.
7670         (__ctype32_width): Likewise.
7672         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7673         use of __ttyname.
7675         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7676         Define as hidden.
7677         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
7678         hidden.  Change all users of these variables.
7680         * posix/regex_internal.h (__re_error_msgid): Renamed from
7681         re_error_msgid.  Declare as hidden.
7682         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
7683         hidden.
7685         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7686         (__printf_function_table): Likewise.
7687         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7688         hidden.
7689         (__printf_function_table): Likewise.
7691         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7692         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7694         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7695         * nss/nsswitch.c: Declare _nss_*_database as hidden.
7697         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7698         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7700 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
7702         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7703         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7704         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7705         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7706         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7707         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7708         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7709         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7710         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7711         _nl_C_LC_CTYPE_width: Declare as hidden.
7712         * include/locale.h: Declare _nl_locale_file_list.
7713         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
7714         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
7715         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
7716         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
7717         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
7718         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
7719         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
7720         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
7721         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
7722         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
7723         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
7724         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
7725         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7726         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7727         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7728         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7729         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7730         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7731         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7732         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
7733         _nl_C_LC_CTYPE_width, and as hidden.
7734         * locale/findlocale.c: Declare _nl_C as hidden.
7735         * locale/newlocale.c: Likewise.
7736         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
7737         _nl_locale_file_list.
7738         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
7739         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
7740         Define _nl_C_locobj as hidden.
7742         * malloc/mtrace.c (_mtrace_file): Define as hidden.
7743         (_mtrace_line): Likewise.
7745         * include/time.h: Declare __mon_yday as hidden.
7746         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
7748         * libio/libioP.h: Declare __libio_codecvt as hidden.
7749         * libio/fileops.c: Declare __libio_translit as hidden.
7750         * libio/iofwide.c: Define __libio_translit as hidden.
7752         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
7753         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
7754         * login/getutline_r.c: Likewise.
7755         * login/utmpname.c: Likewise.
7757         * login/utmp-private.h: Declare __libc_utmp_file_functions,
7758         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
7759         __libc_utmp_file_name as hidden.
7761         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
7762         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
7763         * locale/freelocale.c: Likewise.
7764         * locale/lc-time.c: Likewise.
7766         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
7767         (__libc_ptyname2): Likewise.
7768         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
7769         hidden.
7770         (__libc_ptyname2): Likewise.
7772         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
7773         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
7774         * sysdeps/generic/init-first.c: Likewise.
7775         * sysdeps/i386/init-first.c: Likewise.
7776         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7777         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7778         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7779         * sysdeps/sh/init-first.c: Likewise.
7780         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7781         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7783         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
7784         (_itowa_upper_digits): Likewise.
7786         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
7787         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
7788         as hidden.
7790         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
7791         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
7792         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
7793         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
7795         * gmon/gmon.c (__bb_head): Define as hidden.
7796         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
7798         * argp/argp-parse.c (_argp_hang): Define as static.
7800         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
7801         handling in latest compilers.
7803         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
7804         define alias.
7805         * libio/fileops.c (_IO_file_jumps): Likewise.
7806         * libio/stdfiles.c (_IO_list_all): Likewise.
7807         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
7809         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
7810         include/malloc.h.
7811         * include/malloc.h: Add __libc_malloc_initialized declaration
7812         here.  Mark variable hidden.
7813         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
7815         * elf/dl-open.c (__libc_argc): Declare as hidden.
7816         (__libc_argv): Likewise.
7817         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
7818         (__libc_argv): Likewise.
7819         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
7820         __libc_argv as hidden.
7821         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7822         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7823         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7824         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7826         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
7827         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
7828         * stdlib/erand48.c: Likewise.
7829         * stdlib/jrand48.c: Likewise.
7830         * stdlib/lcong48.c: Likewise.
7831         * stdlib/lrand48.c: Likewise.
7832         * stdlib/mrand48.c: Likewise.
7833         * stdlib/nrand48.c: Likewise.
7834         * stdlib/seed48.c: Likewise.
7835         * stdlib/srand48.c: Likewise.
7837         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
7838         (_itoa_lower_digits_internal): New declaration.
7839         (_itoa_upper_digits_internal): New declaration.
7840         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
7841         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
7842         (_itoa_upper_digits_internal): New declaration.
7843         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
7844         _itoa_lower_digits.
7845         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
7846         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
7848         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
7849         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7851         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
7852         (_itowa_lower_digits): Likewise.
7853         (_itowa_upper_digits): Likewise.
7854         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
7855         (_itowa_upper_digits): Likewise.
7857         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
7858         not already defined.
7859         (GERMANIC_PLURAL): Declare as hidden.
7861         * posix/getopt.c (__getopt_initialized): Declare as hidden.
7862         (attribute_hidden): Define as empty macro if not already defined.
7864         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
7865         (__gconv_max_path_elem_len): Likewise.
7866         (__gconv_path_envvar): Likewise.
7868         * math/Makefile (gmp-objs): Remove mp_clz_tab.
7869         * stdlib/Makefile (aux): Remove mp_clz_tab.
7870         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
7872         * stdlib/exit.h (__exit_funcs): Declare as hidden.
7874         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
7876         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
7877         _nl_category_names, _nl_category_name_sizes, _nl_current,
7878         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
7880         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
7881         (_nl_current_default_domain): Likewise
7882         (_nl_state_lock): Likewise.
7883         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
7884         (_nl_current_default_domain): Likewise
7885         (_nl_state_lock): Likewise.
7886         * intl/bindtextdom.c (_nl_state_lock): Likewise.
7888         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
7889         (_fpioconst_pow10): Likewise.
7891         * include/time.h (_tmbuf): Add attribute_hidden.
7893         * time/tzset.c (tzstring_list): Define as static.
7895         * include/time.h: Add attribute_hidden to __tzname_cur_max and
7896         __use_tzfile declaration.
7898         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
7899         and __wcsmbs_last_locale declaration.
7901 2002-02-25  Paul Eggert  <eggert@twinsun.com>
7903         * timezone/Makefile (tzbases): Move systemv from here...
7904         (tzlinks): to here, since the entries in systemv were all changed
7905         from Zone to Link lines in tz-2001a.  Bug reported (and patch
7906         tested) by Peter Breitenlohner.
7908 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
7910         * time/tst-posixtz.c (tests): Add new tests.
7911         (main): Test whether tzset() sets daylight properly.
7913 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
7915         * time/tzset.c (tz_compute): Move __daylight, __tzname and
7916         __tzname_cur_max setting...
7917         (tzset_internal): ...here.
7919 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
7921         * time/tzset.c (compute_change): Don't return any value.
7922         (tz_compute): Likewise.  Don't handle southern hemisphere here.
7923         (__tz_convert): But here.
7925 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
7927         * manual/examples/mkfsock.c: Include <string.h> as well.
7928         Patch by Alain De Carolis <alaind@wseurope.com>.
7930 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
7932         * posix/regexec.c (re_match): Fix incorrect register sizes.
7933         (re_search): Likewise.
7935 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
7937         * posix/regcomp.c (regfree): Remove a disused condition.
7938         * posix/regex_internal.c (re_acquire_state): Likewise.
7939         (re_acquire_state_context): Likewise.
7940         (register_state): Remove a redundant malloc invocation.
7941         * posix/regex_internal.h: (re_state_table_entry): Simplify
7942         the structure.
7944 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
7946         * posix/regcomp.c (regcomp): Add __builtin_expect to error
7947         handling conditions.
7948         (regerror): Likewise.
7949         (regfree): Likewise.
7950         (re_compile_internal): Likewise.
7951         (init_dfa): Likewise.
7952         (init_word_char): Likewise.
7953         (create_initial_state): Likewise.
7954         (analyze): Likewise.
7955         (analyze_tree): Likewise.
7956         (duplicate_node): Likewise.
7957         (calc_eclosure): Likewise.
7958         (calc_eclosure_iter): Likewise.
7959         (parse): Likewise.
7960         (parse_reg_exp): Likewise.
7961         (parse_branch): Likewise.
7962         (parse_expression): Likewise.
7963         (parse_subexp): Likewise.
7964         (parse_dup_op): Likewise.
7965         (parse_bracket_exp): Likewise.
7966         (build_equiv_class): Likewise.
7967         (build_charclass): Likewise.
7968         (build_word_op): Likewise.
7969         (fetch_number): Likewise.
7970         (create_tree): Likewise.
7971         (duplicate_tree): Likewise.
7972         * posix/regex.c (BE): New macro.
7973         * posix/regexec.c (re_match): Add __builtin_expect to error
7974         handling conditions.
7975         (re_match_2): Likewise.
7976         (re_search): Likewise.
7977         (re_search_internal): Likewise.
7978         (check_matching): Likewise.
7979         (proceed_next_node): Likewise.
7980         (set_regs): Likewise.
7981         (sift_states_backward): Likewise.
7982         (add_epsilon_backreference): Likewise.
7983         (transit_state): Likewise.
7984         (transit_state_sb): Likewise.
7985         (transit_state_mb): Likewise.
7986         (transit_state_bkref): Likewise.
7987         (transit_state_bkref_loop): Likewise.
7988         (build_trtable): Likewise.
7989         (group_nodes_into_DFAstates): Likewise.
7990         (match_ctx_init): Likewise.
7991         (match_ctx_add_entry): Likewise.
7992         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
7993         to error handling conditions.
7994         (re_string_construct_toupper): Likewise.
7995         (build_wcs_buffer): Likewise.
7996         (build_wcs_upper_buffer): Likewise.
7997         (build_upper_buffer): Likewise.
7998         (re_string_translate_buffer): Likewise.
7999         (re_node_set_alloc): Likewise.
8000         (re_node_set_init_1): Likewise.
8001         (re_node_set_init_2): Likewise.
8002         (re_node_set_init_copy): Likewise.
8003         (re_node_set_intersect): Likewise.
8004         (re_node_set_init_union): Likewise.
8005         (re_node_set_merge): Likewise.
8006         (re_node_set_insert): Likewise.
8007         (re_dfa_add_node): Likewise.
8008         (re_acquire_state): Likewise.
8009         (re_acquire_state_context): Likewise.
8010         (create_new_state_common): Likewise.
8011         (register_state): Likewise.
8012         (create_ci_new_state): Likewise.
8013         (create_cd_new_state): Likewise.
8014         (re_string_context_at): Remove redundant condition.
8016 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8018         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8020         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8022 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8024         * sysdeps/i386/elf/configure.in: Fix comment.
8026         * sysdeps/sparc/sparc64/configure.in: New file.
8027         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8028         if .dynamic comes before .got.
8029         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8031         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8032         HP_TIMING_ACCUM): Fix typos.
8034 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8036         * string/strfry.c: Add some more randomness to the seed.
8037         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8039         * po/es.po: Update from translation team.
8040         * po/fr.po: Likewise.
8042         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8044         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8045         when determining type of format.
8046         Patch by James Antill <james@anqd.org> [PR libc/2787].
8048 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8050         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8052 2002-03-11  Roland McGrath  <roland@frob.com>
8054         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8056         * Versions.def (libc): Add GLIBC_2.2.6.
8057         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8058         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8059         __errno_location instead of __hurd_errno_location, and don't inline it.
8060         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8061         * hurd/errno.c: New file.
8062         * hurd/Makefile (routines): Add errno.
8064 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8066         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8067         ridiculously large widths and precisions [PR libc/3026].
8069 2002-03-11  Andreas Jaeger  <aj@suse.de>
8071         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8072         support.
8073         Patch by Susanne Oberhauser <froh@SuSE.de>.
8075 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8077         * inet/rexec.c (ahostbuf): Define as static.
8079         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8080         (__ctype32_wctrans): Likewise.
8081         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8082         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8083         (__ctype32_wctrans): Likewise.
8084         (__ctype32_width): Likewise.
8086         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8087         They were never exported anyway.
8089         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8090         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8091         exported.
8092         * include/sys/gmon.h: Declare _gmonparam.
8094         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8095         symbols for getdents64.  They were never exported.
8097 2002-03-09  Roland McGrath  <roland@frob.com>
8099         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8100         Reported by Jon Arney <jarney1@cox.net>.
8102 2002-02-23  Roland McGrath  <roland@frob.com>
8104         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8105         declaration.
8106         (__hurd_errno_location): Function removed.
8108 2002-03-06  Andreas Jaeger  <aj@suse.de>
8110         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8111         32-bit.
8113 2002-03-04  Andreas Jaeger  <aj@suse.de>
8115         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8117         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8118         x86-64.
8120         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8122         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8124         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8126         * sysdeps/x86_64/bits/setjmp.h: New file.
8128         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8130         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8132         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8133         for x86.
8134         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8135         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8137 2002-02-28  Bo Thorsen  <bo@suse.de>
8139         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8140         version.
8142 2002-03-03  Andreas Jaeger  <aj@suse.de>
8144         * sysdeps/x86_64/bits/wordsize.h: New file.
8146         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8147         * elf/tst-tlsmod1.c: Likewise.
8149         * posix/regcomp.c: Get regex.h from include dir for internal
8150         prototypes.
8152         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8153         to libc-internal.h and include it.
8154         * include/libc-internal.h: Add __init_misc.
8156         * misc/init-misc.c: Include libc-internal.h for prototypes.
8158         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8160         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8161         _IO_putc_internal.
8163 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8165         * posix/regcomp.c: Compatibility changes to allow using the code
8166         outside glibc.
8168 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8170         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8171         compiled non-PIC.
8173 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8175         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8176         of .str elements in the returned data structure.
8178         * elf/elf.h: Add Alpha TLS bits.
8180 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8182         * sysdeps/unix/sysv/linux/nice.c: New file.
8184 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8186         * elf/Makefile (dl-routines): Add dl-origin.
8187         (elide-routines.os): Add dl-origin.
8188         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8189         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8190         _dl_debug_state.
8191         * include/libc-symbols.c: Define attribute_hidden depending on
8192         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8194         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8195         * elf/dl-load.c: Likewise.
8196         * elf/rtld.c: Likewise.
8197         * include/unistd.h: Declare __libc_enable_secure_internal.
8198         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8199         Use INTUSE with __libc_enable_secure.
8200         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8202         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8203         * elf/dl-error.c: Likewise,
8204         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8206         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8207         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8208         function definition.  Use INTDEF with _dl_get_origin.
8209         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8211         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8212         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8214         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8215         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8216         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8218         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8219         * elf/dl-deps.c: Likewise.
8220         * elf/dl-error.c: Likewise.
8221         * elf/dl-fini.c: Likewise.
8222         * elf/dl-init.c: Likewise.
8223         * elf/dl-load.c: Likewise.
8224         * elf/dl-lookup.c: Likewise.
8225         * elf/dl-reloc.c: Likewise.
8226         * elf/dl-version.c: Likewise.
8227         * elf/do-lookup.h: Likewise.
8228         * sysdeps/arm/dl-machine.h: Likewise.
8229         * sysdeps/cris/dl-machine.h: Likewise.
8230         * sysdeps/hppa/dl-machine.h: Likewise.
8231         * sysdeps/i386/dl-machine.h: Likewise.
8232         * sysdeps/m68k/dl-machine.h: Likewise.
8233         * sysdeps/powerpc/dl-machine.h: Likewise.
8234         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8235         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8236         * sysdeps/sh/dl-machine.h: Likewise.
8237         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8238         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8239         * sysdeps/x86_64/dl-machine.h: Likewise.
8240         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8241         _dl_argv[0].  Use INTUSE with _dl_argv.
8242         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8243         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8245 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8247         * elf/rtld.c (_rtld_global): Remove .protected.
8248         (_rtld_local): Strong alias to _rtld_global.
8249         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8250         only .os object.
8251         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8252         _rtld_local instead of _rtld_global.
8253         (_rtld_local): Add hidden extern, possibly in .sdata section.
8254         * configure.in: Add tests for visibility attribute and .sdata.
8255         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8256         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8257         * sysdeps/arm/dl-machine.h: Likewise.
8258         * sysdeps/generic/ldsodefs.h: Likewise.
8259         * sysdeps/hppa/dl-machine.h: Likewise.
8260         * sysdeps/cris/dl-machine.h: Likewise.
8261         * sysdeps/i386/dl-machine.h: Likewise.
8262         * sysdeps/ia64/dl-machine.h: Likewise.
8263         * sysdeps/m68k/dl-machine.h: Likewise.
8264         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8265         * sysdeps/mips/dl-machine.h: Likewise.
8266         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8267         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8268         * sysdeps/sh/dl-machine.h: Likewise.
8269         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8270         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8271         * sysdeps/x86_64/dl-machine.h: Likewise.
8273 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8275         * login/login.c (login): Always initialize ut_line field
8276         [PR libc/2991].
8278 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8280         * sysdeps/i386/Makefile (sysdep_routines): Add
8281         divdi3 in csu dir.
8282         (shared-only-routines): Likewise.
8283         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8284         (shared-only-routines): Likewise.
8285         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8286         (shared-only-routines): Likewise.
8287         * sysdeps/wordsize-32/divdi3.c: New file.
8289 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8291         * locale/iso-4217.def: Remove obsolete currencies for countries
8292         with Euro.
8294 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8296         * posix/regcomp.c (regcomp): Remove a redundant condition.
8297         (init_word_char): Add a check on malloc failure.
8298         (create_initial_state): Likewise.
8299         (duplicate_node): Likewise.
8300         (calc_eclosure): Likewise.
8301         (calc_eclosure_iter): Likewise.
8302         (parse_expression): Likewise.
8303         (parse_bracket_exp): Remove unnecessary malloc invocations.
8304         (build_equiv_class): Likewise.
8305         (build_charclass): Likewise.
8306         * posix/regex_internal.c (re_node_set_intersect): Add a check
8307         on malloc failure.
8308         (re_node_set_add_intersect): Likewise.
8309         (re_node_set_merge): Likewise.
8310         (re_acquire_state): Likewise.
8311         (re_acquire_state_context): Likewise.
8312         (create_newstate_common): Likewise.
8313         (register_state): Likewise.
8314         (create_ci_newstate): Likewise.
8315         (create_cd_newstate): Likewise.
8316         * posix/regex_internal.h: Fix prototypes of re_acquire_state
8317         and re_acquire_state_context.
8318         * posix/regexec.c (regexec): Suit it to the error handling of
8319         re_search_internal.
8320         (re_match): Likewise.
8321         (re_search): Likewise.
8322         (re_search_internal): Add a check on malloc failure.
8323         (acquire_init_state_context): Likewise.
8324         (check_matching): Likewise.
8325         (proceed_next_node): Likewise.
8326         (set_regs): Likewise.
8327         (sift_states_backward): Likewise.
8328         (sift_states_iter_bkref): Likewise.
8329         (add_epsilon_backreference): Likewise.
8330         (transit_state): Likewise.
8331         (transit_state_sb): Likewise.
8332         (transit_state_mb): Likewise.
8333         (transit_state_bkref_loop): Likewise.
8334         (build_trtable): Likewise.
8335         (group_nodes_into_DFAstates): Likewise.
8336         (match_ctx_init): Likewise.
8337         (match_ctx_add_entry): Likewise.
8339 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8341         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8342         l_libname if profiling is enabled [PR libc/2916].
8344         * sysdeps/ia64/dl-tls.h: New file.
8346 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
8348         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8349         Work around an Alpha gas bug.
8351 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8353         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8354         uses read to load the catalog.
8355         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8357 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
8359         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8360         regex_internal.c, and regex_internal.h.
8361         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8362         * posix/regex.c: Complete rewrite.
8363         * posix/regexec.c: New file.
8364         * posix/regcomp.c: New file.
8365         * posix/regex_internal.c: New file.
8366         * posix/regex_internal.h: New file.
8367         * posix/regex.h (RE_ICASE): New macro.
8368         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8370         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8371         ungetwc.  It's a macro.
8372         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8373         implementation.
8374         Reported by Jason Merrill <jason@redhat.com>.
8376 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8378         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8379         position to fp->_offset if it is set.
8380         * stdio-common/Makefile (tests): Add tst-fdopen.
8381         * stdio-common/tst-fdopen.c: New test.
8383 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8385         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8386         * stdio-common/tst-ungetc.c (main): Add another test.
8388 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
8390         * assert/assert-perr.c: Use INTUSE to reference functions and variables
8391         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
8392         aliases.  Add prototypes for the new aliases.
8393         * assert/assert.c: Likewise.
8394         * include/libc-symbols.h: Likewise.
8395         * include/stdio.h: Likewise.
8396         * include/netinet/in.h: Likewise.
8397         * include/rpc/auth.h: Likewise.
8398         * include/rpc/auth_unix.h: Likewise.
8399         * include/rpc/key_prot.h: Likewise.
8400         * include/rpc/pmap_prot.h: Likewise.
8401         * include/rpc/pmap_rmt.h: Likewise.
8402         * include/rpc/rpc_msg.h: Likewise.
8403         * include/rpc/xdr.h: Likewise.
8404         * inet/gethstbyad_r.c: Likewise.
8405         * inet/gethstbynm2_r.c: Likewise.
8406         * inet/gethstbynm_r.c: Likewise.
8407         * inet/gethstent_r.c: Likewise.
8408         * inet/in6_addr.c: Likewise.
8409         * libio/__fpurge.c: Likewise.
8410         * libio/filedoalloc.c: Likewise.
8411         * libio/fileops.c: Likewise.
8412         * libio/ftello.c: Likewise.
8413         * libio/ftello64.c: Likewise.
8414         * libio/genops.c: Likewise.
8415         * libio/iofclose.c: Likewise.
8416         * libio/iofdopen.c: Likewise.
8417         * libio/iofflush.c: Likewise.
8418         * libio/iofflush_u.c: Likewise.
8419         * libio/iofgetpos.c: Likewise.
8420         * libio/iofgetpos64.c: Likewise.
8421         * libio/iofgets.c: Likewise.
8422         * libio/iofgets_u.c: Likewise.
8423         * libio/iofopen.c: Likewise.
8424         * libio/iofopncook.c: Likewise.
8425         * libio/iofputs.c: Likewise.
8426         * libio/iofread.c: Likewise.
8427         * libio/iofread_u.c: Likewise.
8428         * libio/iofsetpos.c: Likewise.
8429         * libio/iofsetpos64.c: Likewise.
8430         * libio/ioftell.c: Likewise.
8431         * libio/iofwrite.c: Likewise.
8432         * libio/iogetline.c: Likewise.
8433         * libio/iogets.c: Likewise.
8434         * libio/iogetwline.c: Likewise.
8435         * libio/iolibio.h: Likewise.
8436         * libio/iopadn.c: Likewise.
8437         * libio/iopopen.c: Likewise.
8438         * libio/ioseekoff.c: Likewise.
8439         * libio/ioseekpos.c: Likewise.
8440         * libio/iosetbuffer.c: Likewise.
8441         * libio/iosetvbuf.c: Likewise.
8442         * libio/ioungetc.c: Likewise.
8443         * libio/ioungetwc.c: Likewise.
8444         * libio/iovdprintf.c: Likewise.
8445         * libio/iovsprintf.c: Likewise.
8446         * libio/iovsscanf.c: Likewise.
8447         * libio/libioP.h: Likewise.
8448         * libio/memstream.c: Likewise.
8449         * libio/obprintf.c: Likewise.
8450         * libio/oldfileops.c: Likewise.
8451         * libio/oldiofclose.c: Likewise.
8452         * libio/oldiofdopen.c: Likewise.
8453         * libio/oldiofgetpos.c: Likewise.
8454         * libio/oldiofgetpos64.c: Likewise.
8455         * libio/oldiofopen.c: Likewise.
8456         * libio/oldiofsetpos.c: Likewise.
8457         * libio/oldiofsetpos64.c: Likewise.
8458         * libio/oldiopopen.c: Likewise.
8459         * libio/oldstdfiles.c: Likewise.
8460         * libio/putc.c: Likewise.
8461         * libio/setbuf.c: Likewise.
8462         * libio/setlinebuf.c: Likewise.
8463         * libio/stdfiles.c: Likewise.
8464         * libio/stdio.c: Likewise.
8465         * libio/strops.c: Likewise.
8466         * libio/vasprintf.c: Likewise.
8467         * libio/vscanf.c: Likewise.
8468         * libio/vsnprintf.c: Likewise.
8469         * libio/vswprintf.c: Likewise.
8470         * libio/wfiledoalloc.c: Likewise.
8471         * libio/wfileops.c: Likewise.
8472         * libio/wgenops.c: Likewise.
8473         * libio/wstrops.c: Likewise.
8474         * malloc/mtrace.c: Likewise.
8475         * misc/error.c: Likewise.
8476         * misc/syslog.c: Likewise.
8477         * nss/getXXbyYY_r.c: Likewise.
8478         * nss/getXXent_r.c: Likewise.
8479         * nss/hosts-lookup.c: Likewise.
8480         * stdio-common/getw.c
8481         * stdio-common/printf-prs.c: Likewise.
8482         * stdio-common/printf_fp.c: Likewise.
8483         * stdio-common/printf_size.c: Likewise.
8484         * stdio-common/putw.c: Likewise.
8485         * stdio-common/scanf.c: Likewise.
8486         * stdio-common/sprintf.c: Likewise.
8487         * stdio-common/tmpfile64.c: Likewise.
8488         * stdio-common/vfprintf.c: Likewise.
8489         * stdio-common/vfscanf.c: Likewise.
8490         * stdlib/strfmon.c: Likewise.
8491         * sunrpc/auth_des.c: Likewise.
8492         * sunrpc/auth_none.c: Likewise.
8493         * sunrpc/auth_unix.c: Likewise.
8494         * sunrpc/authdes_prot.c: Likewise.
8495         * sunrpc/authuxprot.c: Likewise.
8496         * sunrpc/clnt_perr.c: Likewise.
8497         * sunrpc/clnt_raw.c: Likewise.
8498         * sunrpc/clnt_tcp.c: Likewise.
8499         * sunrpc/clnt_udp.c: Likewise.
8500         * sunrpc/clnt_unix.c: Likewise.
8501         * sunrpc/key_call.c: Likewise.
8502         * sunrpc/key_prot.c: Likewise.
8503         * sunrpc/openchild.c: Likewise.
8504         * sunrpc/pm_getmaps.c: Likewise.
8505         * sunrpc/pm_getport.c: Likewise.
8506         * sunrpc/pmap_clnt.c: Likewise.
8507         * sunrpc/pmap_prot.c: Likewise.
8508         * sunrpc/pmap_prot2.c: Likewise.
8509         * sunrpc/pmap_rmt.c: Likewise.
8510         * sunrpc/rpc_cmsg.c: Likewise.
8511         * sunrpc/rpc_prot.c: Likewise.
8512         * sunrpc/svc_authux.c: Likewise.
8513         * sunrpc/svc_raw.c: Likewise.
8514         * sunrpc/svc_simple.c: Likewise.
8515         * sunrpc/svc_tcp.c: Likewise.
8516         * sunrpc/svc_udp.c: Likewise.
8517         * sunrpc/svc_unix.c: Likewise.
8518         * sunrpc/xdr.c: Likewise.
8519         * sunrpc/xdr_array.c: Likewise.
8520         * sunrpc/xdr_mem.c: Likewise.
8521         * sunrpc/xdr_rec.c: Likewise.
8522         * sunrpc/xdr_ref.c: Likewise.
8523         * sunrpc/xdr_stdio.c: Likewise.
8524         * sysdeps/generic/_strerror.c: Likewise.
8525         * sysdeps/generic/printf_fphex.c: Likewise.
8526         * sysdeps/generic/tmpfile.c: Likewise.
8527         * sysdeps/gnu/errlist.awk: Likewise.
8528         * sysdeps/gnu/errlist.c: Likewise.
8530         * libio/Makefile (routines): Remove iosprint.
8531         * libio/iosprintf.c: Removed
8534 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
8536         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8537         non_dynamic_init and exported now.
8538         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8539         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8540         !SHARED.
8541         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8542         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8543         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8545 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
8547         * elf/dl-close.c (free_slotinfo): Check for end of list and return
8548         true in this case.
8550         * locale/iso-639.def: Add language codes for Walloon.
8552         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8553         total number of relocations performed.
8555         * elf/sprof.c (load_profdata): If do_test provide information as
8556         to why loading failed.
8557         * elf/dl-profile.c (_dl_start_profile): Initialize all of
8558         hist_hdr.dimen.
8560         * csu/set-init.c: Moved to...
8561         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
8562         * csu/Makefile: Don't compile set-init.
8563         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8564         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8565         to __libc_init.
8566         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8567         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8568         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8569         __libc_init.
8570         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
8571         __libc_subinit.
8573 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
8575         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8576         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8577         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8578         (_dl_deallocate_tls): New function.
8579         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8580         _dl_deallocate_tls.
8582 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8584         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8585         * stdio-common/tst-fseek.c (main): Add test for this.
8587 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
8589         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8591 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
8593         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8594         pointer before dereferencing.
8596 2002-02-18  Roland McGrath  <roland@frob.com>
8598         * sysdeps/mach/hurd/times.c: Fix typo in last change.
8600         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8601         Use task_policy in place of task_priority.
8603         * sysdeps/generic/bits/mman.h
8604         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8605         * sysdeps/mach/msync.c: New file.
8607         * sysdeps/mach/powerpc/syscall.S: New file.
8609         * mach/msg.c [MACH_MSG_OVERWRITE]
8610         (__mach_msg_trap, __mach_msg_overwrite): New functions.
8611         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8613         * sysdeps/mach/configure.in: Check for clock.defs to put into
8614         mach_interface_list.
8615         * sysdeps/mach/configure: Regenerated.
8617         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8618         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8619         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8620         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8621         (mach-shortcuts): Add device_read_overwrite_request,
8622         device_read_overwrite, vm_read_overwrite, thread_switch.
8624         * configure.in (base_machine): Set to $machine by default.
8625         * configure: Regenerated.
8627         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8628         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8629         * sysdeps/mach/configure: Regenerated.
8630         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8632         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8634         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8636         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8637         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8639 2002-02-17  Roland McGrath  <roland@frob.com>
8641         * sysdeps/mach/hurd/times.c
8642         [NO_CREATION_TIME] (startup_time): New static variable.
8643         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8644         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8645         creation_time from task_basic_info.
8646         (__times): Use __gettimeofday instead of __host_get_time.
8648         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8649         Use untyped Mach IPC message format.
8651         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8653         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8654         _S_catch_exception_raise_state_identity,
8655         _hurdsig_fault_catch_exception_raise_state,
8656         _hurdsig_fault_catch_exception_raise_state_identity.
8658         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8660         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8661         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8663         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8664         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8666         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8667         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
8668         them as no-op macros.
8669         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8670         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8672         * sysdeps/powerpc/dl-machine.h
8673         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8675         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8676         Use untyped Mach IPC message format.
8678         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8679         Handle untyped Mach IPC message formats.
8681         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8682         Expect different argument conventions when this is defined.
8683         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8684         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8685         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8686         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8687         for OSF Mach variant.
8688         (faulted): Use mig_reply_error_t for REPLY.
8689         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8690         in __thread_set_exception_ports call.
8691         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8692         __mach_port_set_attributes in place of __mach_port_set_qlimit.
8694         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8695         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8696         on Darwin, which includes bogons.
8698         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8699         variable LOADBASE so it's not declared when it's not used.
8701 2002-02-16  Roland McGrath  <roland@frob.com>
8703         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8704         to use BI.creation_time.
8706         * mach/Machrules (MIG): Add -x c to CPP value passed down.
8708         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8709         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8710         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8711         host_page_size instead of vm_statistics.
8713         * sysdeps/mach/Makefile (mach-before-compile): Don't include
8714         mach_interface.h here, since not all variants use that name.
8716         * sysdeps/mach/configure.in: Add some checks for Mach headers
8717         to ensure a sane installation.
8718         (mach_interface_list): Define this variable by checking for .defs
8719         files found in various variants.
8720         * configure.in (mach_interface_list): AC_SUBST this.
8721         * config.make.in (mach-interface-list): New substituted variable.
8722         * mach/Makefile (user-interfaces): Define this using the value
8723         of $(mach-interface-list) instead of mach, mach4.
8724         Updated other references to mach_interface to use it as well.
8726         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
8728         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
8729         mig_reply_error_t for OSF Mach variant.
8731         * mach/Makefile (routines): Remove bootprivport.
8732         * mach/bootprivport.c: File removed.  It has never been used.
8734         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
8735         Grok the OSF flavor of message format.
8736         (mach_msg_destroy_port): For MAKE_SEND and
8737         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
8738         no-senders notification.
8740 2002-02-06  Roland McGrath  <roland@frob.com>
8742         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
8743         to here if 2.0 compatibility enabled ...
8744         (libc: GLIBC_2.1.3): ... from here.
8746 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
8748         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
8749         generation counter.
8750         * elf/dl-close.c (_dl_close): Likewise.
8752 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
8754         * elf/Makefile: Add rules to build and run tst-tls8.
8755         * elf/tst-tls8.c: New file.
8756         * elf/tst-tlsmod4.c: New file.
8758         * stdlib/test-a64l.c (tests): Add more test cases.
8760         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
8761         Reported by Walter Harms <WHarms@bfs.de>.
8763 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
8765         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
8766         definitions for struct sigcontext.
8767         Suggested by David Mosberger-Tang.
8769 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8771         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
8772         for removing reference of module in slotinfo list.
8773         (_dl_close): Use remove_slotinfo.
8774         * sysdeps/generic/dl-tls.c: General pretty printing.
8775         (oom): Define only if SHARED.
8776         (_dl_next_tls_modid): Correct starting point for the case we assume
8777         there is a gap.  Add missing instruction grouping (doh!).  Correct
8778         tests for reaching maximum index.
8779         * elf/Makefile: Add rules to build and run tst-tls7.
8780         * elf/tst-tls7.c: New file.
8781         * elf/tst-tlsmod3.c: New file.
8783         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
8784         USE_TLS.
8785         * elf/tst-tlsmod2.c: Likewise.
8787         * elf/dl-close.c (_dl_close): When closing an object using TLS
8788         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
8789         true.  Increment dl_tls_generation only if we closed any TLS-using
8790         object.
8791         * elf/tst-tls6.c: New file.
8792         * elf/Makefile: Add rules to build and run tst-tls6.
8794         * po/da.po: Update from translation team.
8796         * locale/categories.def: Fix typo [PR libc/2948].
8797         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
8798         [PR libc/2949].
8799         * locale/iso-4217.def: Update from official version [PR libc/2950].
8800         * glibcbug.in: Honor TMPDIR [PR libc/2951].
8801         * locale/programs/ld-collate.c (collate_finish): Bail out with a
8802         message if input is too confusion instead of using assert.
8803         (collate_read): Don't crash on unknown symbol [PR libc/2952].
8804         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
8806         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
8807         * elf/tst-tls2.c: Likewise.
8808         * elf/tst-tls3.c: Likewise.
8810 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
8812         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
8814 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8816         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
8817         if this is really necessary.
8819         * elf/dl-close.c (_dl_close): Implement freeing entries in the
8820         slotinfo array.
8821         (free_mem): Free memory for the slotinfo array if possible.
8823 2002-02-12  Andreas Schwab  <schwab@suse.de>
8825         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
8827 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
8829         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
8830         TLS_DTV_UNALLOCATE.
8831         (oom): New function.
8832         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
8833         (_dl_determine_tlsoffset): Likewise.
8834         (_dl_allocate_tls): Likewise.
8835         (__TLS_GET_ADDR): Define if not already defined.
8836         (_dl_tls_symaddr): New function.
8837         (allocate_and_init): New function.
8838         (__tls_get_addr): Actually implement handling of generation counter
8839         and deferred allocation.
8840         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
8841         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8842         _dl_tls_generation.
8843         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
8844         Declare _dl_tls_symaddr.
8845         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
8846         SHARED.
8847         * include/link.h (struct link_map):  Remove l_tls_nextimage and
8848         l_tls_previmage.
8849         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
8850         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
8851         (_dl_vsym): Likewise.
8852         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
8853         layout.
8854         (dl_main): Allow PT_TLS be present for empty segment.  Remove
8855         nextimage list handling.  Instead add all modules using TLS to
8856         dl_tls_dtv_slotinfo_list.
8857         * elf/dl-open.c (dl_open_worker): After successfully loading all
8858         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
8859         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
8860         empty segment don't do anything.  Remove handling of initimage list.
8861         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
8862         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
8863         * elf/dl-minimal.c: Define __libc_memalign.
8864         * elf/dl-support.c: Remove _dl_initimage_list.  Add
8865         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8866         _dl_tls_generation.
8867         * include/stdlib.h: Declare __libc_memalign.
8869         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
8870         * elf/tst-tls4.c: New file.
8871         * elf/tst-tls5.c: New file.
8872         * elf/tst-tlsmod2.c: New file.
8874         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
8876         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
8878         * elf/tst-tls1.c: Use test-skeleton.c.
8879         * elf/tst-tls2.c: Likewise.
8880         * elf/tst-tls3.c: Likewise.
8882         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
8884 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
8886         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
8888 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
8890         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
8892         * elf/tst-tls3.c: New file.
8893         * elf/tst-tlsmod1.c: New file.
8894         * elf/Makefile: Add rules to build and run tst-tls3.
8896         * sysdeps/i386/dl-machine.h: Include <tls.h>.
8897         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
8898         TLS relocations.
8900         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
8902         * po/fr.po: Update from translation team.
8904         * elf/tls-macros.h: Add alternative macros for use in PIC.
8906         * elf/dl-lookup.c: Include <tls.h>.
8907         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
8909         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
8910         required by passing pointer to last element of the list.
8912         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
8913         l_tls_initimage to a place where it actually is performed.
8915         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
8916         after globfree() calls.
8918         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
8919         (openaux): Pass open_mode as new last argument to _dl_map_object.
8920         (_dl_map_object_deps): Add new argument open_mode.  Initialize
8921         open_mode element of args variable with it.
8922         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
8923         _dl_map_object_deps.
8924         * elf/rtld.c (dl_main): Add zero as last parameter to
8925         _dl_map_object_deps call.
8926         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
8927         * elf/nodlopen2.c: New file.
8928         * elf/nodlopenmod2.c: New file.
8929         * elf/Makefile: Add rules to build and run nodlopen2.
8931         * elf/tst-tls1.c: Move TLS helper macros to...
8932         * elf/tls-macros.h: ...here.  New file.
8933         * elf/tst-tls2.c: New file.
8934         * elf/Makefile (tests): Add tst-tls2.
8935         (distribute): Add tls-macros.h.
8937         * po/sv.po: Update from translation team.
8939         * elf/tst-tls1.c (main): Add complete set of tests.  Split
8940         architecture specific definitions from the actual test code.
8942         * po/tr.po: Update from translation team.
8944 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
8946         * elf/Makefile (tests): Add tst-tls1.
8947         * elf/tst-tls1.c: New file.
8949         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
8950         alignment of TCB for now.
8952         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
8953         initialization image for the application itself.
8955         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
8956         loop to initialize TLS block.
8958 2002-02-08  Richard Henderson  <rth@redhat.com>
8960         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
8961         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
8963         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
8965 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
8967         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
8969 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
8971         * po/ca.po: Update from translation team.
8972         * po/sk.po: Likewise.
8974         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
8975         (dl_main): Move dtv/static TLS handling before relocation.
8976         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
8977         TLS_INIT_TP to allocate and install the dtv/static TLS block.
8978         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
8979         so far uses TLS initialize GL(dl_tls_static_size) and
8980         GL(dl_tls_static_align) to account for the TCB.
8981         (_dl_allocate_tls): New function.
8982         * sysdeps/generic/ldsodefs.h (rtld_global): Add
8983         _dl_initial_dtv_malloced.
8985         * configure.in: Test for __builtin_memset more realistically.
8987         * csu/version.c (banner): If TLS support is available say so.
8989 2002-02-04  H.J. Lu  <hjl@gnu.org>
8991         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
8992         __attribute_used__.
8993         (__dl_runtime_resolve): Likewise.
8995         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
8996         declaration.
8998 2001-11-15  H.J. Lu  <hjl@gnu.org>
9000         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9001         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9003         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9005 2002-02-07  H.J. Lu  <hjl@gnu.org>
9007         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9008         ".set noreorder".
9009         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9010         Likewise.
9012 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9014         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9016         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9017         ___tls_get_addr_internal.
9018         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9020         * po/ko.po: Update from translation team.
9022 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9024         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9025         attribute, change __pad{1,2} type to unsigned int.
9026         (struct stat64): Remove packed attribute.
9028 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9030         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9032 2002-02-07  Andreas Schwab  <schwab@suse.de>
9034         * configure.in: Fix check for -zcombreloc.
9036 2002-02-06  H.J. Lu  <hjl@gnu.org>
9038         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9039         * configure.in: Check if __builtin_memset really works.
9040         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9041         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9043 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9045         * io/bug-ftw3.c (main): Don't try the test if root.
9047 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9049         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9050         constraints.
9051         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9052         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9053         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9054         Likewise.
9055         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9056         a weak alias for __clone.
9057         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9058         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9059         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9060         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9061         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9062         a weak alias for __mmap64.
9064 2002-02-05  H.J. Lu  <hjl@gnu.org>
9066         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9067         (atomic_add): Likewise.
9068         (compare_and_swap): Likewise.
9069         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9071 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9073         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9075         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9076         alignment of the TCB and store total size and alignment of static
9077         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9078         tls_index is a typedef.
9079         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9080         _dl_tls_static_align.
9081         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9082         * elf/dl-support.c: Define _dl_tls_static_size and
9083         _dl_tls_static_align.
9085 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9087         * configure.in: Add --without-tls option.
9088         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9089         --without-tls is given.
9091         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9093         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9095 2002-02-06  Roland McGrath  <roland@frob.com>
9097         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9098         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9100         * scripts/versions.awk: Improve error message for missing version.
9101         Each version inherits from the last one only if they have the same
9102         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9103         but not GLIBC_x and FOO_y.
9105         * scripts/firstversions.awk: Handle libraries that don't have each
9106         particular version named in the third column of shlib-versions.
9108         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9110 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9112         * Versions.def [ld]: Add GLIBC_2.3.
9113         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9114         * elf/Makefile (dl-routines): Add dl-tls.
9115         (distribute): Add dl-tls.h.
9116         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9117         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9118         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9119         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9120         along with the other info in the link map.  Change queueing of init
9121         images for double linked list.  Use _dl_next_tls_modid to compute
9122         l_tls_modid.
9123         * elf/rtld.c (_dl_start_final): Store alignment requirement
9124         along with the other info in rtld map and executable map.
9125         (dl_main): Add ld.so to the init image list if necessary.  Compute
9126         final module ID with _dl_next_tls_modid.
9127         * include/link.h (struct link_map): Add l_tls_previmage and
9128         l_tls_align.
9129         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9130         * sysdeps/i386/elf/Versions: New file.
9131         * sysdeps/generic/dl-tls.c: New file.
9132         * sysdeps/generic/dl-tls.h: New file.
9133         * sysdeps/i386/dl-tls.h: New file.
9135 2002-02-06  Roland McGrath  <roland@frob.com>
9137         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9138         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9140 2002-01-05  Roland McGrath  <roland@frob.com>
9142         * sysdeps/mach/configure.in: New file.
9143         * sysdeps/mach/configure: New generated file.
9145         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9146         It has never been used by anything.
9148 2002-02-06  H.J. Lu  <hjl@gnu.org>
9150         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9151         is included.
9153 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9155         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9156         attribute((packed)) to counter stupid people misusing gcc options.
9157         (struct stat64): Likewise.
9159 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9161         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9162         the variables which are used as booleans.
9164 2002-02-06  Andreas Jaeger  <aj@suse.de>
9166         * include/libc-symbols.h (INTUSE): Renamed from INT.
9167         * elf/dl-deps.c: Change users.
9168         * sysdeps/generic/dl-sysdep.c: Likewise.
9169         * sysdeps/generic/dl-cache.c: Likewise.
9170         * elf/dl-reloc.c: Likewise.
9171         * elf/rtld.c: Likewise.
9172         * elf/dl-version.c: Likewise.
9173         * elf/dl-load.c: Likewise.
9174         * elf/dl-dst.h: Likewise.
9175         * elf/dl-init.c: Likewise.
9176         * elf/dl-error.c: Likewise.
9177         * elf/dl-fini.c: Likewise.
9178         * elf/dl-runtime.c: Likewise.
9179         * elf/do-lookup.h: Likewise.
9181         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9182         definition.
9183         * stdio-common/_itowa.h: Likewise.
9185 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9187         * elf/dl-minimal.c: Define _itoa_lower_digits.
9189         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9190         DT_FLAGS set.
9192         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9193         loading modules with the DF_STATIC_TLS flag set.
9194         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9195         element.
9196         * include/link.h (struct link_map): Add l_flags field.
9197         * elf/elf.h (DF_STATIC_TLS): New definition.
9199         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9200         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9202         * elf/rtld.c (process_dl_debug): Correct printing help message.
9203         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9204         for %s.
9206         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9207         definition and pass &errno in use of this variable.
9208         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9210 2002-02-04  Andreas Schwab  <schwab@suse.de>
9212         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9213         * locale/programs/charmap-dir.c: Wrap calls that output messages
9214         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9215         * locale/programs/charmap.c: Likewise.
9216         * locale/programs/ld-address.c: Likewise.
9217         * locale/programs/ld-collate.c: Likewise.
9218         * locale/programs/ld-ctype.c: Likewise.
9219         * locale/programs/ld-identification.c: Likewise.
9220         * locale/programs/ld-measurement.c: Likewise.
9221         * locale/programs/ld-messages.c: Likewise.
9222         * locale/programs/ld-monetary.c: Likewise.
9223         * locale/programs/ld-name.c: Likewise.
9224         * locale/programs/ld-numeric.c: Likewise.
9225         * locale/programs/ld-paper.c: Likewise.
9226         * locale/programs/ld-telephone.c: Likewise.
9227         * locale/programs/ld-time.c: Likewise.
9228         * locale/programs/linereader.c: Likewise.
9229         * locale/programs/linereader.h: Likewise.
9230         * locale/programs/localedef.c: Likewise.
9231         * locale/programs/locfile.c: Likewise.
9232         * locale/programs/repertoire.c: Likewise.
9234 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9236         * elf/rtld.c (_dl_start_final): Determine load address to locate
9237         ehdr with GL(dl_rtld_map).l_map_start.
9239         * po/ca.po: Update from translation team.
9241         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9242         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9243         header entry.
9244         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9245         _dl_tls_module_cnt.
9246         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9248 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9250         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9251         * include/link.h (struct link_map): Add various members for TLS
9252         information.
9253         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9254         _rtld_tlsoffset, add _dl_initimage_list.
9255         * sysdeps/i386/dl-lookupcfg.h: New file.
9256         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9257         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9258         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9259         is used.
9261         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9262         unused.
9264         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9265         thread-pointer as soon as possible.
9266         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9267         elements in rtld_global.
9268         * sysdeps/generic/tls.h: New file.
9269         * elf/Makefile (distribute): Add tls.h.
9270         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9271         relocations.  Not complete yet.
9273         * resolv/resolv.h: Allow user to define __need_res_state and only
9274         define __res_start structure then.
9275         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9277         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9278         dl_cpuclock_offset initialization to _dl_start_final.
9279         (_dl_show_auxv): Avoid unnecessary sign extension.
9280         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9282 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9284         * config.h.in: Add HAVE_TLS_SUPPORT.
9285         * sysdeps/i386/elf/configure.in: New file.
9287 2002-02-03  Andreas Schwab  <schwab@suse.de>
9289         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9290         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9292 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9294         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9295         alloca if the memory reqirements are too high.
9297 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9299         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9300         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9301         the former is available anyway and speed isn't important here.
9302         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9303         * elf/dl-version.c (match_symbol): Likewise.
9304         (_dl_check_map_versions): Likewise.
9305         * elf/rtld.c (process_envvars): Likewise.
9306         (print_statistics): Likewise.
9307         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9308         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9309         bases.  Add assert to catch uses of unimplemented features.
9310         (__strsep): Add assert to catch uses of unimplemented features.
9311         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9312         and avoid inline optimization.
9313         * elf/rtld.c (process_envvars): Likewise.
9314         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9315         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9316         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9318 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9320         * stdio-common/_itoa.h: Minor simplifications of the code.
9321         * stdio-common/_itoa.c: Likewise.
9323         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9324         instead of _dl_printf for debugging info output.
9326         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9327         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9329 2002-02-01  H.J. Lu  <hjl@gnu.org>
9331         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9332         (atomic_add): Likewise.
9333         (compare_and_swap): Return 0 only when failed to compare. Use
9334         branch likely.
9336         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9337         branch likely.
9339 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9341         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9343 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9345         * elf/dl-minimal.c (__strsep): New minimal implementation.
9347 2002-02-02  Paul Eggert  <eggert@twinsun.com>
9349         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9350         (__mktime_internal): If no tm_isdst is requested, prefer solutions
9351         with tm_isdst > 0 when the requested time falls within a
9352         spring-forward gap [PR libc/2894].
9354 2002-02-03  Andreas Schwab  <schwab@suse.de>
9356         * stdio-common/tst-rndseek.c: Increase timeout.
9358 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9360         Change ld.so to not use functions which are exported.  One cannot
9361         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
9362         definitions.
9363         * include/libc-symbols.h: Define INT and INTDEF.
9364         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9365         _dl_signal_error_internal, _dl_map_object_internal,
9366         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9367         _dl_lookup_versioned_symbol_internal,
9368         _dl_relocate_object_internal, _dl_debug_state_internal,
9369         _dl_start_profile_internal, and _dl_unload_cache_internal.
9370         * include/dlfcn.h: Declare _dl_catch_error_internal.
9371         * elf/rtld.c: Use INT for calls to any of the *_internal functions
9372         above.  Add INTDEF to function definitions.
9373         * elf/dl-debug.c: Likewise.
9374         * elf/dl-deps.c: Likewise.
9375         * elf/dl-dst.h: Likewise.
9376         * elf/dl-error.c: Likewise.
9377         * elf/dl-fini.c: Likewise.
9378         * elf/dl-init.c: Likewise.
9379         * elf/dl-load.c: Likewise.
9380         * elf/dl-lookup.c: Likewise.
9381         * elf/dl-misc.c: Likewise.
9382         * elf/dl-open.c: Likewise.
9383         * elf/dl-profile.c: Likewise.
9384         * elf/dl-reloc.c: Likewise.
9385         * elf/dl-runtime.c: Likewise.
9386         * elf/dl-version.c: Likewise.
9387         * elf/do-lookup.h: Likewise.
9388         * sysdeps/generic/dl-cache.c: Likewise.
9389         * sysdeps/generic/dl-sysdep.c: Likewise.
9390         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9391         instead of _dl_init.
9392         * sysdeps/arm/dl-machine.h: Likewise.
9393         * sysdeps/cris/dl-machine.h: Likewise.
9394         * sysdeps/hppa/dl-machine.h: Likewise.
9395         * sysdeps/i386/dl-machine.h: Likewise.
9396         * sysdeps/ia64/dl-machine.h: Likewise.
9397         * sysdeps/m68k/dl-machine.h: Likewise.
9398         * sysdeps/mips/dl-machine.h: Likewise.
9399         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9400         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9401         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9402         * sysdeps/sh/dl-machine.h: Likewise.
9403         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9404         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9405         * sysdeps/x86_64/dl-machine.h: Likewise.
9406         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9408         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9409         and _dl_debug_initialize.
9411         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
9412         more information.
9413         * elf/rtld.c (dl_main): Avoid strrchr.
9414         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9415         result of readlink.  Search from the back for '/'.
9417         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9418         strncpy if possible.
9420         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
9421         strncmp.
9422         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
9423         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9424         strspn, and strcspn.
9425         (process_envvars): Don't use strcspn.
9427         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9428         (_dl_dst_substitute): Likewise.
9430 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9432         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9433         code which is never used when relocating ld.so itself.
9435         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9436         starting ld.so itself.  Move l_addr variable initialization closer
9437         to use.
9438         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9440 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9442         * Versions.def (libc): Add GLIBC_PRIVATE.
9443         (libdb, libnss_db, libdb1): Remove.
9444         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9445         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9446         (libpthread): Add GLIBC_PRIVATE.
9447         (libresolv): Likewise, remove GLIBC_2.1.
9448         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9449         GLIBC_2.2.3, GLIBC_2.3.
9450         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9451         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9452         _dl_sym, _dl_vsym): Likewise.
9453         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9454         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9455         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9456         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9457         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9458         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9459         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9460         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9461         Likewise.
9462         (_dl_object_relocation_scope): Remove.
9463         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9464         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9465         __gconv_cache): Move to GLIBC_PRIVATE.
9466         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9467         __internal_setnetgrent): Likewise.
9468         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9469         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9470         * locale/Versions (__collate_element_hash, __collate_element_strings,
9471         __collate_symbol_classes, __collate_symbol_hash,
9472         __collate_symbol_strings, _nl_current_LC_COLLATE,
9473         _nl_current_LC_CTYPE): Likewise.
9474         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9475         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9476         (libnss_nis, libnss_nisplus): Likewise.
9477         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9478         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9479         (libnss_files): Move all symbols to GLIBC_PRIVATE.
9480         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9481         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9482         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9483         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9484         __ns_get16, __ns_samename): Likewise.
9485         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9486         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9487         GLIBC_PRIVATE.
9488         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9489         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9490         __libc_connect): Likewise.
9491         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9492         Likewise.
9493         * stdlib/Versions (__libc_system): Likewise.
9494         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9495         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9496         * sysdeps/ia64/fpu/Versions: Likewise.
9497         * sysdeps/ia64/Versions: Likewise.
9498         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9499         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9500         to GLIBC_PRIVATE.
9501         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9502         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9503         __libc_sigaction): Likewise.
9504         * termios/Versions (__libc_tcdrain): Likewise.
9506         * misc/sys/cdefs (__attribute_noinline__): Define.
9507         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9508         __attribute_noinline__.
9510         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9511         * elf/dl-xstat64.c: New file.
9512         * elf/dl-fxstat64.c: New file.
9513         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9514         don't export __fxstat64 at multiple versions.
9515         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9516         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9518 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
9520         * locale/program/ld-collate.c (collate_finish): Assign a wide
9521         char collation sequence value to multi character collating
9522         elements, and avoid over writing by non-character elements.
9524 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9526         * elf/Makefile (distribute): Add dl-procinfo.c.
9527         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9528         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9530 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9532         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9533         definition.
9534         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9535         _rtld_global struct.
9536         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9537         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9538         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9539         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9540         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9541         _dl_fpu_control_set): Remove unused externs.
9542         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9543         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9544         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9545         related variables in _rtld_global struct.
9546         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9547         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9548         unused extern.
9550 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9552         * sysdeps/generic/dl-procinfo.c: New file.
9554 2002-02-01  Andreas Schwab  <schwab@suse.de>
9556         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9558 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9560         * elf/rtld.c (_dl_start): Mark as internal_function.
9561         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9562         in register.
9563         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9564         General pretty printing.
9566 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9568         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9569         * elf/dl-reloc.c: Pretty printing.
9570         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9571         procinfo-related variables in rtld_global struct.
9572         * elf/dl-support.c: Likewise.
9573         * elf/rtld.c: Likewise.
9574         * sysdeps/i386/i686/Makefile: Likewise.
9575         * sysdeps/i386/i686/hp-timing.c: Likewise.
9576         * sysdeps/i386/i686/hp-timing.h: Likewise.
9577         * sysdeps/ia64/Makefile: Likewise.
9578         * sysdeps/ia64/hp-timing.c: Likewise.
9579         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9580         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9581         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9582         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9583         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9584         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9585         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9586         * sysdeps/x86_64/Makefile: Likewise.
9588         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9589         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9590         _dl_debug_fd to rtld_global.
9591         * elf/Versions: Likewise.
9592         * elf/dl-close.c: Likewise.
9593         * elf/dl-iteratephdr.c: Likewise.
9594         * elf/dl-lookup.c: Likewise.
9595         * elf/dl-misc.c: Likewise.
9596         * elf/dl-open.c: Likewise.
9597         * elf/dl-support.c: Likewise.
9598         * elf/do-lookup.h: Likewise.
9599         * elf/rtld.c: Likewise.
9600         * sysdeps/generic/dl-cache.c: Likewise.
9601         * sysdeps/generic/dl-sysdep.c: Likewise.
9602         * sysdeps/ia64/Versions: Likewise.
9603         * sysdeps/unix/clock_gettime.c: Likewise.
9604         * sysdeps/unix/clock_settime.c: Likewise.
9605         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9606         * sysdeps/sparc/Versions: Removed.
9607         * sysdeps/i386/i686/Versions : Removed.
9608         * sysdeps/x86_64/Versions: Removed.
9609         * configure.in: Define HAVE_PROTECTED if .protected is available.
9610         * config.h.in: Add entry for HAVE_PROTECTED.
9612 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
9614         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9615         code in struct _rtld_global.  Export this struct, remove all
9616         exports for the signal variables.
9617         * sysdeps/arm/dl-machine: Likewise.
9618         * sysdeps/generic/dl-origin: Likewise.
9619         * sysdeps/generic/dl-sysdep: Likewise.
9620         * sysdeps/generic/dl-cache: Likewise.
9621         * sysdeps/hppa/dl-fptr: Likewise.
9622         * sysdeps/hppa/dl-machine: Likewise.
9623         * sysdeps/cris/dl-machine: Likewise.
9624         * sysdeps/i386/dl-machine: Likewise.
9625         * sysdeps/ia64/dl-machine: Likewise.
9626         * sysdeps/m68k/dl-machine: Likewise.
9627         * sysdeps/mach/hurd/dl-sysdep: Likewise.
9628         * sysdeps/mips/mips64/dl-machine: Likewise.
9629         * sysdeps/mips/dl-machine: Likewise.
9630         * sysdeps/powerpc/elf/libc-start: Likewise.
9631         * sysdeps/powerpc/dl-machine: Likewise.
9632         * sysdeps/powerpc/dl-start: Likewise.
9633         * sysdeps/sparc/sparc32/dl-machine: Likewise.
9634         * sysdeps/sparc/sparc64/dl-machine: Likewise.
9635         * sysdeps/sh/dl-machine: Likewise.
9636         * sysdeps/s390/s390-32/dl-machine: Likewise.
9637         * sysdeps/s390/s390-64/dl-machine: Likewise.
9638         * sysdeps/unix/sysv/aix/libc-start: Likewise.
9639         * sysdeps/unix/sysv/aix/start-libc: Likewise.
9640         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9641         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9642         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9643         * sysdeps/x86_64/dl-machine: Likewise.
9645 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9647         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9648         are too high.
9650 2002-01-31  Andreas Schwab  <schwab@suse.de>
9652         * sysdeps/posix/readv.c: Check for ssize_t overflow.
9654 2002-01-31  Andreas Schwab  <schwab@suse.de>
9656         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9657         reference to _dl_pagesize.
9659 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
9661         * Versions.def [ld]: Add GLIBC_2.3.
9662         * elf/dl-addr.c: Move global variables for SHARED code in struct
9663         _rtld_global.  Export this struct, remove all exports for the
9664         signal variables.
9665         * elf/dl-close.c: Likewise.
9666         * elf/dl-conflict.c: Likewise.
9667         * elf/dl-debug.c: Likewise.
9668         * elf/dl-deps.c: Likewise.
9669         * elf/dl-dst.h: Likewise.
9670         * elf/dl-error.c: Likewise.
9671         * elf/dl-fini.c: Likewise.
9672         * elf/dl-init.c: Likewise.
9673         * elf/dl-iteratephdr.c: Likewise.
9674         * elf/dl-libc.c: Likewise.
9675         * elf/dl-load.c: Likewise.
9676         * elf/dl-lookup.c: Likewise.
9677         * elf/dl-minimal.c: Likewise.
9678         * elf/dl-object.c: Likewise.
9679         * elf/dl-open.c: Likewise.
9680         * elf/dl-profile.c: Likewise.
9681         * elf/dl-profstub.c: Likewise.
9682         * elf/dl-reloc.c: Likewise.
9683         * elf/dl-runtime.c: Likewise.
9684         * elf/dl-support.c: Likewise.
9685         * elf/dl-sym.c: Likewise.
9686         * elf/dl-version.c: Likewise.
9687         * elf/do-lookup.h: Likewise.
9688         * elf/do-rel.h: Likewise.
9689         * elf/dynamic-link.h: Likewise.
9690         * elf/rtld.c: Likewise.
9691         * sysdeps/generic/dl-cache.c: Likewise.
9692         * sysdeps/generic/dl-sysdep.c: Likewise.
9693         * sysdeps/generic/ldsodefs.h: Likewise.
9694         * sysdeps/generic/libc-start.c: Likewise.
9695         * sysdeps/i386/dl-machine.h: Likewise.
9696         * sysdeps/ia64/dl-fptr.c: Likewise.
9697         * sysdeps/ia64/dl-machine.h: Likewise.
9698         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9699         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9700         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9701         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9702         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9703         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9704         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9705         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9707 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9709         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9710         to avoid warning
9711         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9713         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
9714         SHARED version.
9715         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
9717         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
9719 2002-01-29  Ben Collins  <bcollins@debian.org>
9721         * string/bits/string2.h (__mempcpy): Protect size arg for
9722         addition when using __builtin_memcpy.
9724 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9726         * stdlib/Makefile (tests): Add tst-qsort.
9727         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
9729         * manual/signal.texi (Process Signal Mask): Document that
9730         pthread_sigmask, not sigprocmask, must be used in MT programs.
9731         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
9733         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
9734         found.
9735         * misc/Makefile (tests): Add tst-hsearch.
9736         * misc/tst-hsearch.c: New file.
9738 2002-01-18  Wolfram Gloger  <wg@malloc.de>
9740         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
9741         * malloc/malloc.h: Likewise.
9742         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
9743         * malloc/arena.c: New file.
9744         * malloc/hooks.c: New file.
9745         * malloc/tst-mallocstate.c: New file.
9746         * malloc/Makefile: Add new testcase tst-mallocstate.
9747         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
9749 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9751         * stdlib/msort.c: Remove last patch.  The optimization violates the
9752         same rule which qsort.c had problems with.
9754 2002-01-27  Paul Eggert  <eggert@twinsun.com>
9756         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
9757         to a pivot element that lies outside the array to be sorted, as
9758         ISO C99 requires that the comparison function be called only with
9759         addresses of array elements [PR libc/2880].
9761 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9763         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
9764         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
9766         * timezone/asia: Update from tzdata2002b.
9767         * timezone/australasia: Likewise.
9768         * timezone/backward: Likewise.
9769         * timezone/europe: Likewise.
9770         * timezone/leapseconds: Likewise.
9771         * timezone/iso3166.tab: Likewise.
9772         * timezone/zone.tab: Likewise.
9774 2002-01-23  Richard Henderson  <rth@redhat.com>
9776         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
9778 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9780         * string/strxfrm.c: Allocate one more byte for rulearr and clear
9781         this element [PR libc/2855].
9783         * string/strcoll.c: Handle zero-length arguments specially
9784         [PR libc/2856].
9786 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
9788         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
9789         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
9790         short lengths and constant src.
9791         (strcpy): Don't optimize for gcc 3.0+.
9792         (__stpcpy): For gcc 3.0+, don't use
9793         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
9794         for short string literal src.
9796 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9798         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
9799         Set for arm, too.
9801 2001-01-22  Paul Eggert  <eggert@twinsun.com>
9803         * manual/llio.texi (Linked Channels, Cleaning Streams):
9804         Make it clearer that a just-opened input stream might need cleaning.
9806 2002-01-21  H.J. Lu  <hjl@gnu.org>
9808         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9809         Don't use label at end of compound statement.
9811 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
9813         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
9814         Remove test for negative integer arg; sin_pi does it correctly.
9816 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
9818         * nscd/Makefile (distribute): Filter out xmalloc.c.
9820 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
9822         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
9823         Set offset if read end wasn't the buffer end.
9824         (_IO_file_seekoff_mmap): New function.
9825         (_IO_file_xsgetn_mmap): New function.
9826         (_IO_file_jumps_mmap): Use the two new functions.
9827         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
9828         != end buffer.
9829         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
9830         _IO_file_underflow_mmap.
9831         * libio/iofopen.c: Don't position file descriptor at end of file.
9832         * libio/tst-widetext.c: Improve error messages.
9833         * stdio-common/tst-rndseek.c: Likewise.
9835 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
9837         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
9838         end of enum for !_GNU_SOURCE.
9839         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
9840         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
9841         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
9842         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
9843         values unless _GNU_SOURCE.
9845         * iconvdata/tcvn5712-1.c: Minor cleanups.
9847 2002-01-18  Andreas Schwab  <schwab@suse.de>
9849         * sysdeps/unix/sysv/linux/configure.in
9850         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
9852 2002-01-16  Roger Sayle  <roger@eyesopen.com>
9854         * stdlib/msort.c (msort_with_tmp): Replace implementation with
9855         more efficient "Towers of Hanoi" mergesort.
9856         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
9857         for generic, sizeof(int) and sizeof(long) variants respectively.
9859 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
9861         * manual/syslog.texi (openlog): Describe possible problems with
9862         first parameter.
9863         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9865         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
9866         * nscd/connections.c (begin_drop_privileges): New function.
9867         (finish_drop_privileges): New function.
9868         (nscd_init): Call the new functions which also install all groups
9869         for the server user.
9870         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
9871         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9873 2002-01-17  H.J. Lu  <hjl@gnu.org>
9875         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
9876         `const' from `got'.
9878 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9880         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
9881         instructions for pointer operations.
9882         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
9884 2002-01-17  Andreas Jaeger  <aj@suse.de>
9886         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
9887         __uint128_t build-in.
9889         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
9890         PowerPC, sync with 2.2 branch.
9892 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
9894         * posix/getconf.c: Update copyright year.
9895         * nss/getent.c: Likewise.
9896         * nscd/nscd_nischeck.c: Likewise.
9897         * iconv/iconvconfig.c: Likewise.
9898         * iconv/iconv_prog.c: Likewise.
9899         * elf/ldconfig.c: Likewise.
9900         * catgets/gencat.c: Likewise.
9901         * csu/version.c: Likewise.
9902         * elf/ldd.bash.in: Likewise.
9903         * elf/sprof.c (print_version): Likewise.
9904         * locale/programs/locale.c: Likewise.
9905         * locale/programs/localedef.c: Likewise.
9906         * nscd/nscd.c (print_version): Likewise.
9907         * debug/xtrace.sh: Likewise.
9908         * malloc/memusage.sh: Likewise.
9909         * malloc/mtrace.pl: Likewise.
9911 2002-01-16  Andreas Schwab  <schwab@suse.de>
9913         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
9914         reliably remove "-ia64" from rtld name.
9916 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
9918         * iconvdata/gb18030.c: Bug fixes and support for more characters.
9919         Patch by Yu Shao <yshao@redhat.com>.
9921 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9923         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
9924         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
9925         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
9927 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9929         * sysdeps/s390/fpu/libm-test-ulps: Update.
9931 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
9933         * elf/elf.h: Update x86 relocations.
9935 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
9937         * locale/programs/charmap.c (new_width): Check whether byte
9938         sequences for both ends of range have the same length.
9940 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
9942         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
9944 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
9946         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
9947         string literals.
9948         (__full_ieee754_sqrt): Add __attribute_used__.
9950 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
9952         * sysdeps/generic/group_member.c (__group_member): Also check
9953         groups[0] [PR libc/2781].
9955 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
9957         * Makefile (distribute): Add scripts/cpp.
9958         * elf/Makefile (distribute): Add reldep6mod[01234].c,
9959         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
9960         unwind-dw2-fde.h, and dwarf2.h.
9961         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
9962         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
9963         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
9964         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
9966 2002-01-07  Roland McGrath  <roland@frob.com>
9968         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
9969         volatile on type of ARGC so the compiler doesn't get clever.
9971 2002-01-07  Andreas Jaeger  <aj@suse.de>
9973         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
9974         * sysdeps/i386/bits/byteswap.h: Likewise.
9975         * sysdeps/ia64/bits/byteswap.h: Likewise.
9976         * sysdeps/m68k/bits/byteswap.h: Likewise.
9977         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
9978         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
9980 2002-01-02  Bruno Haible  <bruno@clisp.org>
9982         * intl/plural.y: Fix %expect count.
9984 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
9986         * elf/Makefile (routines, shared-only-routines): Add
9987         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
9988         * elf/elf.h (PT_GNU_EH_FRAME): Define.
9989         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
9990         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
9991         Optimize if .eh_frame section contains no FDEs.
9992         (__register_frame, __deregister_frame_info_bases,
9993         __deregister_frame): Likewise.
9994         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
9995         DW_CFA_restore handling.
9997 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
9999         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10001         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10002         for x < 0.25 and restore original range reduction method.
10003         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10005 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10007         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10008         (_IO_file_close_mmap): New function.
10009         (_IO_file_jumps_mmap): New variable.
10010         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10011         trying to convert rest of byte buffer.
10012         (_IO_wfile_underflow_mmap): New function.
10013         (_IO_wfile_jumps_mmap): New variable.
10014         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10015         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10016         (_IO_new_fopen): Call __fopen_internal.
10017         * libio/iofopen64.c: Just call __fopen_internal.
10018         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10019         successfully.
10020         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10021         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10022         _IO_file_close_mmap.
10024         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10025         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10027         * stdio-common/Makefile (tests): Add tst-rndseek.
10028         * stdio-common/tst-rndseek.c: New file.
10030 2002-01-05  Roland McGrath  <roland@frob.com>
10032         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10033         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10034         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10035         * sysdeps/mach/hurd/configure: Regenerated.
10037 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10039         * elf/elf.h: Add more TLS definitions.
10041 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10043         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10045 2002-01-02  Roland McGrath  <roland@frob.com>
10047         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10048         __sigisemptyset.  Don't use MASK uninitialized.
10050         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10051         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10052         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10053         __sigdelset, __sigaddset, __sigorset.
10055         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10056         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10058         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10059         _hurd_ports is null.
10061         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10062         for old CMU and new OSF Mach interface flavors.
10063         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10064         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10066         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10068         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10069         Pass extra arguments to task_create for OSF variant.
10070         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10072         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10073         conditional on [HAVE_AUX_VECTOR].
10075         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10076         mach_msg_timeout_t as type of final argument.
10078         * hurd/privports.c (__get_privileged_ports):
10079         Change host_priv_t to mach_port_t in argument type.
10080         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10081         Update decls.
10083         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10084         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10085         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10086         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10087         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10088         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10090 2002-01-01  Roland McGrath  <roland@frob.com>
10092         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10094 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10096         * include/stdlib.h: Define inlines for the _l variants of the strto*
10097         functions.
10099 2002-01-01  Roland McGrath  <roland@frob.com>
10101         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10103         * mach/Machrules (MIG): Set CPP as well as CC.
10105 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10107         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10108         locale to parse /proc/loadavg [PR libc/2760].
10110 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10112         * elf/dl-conflict.c: Include sys/param.h.
10113         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10114         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10115         warning.
10116         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10117         literals to avoid warnings.
10119 2001-12-31  Andreas Jaeger  <aj@suse.de>
10121         * configure.in: Don't check for gsed since we do not use it anywhere.
10123 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10125         * io/fts.c: Update from BSD to fix memory leaks.
10127 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10129         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10130         * elf/chroot_canon.c: Likewise.
10131         * elf/dl-object.c: Likewise.
10132         * iconv/iconv_charmap.c: Likewise.
10133         * iconv/iconv_prog.c: Likewise.
10134         * libio/iogetdelim.c: Likewise.
10135         * locale/lc-time.c: Likewise.
10136         * stdlib/canonicalize.c: Likewise.
10137         * sunrpc/svc.c: Likewise.
10138         * sysdeps/generic/glob.c: Likewise.
10140 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10142         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10143         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10144         remove high order bit from the program counter.
10145         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10147 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10149         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10150         unnecessary code and add missing reloc types.
10151         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10152         case for reloc type R_390_NONE.
10154 2001-12-28  Andreas Jaeger  <aj@suse.de>
10156         * io/bug-ftw3.c: Include string.h for prototypes.
10158         * crypt/md5test.c (main): Remove unused variable.
10160         * dlfcn/modstatic.c: Add prototype to avoid warning.
10162 2001-12-26  Roland McGrath  <roland@frob.com>
10164         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10165         check only (SS->pending & MASK) for the signal to return.
10166         From Jeroen Dekkers <jeroen@dekkers.cx>.
10168 2001-12-22  Roland McGrath  <roland@frob.com>
10170         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10171         Use preprocessor #if conditionals instead of `if' to avoid
10172         warnings about divide by zero in dead code.
10174         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10175         _hurd_port_init, and __hurd_self_sigstate.
10177         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10179 2001-12-21  Andreas Jaeger  <aj@suse.de>
10181         * elf/dblloadmod1.c: Add prototype to avoid warning.
10182         * elf/dblloadmod2.c: Likewise.
10183         * elf/dblloadmod3.c: Likewise.
10184         * elf/reldepmod5.c: Likewise.
10185         * elf/reldepmod6.c: Likewise.
10187         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10188         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10189         used on all architectures.
10191         * sunrpc/svc_tcp.c: Add noreturn attribute for
10192         svctcp_rendezvous_abort.
10193         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10195         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10196         to avoid warning.
10198 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10200         * manual/llio.texi (aio_fsync): Fix a typo.
10201         Patch by Tammy Fox <tfox@redhat.com>.
10203 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10205         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10206         stack bias from child stack pointer before passing it to clone syscall.
10208 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10210         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10211         _SC_TZNAME_MAX.
10212         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10213         Reported by Thorsten Kukuk <kukuk@suse.de>.
10215         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10216         add some casts.
10218         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10220 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10222         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10223         conforming: return EBADF if file descriptor is invalid and EINVAL
10224         if file descriptor is no valid tty.
10225         * login/tst-grantpt.c: New file.
10226         * login/Makefile (tests): Add tst-grantpt.
10228 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10230         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10231         different than implemented in last patch.
10232         * io/bug-ftw3.c: Adjust test for changed handling of
10233         inaccessibility of toplevel dir.
10235 2001-12-16  Roland McGrath  <roland@frob.com>
10237         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10238         * grp/initgroups.c (internal_getgrouplist): Likewise.
10240         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10241         `default:' to silence new GCC warning.
10242         Rewrite cast of lvalue to silence new GCC warning.
10244         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10246         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10247         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10249 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10251         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10252         Patch by Stephen R. van den Berg.
10254         * crypt/md5.h: Define md5_uintptr.
10256 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10258         * libio/tst_swprintf.c (main): Add test for string argument with
10259         zero precision.
10260         * stdio-common/Makefile (tests): Add tst-sprintf.
10261         * stdio-common/tst-sprintf.c: New file.
10263 2001-12-13  Andreas Schwab  <schwab@suse.de>
10265         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10266         zero precision with wide character string format.
10268 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10270         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10271         but have a user supplied buffer, return the empty buffer, not NULL.
10273 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10275         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10276         Patch by Eric Sharkey <sharkey@netrics.com>.
10278         * crypt/md5test.c (main): Add test for multiple calls to
10279         __md5_process_bytes to itererate over input string.
10281 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10283         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10284         from __nis_findfastest.  Take timeout value from parameter.
10285         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10286         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10287         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10289 2001-12-12  Andreas Jaeger  <aj@suse.de>
10291         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10292         combreloc test so that it works in this case.
10294         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10296 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10298         * sysdeps/sh/Makefile: New file.
10299         * sysdeps/sh/_mcount.S: New file.
10300         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10301         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10303 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10305         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10306         limitation [PR libc/2564].
10308 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10310         * elf/Makefile (dl-routines): Add conflict.
10311         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10312         (ld.so): Add _begin local symbol.
10313         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10314         Define.
10315         * elf/dl-deps.c (_dl_build_local_scope): New function.
10316         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10317         of all libraries.
10318         * elf/do-rel.h (VALIDX): Define.
10319         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10320         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10321         can be skipped.
10322         * elf/dl-conflict.c: New file.
10323         * elf/dl-lookup.c (_dl_debug_bindings): New function.
10324         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
10325         non-NULL.
10326         (_dl_lookup_symbol_skip): Likewise.
10327         (_dl_lookup_versioned_symbol): Likewise.
10328         (_dl_lookup_versioned_symbol_skip): Likewise.
10329         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10330         define to ElfW(Rel).
10331         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10332         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10333         ranges.
10334         Don't adjust address dynamic tags if l_addr is 0.
10335         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10336         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10337         (VALIDX, ADDRIDX): Define.
10338         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10339         (dl_main): Print library list for LD_TRACE_PRELINKING.
10340         If prelinking information can be used, skip relocating libraries and
10341         call _dl_resolve_conflicts instead.
10342         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10343         * elf/dl-load.c (_dl_map_object): Don't create fake libs
10344         if LD_TRACE_PRELINKING.
10345         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10346         + DT_ADDRNUM.
10347         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10348         (DL_DEBUG_PRELINK): Define.
10349         (_dl_resolve_conflicts): Add prototype.
10351         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10352         .plt for prelinked libraries where prelinking info cannot be used.
10353         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10354         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10355         * sysdeps/arm/bits/link.h: New file.
10356         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10357         content of .got[1].
10358         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10359         (ELF_MACHINE_PLT_REL): Define.
10360         (elf_machine_rela, elf_machine_rela_relative): New functions.
10361         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10362         of adjusting it if prelinked and prelinking cannot be used.
10363         * sysdeps/i386/bits/link.h: New file.
10364         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10365         content of .got[1].
10366         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10367         (ELF_MACHINE_PLT_REL): Define.
10368         (elf_machine_rela, elf_machine_rela_relative): New functions.
10369         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10370         of adjusting it if prelinked and prelinking cannot be used.
10371         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10372         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
10373         to find out map for R_PPC_JMP_SLOT relocs.
10374         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10375         (OPCODE_BA): Define.
10376         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10377         libraries where prelinking info cannot be used.
10378         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10379         (elf_machine_fixup_plt): Call sparc_fixup_plt.
10380         (elf_machine_rela): Set value to 0 if relocating conflicts.
10381         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10382         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10383         (sparc64_fixup_plt): Fix a typo.
10384         (elf_machine_rela): Set value to 0 if relocating conflicts.
10385         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10386         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10387         libraries where prelinking info cannot be used.
10388         * sysdeps/sh/bits/link.h: New file.
10389         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10390         content of .got[1].
10391         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10392         of adjusting it if prelinked and prelinking cannot be used.
10393         * sysdeps/s390/s390-32/bits/link.h: New file.
10394         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10395         Save original content of .got[1].
10396         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10397         of adjusting it if prelinked and prelinking cannot be used.
10398         * sysdeps/s390/s390-64/bits/link.h: New file.
10399         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10400         Save original content of .got[1].
10401         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10402         of adjusting it if prelinked and prelinking cannot be used.
10403         * sysdeps/x86_64/bits/link.h: New file.
10404         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10405         Save original content of .got[1].
10406         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10407         of adjusting it if prelinked and prelinking cannot be used.
10409 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10411         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10412         where appropriate instead of numbers.  Little optimizations.
10414 2001-12-10  Roland McGrath  <roland@frob.com>
10416         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10417         set it.
10419         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10420         set to GLIBC_2.2.5, not GLIBC_2.2.4.
10422         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10423         Fix conditionals so this is set by default for stdio and not for libio.
10424         * sysdeps/mach/hurd/configure: Regenerated.
10426 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
10428         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10430 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
10432         * io/Makefile (tests): Add bug-ftw3.
10433         * io/bug-ftw3.c: New file.
10435         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10436         matches and GLOB_NOCHECK is set.
10437         * posix/globtest.sh: Correct expected result for NOCHECK test.
10439         * po/ca.po: Update from translation team.
10441 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
10443         Implement transliteration of characters in strings of the locale
10444         definitions.
10445         * locale/programs/linereader.c: Adjust for additional parameter to
10446         lr_token.
10447         (get_string): If character <Uxxxx> is not found try to transliterate
10448         it.
10449         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10450         lr_token.  Add const to charmap parameter of all functions.
10451         (find_translit, find_translit2): New functions.
10452         * locale/programs/charmap.c: Adjust for additional parameter to
10453         lr_token.
10454         * locale/programs/repertoire.c: Likewise.
10455         * locale/programs/linereader.h: Likewise.
10456         * locale/programs/ld-address.c: Likewise.  Add const to charmap
10457         parameter of all functions.
10458         * locale/programs/ld-collate.c: Likewise.
10459         * locale/programs/ld-identification.c: Likewise.
10460         * locale/programs/ld-measurement.c: Likewise.
10461         * locale/programs/ld-messages.c: Likewise.
10462         * locale/programs/ld-monetary.c: Likewise.
10463         * locale/programs/ld-name.c: Likewise.
10464         * locale/programs/ld-numeric.c: Likewise.
10465         * locale/programs/ld-paper.c: Likewise.
10466         * locale/programs/ld-paper.c: Likewise.
10467         * locale/programs/ld-telephone.c: Likewise.
10468         * locale/programs/ld-time.c: Likewise.
10469         * locale/programs/locfile.c: Likewise.
10470         * locale/programs/localedef.c: Likewise.
10471         * locale/programs/localedef.h: Likewise.
10472         * locale/programs/locfile.h: Likewise.  Add declaration for
10473         find_translit.
10474         * locale/programs/simple-hash.c: Add const to first parameter of
10475         find_entry, iterate_table, and lookup.
10476         * locale/programs/simple-hash.h: Likewise.
10477         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
10478         instead.
10479         * include/locale.h: Define __LC_LAST.
10480         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10482 2001-12-07  Geoff Keating  <geoffk@redhat.com>
10484         * sysdeps/powerpc/Dist: Update for recent FP changes.
10485         * sysdeps/powerpc/fpu/Dist: Likewise.
10487 2001-12-07  Andreas Schwab  <schwab@suse.de>
10489         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10491 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10493         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10494         save/restore functions here.
10495         (libm-support): Don't define these functions here.
10496         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10497         functions here.
10498         * sysdeps/powerpc/fe_nomask.c: Move to...
10499         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10500         * sysdeps/powerpc/fprrest.S: Move to...
10501         * sysdeps/powerpc/fpu/fprrest.S: ... here.
10502         * sysdeps/powerpc/fprsave.S: Move to...
10503         * sysdeps/powerpc/fpu/fprsave.S: ... here.
10505 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10507         * sysdeps/unix/sysv/linux/opensock.c: New file.
10509 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10511         * config.make.in (with-fp): Define from configure.
10512         * configure.in: Substitute with_fp.
10513         * configure: Regenerate.
10514         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10515         specified, and don't change FPU environment.
10517 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10519         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10520         * assert/assert.c: Check result of __asprintf call and don't use
10521         string if it failed.
10522         * assert/assert-perr.c: Likewise.
10523         * inet/rcmd.c: Likewise.
10524         * locale/programs/localedef.c (main): Check result of
10525         construct_output_path and exit if it failed.
10526         (construct_output_path): Check result of asprintf and mkdir calls and
10527         fail if they failed.
10528         * posix/getopt.c: Check result of __asprintf calls and fail if
10529         they failed.
10530         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10532 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10534         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10535         patch.
10536         * sysdeps/generic/strncase.c: Likewise.
10537         * string/tester.c: Add tests for strcasecmp and strncasecmp.
10539 2001-12-05  Geoff Keating  <geoffk@redhat.com>
10541         * scripts/cpp: Test the exit status from 'type', not 'awk'.
10543         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10544         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10545         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10546         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10547         * sysdeps/powerpc/fclrexcpt.c: Move to...
10548         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10549         * sysdeps/powerpc/fpu_control.h: Move to...
10550         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10552 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10554         * iconvdata/ibm1129.h: Remove duplicate mappings.
10555         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
10556         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10557         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10559         * timezone/zic.c: Fix handling of turnaround times.
10560         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10562 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
10564         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10565         overflow problem.
10567 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10569         * posix/regex.c: For use outside glibc defined bounded pointer
10570         macros here.  Patch by Jim Meyering <jim@meyering.net>.
10572         * iconvdata/Makefile (modules): Add TCVN5712-1.
10573         * iconvdata/TESTS: Add TCVN5712-1.
10574         * iconvdata/gconv-modules: Likewise.
10575         * iconvdata/tcvn5712-1.c: New file.
10576         * iconvdata/testdata/TCVN-5712: New file.
10577         * iconvdata/testdata/TCVN-5712..UTF8: New file.
10579 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
10581         * iconvdata/cp1258.c: Optimize conversion from UCS4.
10583 2001-12-02  Roland McGrath  <roland@frob.com>
10585         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10587         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10588         Reported by Jeff Bailey <jbailey@nisa.net>.
10590         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10591         Reported by Jeff Bailey <jbailey@nisa.net>.
10593         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10594         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10595         Reported by Jeff Bailey <jbailey@nisa.net>.
10597 2001-12-01  Roland McGrath  <roland@frob.com>
10599         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10600         missing backslash in test arguments.
10601         * sysdeps/mach/hurd/configure: Regenerated.
10603 2001-11-26  Roland McGrath  <roland@frob.com>
10605         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10606         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10608 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
10610         * iconvdata/Makefile (modules): Add ARMSCII-8.
10611         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10612         * iconvdata/armscii-8.c: New file.
10614 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
10616         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10617         don't match, fix {{a,b},c} globbing, clean up.
10618         Patch by Flavio Veloso <flaviovs@magnux.com>.
10619         * posix/globtest.sh: Add new tests.
10621 2001-11-29  Andreas Jaeger  <aj@suse.de>
10623         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10624         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10626         * sysdeps/generic/abort.c: Include libioP.h for
10627         _IO_flush_all_lockp prototype.
10629 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
10631         * posix/regex.h: Define __restrict_arr correctly.
10633 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10635         * iconvdata/ibm1163.c: New file.
10636         * iconvdata/ibm1163.h: New file.
10637         * iconvdata/ibm1164.c: New file.
10638         * iconvdata/ibm1164.h: New file.
10639         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10640         * iconvdata/Makefile: Likewise.
10641         * iconvdata/testdata/IBM1163: New file.
10642         * iconvdata/testdata/IBM1163..UTF8: New file.
10643         * iconvdata/testdata/IBM1164: New file.
10644         * iconvdata/testdata/IBM1164..UTF8: New file.
10645         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10647         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
10648         * iconvdata/ibm1124.h: Likewise.
10649         * iconvdata/ibm1132.h: Likewise.
10650         * iconvdata/ibm1133.h: Likewise.
10651         * iconvdata/ibm1160.h: Likewise.
10652         * iconvdata/ibm1161.h: Likewise.
10653         * iconvdata/ibm1162.h: Likewise.
10654         * iconvdata/ibm856.h: Likewise.
10655         * iconvdata/ibm922.h: Likewise.
10656         * iconvdata/ibm930.h: Likewise.
10657         * iconvdata/ibm932.h: Likewise.
10658         * iconvdata/ibm933.h: Likewise.
10659         * iconvdata/ibm935.h: Likewise.
10660         * iconvdata/ibm937.h: Likewise.
10661         * iconvdata/ibm939.h: Likewise.
10662         * iconvdata/ibm943.h: Likewise.
10663         * iconvdata/ibm930.c: Pretty printing.
10664         * iconvdata/ibm937.c: Avoid access accross array boundary.
10666         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10667         the current locale's codeset.
10668         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10669         empty input string.
10670         * iconv/iconv_prog.c: Pass empty strings as default value for to-
10671         and from-charset.  Don't determine locale's charset here.
10673         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
10674         as the old _IO_flush_all but lock only if parameter is nonzero.
10675         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10676         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10677         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10678         if libio is used [PR libc/2575].
10680 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
10682         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10683         __signbitl): Only define for ISO C99.
10685 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10687         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10688         herrnop to NETDB_INTERNAL if we run out of buffer space.
10690 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10692         * nss/nss_files/files-XXX.c (internal_getent): Correct input
10693         overflow test for platforms with signed char.
10694         Reported by Andrew Haley <aph@cambridge.redhat.com>.
10696 2001-11-28  Bruno Haible  <bruno@clisp.org>
10698         * locale/programs/simple-hash.c (lookup_2): Remove function.
10699         (insert_entry_2): Call lookup instead of lookup_2.
10701 2001-03-04  Bruno Haible  <bruno@clisp.org>
10703         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10705 2001-10-31  Bruno Haible  <bruno@clisp.org>
10707         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10709 2001-03-21  Bruno Haible  <bruno@clisp.org>
10711         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10712         chokes on empty macro arguments.
10713         * intl/plural.y: Add #pragma for alloca on AIX 3.
10715 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10717         * intl/dcigettext.c (guess_category_value): Only implement for
10718         glibc.  Otherwise rely on function _nl_locale_name which isn't
10719         present in the glibc sources.
10721 2001-09-24  Bruno Haible  <bruno@clisp.org>
10723         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
10724         transliteration when building on a glibc system but outside glibc.
10726 2001-09-22  Bruno Haible  <bruno@clisp.org>
10728         * intl/plural-eval.c: New file, extracted from dcigettext.c.
10729         * intl/dcigettext.c (plural_eval): Remove function, moved to
10730         intl/plural-eval.c.
10731         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
10732         Include plural-eval.c.
10734 2001-09-22  Bruno Haible  <bruno@clisp.org>
10736         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
10737         don't start with a digit; nplurals must be positive.
10739 2001-09-02  Bruno Haible  <bruno@clisp.org>
10741         * intl/plural-exp.h: New file, extracted from gettextP.h.
10742         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
10743         * intl/gettextP.h (struct expression, struct parse_args,
10744         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
10745         * intl/loadmsgcat.c: Include plural-exp.h.
10746         (PLURAL_PARSE): Move macro to plural-exp.h.
10747         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
10748         plural-exp.c.
10749         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
10750         EXTRACT_PLURAL_EXPRESSION.
10751         (_nl_unload_domain): Update.
10752         * intl/dcigettext.c: Include plural-exp.h.
10753         * intl/plural.y: Include plural-exp.h, not gettextP.h.
10754         (FREE_EXPRESSION): Move macro to plural-exp.h.
10755         * intl/Makefile (routines): Add plural-exp.
10756         (distribute): Add plural-exp.h.
10758 2001-07-28  Bruno Haible  <bruno@clisp.org>
10760         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
10761         isdigit, tolower argument to 'unsigned char'.
10762         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
10763         'unsigned char'.
10764         * intl/localealias.c (read_alias_file): Cast isspace argument to
10765         'unsigned char'.
10767 2001-10-20  Bruno Haible  <bruno@clisp.org>
10769         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
10770         anyway.)
10771         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
10772         with the variable 'index' in plural_lookup.
10773         * intl/l10nflist.c (strchr): Likewise.
10774         * intl/localealias.c (strchr): Likewise.
10776         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
10777         * intl/bindtextdom.c: Likewise.
10778         * intl/dcigettext.c: Likewise.
10779         * intl/dgettext.c: Likewise.
10780         * intl/dngettext.c: Likewise.
10781         * intl/explodename.c: Likewise.
10782         * intl/finddomain.c: Likewise.
10783         * intl/gettext.c: Likewise.
10784         * intl/l10nflist.c: Likewise.
10785         * intl/loadmsgcat.c: Likewise.
10786         * intl/localealias.c: Likewise.
10787         * intl/ngettext.c: Likewise.
10788         * intl/textdomain.c: Likewise.
10789         * intl/gettext.h: Assume <limits.h> exists.
10791 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10793         * stdio-common/Makefile (tests): Add scanf11.
10794         * stdio-common/scanf11.c: New file.
10796 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
10798         * version.h (RELEASE): Define as development.
10799         (VERSION): Set to 2.2.90.
10801 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10803         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
10804         * nis/nss_nis/nis-grp.c: Likewise.
10805         * nis/nss_nisplus/nisplus-grp.c: Likewise.
10807         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
10808         * nis/nss_nis/nis-pwd.c: Likewise.
10809         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
10811         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
10812         * nis/nss_nisplus/nisplus-parser.c: Likewise.
10813         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10815         * nscd/grpcache.c: Use strtoul instead of atol.
10816         * nscd/pwdcache.c: Likewise.
10817         * nss/getent.c: Likewise.
10819 2001-11-27  Paul Eggert  <eggert@twinsun.com>
10821         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10822         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10824 2001-11-19  Bruno Haible  <bruno@clisp.org>
10826         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
10827         90%.
10828         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
10829         improves the quality of the hash function, especially for short
10830         strings.
10832 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
10834         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
10835         are found call conv_error and not input_error [PR libc/2669].
10837         * math/bits/mathcalls.h: Mark ceil and floor as const.
10838         Reported by David Mosberger.
10840 2001-11-21  Jim Meyering  <meyering@lucent.com>
10842         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
10843         Define to be __-prefixed.
10844         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
10846 2001-11-26  Andreas Jaeger  <aj@suse.de>
10848         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
10849         avoid warning.
10851 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
10853         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
10854         initialization.
10856         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
10857         unused variables.  Fix threshold for returning 1.0.
10859         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
10860         argument.
10862         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
10863         remove unused variables.
10865         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
10867         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
10868         include local math header files.
10870 2001-11-22  Andreas Jaeger  <aj@suse.de>
10872         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
10873         avoid warning.
10875 2001-11-21  Andreas Jaeger  <aj@suse.de>
10877         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
10879         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
10880         sys/debugreg.h
10882 2001-11-15  Andreas Jaeger  <aj@suse.de>
10884         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
10885         compilers that support it.
10887         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
10888         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
10889         * stdlib/stdlib.h: Likewise.
10891 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
10893         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
10894         statement with gotos.
10895         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
10897 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
10899         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
10901 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
10903         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
10905 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
10906             H.J. Lu  <hjl@gnu.org>
10908         * Versions.def (libc): Add GCC_3.0.
10909         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
10910         if gcc supports this flag.
10911         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
10912         (gcc3): Allow glibc to be compiled with gcc 3.x.
10913         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
10914         * config.make.in (static-libgcc, unwind-find-fde): Add.
10915         * Makerules (build-shlib-helper, build-module-helper): Use it.
10916         * scripts/versions.awk: Make sure GLIBC_ versions come first.
10917         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
10918         necessary.
10919         (_fini): Call __deregister_frame_info_bases if
10920         __register_frame_info_bases was used to register.
10921         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
10922         for GLIBC_2.0.
10923         (__register_frame_info_bases, __register_frame_info_table_bases,
10924         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
10925         * elf/Makefile (routines): Add unwind-dw2-fde.
10926         (shared-only-routines): Add unwind-dw2-fde.
10927         * sysdeps/alpha/gccframe.h: New file.
10928         * sysdeps/arm/gccframe.h: New file.
10929         * sysdeps/generic/framestate.c: New file.
10930         * sysdeps/generic/dwarf2.h: New file.
10931         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
10932         * sysdeps/generic/unwind-dw2-fde.c: New file.
10933         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
10934         * sysdeps/generic/unwind-dw2-fde.h: New file.
10935         * sysdeps/generic/unwind-dw2.c: New file.
10936         * sysdeps/generic/unwind-pe.h: New file.
10937         * sysdeps/generic/unwind.h: New file.
10938         * sysdeps/hppa/gccframe.h: New file.
10939         * sysdeps/i386/gccframe.h: New file.
10940         * sysdeps/m68k/gccframe.h: New file.
10941         * sysdeps/mips/gccframe.h: New file.
10942         * sysdeps/powerpc/gccframe.h: New file.
10943         * sysdeps/s390/gccframe.h: New file.
10944         * sysdeps/sh/gccframe.h: New file.
10945         * sysdeps/sparc/gccframe.h: New file.
10946         * sysdeps/vax/gccframe.h: New file.
10947         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10948         Set on all architectures except ia64.
10949         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
10950         for i386.
10951         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
10952         __deregister_frame_info): Move to elf/Versions.
10953         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
10954         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
10955         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
10956         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
10957         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
10958         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
10959         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
10960         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
10961         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
10962         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
10963         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
10964         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
10965         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10966         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
10967         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
10968         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
10969         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
10970         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
10972 2001-11-15  Jeff Law  <law@redhat.com>
10974         * posix/regex.c (uintptr_t): Do not provide a definition if the
10975         system provided one.
10977 2001-11-13  Roland McGrath  <roland@frob.com>
10979         * stdio-common/tmpfile.c: Moved to ...
10980         * sysdeps/generic/tmpfile.c: ... here.
10981         * sysdeps/mach/hurd/tmpfile.c: New file.
10983         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
10984         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
10985         (fopenport): Define as weak alias.
10987         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
10988         * libio/libioP.h: ... to here.
10990 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
10992         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
10993         program header twice.  Construct list with the needed information.
10995 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
10997         * po/ca.po: Update from translation team.
10999         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11000         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11001         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11002         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11004 2001-11-10  Andreas Jaeger  <aj@suse.de>
11006         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11007         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11008         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11010 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11012         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11013         correctly.
11014         * elf/dl-load.c (is_dst): New function.
11015         (_dl_dst_count): Use is_dst to check for DST variable.
11016         (_dl_dst_substitute): Likewise.
11018 2001-11-09  Roland McGrath  <roland@frob.com>
11020         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11021         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11022         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11023         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11024         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11025         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11026         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11027         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11028         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11029         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11030         * sysdeps/mach/hurd/powerpc/Dist: New file.
11032         * hurd/privports.c (__get_privileged_ports):
11033         Only contact the proc server if necessary for this call.
11034         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11035         Check error return for mach_port_mod_refs.
11037 2001-11-09  Andreas Schwab  <schwab@suse.de>
11039         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11041 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11043         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11044         object is always the last in the list.
11045         (_dl_map_object_from_fd): Delete code to remove from object list
11046         when DF_1_NOOPEN is seen.  This is done in lose.
11048 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11050         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11052 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11054         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11055         HWCAP_CHECK macro code.
11057         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11058         Now returns MAP_FAILED on error.
11059         * elf/rtld.c: Adjust caller.
11060         * sysdeps/generic/dl-cache.c: Likewise.
11061         * sysdeps/generic/ldsodefs.h: Adjust description.
11063         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11064         (_dl_check_map_versions): Likewise.
11066 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11068         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11069         _dl_signal_error directly, always use lose.  Set fd to -1 after
11070         file is closed.
11071         (lose): Don't call close if fd == -1.
11073 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11075         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11076          Also fix typo @code {mbsinit} to @code{mbsinit}.
11078 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11080         * elf/dl-profile.c: Replace state variable with simple flag named
11081         running.  Remove commented-out code.
11083         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11084         (_dl_init_paths): Likewise.
11085         (_dl_map_object_from_fd): Likewise.
11086         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11088 2001-11-06  Roland McGrath  <roland@frob.com>
11090         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11091         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11093         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11094         sysdeps/powerpc/elf/sysdep.h.
11095         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11097 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11099         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11100         speed.
11101         (process_envvars): Some more optimizations.
11102         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11104         * elf/elf.h: Add dynamic tag definitions for prelinking.
11106         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11107         Rewrite code to remove environment varables for SUID binaries.
11108         Small optimization in LD_PROFILE handling.
11109         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11110         changes.
11111         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11113         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11115         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11116         strings.  Change type of second parameter.
11117         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11118         for last change.
11120         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11122 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11124         * manual/string.texi: Fix typos.
11125         * manual/examples/argp-ex2.c: Likewise.
11127 2001-11-05  Roland McGrath  <roland@frob.com>
11129         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11130         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11131         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11132         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11133         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11134         here, put under [__ELF__].
11136 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11138         * manual/charset.texi: Extensive editing work.
11139         * manual/nss.texi: Likewise.
11140         Changes by Dennis Grace <dgrace@us.ibm.com>.
11142 2001-11-04  Roland McGrath  <roland@frob.com>
11144         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11145         parameter to dir_mkfile.
11147 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11149         * string/bits/string2.h (__strndup): If n is smaller than len, set
11150         len to n + 1.
11151         * string/tester.c (test_strndup): New function.
11152         (main): Call it.
11154 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11156         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11158         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11159         * scripts/cpp: New file.
11161         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11162         for rtld_search_dirs content.  Minor optimizations.
11164 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11166         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11167         avoiding unnecessary duplication.
11169 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11171         * elf/dl-load.c (_dl_map_object): If library was found using
11172         LD_LIBRARY_PATH, don't try RUNPATH list.
11174 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11176         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11177         Correct second argument of register_dump call.
11178         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11179         Likewise.
11181 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11183         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11184         modules.
11185         * iconvdata/TESTS: Likewise.
11186         * iconvdata/gconv-modules: Likewise.
11187         * iconvdata/ibm1132.c: New file.
11188         * iconvdata/ibm1132.h: New file.
11189         * iconvdata/ibm1133.c: New file.
11190         * iconvdata/ibm1133.h: New file.
11191         * iconvdata/ibm1162.c: New file.
11192         * iconvdata/ibm1162.h: New file.
11193         * iconvdata/testdata/IBM1132: New file.
11194         * iconvdata/testdata/IBM1132..UTF8: New file.
11195         * iconvdata/testdata/IBM1133: New file.
11196         * iconvdata/testdata/IBM1133..UTF8: New file.
11197         * iconvdata/testdata/IBM1162: New file.
11198         * iconvdata/testdata/IBM1162..UTF8: New file.
11199         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11201         * string/string.h: Fix typo in comment.
11202         * wcsmbs/wchar.h: Likewise.
11204 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11206         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11207         const in type of longopts parameter.
11209 2001-10-29  Andreas Jaeger  <aj@suse.de>
11211         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11213 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11215         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11216         output, clarify `#' behaviour on 0.
11217         (Floating-Point Conversions): Clarify that %g only uses %e when
11218         the exponent would be greater than 1.
11220 2001-10-28  Roland McGrath  <roland@frob.com>
11222         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11223         * sysdeps/mach/powerpc/machine-sp.h: New file.
11224         * sysdeps/mach/powerpc/sysdep.h: New file.
11225         * sysdeps/mach/powerpc/thread_state.h: New file.
11227         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11228         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11229         expect to need the same thing on every platform.
11231         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11232         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11234         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11235         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11236         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11237         Move all these assembly-related definitions to ...
11238         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11240         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11241         by Peter Bruin <pjbruin@dds.nl>.
11243         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11244         packing results for a `poll' call.
11246 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11248         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11249         correctly.
11250         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11251         bracket expression.
11253         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11254         nrules value.
11255         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11257 2001-10-24  H.J. Lu  <hjl@gnu.org>
11259         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11260         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11261         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11263 2001-10-21  Jim Meyering  <meyering@lucent.com>
11265         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11266         this code would end up calling gettext even in packages built
11267         with --disable-nls.
11268         * posix/getopt.c (_): Likewise.
11269         * posix/regex.c (_): Likewise.
11271 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11273         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11274         lookup not ip6.int.
11275         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11276         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11278 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11280         * misc/sys/cdefs.h (__attribute_used__): Define.
11281         * elf/rtld.c (_dl_start): Add __attribute_used__.
11282         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11284 2001-10-25  Andreas Schwab  <schwab@suse.de>
11286         * stdlib/a64l.c: Expect least significant digit first.
11287         * stdlib/l64a.c: Produce least significant digit first.
11288         * stdlib/Makefile (tests): Add test-a64l.
11289         * stdlib/test-a64l.c: New file.
11290         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11292 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11294         * po/sk.po: Update from translation team.
11296 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11298         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11300 2001-10-18  Andreas Schwab  <schwab@suse.de>
11302         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11303         next whole number.
11304         (print_function_ulps): Likewise.
11305         (print_complex_function_ulps): Likewise.
11306         (print_max_error): Likewise.
11307         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11309 2001-10-16  Andreas Schwab  <schwab@suse.de>
11311         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11312         implementation.
11314         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11315         BSD_SETJMP or BSD__SETJMP is defined, resp.
11316         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11317         a tail call to __sigsetjmp that would require extending the
11318         caller's frame.
11319         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11320         * sysdeps/m68k/bsd-setjmp.S: Deleted.
11321         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11322         Reported by Jes Sorensen <jes@trained-monkey.org>.
11324 2001-10-16  Andreas Jaeger  <aj@suse.de>
11326         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11327         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
11328         close PR libc/2589.
11330 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
11332         * po/ca.po: New file.  Contributed by the translation team.
11334 2001-10-15  Ralf Baechle  <ralf@gnu.org>
11336         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11337         a varargs prototype.  Remove dependency from kernel header files.
11339         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11340         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11342 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11344         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11345         to generate hexadecimal identifier.
11346         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11348 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
11350         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11352 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11354         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11355         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11356         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11358         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11359         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11360         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11361         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11362         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11363         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11365         * timezone/africa: Update from tzdata2001d.
11366         * timezone/asia: Likewise.
11367         * timezone/australasia: Likewise.
11368         * timezone/backward: Likewise.
11369         * timezone/europe: Likewise.
11370         * timezone/leapseconds: Likewise.
11371         * timezone/northamerica: Likewise.
11372         * timezone/southamerica: Likewise.
11373         * timezone/zone.tab: Likewise.
11375 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11377         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11378         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11380 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
11382         * elf/elf.h (PT_TLS): New definition.
11384 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
11386         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11387         bits/errno.h
11389 2001-10-07  Roland McGrath  <roland@frob.com>
11391         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11393 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
11395         * elf/elf.h: Add more ELFOSABI_* constants.
11397 2001-10-04  Ben Collins  <bcollins@debian.org>
11399         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11400         decleration of __need_wchar_t.
11402 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
11404         * string/bits/string2.h (__strsep_g): Add prototype.
11405         (__strsep): Use it.
11406         * string/Versions (__strsep): Remove.
11407         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11409 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
11411         * manua/llio.texi: Clarify file references added by mmap.
11412         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11414 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
11416         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11417         Add sc_loadrs and sc_rbs_bas to match current kernel.
11419 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11421         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11423         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11425 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11427         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11428         object has been bumped because of relocation dependency, avoid
11429         duplicates in l_scope.
11430         (show_scope): Fix typos.
11431         * elf/Makefile: Add rules to build and run reldep6.
11432         * elf/reldep6.c: New file.
11433         * elf/reldep6mod0.c: New file.
11434         * elf/reldep6mod1.c: New file.
11435         * elf/reldep6mod2.c: New file.
11436         * elf/reldep6mod3.c: New file.
11437         * elf/reldep6mod4.c: New file.
11439 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
11441         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11442         sparc64_fixup_plt.
11443         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
11444         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11445         for non-lazy binding. Fix .plt[32768+] handling.
11446         (elf_machine_plt_value): Don't add addend.
11447         (elf_machine_rela): Call sparc64_fixup_plt instead of
11448         elf_machine_fixup_plt.
11449         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11450         dynamic linker at 0xfffff800XXXXXXXX.
11452         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11454 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
11456         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11458 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
11460         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11461         declare __cmsg_data field if its size would be bigger than 0.
11462         (CMSG_DATA): Adjust accordingly.
11463         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11464         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11465         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11466         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11467         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11468         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11469         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11471 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
11473         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11474         * iconvdata/testdata/IBM1160: New file.
11475         * iconvdata/testdata/IBM1160..UTF8: New file.
11476         * iconvdata/testdata/IBM1161: New file.
11477         * iconvdata/testdata/IBM1161..UTF8: New file.
11478         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11480 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11482         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11483         UL_SETFSIZE computations better.
11485         * rt/Makefile: Remove use of filter for librt again.
11487         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11488         UL_SETFSIZE computations better.
11490         * string/Versions: Export __strsep for GLIBC_2.2.5.
11491         * string/bits/string2.h: Define all __STRING_INLINE functions if
11492         _FORCE_INLINES is defined.
11493         Use int instead of char of parameter types.
11494         (__strsep): Don't use __strsep_g.  Don't define it.
11495         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11496         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11497         __strcpy_small.
11498         (__stpcpy_a_small): Renamed from __stpcpy_small.
11499         (__strcspn_c1): Don't define if _FORCE_INLINES.
11500         (__strspn_c1): Likewise.
11502 2001-09-22  Ben Collins  <bcollins@debian.org>
11504         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11505         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
11506         * sysdeps/ia64/bits/sigaction.h: Likewise.
11507         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11509 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
11511         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11513 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
11515         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11517 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11519         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11521 2001-09-20  H.J. Lu  <hjl@gnu.org>
11523         * include/dlfcn.h (__RTLD_SPROF): New definiton.
11524         * elf/dl-open.c (dl_open_worker): Return immediately after loading
11525         for __RTLD_SPROF.
11526         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11527         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11529 2001-09-20  H.J. Lu  <hjl@gnu.org>
11531         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11532         don't add 1.
11534 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11536         * nss/getent.c: Accept -s parameter to overwrite rules in
11537         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
11539         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11540         with as many ".0" as necessary to form a complete address
11541         inet_network understands.
11543         * nss/getent.c: Various cleanups.  Use simpler and fewer function
11544         calls.
11546 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11548         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11549         _JMPBUF_UNWINDS.
11550         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11552 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11554         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11555         IBM1161.
11556         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11557         * iconvdata/ibm1160.c: New file.
11558         * iconvdata/ibm1160.h: New file.
11559         * iconvdata/ibm1161.c: New file.
11560         * iconvdata/ibm1161.h: New file.
11561         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11563 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
11565         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11566         difference between base address and first PT_LOAD's virtual address,
11567         not the base address.
11569 2001-09-11  Tom Rix  <trix@redhat.com>
11571         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
11572         ifdef for __getopt_clean_environment.
11573         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11575 2001-09-22  Andreas Jaeger  <aj@suse.de>
11577         * elf/reldep4.c (main): Add proper prototype to fix warning.
11579         * elf/reldep5.c (main): Remove unused variable.
11581         * math/math_private.h: Add prototypes.
11583 2001-09-21  Andreas Jaeger  <aj@suse.de>
11585         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11586         * sysdeps/x86_64/Dist: New file.
11587         * sysdeps/x86_64/soft-fp/Dist: New file.
11589         * sysdeps/gnu/Dist: Remove eval.c.
11591 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
11593         * malloc/memusage.c (realloc): Don't count already allocated
11594         memory in the sums.
11595         (me): Always use dlsym() to find the real implementations.
11597         * malloc/memusage.sh: Make -n option actually do something.
11599 2001-09-20  Andreas Jaeger  <aj@suse.de>
11601         * elf/elf.h (R_390_NUM): Correct value.
11603         * Versions.def: Add missing versions 2.2.3 for libthread_db and
11604         libpthread.
11606         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11607         for x86-64, install x86-64 into */lib64.
11609         * shlib-versions: Add x86-64.
11611         * elf/elf.h: Add x86-64 relocations.
11613 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
11615         * po/fr.po: Update from translation team.
11617 2001-09-19  Andreas Jaeger  <aj@suse.de>
11619         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11620         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11621         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11622         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11623         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11624         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11625         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11626         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11627         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11628         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11629         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11630         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11631         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11632         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11633         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11634         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11635         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11636         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11637         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11638         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11639         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11640         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11641         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11642         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11643         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11644         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11645         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11646         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11647         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11648         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11649         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11650         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11651         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11652         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11653         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11654         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11655         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11656         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11657         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11658         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11659         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11660         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11661         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11662         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11663         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11664         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11665         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11666         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11667         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11668         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11669         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11670         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11671         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11672         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11673         * sysdeps/unix/x86_64/sysdep.S: New file.
11674         * sysdeps/unix/x86_64/sysdep.h: New file.
11675         * sysdeps/x86_64/Implies: New file.
11676         * sysdeps/x86_64/Makefile: New file.
11677         * sysdeps/x86_64/Versions: New file.
11678         * sysdeps/x86_64/__longjmp.S: New file.
11679         * sysdeps/x86_64/abort-instr.h: New file.
11680         * sysdeps/x86_64/atomicity.h: New file.
11681         * sysdeps/x86_64/bits/endian.h: New file.
11682         * sysdeps/x86_64/bits/setjmp.h: New file.
11683         * sysdeps/x86_64/bits/string.h: New file.
11684         * sysdeps/x86_64/bp-asm.h: New file.
11685         * sysdeps/x86_64/bsd-_setjmp.S: New file.
11686         * sysdeps/x86_64/bsd-setjmp.S: New file.
11687         * sysdeps/x86_64/dl-machine.h: New file.
11688         * sysdeps/x86_64/elf/initfini.c: New file.
11689         * sysdeps/x86_64/elf/start.S: New file.
11690         * sysdeps/x86_64/ffs.c: New file.
11691         * sysdeps/x86_64/ffsll.c: New file.
11692         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11693         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11694         * sysdeps/x86_64/fpu/e_acosl.c: New file.
11695         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11696         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11697         * sysdeps/x86_64/fpu/e_expl.c: New file.
11698         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11699         * sysdeps/x86_64/fpu/e_log10l.S: New file.
11700         * sysdeps/x86_64/fpu/e_log2l.S: New file.
11701         * sysdeps/x86_64/fpu/e_logl.S: New file.
11702         * sysdeps/x86_64/fpu/e_powl.S: New file.
11703         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11704         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11705         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11706         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11707         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11708         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11709         * sysdeps/x86_64/fpu/fegetenv.c: New file.
11710         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11711         * sysdeps/x86_64/fpu/fegetround.c: New file.
11712         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11713         * sysdeps/x86_64/fpu/fesetenv.c: New file.
11714         * sysdeps/x86_64/fpu/fesetround.c: New file.
11715         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
11716         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
11717         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
11718         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
11719         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
11720         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
11721         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
11722         * sysdeps/x86_64/fpu/s_atanl.c: New file.
11723         * sysdeps/x86_64/fpu/s_cosl.S: New file.
11724         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
11725         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
11726         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
11727         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
11728         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
11729         * sysdeps/x86_64/fpu/s_logbl.c: New file.
11730         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
11731         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
11732         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
11733         * sysdeps/x86_64/fpu/s_rintl.c: New file.
11734         * sysdeps/x86_64/fpu/s_significandl.c: New file.
11735         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
11736         * sysdeps/x86_64/fpu/s_sinl.S: New file.
11737         * sysdeps/x86_64/fpu/s_tanl.S: New file.
11738         * sysdeps/x86_64/gmp-mparam.h: New file.
11739         * sysdeps/x86_64/hp-timing.c: New file.
11740         * sysdeps/x86_64/hp-timing.h: New file.
11741         * sysdeps/x86_64/htonl.S: New file.
11742         * sysdeps/x86_64/memusage.h: New file.
11743         * sysdeps/x86_64/setjmp.S: New file.
11744         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
11745         * sysdeps/x86_64/stackinfo.h: New file.
11746         * sysdeps/x86_64/sysdep.h: New file.
11747         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
11749         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
11750         L Moshier.
11752 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11754         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
11755         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
11757 2001-09-18  Andreas Schwab  <schwab@suse.de>
11759         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
11760         list, now that l_scope is a pointer.
11762         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
11763         scope list.
11765 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
11767         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
11768         (elf_machine_rela_relative): Add a missing declaration.
11770 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
11772         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
11773         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
11774         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
11775         ldd-rewrite scripts.
11777 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11779         * elf/ldd.bash.in: Update copyright message.
11781 2001-09-17  H.J. Lu  <hjl@gnu.org>
11783         * hurd/hurdmalloc.c (bcopy): Removed.
11784         (realloc): Replace bcopy with memcpy.
11785         * hurd/path-lookup.c (file_name_path_scan): Likewise.
11786         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
11787         * sunrpc/rpcinfo.c (pmapdump): Likewise.
11789         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
11790         (gethostbyaddr): Likewise.
11791         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
11793 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11795         * sysdeps/gnu/eval.c: Removed.
11797 2001-09-18  Andreas Jaeger  <aj@suse.de>
11799         * sysdeps/i386/fpu/s_logbl.S: Move to ...
11800         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
11802         * sysdeps/i386/fpu/s_rintl.S: Move to ...
11803         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
11805         * sysdeps/i386/fpu/s_significandl.S: Move to ...
11806         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
11808 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
11810         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11811         nrules value.
11813 2001-09-14  H.J. Lu  <hjl@gnu.org>
11815         * sysdeps/mips/fpu/libm-test-ulps: Updated.
11817 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
11819         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
11820         Patch by Florian La Roche <laroche@redhat.com>.
11822         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
11824         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
11825         ETHER_CRC_LEN.
11827 2001-09-14  Andreas Schwab  <schwab@suse.de>
11829         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
11830         Sumner <bls@sgi.com>.
11831         * posix/execlp.c: Likewise.
11833 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
11835         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
11836         is already found earlier in the search scope.
11838 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
11840         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
11841         filter.
11843 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
11845         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
11847 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
11849         * config.h.in: Enforce optimization to be used.
11850         * Makeconfig (preprocess-versions): Define ASSEMBLER.
11851         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
11852         * posix/Makefile (annexc-CFLAGS): Define to -O.
11853         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
11855 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
11857         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
11858         Patch by Stephan Kulow.
11860 2001-09-08  Ben Collins  <bcollins@debian.org>
11862         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
11863         usage of RESOLVE() (r_type, not reloc->r_type).
11865 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
11867         * elf/dl-object.c: Avoid allocating extra memory block for name.
11868         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
11869         allocated separately.
11870         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
11872 2001-09-08  H.J. Lu  <hjl@gnu.org>
11874         * po/zh_TW.po: Fix a typo.
11876 2001-09-07  Tom Rix  <trix@redhat.com>
11878         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
11880 2001-08-26  Tom Rix  <trix@redhat.com>
11882         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
11883         command line options.
11884         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
11885         * sysdeps/unix/sysv/aix/start.c: Removed.
11886         * sysdeps/unix/sysv/aix/start-libc.c: New file.
11887         * sysdeps/unix/sysv/aix/init-first.c: New file.
11888         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
11890 2001-09-08  Ben Collins  <bcollins@debian.org>
11892         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
11893         * sysdeps/generic/dl-machine.h: Likewise.
11894         * sysdeps/hppa/dl-fptr.c: Likewise.
11895         * sysdeps/ia64/dl-fptr.c: Likewise.
11896         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
11897         * sysdeps/mips/dl-machine.h: Likewise.
11898         * sysdeps/mips/mips64/dl-machine.h: Likewise.
11899         * sysdeps/powerpc/dl-machine.c: Likewise.
11901 2001-09-07  Ben Collins  <bcollins@debian.org>
11903         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
11905         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
11907 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
11909         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
11910         dependencies if necessary.
11912         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
11913         loaded directly) determine length if l_initfini list by iterating
11914         over its elements.  Minor optimizations.
11915         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
11916         for dependency objects.
11917         If object was already loaded check whether any of the dependencies
11918         is already on the relocation dependency list.  If yes, remove the
11919         latter.  Minor optimizations.
11920         * elf/dl-lookup.c (add_dependency): Add check for self reference of
11921         maps here.  Search l_initfini list only if the object was loaded
11922         directly and not only as a dependency.
11923         (_dl_lookup_symbol): Add relocation dependency also if object
11924         is not in global scope.  Remove test for self-reference here.
11925         (_dl_lookup_versioned_symbol): Likewise.
11926         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
11927         element of first name record.
11928         * elf/loadtest.c: Add some more test to recognize early if an object
11929         wasn't unloaded.
11930         * elf/Makefile: Add rules to build and run reldep5.
11931         * elf/reldep5.c: New file.
11932         * elf/reldepmod5.c: New file.
11933         * elf/reldepmod6.c: New file.
11935         * elf/reldep2.c: Fix typo.
11937 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
11939         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
11940         elements.  Change l_scope to be a pointer only.
11941         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
11942         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
11943         here add searchlist of newly open file to the dependency's scope.
11944         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
11945         only searchlist from its scope.  Free own scope array if necessary.
11946         * elf/Makefile (tests): Add dblload and dblunload now.
11948 2001-09-06  Andreas Jaeger  <aj@suse.de>
11950         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
11951         Stephen L Moshier.
11953 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
11955         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
11956         they both fail.
11957         * elf/dblload.c: New file.
11958         * elf/dblloadmod1.c: New file.
11959         * elf/dblloadmod2.c: New file.
11960         * elf/dblloadmod3.c: New file.
11961         * elf/dblunload.c: New file.
11963 2001-09-04  Richard Henderson  <rth@redhat.com>
11965         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
11966         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
11968 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
11970         Correct very misleading message for error in failed runtime relocation.
11971         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
11972         place of the error.
11973         (_dl_signal_cerror): Likewise.
11974         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
11975         * elf/dl-close.c: Likewise.
11976         * elf/dl-deps.c: Likewise.
11977         * elf/dl-load.c: Likewise.
11978         * elf/dl-lookup.c: Likewise.
11979         * elf/dl-open.c: Likewise.
11980         * elf/dl-reloc.c: Likewise.
11981         * elf/dl-sym.c: Likewise.
11982         * elf/dl-version.c: Likewise.
11983         * sysdeps/generic/dl-sysdep.c: Likewise.
11985 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
11987         * iconv/strtab.c (strtabinit): Initialize null Strent.
11988         (newstring): Move len == 0 handling...
11989         (strtabadd): ...here.
11990         If len == 1, return null Strent.
11991         When inserting a suffix of an existing string, check if
11992         it is not equal to some suffix already recorded.
11993         Copy left and right members over if adding longer string.
11995 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
11997         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
11999         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12000         (__syscall_gethostname): Add prototype.
12002 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12004         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12006 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12008         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12010 2001-08-27  Roland McGrath  <roland@frob.com>
12012         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12013         short, copy that much into NAME anyway before returning error.
12015 2001-09-01  Richard Henderson  <rth@redhat.com>
12017         * sysdeps/alpha/elf/Dist: Remove file.
12018         * sysdeps/alpha/elf/Makefile: Remove file.
12019         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12020         * sysdeps/alpha/elf/crtend.S: Remove file.
12021         * sysdeps/alpha/elf/initfini.c: New file.
12023 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12025         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12026         * iconv/tst-iconv3.c: Likewise.
12028 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12030         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12032 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12034         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12035         export it.
12036         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12037         * iconv/iconv_prog.c (insert_cache): New function.
12038         (print_known_names): If cache is used call insert_cache to use the
12039         information from the cache [PR libc/2509].
12041 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12043         * time/strptime.c (strptime_internal): Recognize 'l' format and
12044         handle it like 'I' for symmetry with strftime.
12046 2001-08-31  Richard Henderson  <rth@redhat.com>
12048         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12049         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12050         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12051         (print_statistics): Make scalar unsigned long long.
12052         * sysdeps/alpha/hp-timing.h: New file.
12054 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12056         * stdio-common/perror.c (perror): Save errno early, pass it
12057         down to perror_internal.
12058         (perror_internal): Add errnum argument.
12060 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12062         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12063         Don't add old memory content for R_ALPHA_REFQUAD.
12065 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12067         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12068         memory correctly.
12070         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12071         instead of open, __close instead of close, __getpagesize instead
12072         of getpagesize.
12074         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12075         instead of strnlen.
12076         * include/string.h (strndupa): Redefine here to use __strnlen
12077         instead of strnlen.
12078         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12080         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12081         connected).
12083 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12085         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12086         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12087         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12088         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12089         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12090         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12091         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12093 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12095         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12097 2001-08-30  Andreas Jaeger  <aj@suse.de>
12099         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12100         contributed Stephen L Moshier.
12102 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12104         * sunrpc/etc.rpc (sgi_fam): Add.
12106 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12108         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12110 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12112         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12113         first is from a previous call.
12114         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12116 2001-08-29  Andreas Schwab  <schwab@suse.de>
12118         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12120 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12122         * config.make.in (INSTALL_SCRIPT): Define.
12123         * Makeconfig (INSTALL_SCRIPT): Define.
12124         * Makerules (do-install-script): New macro to install scripts using
12125         INSTALL_SCRIPT.
12126         (install-bin-script): New rule to install scripts with
12127         do-install-script.
12128         (install-bin-script-nosubdir): New rule.
12129         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12130         (distinfo-vars): Add $(install-bin-script).
12131         * Rules (others): Likewise.
12132         * Makefile (glibcbug): Install with install-bin-script.
12133         * debug/Makefile (xtrace): Likewise.
12134         (catchsegv): Likewise.
12135         * elf/Makefile (ldd): Likewise.
12136         * malloc/Makefile (mtrace): Likewise.
12137         * timezone/Makefile (tzselect): Likewise.
12139 2001-08-29  H.J. Lu  <hjl@gnu.org>
12141         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12142         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12143         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12145 2001-08-29  Andreas Schwab  <schwab@suse.de>
12147         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12149 2001-08-28  H.J. Lu  <hjl@gnu.org>
12151         * Makeconfig (combreloc-LDFLAGS): New variable.
12152         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12153         * config.make.in (have-z-combreloc): New variable.
12154         * configure.in: Substitute libc_cv_z_combreloc.
12156 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12158         * po/sv.po: Update from translation team.
12159         * po/fr.po: Likewise.
12160         * po/da.po: Likewise.
12162 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12164         * Makerules: Fix a typo: MD% -> MD5.
12166 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12168         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12169         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12171 2001-08-28  Andreas Jaeger  <aj@suse.de>
12173         * manual/libc-texinfo.sh: Add entry about free manuals.
12175         * manual/contrib.texi (Contributors): Fix cross reference.
12177         * manual/libc.texinfo (Copying): Include freemanuals.
12179         * manual/Makefile (appendices): Add freemanuals.
12181         * manual/freemanuals.texi: New file.
12182         Patch by Brian Youmans <3diff@gnu.org>.
12184         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12185         smaller table.
12187         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12188         table on separate page.
12189         Patch by Brian Youmans <3diff@gnu.org>.
12191 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12193         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12194         the connection went down after we first used it try to connect
12195         again and resend the message before printing to the console.
12196         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12198 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12200         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12201         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12202         bit set.
12204 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12206         * iconv/strtab.c (searchstring): Use correct length for comparison.
12207         (strtabadd): Account total size correct if new string has old string as
12208         substring.
12210 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12212         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12214 2001-08-27  Andreas Jaeger  <aj@suse.de>
12216         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12218         * math/libm-test.inc (j0_test): Add extra tests.
12219         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12220         not x, in Hankel approximation.
12221         Patches by Stephen L Moshier.
12223 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12225         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12226         link_map.
12228         * configure.in: Fix test for .rela.dyn section.
12230         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12232 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12234         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12235         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12236         Pass type_class to _dl_lookup_*.
12237         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12238         Pass around just type_class instead of noexec, noplt pair.
12239         (_dl_lookup_versioned_symbol): Likewise.
12240         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12241         noexec, noplt pair.
12242         (_dl_lookup_versioned_symbol_skip): Likewise.
12243         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12244         * elf/do-lookup.h (do_lookup): Likewise.
12245         * include/link.h (struct link_map): Replace noexec and noplt fields
12246         in l_lookup_cache with type_class field.
12247         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12248         ELF_RTYPE_CLASS_COPY): Define.
12249         Adjust prototypes for _dl_lookup_symbol and
12250         _dl_lookup_versioned_symbol.
12251         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12252         elf_machine_lookup_noexec_p): Remove.
12253         (elf_machine_type_class): Define.
12254         * sysdeps/arm/dl-machine.h: Likewise.
12255         * sysdeps/hppa/dl-machine.h: Likewise.
12256         * sysdeps/cris/dl-machine.h: Likewise.
12257         * sysdeps/i386/dl-machine.h: Likewise.
12258         * sysdeps/ia64/dl-machine.h: Likewise.
12259         * sysdeps/m68k/dl-machine.h: Likewise.
12260         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12261         * sysdeps/mips/dl-machine.h: Likewise.
12262         * sysdeps/powerpc/dl-machine.h: Likewise.
12263         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12264         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12265         * sysdeps/sh/dl-machine.h: Likewise.
12266         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12267         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12269 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12271         * manual/message.texi (Advanced gettext functions): Change
12272         description of plural forms for Slovak.
12273         Reported by Marcel Telka <marcel@telka.sk>.
12275         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12276         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12278 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12280         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12281         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12283 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12285         * include/link.h (struct link_map): Add l_lookup_cache element.
12286         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12287         (RESOLVE_MAP): Likewise.
12288         (_dl_relocate_object): Remove cache initialization.
12289         * elf/dl-lookup.c: Rip out cache handling code.
12290         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12291         declarations.
12293         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12294         remove some __builtin_expect.
12295         (_dl_lookup_versioned_symbol): Likewise.
12297         * config.h.in: Add HAVE_Z_COMBRELOC.
12298         * configure.in: Add test for -z combreloc.
12300         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12301         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12302         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12303         case to almost no code.
12305 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12307         * po/tr.po: Update from translation team.
12309 2001-08-24  Andreas Jaeger  <aj@suse.de>
12311         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12312         make clean works.
12314 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12316         * elf/rtld.c (print_statistics): Printf % after percent values.
12317         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12319         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12320         don't have to compute the hash value and initialize current_value.
12321         Move reference_name variable to where it is needed.
12322         (_dl_lookup_versioned_symbol): Likewise.
12324 2001-08-24  Roland McGrath  <roland@frob.com>
12326         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12327         Just test that strerror returns non-null for a few errno codes.
12329 2001-08-23  Roland McGrath  <roland@frob.com>
12331         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12332         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12334         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12336         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12337         __mach_reply_port.
12339 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12341         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12342         returns NULL.
12344         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12345         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12346         doesn't do it.
12347         * elf/rtld.c: Include <sys/param.h>.
12348         * elf/dl-reloc.c: Likewise.
12350 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12352         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12353         empty to prevent junk from being generated.
12354         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12356 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12358         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12359         records.  Rename endrel to relative, initialize it to r, and use it
12360         in elf_machine_rel_relative calls.  Point r after relative relocs.
12362 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12364         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12365         of R_386_NONE.
12367 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12369         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12370         necessary.  Undefine newly defined macros at the end.
12371         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12372         Rename from elf_machine_rel_relative.
12373         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12374         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12375         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12376         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12377         Likewise.
12378         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12379         Likewise.
12380         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12381         Fix argument types.
12382         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12383         Fix argument types.
12384         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12385         Likewise.  Fix argument types.
12386         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12387         Likewise.  Fix argument types.
12388         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12389         Fix argument types.
12390         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12391         ElfW(Rel) in argument.
12392         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12393         function.
12395 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
12397         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12399 2001-08-24  Andreas Jaeger  <aj@suse.de>
12401         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12402         Stephen L Moshier <moshier@mediaone.net>.
12404 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12406         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12407         first if RELCOUNT is set.
12409         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12410         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12411         elf_machine_rel_relative.
12412         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12413         Minor optimizations.
12414         * sysdeps/arm/dl-machine.h: Likewise.
12415         * sysdeps/cris/dl-machine.h: Likewise.
12416         * sysdeps/hppa/dl-machine.h: Likewise.
12417         * sysdeps/i386/dl-machine.h: Likewise.
12418         * sysdeps/ia64/dl-machine.h: Likewise.
12419         * sysdeps/m68k/dl-machine.h: Likewise.
12420         * sysdeps/mips/dl-machine.h: Likewise.
12421         * sysdeps/powerpc/dl-machine.h: Likewise.
12422         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12423         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12424         * sysdeps/sh/dl-machine.h: Likewise.
12425         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12426         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12428 2001-08-23  Roland McGrath  <roland@frob.com>
12430         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12432         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12433         sysdeps/mach version.  Implement counting ("recursive") mutexes
12434         on top of cthreads mutexes.
12435         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12437         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12438         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12439         (__libc_cleanup_region_start, __libc_cleanup_region_end,
12440         __libc_clean_end): Define these to call the cleanup function after
12441         normal exit when they're supposed to.
12443         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12444         Take new first arg DOIT, a boolean saying whether to really install
12445         any cleanup handler.
12446         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12447         (__libc_cleanup_end): Likewise.
12448         * sysdeps/generic/bits/libc-lock.h: Same changes.
12449         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12450         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12451         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12452         Likewise.
12453         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12454         * sysdeps/generic/bits/stdio-lock.h
12455         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12457 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12459         * elf/ldconfig.c (search_dir): Remove stale symlinks.
12461 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12463         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12464         functions.
12465         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12466         lookups in cache.
12467         (_dl_lookup_versioned_symbol): Likewise.
12468         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12469         relocation lookup.
12470         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12471         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12472         (lookup_cache, lookup_cache_versioned): Add declarations.
12474 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12476         * stdlib/tst-random.c (main): Swap parameters in fail call.
12477         Patch by Pete Bevin <pete@petebevin.com>.
12479 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12481         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12483 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12485         * malloc/obstack.c: Indent preprocessor directives.
12486         Patch by Jim Meyering <meyering@ascend.com>.
12488         * po/ja.po: Update from translation team.
12490 2001-08-23  Roland McGrath  <roland@frob.com>
12492         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12494         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12495         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12497 2001-08-22  Roland McGrath  <roland@frob.com>
12499         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12500         __libc_lock_define_recursive.
12501         * elf/dl-open.c: Don't declare it here any more.
12502         * elf/dl-close.c: Likewise.
12503         * elf/dl-lookup.c: Likewise.
12504         * elf/dl-iteratephdr.c: Likewise.
12505         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12506         __libc_lock_unlock_recursive.
12507         * elf/dl-close.c (_dl_close): Likewise
12508         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12509         * elf/dl-open.c (_dl_open): Likewise
12511         * sysdeps/generic/bits/libc-lock.h
12512         (__libc_lock_define_recursive): New macro.
12513         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12514         (_IO_lock_lock): Use __libc_lock_lock_recursive.
12515         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12517         * conform/conformtest.pl (checknamespace): Sort the output list.
12519         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12520         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12521         definitions conditional on [__USE_XOPEN].
12523         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12524         these unconditionally, not only use [__USE_BSD], so as to match
12525         the sysdeps/unix/sysv/linux files.
12527 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12529         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12530         avoid warnings.
12532         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12533         DL_LOOKUP_ADDRESS.
12535 2001-08-22  Roland McGrath  <roland@frob.com>
12537         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12538         conditionalization of sa_handler/sa_sigaction member types to
12539         match the sysdeps/unix/sysv/linux file.
12541 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12543         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12544         symbol sizes a bit better.
12546         * sysdeps/ia64/strncpy.S: Complete rewrite.
12547         Contributed by Jakub Jelinek <jakub@redhat.com>.
12549         * string/stratcliff.c (main): Add strncpy test.
12551 2001-08-22  Roland McGrath  <roland@frob.com>
12553         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12554         and don't declare unsetenv or _environ directly.
12555         (unsetenv): Return int, not void.  Use __environ instead of _environ.
12557 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12559         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12560         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12561         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12562         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12563         test for cmsg struct size.
12565 2001-04-23  Paul Eggert  <eggert@twinsun.com>
12567         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12568         Rename __argc to ___argc in prototypes to avoid compatibility
12569         problems with systems that reserve the identifier "__argc".
12570         Similarly for __argv.
12572 2001-08-21  Roland McGrath  <roland@frob.com>
12574         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12576         * mach/Makefile (tests): Removed.
12577         * mach/hello.c: File removed.
12579 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12581         * po/sv.po: Update from translation team.
12583         * stdio-common/vfscanf.c: Fix handling of %l[].
12584         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12586         * libio/Makefile (tests): Add tst-sscanf.
12587         * libio/tst-sscanf.c: New file.
12589         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12590         * malloc/mtrace.c (tr_where): dli_sname always points to a
12591         non-empty string if != NULL.
12592         Reported by Tim Janik <timj@gtk.org>.
12594 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
12596         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12597         buf.  Free resources on failure.
12598         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12599         (makefd_xprt): Likewise.
12600         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12601         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12602         * sunrpc/auth_unix.c (authunix_create): Likewise.
12604 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
12606         * string/strnlen.c: Remove.
12607         * sysdeps/generic/strnlen.c: New file.
12608         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12610 2001-08-21  Roland McGrath  <roland@frob.com>
12612         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12613         as a macro, not an extern inline function.
12615         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12616         * Versions.def (libc): Add GLIBC_2.2.5 set.
12617         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12618         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12620 2001-08-20  Roland McGrath  <roland@frob.com>
12622         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12623         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12625 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12627         * string/bits/string2.h: Remove strnlen optimization here.
12628         * sysdeps/i386/i486/bits/string.h: Add it here.
12630 2001-08-21  Wolfram Gloger  <wg@malloc.de>
12632         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12634 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12636         * po/gl.po: Update from translation team.
12638 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12640         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12641         * misc/err.c (convert_and_print): Likewise.
12643         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12644         function calls.
12646 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12648         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12649         change of the gregset_t type.
12650         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12652 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12654         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12656 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12658         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12660         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
12662 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
12664         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12665         before calling the cthreads initialization code.
12667 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12669         * argp/argp-help.c: Fix two problems introduced in last change.
12671         * include/dirent.h: Include <dirstream.h> first.
12673 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
12675         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12677         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12678         * sunrpc/xdr_rec.c: Likewise.
12679         * sunrpc/xdr_mem.c: Likewise.
12680         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12681         * sunrpc/rpc_cmsg.c: Likewise.
12682         * sunrpc/getrpcport.c (getrpcport): Likewise.
12683         * sunrpc/clnt_simp.c (callrpc): Likewise.
12684         * sunrpc/clnt_gen.c (clnt_create): Likewise.
12685         * string/envz.c: Likewise.
12687         * po/ko.po: Update from translation team.
12689         * argp/argp-help.c: Handle wide oriented stderr stream.
12691 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
12693         * sysdeps/generic/strtol.c: Little optimizations.  Add some
12694         __builtin_expect.
12696         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12698         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12699         * wcsmbs/wcwidth.c (wcwdith): Likewise.
12700         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12702         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12704         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12706         * time/time.h (struct timespec): Use __time_t for tv_sec element.
12708         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
12709         wchar_t for function declarations and defintions.
12711         * misc/sys/select.h: Define __need_time_t before including <time.h>.
12712         Define suseconds_t if it hasn't happened yet.
12714         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
12716         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
12718         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
12719         <stddef.h>.
12721         * conform/data/stddef.h-data: Remove wint_t.
12723         * conform/conformtest.pl: Change namespace test to take #undef
12724         lines into account.
12726         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
12728         * conform/data/sys/socket.h-data: Add sockatmark.
12730 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12732         * io/fts.c: Update from recent BSD source.
12734 2001-08-17  Roland McGrath  <roland@frob.com>
12736         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
12737         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
12738         Likewise.
12740 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12742         * locale/duplocale.c (__duplocale): Also initialize the special
12743         __ctype_* elements.
12745         * conform/data/netdb.h-data: Adjust gai_strerror return type.
12747 2001-08-17  Andreas Jaeger  <aj@suse.de>
12749         * misc/getpass.c: Include wchar.h for prototypes.
12750         * malloc/obstack.c: Likewise.
12752 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12754         * sunrpc/svc_simple.c (universal): Use __write instead of write.
12756         * wcsmbs/wcscoll.c: Also define __wcscoll.
12757         * include/wchar.h: Declare __wcscoll.
12759         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
12760         * libio/vwprintf.c: Likewise.
12761         * libio/wprintf.c: Likewise.
12763         * iconv/gconv_cache.c: Use __munmap instead of munmap.
12765 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
12767         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
12768         instead of mbrtowc.
12769         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
12770         wcslen, and __wcscoll instead of wcscoll.
12772         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
12774         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
12775         __getuid instead of getuid.
12777         * stdio-common/perror.c (perror): Use __close instead of close.
12778         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
12779         * libio/freopen.c (freopen): Likewise.
12780         * libio/freopen64.c (freopen64): Likewise.
12782         * libio/tst-ungetwc2.c (main): Define str const.
12784         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
12785         * libio/fwprintf.c: Also define __fwprintf.
12786         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
12787         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
12788         * assert/assert-perr.c: Likewise.
12789         * assert/assert.c: Likewise.
12790         * gmon/gmon.c: Likewise.
12791         * inet/rcmd.c: Likewise.
12792         * malloc/obstack.c: Likewise.
12793         * misc/err.c: Likewise.
12794         * misc/error.c: Likewise.
12795         * misc/getpass.c: Likewise.
12796         * posix/getopt.c: Likewise.
12797         * resolv/res_hconf.c: Likewise.
12798         * stdio-common/perror.c: Likewise.
12799         * stdio-common/psignal.c: Likewise.
12800         * stdlib/fmtmsg.c: Likewise.
12801         * sunrpc/auth_unix.c: Likewise.
12802         * sunrpc/clnt_perr.c: Likewise.
12803         * sunrpc/clnt_tcp.c: Likewise.
12804         * sunrpc/clnt_udp.c: Likewise.
12805         * sunrpc/clnt_unix.c: Likewise.
12806         * sunrpc/svc_simple.c: Likewise.
12807         * sunrpc/svc_tcp.c: Likewise.
12808         * sunrpc/svc_udp.c: Likewise.
12809         * sunrpc/svc_unix.c: Likewise.
12810         * sunrpc/xdr.c: Likewise.
12811         * sunrpc/xdr_array.c: Likewise.
12812         * sunrpc/xdr_rec.c: Likewise.
12813         * sunrpc/xdr_ref.c: Likewise.
12814         * sysdeps/generic/wordexp.c: Likewise.
12816         * po/it.po: Update from translation team.
12818         * misc/err.c: Handle wide oriented stderr stream.
12820 2001-08-14  Tom Rix  <trix@redhat.com>
12822         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
12823         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
12825 2001-08-13  Tom Rix  <trix@redhat.com>
12827         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
12828         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
12829         and __intptr_t.
12831 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12833         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
12834         Store the access registers to the ucontext structure.
12835         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
12836         Likewise.
12838         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
12839         Load the access registers from the ucontext structure.
12840         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
12841         Likewise.
12843         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
12844         offsets to the new ucontext layout.
12845         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
12847         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
12848         of the ucontext structure.
12849         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12851 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
12853         * misc/error.c (error): Handle wide oriented stderr stream correctly.
12854         (error_at_line): Likewise.
12856         * stdio-common/perror.c (perror): Implement according to standard.
12857         The stream orientation must not be changed if the stream was not
12858         oriented before the call.
12859         * stdio-common/Makefile (tests): Add tst-perror.
12860         * stdio-common/tst-perror.c: New file.
12863 See ChangeLog.12 for earlier changes.