Update
[glibc.git] / ChangeLog
blob1ed40ce12dc2d6b4df908fcba759b7e6c55044ca
1 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
3         * version.h (VERSION): Bump to 2.2.94.
5 2002-09-18  Roland McGrath  <roland@redhat.com>
7         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
8         the __ctype_* compat symbols, so the relocs generated bind to the
9         right versioned global symbol in the shared object.
11         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
12         from the value taken from the DT_VERSYM table.
13         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
14         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
15         (RESOLVE_GOTSYM): Likewise.
17         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
18         Add libc_hidden_def.
19         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
20         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
21         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
22         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
23         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
24         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
25         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
26         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
30         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
32         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
33         define sigaction and __sigaction as wrappers around
34         __libc_sigaction which rejects changing SIGCANCEL.
35         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
37         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
38         SETTID/CLEARTID.
40         * signal/allocrtsig.c: Move to...
41         * sysdeps/generic/allocrtsig.c: ...here.  New file.
43 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
45         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
47         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
48         R_386_TLS_LE): Define.
49         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
50         comments.
51         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
52         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
53         (elf_machine_rel): Handle R_386_TLS_TPOFF.
54         (elf_machine_rela): Likewise.
55         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
57 2002-09-17  Roland McGrath  <roland@redhat.com>
59         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
60         file-specific variable override so it compiles properly when using
61         --with-headers.
63 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
65         Ported to PowerPC64 running Linux.
66         * sysdeps/powerpc/powerpc64/Dist: New file.
67         * sysdeps/powerpc/powerpc64/Implies: New file.
68         * sysdeps/powerpc/powerpc64/Makefile: New file.
69         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
70         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
71         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
72         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
73         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
74         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
75         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
76         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
77         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
78         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
79         * sysdeps/powerpc/powerpc64/memset.S: New file.
80         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
81         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
82         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
83         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
84         * sysdeps/powerpc/powerpc64/strchr.S: New file.
85         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
86         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
87         * sysdeps/powerpc/powerpc64/strlen.S: New file.
88         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
89         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
90         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
91         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
92         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
93         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
94         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
95         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
96         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
97         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
98         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
100         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
101         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
102         various gcc versions.  Dot names required for powerpc64.
103         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
104         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
105         C_SYMBOL_DOT_NAME(alias).
106         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
107         original strong_alias macro.
108         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
109         C_SYMBOL_DOT_NAME(alias).
110         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
111         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
112         '.'ed name.
113         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
114         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
115         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
116         (hidden_def): Append hidden_dot_def1 macro to definition.
117         (hidden_ver): Append hidden_dot_def1 macro to definition.
118         (hidden_data_def): New macro.  Same as original hidden_def macro.
119         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
120         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
121         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
122         (hidden_weak): Append hidden_dot_weak1 macro to definition.
123         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
124         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
125         Otherwise defined as __GI_name.
126         (libc_hidden_data_def): New macro.  Use hidden_data_def.
127         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
128         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
129         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
130         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
131         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
132         (libm_hidden_data_def): New macro.  Use hidden_data_def.
133         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
134         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
135         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
137 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
139         * include/libc-symbols.h: Change *hidden_proto macros to accept
140         option parameters and pass those to the attribute definition.
141         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
143         * include/unistd.h: Declare __libc_pause.
145         * include/sys/socket.h: Declare __libc_send, __libc_recv,
146         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
148         * include/unistd.h: Declare __libc_fork.
150 2002-09-17  Roland McGrath  <roland@redhat.com>
152         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
153         (passwd2des): Define it as an alias.
154         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
156 2002-09-12  Bruno Haible  <bruno@clisp.org>
158         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
159         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
161         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
162         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
164 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
166         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
167         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
168         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
169         PowerPC64 does not have separate 64-bit syscalls.
171 2002-09-16  Roland McGrath  <roland@redhat.com>
173         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
176         New macro.
178         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
180         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
181         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
182         * sysdeps/generic/_exit.c: Likewise.
184 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
186         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
188         * elf/rtld.c (struct dl_start_final_info): New.
189         (_dl_start_final): Change second argument to struct
190         dl_start_final_info *.  Set start_time from info.
191         (_dl_start): Remove bootstrap_map variable, add info.
192         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
193         store HP_TIMING_NOW result into info.start_time.
195 2002-09-16  Andreas Jaeger  <aj@suse.de>
197         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
198         to _Exit.
199         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
201 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
203         * sysdeps/powerpc/abort-instr.h: New file.
205 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
207         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
208         comment.
210         * test-skeleton.c (main): Provide more information in case waitpid
211         fails.
213         * include/unistd.h: Declare __exit_thread.
214         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
215         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
216         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
217         * sysdeps/unix/sysv/linux/_exit.c: New file.
218         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
219         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
220         Add exit-thread.
222         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
224 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
226         * sysdeps/i386/dl-machine.h (elf_machine_rel)
227         (case R_386_TLS_DTPMOD32): Don't use addend.
228         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
229         (elf_machine_rela): Add support for TLS relocs.
231 2002-09-14  Roland McGrath  <roland@redhat.com>
233         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
235 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
237         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
238         specific asm macros for multiple percision integer math.
240 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
242         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
243         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
244         Remove per-machine conditionals for FLAG_* cases.
245         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
246         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
249 2002-09-10  Alan Modra <amodra@bigpond.net.au>
251         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
252         defined in entry.h.
253         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
254         lowest address for profiling in  __monstartup call.
255         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
257 2002-09-14  Roland McGrath  <roland@redhat.com>
259         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
260         instead of __NR_pread.
261         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
262         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
263         instead of __NR_pwrite.
264         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
266 2002-09-13  Roland McGrath  <roland@redhat.com>
268         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
270 2002-09-13  Andreas Jaeger  <aj@suse.de>
272         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
273         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
275 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
277         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
279 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
281         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
282         reading the headers.
284 2002-09-12  Roland McGrath  <roland@redhat.com>
286         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
287         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
288         find the ELF header.
290         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
291         executable if needed, in case it's actually a shared object.
293 2002-09-11  Roland McGrath  <roland@redhat.com>
295         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
296         l_map_start to adjust l_tls_initimage.
298         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
299         when using h_errno and it's not set to NETDB_INTERNAL.
300         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
302         * Makefile ($(common-objpfx)testrun.sh): New target.
303         (others): Depend on it.
304         (postclean-generated): Append it.
306         * nss/bug-erange.c: New file.
307         * nss/Makefile (tests): Add it.
309         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
310         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
312         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
313         strncmp, keeps the code smaller for a non-performance-critical case.
315         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
316         no longer wrongly matches arbitrary prefixes of NAME.
317         Reported by Jakub Jelinek <jakub@redhat.com>.
319 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
321         * posix/bug-regex11.c (tests): New array.
322         (main): Rewritten to run more different tests.
324 2002-09-10  Roland McGrath  <roland@redhat.com>
326         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
327         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
328         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
330         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
331         well so we don't get it declared by include/math.h's hidden_proto.
332         Then do hidden_proto for __isnanf locally so hidden_def works right.
334         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
335         a cast to turn nl_langinfo return value into an integer.
337 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
339         * posix/regexec.c (build_trtable): Fix the destination of
340         newline to prevent wrong states from overwriting.
341         Append break statements to optimization.
343 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
345         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
346         (build_range_exp): Add castings to strlen invocations.
347         (build_collating_symbol): Restore the type of characters from "char"
348         to "unsigned char", and supplement castings.
349         (build_collating_symbol): Likewise.
350         (build_equiv_class): Likewise.
351         (build_charclass): Likewise.
352         (seek_collating_symbol_entry): Likewise.
353         (parse_bracket_exp): Likewise.
354         (build_word_op): Supplement a casting.
355         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
356         (re_string_allocate): Fix castings.
357         (re_string_construct): Likewise.
358         (re_string_construct_common): Likewise.
359         (re_string_realloc_buffers): Likewise.
360         (build_wcs_buffer): Likewise.
361         (build_wcs_upper_buffer): Likewise.
362         (re_string_skip_chars): Likewise.
363         (re_string_reconstruct): Likewise.
364         * posix/regex_internal.h: Restore the type of characters in
365         re_string_t and bracket_elem_t from "char" to "unsigned char".
366         (re_string_elem_size_at): Fix castings.
367         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
368         (transit_state_bkref_loop): Restore the type of characters from
369         "char" to "unsigned char", and append a cast to "char*" pointer in
370         array subscript.
371         (check_node_accept_bytes): Likewise.
372         (find_collation_sequence_value): Likewise.
374 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
376         * sysdeps/mips/memcpy.S: New file.
377         * sysdeps/mips/memset.S: New file.
378         * sysdeps/mips/fpu/e_sqrt.c:  New file.
379         * sysdeps/mips/fpu/e_sqrtf.c: New file.
381         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
382         functional before. Also removed all SHLIB_COMPAT stuff.
383         * fpu/fegetenv.c: Likewise.
384         * fpu/fesetenv.c:: Likewise.
385         * fpu/feupdateenv.c: Likewise.
386         * fpu/fgetexcptflg.c: Likewise.
387         * fpu/fraiseexcpt.c: Likewise.
389         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
391 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
393         * include/math.h (__finite_internal, __finitef_internal,
394         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
395         (isfinite): Remove.
396         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
397         __isinfl, __isnanl): Add hidden_proto.
398         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
399         libm_hidden_proto.
400         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
401         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
402         __is{inf,nan} calls.
403         * stdio-common/printf_size.c (printf_size): Likewise.
404         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
405         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
406         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
407         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
408         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
409         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
410         (__finite): Add hidden_def.
411         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
412         (__finitef): Add hidden_def.
413         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
414         (__finitel): Add hidden_def.
415         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
416         hidden_def.
417         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
418         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
419         libm_hidden_def.
420         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
421         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
422         hidden_def.
423         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
424         (__isinfl): Remove INTDEF.
425         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
426         hidden_def.
427         (__isnanl): Remove INTDEF.
428         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
429         libm_hidden_def.
430         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
431         instead of sin and cos.
432         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
433         Add hidden_def.
434         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
435         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
436         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
437         libm_hidden_def.
438         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
439         Add hidden_def.
440         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
441         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
442         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
443         libm_hidden_def.
444         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
445         libm_hidden_def.
446         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
447         Add hidden_def.
448         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
449         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
450         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
451         libm_hidden_def.
452         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
453         __finitel_internal): Remove aliases.
454         (__finite, __finitef, __finitel): Add hidden_def.
455         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
456         __isnanl_internal): Remove aliases.
457         (__isnan, __isnanf, __isnanl): Add hidden_def.
458         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
459         __isinfl_internal): Remove aliases.
460         (__isinf, __isinff, __isinfl): Add hidden_def.
461         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
462         __fpclassifyl): Add libm_hidden_def.
463         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
464         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
465         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
466         (hidden_defx): Define and use.
467         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
468         libm_hidden_def.
469         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
470         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
471         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
472         Remove INTDEF.
473         (__isnan, __isnanf): Add hidden_def.
474         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
475         (__finitel): Add libm_hidden_def.
476         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
478         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
479         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
480         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
481         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
482         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
483         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
484         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
485         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
486         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
487         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
488         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
489         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
490         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
491         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
492         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
493         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
494         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
495         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
496         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
497         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
498         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
499         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
500         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
501         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
502         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
503         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
504         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
506 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
508         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
510 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
512         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
513         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
515 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
517         * string/stratcliff.c: Some more strncpy tests.
518         Patch by Daniel Jacobowitz <drow@mvista.com>.
520 2002-09-08  Roland McGrath  <roland@redhat.com>
522         * resolv/resolv.h: Include <sys/types.h> for u_long even in
523         the [__need_res_state] case.
524         Reported by Bruno Haible <bruno@clisp.org>.
526 2002-09-04  Bruno Haible  <bruno@clisp.org>
528         * sysdeps/generic/bits/ustat.h: Comment fix.
529         * io/sys/sendfile.h: Comment fix.
530         * sysdeps/posix/pread.c: Comment fix.
531         * sysdeps/posix/pread64.c: Comment fix.
532         * sysdeps/posix/pwrite.c: Comment fix.
533         * sysdeps/posix/pwrite64.c: Comment fix.
535 2002-09-06  Roland McGrath  <roland@redhat.com>
537         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
538         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
539         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
540         (_UTSNAME_MACHINE_LENGTH): Likewise.
541         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
543 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
545         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
546         test for filesystem type name of mount points.
548         * include/errno.h: Use errno definition with __thread for now only
549         in libc and ld.so.
551         * test-skeleton.c (main): Improve error message for unexpected
552         signal case.
554 2002-09-05  Roland McGrath  <roland@redhat.com>
556         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
557         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
559 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
561         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
562         case of failure.
564 2002-09-04  Bruno Haible  <bruno@clisp.org>
566         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
567         sigset_get_old_mask): Turn into inline functions.
568         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
569         sigset_get_old_mask): Likewise.
570         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
571         sigset_get_old_mask): Likewise.
572         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
573         syntax.
575         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
577         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
578         default definitions.
579         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
580         _sys_nerr_internal instead of _sys_nerr.
582         * nscd/connections.c (handle_request): Declare CALLER inside #if.
584 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
586         * sysdeps/powerpc/__longjmp.S: Moved to...
587         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
588         * sysdeps/powerpc/add_n.S: Moved to...
589         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
590         * sysdeps/powerpc/addmul_1.S: Moved to...
591         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
592         * sysdeps/powerpc/atomicity.h: Moved to...
593         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
594         * sysdeps/powerpc/backtrace.c: Moved to...
595         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
596         * sysdeps/powerpc/bp-asm.h: Moved to...
597         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
598         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
599         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
600         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
601         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
602         * sysdeps/powerpc/dl-machine.c: Moved to...
603         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
604         * sysdeps/powerpc/dl-machine.h: Moved to...
605         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
606         * sysdeps/powerpc/dl-start.S: Moved to...
607         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
608         * sysdeps/powerpc/gprrest0.S: Moved to...
609         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
610         * sysdeps/powerpc/gprrest1.S: Moved to...
611         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
612         * sysdeps/powerpc/gprsave0.S: Moved to...
613         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
614         * sysdeps/powerpc/gprsave1.S: Moved to...
615         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
616         * sysdeps/powerpc/lshift.S: Moved to...
617         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
618         * sysdeps/powerpc/memset.S: Moved to...
619         * sysdeps/powerpc/powerpc32/memset.S: ...here.
620         * sysdeps/powerpc/mul_1.S: Moved to...
621         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
622         * sysdeps/powerpc/ppc-mcount.S: Moved to...
623         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
624         * sysdeps/powerpc/register-dump.h: Moved to...
625         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
626         * sysdeps/powerpc/rshift.S: Moved to...
627         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
628         * sysdeps/powerpc/setjmp.S: Moved to...
629         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
630         * sysdeps/powerpc/stpcpy.S: Moved to...
631         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
632         * sysdeps/powerpc/strchr.S: Moved to...
633         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
634         * sysdeps/powerpc/strcmp.S: Moved to...
635         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
636         * sysdeps/powerpc/strcpy.S: Moved to...
637         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
638         * sysdeps/powerpc/strlen.S: Moved to...
639         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
640         * sysdeps/powerpc/sub_n.S: Moved to...
641         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
642         * sysdeps/powerpc/submul_1.S: Moved to...
643         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
644         * sysdeps/powerpc/elf/bzero.S: Moved to...
645         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
646         * sysdeps/powerpc/elf/start.S: Moved to...
647         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
648         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
649         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
650         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
651         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
652         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
653         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
654         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
655         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
656         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
657         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
658         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
659         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
660         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
662         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
664         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
666         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
668         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
670         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
672         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
674         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
675         powerpc/powerpc64.
677 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
679         * FAQ.in: Add powerpc64 to supported targets list. Also state the
680         minimum gcc version is 3.2
681         * README: Add powerpc64 to supported targets list.
682         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
683         Add powerpc64 and machine=powerpc/powerpc64.
684         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
685         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
686         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
687         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
688         * sysdeps/powerpc/powerpc32/Dist: New file.
689         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
690         * sysdeps/powerpc/powerpc32/Implies: New file.
691         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
692         ($(with-fp) = no): Move test to powerpc32/Makefile.
693         ($(subdir) = misc): Move to powerpc32/Makefile.
694         ($(build-shared) = yes): Move to powerpc32/Makefile.
695         ($(subdir) = csu): Move to powerpc32/Makefile.
696         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
697         * sysdeps/powerpc/powerpc32/Makefile: New file.
698         * sysdeps/powerpc/Versions: Remove libgcc functions.
699         * sysdeps/powerpc/powerpc32/Versions: New file.
700         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
701         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
702         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
703         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
704         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
705         ($machine): Add powerpc/powerpc64 to if ... | for
706         libc_cv_slibdir=/libc64.
707         (powerpc*): Set ldd_rewrite_script.
708         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
709         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
711         Add clone.S.
712         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
713         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
714         functions.  Remove GLIBC_2.2 functions except getrlimit and
715         setrlimit.  Moved them to ...
716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
718 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
720         * libio/tst-atime.c: Include <errno.h>.
721         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
723 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
725         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
726         warnings of some compilers.
727         (build_collating_symbol): Change the type of characters from
728         "unsigned char" to "char", and append a cast to "char*" pointer in
729         array subscript.
730         (build_collating_symbol): Likewise.
731         (build_equiv_class): Likewise.
732         (build_charclass): Likewise.
733         (re_compile_pattern): Remove incorrect cast.
734         (re_compile_fastmap_iter): Change the type of characters from
735         "unsigned char" to "char", and append a cast to "char*" pointer
736         in array subscript.
737         (parse_bracket_exp): Likewise.
738         * posix/regex_internal.c (re_string_construct_common): Likewise.
739         (re_string_allocate): Likewise.
740         (re_string_construct): Likewise.
741         (re_string_realloc_buffers): Likewise.
742         (build_wcs_buffer): Likewise.
743         (re_string_reconstruct): Likewise.
744         * posix/regex_internal.h: Change the type of characters in
745         re_string_t and bracket_elem_t from "unsigned char" to "char".
746         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
747         warnings of some compilers.
748         (transit_state_bkref_loop): Change the type of characters from
749         "unsigned char" to "char", and append a cast to "char*" pointer in
750         array subscript.
751         (check_node_accept_bytes): Likewise.
752         (find_collation_sequence_value): Likewise.
754 2002-09-04  Roland McGrath  <roland@redhat.com>
756         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
757         from 1024 to 65536, to avoid buffer overrun.
759 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
761         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
763 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
765         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
766         for filesystem.
768 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
770         * posix/bug-regex11.c: New test.
771         * posix/Makefile (tests): Add bug-regex11.
773 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
775         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
776         newlocale.
778 2002-09-02  Roland McGrath  <roland@redhat.com>
780         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
781         __pthread_initialize_minimal and __libc_check_standard_fds to
782         match the generic version.
784         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
785         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
787         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
788         warnings on platorms where char is unsigned.
790 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
792         * version.h (VERSION): Bump to 2.2.93.
794         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
796 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
798         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
799         as relocated.
801 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
803         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
805 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
807         * locale/localeinfo.h (struct locale_data): Add private.ctype.
808         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
809         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
810         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
811         (__wcsmbs_load_conv): Remove const from argument.
812         (_nl_cleanup_ctype): New proto.
813         (get_gconv_fcts): New function.
814         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
815         (__wcsmbs_to_wc): Rename back to...
816         (to_wc): ... this.
817         (__wcsmbs_gconv_fcts): Rename to...
818         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
819         (lock): Removed.
820         (__libc_setlocale_lock): New extern.
821         (__wcsmbs_load_conv): Remove const from argument.
822         Initialize new_category->private.ctype instead of a global
823         variable.
824         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
825         update_function_ptrs.  No locking is necessary.
826         (_nl_cleanup_ctype): New function.
827         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
828         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
829         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
830         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
831         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
832         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
833         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
834         * wcsmbs/wctob.c (wctob): Likewise.
835         * stdlib/mblen.c (mblen): Likewise.
836         * stdlib/mbtowc.c (mbtowc): Likewise.
837         * stdlib/wctomb.c (wctomb): Likewise.
838         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
839         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
840         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
841         Removed.
843 2002-09-02  Roland McGrath  <roland@frob.com>
845         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
847 2002-09-01  Roland McGrath  <roland@redhat.com>
849         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
850         Variable declarations removed.
851         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
852         these functions to replace them.
853         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
854         functions plus an indirection rather than the old global variables.
855         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
856         Macros removed.
857         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
858         inline functions.
859         * ctype/ctype-info.c: Revert last reversion back the other way.
860         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
861         Define real function versions of include/ctype.h inlines here.
862         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
863         __ctype_tolower_loc, __ctype_toupper_loc.
864         * locale/lc-ctype.c: Revert last reversion back the other way.
865         (_nl_postload_ctype): If current thread uses the global locale,
866         update its tsd vars.
867         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
868         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
869         CTYPE_TOLOWER, CTYPE_TOUPPER.
871         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
872         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
873         from __libc_tsd_threadvar_location.
874         (__libc_tsd_set, __libc_tsd_get): Update uses.
876 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
878         * ctype/ctype.h: Undo the patch before the last one.  Put back the
879         macro definitions for the standard functions to access the
880         classification and mapping arrays.
881         * include/ctype.h: Partly revert last patch.  Move the macro
882         definitions for the exported functions back to the public header.
883         #undef all the macros defined here before redefining.
884         * ctype/ctype-info.c: Revert last patch.
885         * locale/lc-ctype.c: Revert last patch.
887         * ctype/Makefile (routines): Add isctype.
888         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
889         * ctype/ctype.h: Add declaration of isctype.
890         * include/ctype.h: Declare __isctype.
891         * ctype/isctype.c: New file.
893 2002-09-01  Roland McGrath  <roland@redhat.com>
895         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
896         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
898         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
900         * locale/findlocale.c (_nl_remove_locale): Don't search in
901         _nl_locale_file_list if DATA->alloc is ld_archive.
902         Use _nl_unload_locale to do the rest of the work.
904         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
905         of new structure to UNDELETABLE.
907         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
908         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
909         towlower, towupper): Macros removed.
910         * ctype/ctype.h (__tobody): Put parens around macro argument.
911         (__isctype): Macro removed.
912         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
913         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
914         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
915         tolower, toupper): Macros and inlines removed.
916         * include/ctype.h [! NOT_IN_libc]
917         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
918         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
919         tolower, toupper): Define here instead, using _NL_CURRENT.
920         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
921         using _NL_CURRENT.
922         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
923         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
924         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
925         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
926         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
927         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
928         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
929         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
930         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
931         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
932         (ISSORTMASK): Update use.
933         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
934         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
935         (_nss_files_getENTNAME_r): Likewise.
936         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
937         Likewise.
939         * Makerules (all-nonlib): Renamed from all-tests.
940         Include $(others) here too.
941         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
942         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
943         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
944         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
945         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
946         the program modules via cppflags-iterator.mk.
947         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
948         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
950 2002-08-31  Roland McGrath  <roland@redhat.com>
952         * posix/tst-getconf.sh: If no third arg, work with static linking.
954         * locale/categories.def (LC_TIME): No more _nl_postload_time.
956         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
957         [_NL_CURRENT_INDIRECT].
959 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
961         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
963 2002-08-31  Roland McGrath  <roland@redhat.com>
965         * locale/newlocale.c (__newlocale): Don't use strdup for names.
966         Instead, make the single allocation of the structure larger to hold
967         the name strings.
968         * locale/duplocale.c (__duplocale): Don't strdup names individually.
969         Instead, calculate size for a single allocation and copy into it.
970         * locale/freelocale.c (__freelocale): Don't free names individually.
972         * locale/newlocale.c (__newlocale): Don't leak old data or names.
974         * locale/xlocale.h (__locale_struct): Move __names member last,
975         for binary compatibility.
977         * locale/duplocale.c (__duplocale): Free names from the right array.
979         * locale/uselocale.c (__uselocale): Return previous locale when
980         setting a new one.
982         * locale/newlocale.c: Commit changes from 2002-08-30
983         batch where I failed to commit this file:
984         (__newlocale): Fill in __names array.
986 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
988         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
989         errlist-compat.c if versioning==yes.
991 2002-08-31  Andreas Jaeger  <aj@suse.de>
993         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
994         external functions with hidden attribute.
995         (elf_machine_rela): Optimize.
997         * sysdeps/x86_64/memset.S: New file.
998         * sysdeps/x86_64/bzero.S: New file.
999         * sysdeps/x86_64/stpcpy.S: New file.
1000         * sysdeps/x86_64/strcat.S: New file.
1001         * sysdeps/x86_64/strchr.S: New file.
1002         * sysdeps/x86_64/strcpy.S: New file.
1003         * sysdeps/x86_64/strcspn.S: New file.
1004         * sysdeps/x86_64/strlen.S: New file.
1005         * sysdeps/x86_64/strpbrk.S: New file.
1006         * sysdeps/x86_64/strspn.S: New file.
1007         * sysdeps/x86_64/strcmp.S: New file.
1008         * sysdeps/x86_64/strtok_r.S: New file.
1009         * sysdeps/x86_64/strtok.S: New file.
1010         * sysdeps/x86_64/memcpy.S: New file.
1011         * sysdeps/x86_64/mempcpy.S: New file.
1013         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1015         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1017 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1019         * stdio-common/Makefile (generated): Add errlist-compat.c.
1021         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1023         * locale/localeinfo.h: Pretty printing.
1025         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1026         form_number handling.
1028 2002-08-31  Andreas Jaeger  <aj@suse.de>
1030         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1031         double tests.
1033         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1034         __start_context.
1036         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1038         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1040         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1041         registers used for passing args.
1043         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1044         all needed registers.
1046         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1047         registers.
1049         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1050         registers.
1052 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1054         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1055         always_inline attribute.
1057 2002-08-30  Roland McGrath  <roland@redhat.com>
1059         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1060         presume it's the stub and bail without error.
1062         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1063         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1065         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1067         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1068         macros replace the i686 versions for 64-bit mode.
1070         * locale/duplocale.c: Include <string.h>.
1072         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1073         [_LIBC] (category_to_name): Don't define the function.  Instead
1074         define a macro using _nl_category_names.
1076         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1077         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1078         * locale/global-locale.c (_nl_global_locale): Likewise.
1079         * locale/duplocale.c (__duplocale): strdup __names elements.
1080         * locale/freelocale.c (__freelocale): Free __names elements.
1081         * locale/localename.c (_nl_current_names): Variable removed.
1082         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1083         * locale/localeinfo.h (_nl_current_names): Removed decl.
1084         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1085         _nl_current_names throughout.
1087         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1089         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1090         and sys_nerr in the output file.
1092         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1093         * scripts/cpp: Just use the environment variable.
1095         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1096         * libio/tst-mmap-offend.c (do_test): Likewise.
1097         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1098         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1099         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1101         * locale/localename.c: If the current locale is the global locale, use
1102         _nl_current_names; otherwise use the locale object.
1104 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1106         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1107         'm' to enable mmap I/O.
1108         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1109         former wasn't used (anymore?).
1110         (_IO_FLAGS2_MMAP): New define.
1111         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1112         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1113         _IO_FLAGS2_MMAP bit is set.
1114         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1115         Enable mmap-using mode only if 'm' was set.
1117 2002-08-29  Roland McGrath  <roland@frob.com>
1119         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1121         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1122         Change argument type from int to intptr_t.
1124         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1125         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1126         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1127         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1128         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1130         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1132         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1134         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1136         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1137         * assert/assert-perr.c: Add libc_hidden_def.
1138         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1140         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1141         found at all.
1142         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1143         sys_errlist stuff to ...
1144         * sysdeps/unix/sysv/linux/Versions: ... here.
1146         * mach/mach.h: Include <features.h>.
1148 2002-08-29  Roland McGrath  <roland@redhat.com>
1150         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1151         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1152         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1154         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1156         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1157         (norm_add_slashes): alloca -> __alloca
1159 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1161         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1162         string_malloced, it is unlikely to be set.
1163         Only call free with non-NULL workspace.
1164         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1165         -mcpu=ultrasparc, not only tune for it.
1166         (ASFLAGS*): Set unconditionally.
1168         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1169         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1170         p_vaddr/p_offset when computing LOADADDR.
1172 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1174         * version.h (VERSION): Bump to 2.2.92.
1176         * time/Makefile (tst-ftime_l-ENV): New variable.
1178         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1180         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1181         <U017A>, <U017D> and <U0179>. Add missing mappings.
1182         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1184         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1185         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1186         (struct tostruct): Use ACRINDEX as type for link field.
1187         (statuc gmonparam): Likewise for froms.
1188         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1189         kcount and froms.
1190         (write_call_graph): Use correct type for from_index and to_index.
1191         * gmon/mcount.c: Use correct types for frompcindex and toindex
1192         variables.
1193         Patches by Dan Kegel <dank@kegel.com>.
1195         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1196         canonical name.
1198         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1199         __isspace_l.  Replace calls to isspace.
1200         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1202 2002-08-29  Roland McGrath  <roland@redhat.com>
1204         * string/tst-strxfrm.c: Remove __ from function names.
1206 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1208         * include/wchar.h: Declare __mbsrtowcs_l.
1209         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1210         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1211         USE_IN_EXTENDED_LOCALE_MODEL.
1212         * wcsmbs/mbsrtowcs_l: New file.
1213         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1214         define as static.  Change all uses.
1215         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1216         Change all callers.
1217         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1218         * time/strftime.c: When translating for the extended locale model
1219         use the _l functions.
1220         * time/Makefile (tests): Add tst-ftime_l.
1221         * time/tst-ftime_l.c: New file.
1223 2002-08-28  Roland McGrath  <roland@redhat.com>
1225         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1226         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1227         from _nl_find_locale ok if for _nl_C_name.
1229         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1230         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1231         we know they are all linked in.
1233         * NEWS: Added 2.2.6 text from 2.2 branch version.
1235         * time/strptime.c (strptime_internal): Remove spurious const.
1237         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1238         _nl_select_era_entry): Moved to ...
1239         * time/era.c: ... here, new file.
1240         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1241         Add internal_function to definitions.  Take an additional argument
1242         giving the `struct locale_data *' to use.
1243         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1244         _nl_parse_alt_digit): Moved to ...
1245         * time/alt_digit.c: ... here, new file.
1246         * time/lc-time-cleanup.c: New file.
1247         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1248         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1249         (_nl_cleanup_time): Declare it.
1250         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1251         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1252         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1253         * time/strftime.c: Pass locale data to helper functions.
1254         * time/strptime.c: Likewise.
1256         * locale/localeinfo.h (struct locale_data): New member `private'
1257         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1258         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1259         * locale/C-collate.c: Update initializer.
1260         * locale/C-identification.c: Likewise.
1261         * locale/C-measurement.c: Likewise.
1262         * locale/C-telephone.c: Likewise.
1263         * locale/C-address.c: Likewise.
1264         * locale/C-name.c: Likewise.
1265         * locale/C-paper.c: Likewise.
1266         * locale/C-time.c: Likewise.
1267         * locale/C-numeric.c: Likewise.
1268         * locale/C-monetary.c: Likewise.
1269         * locale/C-messages.c : Likewise.
1270         * locale/C-ctype.c: Likewise.
1272         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1273         Redefine this too.
1275 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1277         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1278         (_rtld_global): Use it.
1280         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1281         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1282         object directory.  Pass all Versions files to the awk script.
1283         * sysdeps/gnu/errlist-compat.c: Removed.
1284         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1285         first Versions file in the search path which has them.
1286         Allow multiple errlist symbol versions to have the same count of
1287         errors.
1288         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1289         of "errlist-compat.c".
1290         * sysdeps/gnu/errlist.c: Regenerated.
1291         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1292         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1293         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1294         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1295         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1296         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1297         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1298         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1299         ECANCELLED if not defined by kernel headers.
1300         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1301         already defined by kernel headers.
1302         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1303         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1304         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1305         is a macro.
1306         * Versions.def (GLIBC_2.3) [librt]: Add.
1308         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1310 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1312         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1313         missing comma to .type directive.
1315 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1317         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1318         unconditionally.
1319         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1320         check.
1321         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1323 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1325         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1326         check to close_and_out close.  Replace return NULL statements where
1327         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1328         when it is no longer needed.
1330 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1332         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1333         string constants.
1334         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1335         * sysdeps/arm/dl-machine.h: Likewise.
1336         * sysdeps/cris/dl-machine.h: Likewise.
1337         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1338         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1340 2002-08-28  Roland McGrath  <roland@redhat.com>
1342         * Makeconfig (default_cflags): Revert unintended change.
1344 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1346         * version.h (VERSION): Bump to 2.2.91.
1348         * configure.in: Disable TLS support by default for now.
1350         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1352         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1353         warnings.
1355         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1357         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1358         fprintf/fwprintf calls.
1360 2002-08-28  Roland McGrath  <roland@redhat.com>
1362         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1363         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1365         * locale/setlocale.c: Declare postload functions weak.
1367         * elf/tst-tls1-static.c: New file.
1368         * elf/tst-tls2-static.c: New file.
1369         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1371         Make uselocale support static linking.
1372         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1373         This file again just defines _nl_C_locobj.
1374         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1375         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1376         using all weak references in the initializer.
1377         * locale/Makefile (aux): Add global-locale.
1378         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1379         these unconditional, along with the tsd decl.
1380         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1381         Define it under these conditions.
1382         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1383         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1384         `extern __thread struct locale_data *const *'.
1385         [NL_CURRENT_INDIRECT]
1386         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1387         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1388         the thread variable _nl_current_LC_FOO and also a special absolute
1389         symbol _nl_current_LC_FOO_used.
1390         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1391         Set each _nl_current_LC_FOO symbol to point into the new locale,
1392         using weak references to test if _nl_current_LC_FOO_used was linked in.
1393         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1394         [NL_CURRENT_INDIRECT]: ... with this one.
1395         (_nl_current, _nl_C): Variables removed.
1396         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1397         weak references to _nl_current_LC_FOO_used.
1398         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1399         (free_category): New function, broken out of ...
1400         (free_mem): ... here.  Call that.
1401         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1402         instead of a loop.
1404         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1405         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1406         it is already absolute.
1408         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1409         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1410         [$(build-static) = yes] (tests-static): New variable.
1411         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1413 2002-08-26  Christoph Hellwig  <hch@lst.de>
1415         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1416         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1418 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1420         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1422         * sysdeps/s390/Dist: Add bits/link.h.
1424         * sysdeps/sh/Dist: New file.
1426         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1428         * sysdeps/wordsize-32/Dist: New file.
1430         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1431         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1432         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1434         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1435         sys/personality.h.
1437         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1438         sparc/dl-brk.S.
1440         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1442         * sysdeps/unix/bsd/sun/Dist: New file.
1444         * sysdeps/unix/bsd/osf/Dist: New file.
1446         * sysdeps/unix/bsd/hp/Dist: New file.
1448         * sysdeps/unix/arm/Dist: New file.
1450         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1452         * sysdeps/mach/hurd/Dist: Add set-init.c.
1454         * sysdeps/i386/Dist: Add bits/link.h.
1456         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1458         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1460         * locale/Makefile (distribute): Add hashval.h.
1462         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1464         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1466         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1467         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1468         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1469         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1470         implementations.
1471         * libio/stdio.h: Likewise.
1472         * locale/locale.h: Likewise.
1473         * math/math.h: Likewise.
1474         * math/bits/mathcalls.h: Likewise.
1475         * setjmp/setjmp.h: Likewise.
1476         * signal/signal.h: Likewise.
1477         * stdlib/stdlib.h: Likewise.
1478         * string/string.h: Likewise.
1479         * time/time.h: Likewise.
1480         * wcsmbs/wchar.h: Likewise.
1481         * wctype/wctype.h: Likewise.
1483 2002-08-28  Roland McGrath  <roland@redhat.com>
1485         * locale/tst-C-locale.c (run_test): Remove __ from function names.
1487 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1488             Roland McGrath <roland@redhat.com>
1490         * locale/hashval.h (compute_hashval): Use prototype defn.
1491         (hashval_t): New macro, defined to unsigned long int
1492         if not already defined.
1493         (compute_hashval): Return hashval_t instead of unsigned long int.
1494         * locale/loadarchive.c (hashval_t): New macro.
1495         * locale/programs/locarchive.c: Include hashval.h directly instead
1496         of simple-hash.h.
1497         (compute_hashval, hashval_t): Define these macros first.
1498         (insert_name): Use archive_hashval instead of compute_hashval.
1499         (add_locale, delete_locales_from_archive): Likewise.
1501 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1503         * locale/programs/locarchive.c (insert_name): Suppress warnings about
1504         hash collisions if be_quiet.
1506 2002-08-27  Roland McGrath  <roland@redhat.com>
1508         * locale/locale.h (__newlocale, __duplocale, __freelocale,
1509         __uselocale): Don't declare these any more.
1510         * include/locale.h (__uselocale): Declare here instead, using __typeof.
1512         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1513         and treat it as an EOF return.
1514         * sysdeps/unix/readdir_r.c: Likewise.
1516         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1517         From Alexandre Oliva <aoliva@redhat.com>.
1518         * sysdeps/gnu/errlist-compat.c: Regenerated.
1520 2002-08-27  Brian Youmans  <3diff@gnu.org>
1522         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1523         wording at request of copyright holder Stephen Moshier.
1524         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1525         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1526         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1527         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1528         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1529         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1530         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1531         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1532         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1533         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1534         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1535         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1536         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1537         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1539 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1541         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1542         * ctype/ctype-extn.c (isblank_l): Add weak alias.
1543         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1544         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1545         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1546         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1547         * wctype/iswctype_l.c (iswctype_l): Likewise.
1549 2002-08-27  Roland McGrath  <roland@redhat.com>
1551         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1553         * ctype/ctype.h (__exctype_l): Don't declare __ name.
1554         * stdlib/stdlib.h: Don't declare __*_l names.
1555         * include/stdlib.h: Declare them here instead.
1556         * include/string.h: Don't declare __*_l names.
1557         * string/string.h: Declare them here instead.
1558         * time/time.h: Don't declare __*_l names.
1559         * include/time.h: Declare them here instead.
1560         * wcsmbs/wchar.h: Don't declare __*_l names.
1561         * include/wchar.h: Declare them here instead.
1562         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1563         Don't declare __*_l names.
1564         * include/wctype.h: Declare them here instead.
1565         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1566         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1567         * locale/langinfo.h: Don't declare __nl_langinfo_l.
1568         * include/langinfo.h: Declare it here with __typeof.
1570         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1571         instead, taking an extra __locale_t argument.
1572         * time/Makefile (routines): Add strptime_l.
1573         * time/time.h (__strptime_l, strptime_l): Declare them.
1574         * time/strptime_l.c: New file.
1576         * time/time.h (__strftime_l, strftime_l): Declare them.
1577         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1578         * time/strftime_l.c: New file.
1579         * time/wcsftime_l.c: New file.
1580         * time/Makefile (routines): Add strftime_l, wcsftime_l.
1581         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1582         strftime_l, wcsftime_l.
1583         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1584         or __wcsftime_l instead, taking an extra __locale_t argument.
1586         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1587         (libc: GLIBC_2.3): ... here.
1589 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1591         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1593         * Makefile (distribute): Add LICENSES.
1595         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1596         sys/debugreg.h.
1598         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1600         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1602         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1604         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1606         * sysdeps/mach/hurd/alpha/Dist: New file.
1608         * sysdeps/arm/Dist: Add bits/link.h.
1610         * sunrpc/Makefile: Distribute thrsvc.
1612         * stdio-common/Makefile: Remove more left-overs from old stdio.
1614         * include/linewrap.h: Removed.
1616         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1618         * intl/Makefile (distribute): Add plural-eval.c.
1620 2002-08-27  Roland McGrath  <roland@redhat.com>
1622         * manual/sysinfo.texi (Mount Information): Correct file name to macro
1623         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1624         Say mtab is in either /var/run or /etc.
1626 2002-08-26  Roland McGrath  <roland@redhat.com>
1628         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1629         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1631         * sysdeps/gnu/Versions: New file.
1632         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1633         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1634         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1635         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1636         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1637         and _sys_nerr_internal instead of anything else.  Make it include
1638         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1639         Make it emit some asm magic if [EMIT_ERR_MAX].
1640         * sysdeps/gnu/errlist.c: Regenerated.
1641         * sysdeps/gnu/errlist-compat.awk: New file.
1642         * sysdeps/gnu/errlist-compat.c: New file (generated).
1643         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1644         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1645         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1646         (SYS_ERRLIST, SYS_NERR): Macros removed.
1647         (sys_nerr, _sys_nerr): Remove these weak aliases.
1648         * sysdeps/unix/sysv/linux/errlist.c: File removed.
1649         * sysdeps/unix/sysv/linux/errlist.h: File removed.
1650         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1652         * include/libc-symbols.h (declare_symbol): New macro.
1653         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1654         * configure.in: New check to define it.
1655         * configure: Regenerated.
1657 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1659         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
1660         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
1662         * Make-dist: Remove traces of old stdio.
1663         * Makeconfig: Likewise.
1665         * locale/Makefile (localedef-aux): New variable.  Only md5
1666         assigned to it.  These files are not ddistributed in this directory.
1668         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1669         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1670         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1672         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1674         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1675         set h_errno to NO_RECOVERY [PR libc/4360].
1677 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1679         * libio/Makefile (tests): Add bug-fopena+.
1680         * libio/bug-fopena+.c: New file.
1681         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1682         file for _IO_IS_APPENDING if file isn't opened for reading, too.
1684         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1686         * locale/xlocale.c: Fix the last change.  The variable still has
1687         to end in _data.
1688         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1689         (__libc_tsd_set): Add _data prefix to variable name.
1691 2002-08-26  Roland McGrath  <roland@redhat.com>
1693         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1694         macro with inline function.
1695         (sigset_get_old_mask): Likewise.
1696         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1697         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1698         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1699         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1700         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1701         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1702         values.
1703         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1704         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1706 2002-07-06  Bruno Haible  <bruno@clisp.org>
1708         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1709         sigset_get_old_mask): Make it work with larger sigset_t.
1710         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1711         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1712         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1714 2002-08-26  Roland McGrath  <roland@redhat.com>
1716         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1717         * manual/filesys.texi (File Times): Document lutimes and futimes.
1718         * misc/Makefile (routines): Add them.
1719         * misc/Versions (libc: GLIBC_2.3): Likewise.
1720         * sysdeps/generic/lutimes.c: New file.
1721         * sysdeps/generic/futimes.c: New file.
1722         * sysdeps/mach/hurd/lutimes.c: New file.
1723         * sysdeps/mach/hurd/futimes.c: New file.
1725         * manual/filesys.texi (File Times): Add explicit note about null
1726         pointer argument to utimes.
1728 2002-08-26  Roland McGrath  <roland@frob.com>
1730         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1731         (__ifreq): Add a cast.  Remove an unused variable.
1733         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1734         _HURD_THREADVAR_LOCALE.
1736 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
1738         * posix/regexec.c (re_search_stub): Return correct match length
1739         if start != 0.
1740         * posix/bug-regex10.c: New test.
1741         * posix/Makefile (tests): Add bug-regex10.
1743 2002-08-26  Brian Youmans  <3diff@gnu.org>
1745         * COPYING.LIB: Replaced with fresh copy from
1746         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1747         suggested copying permission notice now says version 2.1 instead
1748         of version 2.
1750         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1751         from Library GPL.
1752         * crypt/crypt_util.c: Likewise.
1753         * crypt/ufc.c: Likewise.
1754         * elf/dl-conflict.c: Likewise.
1755         * elf/dl-iteratephdr.c: Likewise.
1756         * iconv/iconvconfig.h: Likewise.
1757         * malloc/arena.c: Likewise.
1758         * malloc/hooks.c: Likewise.
1759         * malloc/malloc.c: Likewise.
1760         * posix/glob/Makefile.ami: Likewise.
1761         * posix/glob/Makefile.in: Likewise.
1762         * stdlib/gmp-impl.h: Likewise.
1763         * stdlib/gmp.h: Likewise.
1764         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1765         * sysdeps/generic/strnlen.c: Likewise.
1766         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1767         * sysdeps/mach/hurd/recvmsg.c: Likewise.
1768         * sysdeps/mach/hurd/sendmsg.c: Likewise.
1769         * sysdeps/mach/hurd/spawni.c: Likewise.
1770         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1771         * sysdeps/mach/powerpc/sysdep.h: Likewise.
1772         * sysdeps/mach/powerpc/thread_state.h: Likewise.
1773         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1774         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1775         * sysdeps/x86_64/gmp-mparam.h: Likewise.
1777         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1778         Lesser GPL copying permission notice from 2 to 2.1.
1779         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1780         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1781         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1782         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1783         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1784         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1785         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1786         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1787         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1788         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1789         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1790         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1791         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1792         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1793         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1794         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1795         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1796         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1797         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1798         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1799         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1800         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1801         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1802         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1803         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1804         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1805         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1806         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1807         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1808         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1809         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1810         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1811         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1812         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1813         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1814         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1815         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1816         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1817         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1818         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1819         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1820         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1821         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1822         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1823         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1824         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1825         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1826         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1827         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1828         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1829         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1830         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1831         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1832         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1833         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1835         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1836         Moshier and Lesser GPL copying permission notice, per license from
1837         Moshier.
1838         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1839         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1840         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1841         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1842         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1843         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1844         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1845         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1846         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1847         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1848         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1849         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1850         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1851         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1853         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
1854         notice, per license from copyright holder Stephen Moshier.
1855         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1856         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1857         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1858         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1859         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1860         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1861         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1862         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1863         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1865 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1867         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
1868         (shared-only-routines): Likewise.
1870 2002-08-26  Roland McGrath  <roland@redhat.com>
1872         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
1873         name of "", store a null pointer instead.
1875         * configure.in (elf): Set to yes for freebsd*, netbsd*.
1876         * configure: Regenerated.
1878         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
1879         Initialize this instead of __libc_tsd_LOCALE_data.
1881         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
1882         ptsname_r to EINVAL.
1884         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
1886         * rt/Makefile: Revert last change, it was inappropriate to presume aio
1887         implementations depend on pthreads.
1888         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
1889         * rt/tst-aio64.c (do_test): Likewise.
1890         * rt/tst-aio2.c (do_test): Likewise.
1891         * rt/tst-aio3.c (do_test): Likewise.
1892         * rt/tst-aio4.c (do_test): Likewise.
1893         * rt/tst-aio5.c (do_test): Likewise.
1894         * rt/tst-aio6.c (do_test): Likewise.
1895         * rt/tst-aio7.c (do_test): Likewise.
1897         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
1898         void so as to avoid compiler warnings.
1900         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
1901         _IO_wide_data_FD, which is never used here.
1903         * libio/iofread.c
1904         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
1905         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
1906         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
1908         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
1909         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
1911         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
1912         (closelog): Likewise.
1914 2002-07-06  Bruno Haible  <bruno@clisp.org>
1916         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
1918         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
1919         * sysdeps/unix/alpha/pipe.S: ... here.
1920         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
1922         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
1924         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
1925         * sysdeps/unix/i386/fork.S: Likewise.
1926         * sysdeps/unix/i386/pipe.S: Likewise.
1927         * sysdeps/unix/i386/wait.S: Likewise.
1929         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
1930         * sysdeps/unix/arm/fork.S: Likewise.
1932         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
1933         arguments.
1934         (DO_CALL): Swap argument order.
1935         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
1936         arguments.
1937         (DO_CALL): Swap argument order.
1938         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
1939         arguments.
1940         (DO_CALL): Swap argument order.
1941         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
1942         arguments.
1943         (DO_CALL): Swap argument order.
1944         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
1945         arguments.
1946         (DO_CALL): Swap argument order.
1947         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
1948         arguments.
1949         (DO_CALL): Swap argument order.
1950         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
1951         arguments.
1952         (DO_CALL): Swap argument order.
1954         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
1955         (L): Define right for ELF.
1956         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
1957         Now defined in sysdeps/i386/sysdep.h.
1959         * sysdeps/posix/readv.c: Ansify function definition.
1960         * sysdeps/posix/writev.c: Likewise.
1962         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
1963         have the same size. Avoid direct cast from size_t to off_t.
1965         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
1966         nul byte in entry[n].ut_user.
1967         (simulate_logout): Likewise.
1969         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
1970         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
1971         existence of corresponding members of 'struct utmp'.
1972         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
1973         !_HAVE_UT_TYPE.
1975         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
1976         allocate a buffer of at least BUFSIZ bytes, not just of
1977         sizeof (struct dirent).
1979         * sysdeps/generic/glob.c: Include <limits.h>.
1980         (NAME_MAX): Define a fallback.
1981         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
1982         stack.
1983         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
1984         (main): Allocate enough room for a 'struct dirent64' on the stack.
1985         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
1986         'struct dirent'.
1988         * sysdeps/unix/sysv/linux/init-first.c: Don't include
1989         kernel-features.h.
1991         * inet/htontest.c: Include <sys/types.h>.
1993         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
1995         * include/sys/sysctl.h: Comment fix.
1997         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
1998         _dl_load_lock.
1999         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2001         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2003         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2004         (__getpeername): New alias.
2005         (__getsockname): New alias.
2006         (__socket): New alias.
2008         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2010         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2011         (__fcntl_internal): New alias.
2012         (__profil): New alias.
2014 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2016         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2017         entry was for getaddr* lookup or not.  Add only matching cache
2018         entry.  Change all callers [PR libc/4317].
2020         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2021         finding the read position [PR libc/4265].
2022         * libio/Makefile (tests): Add bug-rewind2.
2023         * libio/bug-rewind2.c: New file.
2025         * libio/bug-rewind.c: Fix creation of temp file.
2027 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2029         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2030         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2031         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2032         to ENOENT if no entry is found.
2033         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2034         failure.
2035         * nis/nss_compat/compat-initgroups.c: Likewise.
2036         * nis/nss_compat/compat-pwd.c: Likewise.
2037         * nis/nss_compat/compat-spwd.c: Likewise.
2038         * nis/nss_nis/nis-alias.c: Likewise.
2039         * nis/nss_nis/nis-ethers.c: Likewise.
2040         * nis/nss_nis/nis-grp.c: Likewise.
2041         * nis/nss_nis/nis-hosts.c: Likewise.
2042         * nis/nss_nis/nis-initgroups.c: Likewise.
2043         * nis/nss_nis/nis-netgrp.c: Likewise.
2044         * nis/nss_nis/nis-network.c: Likewise.
2045         * nis/nss_nis/nis-proto.c: Likewise.
2046         * nis/nss_nis/nis-publickey.c: Likewise.
2047         * nis/nss_nis/nis-pwd.c: Likewise.
2048         * nis/nss_nis/nis-rpc.c: Likewise.
2049         * nis/nss_nis/nis-service.c: Likewise.
2050         * nis/nss_nis/nis-spwd.c: Likewise.
2051         * resolv/nss_dns/dns-host.c: Likewise.
2052         * resolv/nss_dns/dns-network.c: Likewise.
2053         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2054         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2055         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2056         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2057         * nis/nss_nisplus/nisplus-network.c: Likewise.
2058         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2059         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2060         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2061         * nis/nss_nisplus/nisplus-service.c: Likewise.
2062         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2063         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2064         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2065         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2066         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2068         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2069         declaring __restore and __restore_rt as hidden (if possible).
2071 2002-08-25  Roland McGrath  <roland@redhat.com>
2073         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2075         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2076         (getutent_r_file, internal_getut_r): Updated all callers.
2077         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2079 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2081         * locale/programs/locale.c: Don't print aliases for non-existing
2082         locales for 'locale -a'.
2083         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2085 2002-07-19  H.J. Lu  <hjl@gnu.org>
2087         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2089 2002-07-16  H.J. Lu  <hjl@gnu.org>
2091         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2092         sys/personality.h.
2093         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2095 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2097         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2098         not moved ahead of the fputs call.
2099         * elf/tst-tlsmod2.c (in_dso): Likewise.
2100         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2101         * elf/tst-tlsmod4.c (in_dso): Likewise.
2103 2002-08-25  Andreas Schwab  <schwab@suse.de>
2105         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2107 2002-08-25  Roland McGrath  <roland@redhat.com>
2109         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2110         resetting handler, to avoid the possibility of a spurious SIGALRM
2111         delivered to the user's handler.
2112         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2114         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2115         set -fkeep-inline-functions, which is not needed for the current file.
2117         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2118         (_dl_setup_hash): Add attribute_hidden.
2119         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2120         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2121         (_dl_new_object, _dl_map_object_deps): Likewise.
2122         (_dl_map_object_deps_internal): Remove decl.
2123         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2125         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2126         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2127         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2128         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2129         instead relying on the compiler to produce only GOTOFF variable refs.
2131 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2133         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2135         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2136         inline to avoid defining it in every file which includes this header.
2138         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2139         defining DONT_USE_BOOTSTRAP_MAP.
2141         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2142         * libio/tst-mmap-setvbuf.c (main): Likewise.
2143         * libio/tst-widetext.c (main): Likewise.
2145         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2146         message.
2147         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2148         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2150         * sysdeps/i386/elf/configure.in: Unconditionally define
2151         PI_STATIC_AND_HIDDEN.
2152         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2153         PI_STATIC_AND_HIDDEN is defined as well.
2154         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2156 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2158         * sysdeps/ia64/bzero.S: Define __bzero as well.
2160         * locale/programs/charmap.c (charmap_new_char): Don't use
2161         ULONG_MAX as maximum UCS4 value.
2163         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2165         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2167         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2168         * malloc/malloc.c (mALLINFo): Likewise.
2170         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2172         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2173         examining result of _IO_do_flush call.
2175         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2176         Use prec not spec when sizing buffers.
2178         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2179         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2180         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2181         * stdio-common/vfscanf.c (inchar): Likewise.
2182         * misc/efgcvt_r.c (fcvt_r): Likewise.
2183         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2184         * elf/readlib.c (process_file): Likewise.
2185         * elf/sprof.c (load_profdata): Likewise.
2186         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2187         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2188         * locale/programs/charmap.c (charmap_read): Likewise.
2189         * libio/fileops.c: Likewise.
2190         * libio/fmemopen.c: Likewise.
2191         * stdlib/strtod.c: Likewise.
2192         * elf/dl-load.c: Likewise.
2193         * iconv/iconvconfig.c: Likewise.
2194         * iconv/iconv_prog.c (process_block): Likewise.
2195         * elf/rtld.c (dl_main): Likewise.
2197         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2198         macro to calm down the compiler.
2200         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2202         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2204         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2205         placement of errno definition.
2206         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2207         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2208         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2209         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2210         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2212         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2213         from 1024 to 65536, to avoid buffer overrun.
2215 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2217         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2218         from 1024 to 65536, to avoid buffer overrun.
2219         * resolv/res_query.c (MAXPACKET): Likewise.
2221 2002-08-24  Andreas Jaeger  <aj@suse.de>
2223         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2225 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2227         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2228         two52 locally.
2229         (log2): Likewise.
2230         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2231         Patch by Simon Gee <simong@agile.tv>.
2233         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2234         Prefer reading /proc/stat since it is more uniform across
2235         architectures.
2237         * manual/texinfo.tex: Update to latest official version.
2239         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2240         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2241         * sysdeps/gnu/bits/shm.h: Likewise.
2242         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2243         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2244         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2245         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2246         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2247         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2248         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2249         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2250         since this is what the kernel says.
2252         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2253         since ssize_t is needed as well.  Replace const with __const.
2255 2002-08-23  Roland McGrath  <roland@redhat.com>
2257         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2258         __malloc_hook, __realloc_hook, __memalign_hook,
2259         __after_morecore_hook): Variable definitions moved to ...
2260         * malloc/malloc.c: ... here, so as to be before all references.
2262         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2263         global variable reference in an unused asm parameter, to ensure the
2264         compiler has set up the GOT register before we use it.
2266         * malloc/hooks.c: Move variable definitions ahead of uses.
2267         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2268         initializers that make reference to variables they define.
2270 2002-08-23  Andreas Jaeger  <aj@suse.de>
2272         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2273         alloca, free, qsort.
2275         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2277         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2278         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2280         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2281         <hch@lst.de>.
2282         * sysdeps/generic/fgetxattr.c: New file.
2283         * sysdeps/generic/flistxattr.c: New file.
2284         * sysdeps/generic/fremovexattr.c: New file.
2285         * sysdeps/generic/fsetxattr.c: New file.
2286         * sysdeps/generic/getxattr.c: New file.
2287         * sysdeps/generic/listxattr.c: New file.
2288         * sysdeps/generic/lgetxattr.c: New file.
2289         * sysdeps/generic/llistxattr.c: New file.
2290         * sysdeps/generic/lremovexattr.c: New file.
2291         * sysdeps/generic/lsetxattr.c: New file.
2292         * sysdeps/generic/removexattr.c: New file.
2293         * sysdeps/generic/setxattr.c: New file.
2294         * misc/Makefile (headers): Add sys/xattr.h.
2295         (routines): Add *xattr calls.
2296         * misc/Versions: Add *xattr calls with version 2.3.
2297         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2298         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2299         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2300         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2301         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2302         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2303         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2304         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2306 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2308         * sysdeps/powerpc/elf/libc-start.c
2309         (__cache_line_size): Declare.
2310         (__aux_init_cache): New function.
2311         (__libc_start_main): Change type of `auxvec' parameter to
2312         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2313         __aux_init_cache.
2314         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2315         (__cache_line_size): Declare.
2316         (__aux_init_cache): New function.
2317         (DL_PLATFORM_INIT): Define.
2318         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2319         value to select the correct stride for dcbz.
2321 2002-08-22  Andreas Jaeger  <aj@suse.de>
2323         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2324         shmat.
2326 2002-08-22  Roland McGrath  <roland@redhat.com>
2328         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2329         position indicated by locrectab against file bounds before rounding to
2330         page size.  In mapping loop, always set TO before breaking out of
2331         contiguous range coalescing loop.
2333         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2334         (or MAP_COPY if available) instead of MAP_SHARED.
2336         * scripts/firstversions.awk: When encountering a version newer than
2337         the specified earliest version, be sure to emit the specified earliest
2338         version first if any renaming of an older version to that has been.
2340 2002-08-21  Roland McGrath  <roland@redhat.com>
2342         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2343         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2344         (Configuring and compiling): Don't mention older GCC versions any more.
2345         * INSTALL: Regenerated.
2347         * manual/install.texi (Configuring and compiling, Installation,
2348         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2350         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2351         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2352         and with noinline otherwise.  Remove hack alloca use to prevent
2353         inlining, we can ask for it explicitly nowadays.
2355         * dlfcn/bug-dlsym1.c: New file.
2356         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2357         * dlfcn/Makefile (distribute): Add them.
2358         (tests): Add bug-dlsym1 here.
2359         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2360         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2361         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2363 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2365         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2366         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2367         before relocation.
2368         (_dl_start): Don't use local bootstrap_map variable if
2369         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2370         pass bootstrap_map to _dl_start_final in this case either.  Don't
2371         pass start_time to _dl_start_final ever.
2372         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2374         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2375         This cripples the scope lists necessary to search for symbols in
2376         dependencies which are not in the global scope.
2378         * include/setjmp.h (__libc_longjmp): Add declaration.
2380 2002-08-21  Andreas Jaeger  <aj@suse.de>
2382         * sysdeps/x86_64/_mcount.S: Fix assembler.
2384         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2385         with biarch support.
2387 2002-08-21  Andreas Jaeger  <aj@suse.de>
2389         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2391         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2393         * sysdeps/x86_64/machine-gmon.h: New file.
2394         * sysdeps/x86_64/_mcount.S: New file.
2396 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2398         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2399         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2400         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2401         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2402         to TL_INIT_TP.  Otherwise pass 1.
2403         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2404         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2406 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2408         * locale/programs/localedef.c (add_to_readlist): Error about
2409         circular dependencies only if the locale in question hasn't
2410         been finished.
2411         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2412         CTYPE_LOCALE to load_locale.
2413         * locale/programs/locfile.c (locfile_read): Don't include
2414         unneeded but available locales in locale_mask.
2416         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2417         print any messages about enlarging archive.
2419 2002-08-20  Brian Youmans  <3diff@gnu.org>
2421         * manual/contrib.texi: Removed licenses, added acknowledgements
2422         for contributions by Intel, IBM, Craig Metz.
2423         * LICENSES: New file, contains the text of all non-FSF licenses in the
2424         distribution that require putting the notice in the accompanying
2425         documentation.
2426         * README.template, README: Mention LICENSES.
2428         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2429         new one modelled on the modern BSD license, per recent letter
2430         of permission from CMU.
2431         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2433         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2434         from IBM to FSF, per the recent Software Letter.  Changed the
2435         distribution terms from GPL to LGPL.
2437         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2438         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2439         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2440         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2441         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2442         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2443         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2444         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2445         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2446         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2448         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2449         from IBM to FSF, per the recent Software Letter.  Corrected the
2450         text of the copying permission notice to say Lesser GPL instead
2451         of GPL in warranty disclaimer paragraph.
2452         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2453         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2454         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2455         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2456         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2457         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2458         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2459         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2460         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2461         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2462         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2463         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2464         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2465         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2466         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2467         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2468         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2469         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2470         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2471         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2472         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2474         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2475         permission notice to say Lesser GPL instead of GPL in warranty
2476         disclaimer paragraph.
2477         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2478         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2479         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2480         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2481         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2482         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2483         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2484         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2485         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2486         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2487         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2488         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2489         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2490         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2491         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2492         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2493         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2494         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2495         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2496         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2497         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2498         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2499         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
2501 2002-08-20  Roland McGrath  <roland@redhat.com>
2503         Fix ABI compatibility with libc compiled with old tools on powerpc.
2504         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2505         and Jack Howarth <howarth@bromo.med.uc.edu>.
2506         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2507         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2508         pass -DHAVE_DOT_HIDDEN for these files.
2509         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2510         __floatdisf.
2511         * sysdeps/powerpc/divdi3.c: New file.
2512         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2513         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2515 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
2517         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2518         partially overlapping mappings.  Remove unneeded (char *) casts.
2519         Never allow duplication of ranges in mapped areas.
2521 2002-08-20  Roland McGrath  <roland@redhat.com>
2523         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2524         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
2526 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2528         * include/unistd.h: Don't hide _exit.
2530         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2531         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2532         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2533         argument 1 to TLS_INIT_TP.
2534         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2536         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2538         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2539         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2540         memory allocation to...
2541         (allocate_dtv): ...here.  New function.
2542         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
2543         call allocate_dtv instead of _dl_allocate_tls_storage.
2544         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
2545         (_dl_get_tls_static_info): New function.
2546         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2547         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
2549 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
2551         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2552         immediately if result == NULL.
2554 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2556         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2558 2002-08-18  Roland McGrath  <roland@frob.com>
2560         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2561         instead of __file_name_split.
2562         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2564         * sysdeps/mach/hurd/dl-sysdep.c
2565         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2566         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2568 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2570         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2571         in change before last: MAX -> MIN.
2573 2002-08-15  Roland McGrath  <roland@redhat.com>
2575         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2576         if seek would go past it.
2577         (mmap_remap_check): If file position is at or past EOF after check,
2578         leave read pointers at EOF and don't seek.
2580         * libio/tst-mmap-offend.c: New file.
2581         * libio/Makefile (tests): Add it.
2583         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2584         the name as passed, rather than the name in the archive dictionary.
2586 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2588         * csu/Makefile: Define elide-routines.os not static-only-routines.
2590         * include/sched.h (__clone): Add varargs at the end.
2592         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2593         case.
2594         (TLS_INIT_HELPER): If defined, use it.
2595         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2597 2002-08-15  Roland McGrath  <roland@redhat.com>
2599         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2600         on L->l_prev; it can happen under rtld --verify too.
2602         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2603         header separately, just map an initial window of 2MB from the file
2604         and remap if that is not large enough to cover the whole header.
2606 2002-08-15  Andreas Jaeger  <aj@suse.de>
2608         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2609         version 2.3.
2610         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2611         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2612         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2613         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2614         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2615         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2616         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2617         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2618         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2619         Patch by Andreas Gruenbacher <agruen@suse.de>.
2621         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2623 2002-08-14  Roland McGrath  <roland@redhat.com>
2625         * locale/locarchive.h (struct locale_category_data): Give this name to
2626         the type of locale_data_t's elements.
2627         * locale/programs/locarchive.c (cmpcategorysize): New static function.
2628         (add_locale): Use that to sort the categories by size and put all
2629         those that fit into two pages into the LC_ALL block, instead of
2630         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2631         (show_archive_content): Detect categories inside LC_ALL block
2632         directly, instead of hard-coding.
2633         (oldlocrecentcmp): Compare just on file locations used.
2635 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
2637         * locale/programs/locarchive.c (struct oldlocrecent): New type.
2638         (oldlocrecentcmp): New function.
2639         (enlarge_archive): Re-add locales in the order they were added
2640         to the archive.
2641         (add_locale): Put all the small locale files together, if the small
2642         locale file block would occupy less pages if page size aligned, align
2643         it.
2644         (show_archive_content): Adjust for locale archives optimized for speed.
2646 2002-08-14  Roland McGrath  <roland@frob.com>
2648         * configure.in: Use "MISSING" as not-found value for MIG.
2649         * sysdeps/mach/configure.in: Fatal if mig not found.
2650         * configure, sysdeps/mach/configure: Regenerated.
2652 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2654         * locale/loadarchive.c (archfname): Add missing slash.
2656         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2657         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2659 2002-08-12  Roland McGrath  <roland@redhat.com>
2661         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2662         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2663         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2664         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2665         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2666         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2667         * sysdeps/generic/waitpid.c: Likewise.
2669         * include/net/if.h: New file.  Use libc_hidden_proto
2670         for if_nametoindex and if_indextoname.
2671         * sysdeps/generic/if_index.c: Add libc_hidden_def.
2672         * sysdeps/mach/hurd/if_index.c: Likewise.
2673         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2675         * include/grp.h (setgroups): Add libc_hidden_proto.
2676         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2677         * sysdeps/mach/hurd/setgroups.c: Likewise.
2678         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2679         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2681 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2683         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2684         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2685         * sysdeps/generic/setegid.c (setegid): Likewise.
2686         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2687         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2688         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2689         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2690         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2691         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2692         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2693         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2694         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2695         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2696         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2697         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2698         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2700         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2701         __lxstat_internal, __lxstat64_internal): Remove.
2702         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2703         Add hidden_proto.
2704         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2705         Remove INTDEF where present, remove #undef at the beginning.
2706         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2707         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2708         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2709         * sysdeps/generic/xstat.c (__xstat): Likewise.
2710         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2711         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2712         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2713         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2714         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2715         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2716         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2717         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2718         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2719         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2720         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2721         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2722         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2723         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2724         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2725         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2726         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2727         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2728         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2729         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2730         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2731         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2732         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2733         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2734         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2735         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2736         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2737         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2738         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2739         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2740         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2741         * sysdeps/unix/xstat.c (__xstat): Likewise.
2743         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2744         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2745         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2746         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2747         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2748         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2749         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2751         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2752         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2753         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2754         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2755         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2756         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2757         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2758         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2759         Likewise.
2760         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2761         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2762         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2763         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2764         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2765         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2766         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2767         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2769         * include/string.h (strcoll): Add libc_hidden_proto.
2770         * string/strcoll.c (strcoll): Add libc_hidden_def.
2772         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2774 2002-08-11  Philip Blundell  <philb@gnu.org>
2776         * sysdeps/arm/Makefile: New file.
2778 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2780         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2781         by another '|', end of regex or enclosing ')', clear branch.
2782         * posix/bug-regex9.c: New test.
2783         * posix/Makefile (tests): Add bug-regex9.
2785 2002-08-12  Roland McGrath  <roland@redhat.com>
2787         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2788         start count condition, use TOTAL instead of variable that was never
2789         set.  Fix outer loop termination condition to TOTAL >= after update.
2791         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2792         dl_tls_static_align and dl_tls_static_nelem.
2794 2002-08-11  Roland McGrath  <roland@redhat.com>
2796         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2797         of the TLS macros, otherwise the compiler might not have initialized
2798         the PIC register yet when we use the PLT via asm.
2799         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2800         * elf/tst-tlsmod2.c (in_dso): Likewise.
2802         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2804         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2805         Evaluate argument exactly once.  Remove __volatile__ from asm's.
2807         * include/unistd.h: Use libc_hidden_proto for getdomainname
2808         and getlogin_r.
2809         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2810         * sysdeps/mach/hurd/getdomain.c: Likewise.
2811         * sysdeps/unix/getlogin_r.c: Likewise.
2812         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2813         * sysdeps/generic/getlogin_r.c: Likewise.
2815         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2816         * sunrpc/rtime.c: Add libc_hidden_def.
2818         * include/string.h: Use libc_hidden_proto for basename.
2819         * string/basename.c [_LIBC]: Add libc_hidden_def.
2821         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2823         * locale/loadarchive.c: munmap -> __munmap throughout.
2825         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2826         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2827         * sysdeps/generic/gai_strerror.c: Likewise.
2829         * include/sys/errno.h: New file.
2831         * include/signal.h: No libc_hidden_proto for raise,
2832         __libc_current_sigrtmin, __libc_current_sigrtmax.
2833         These need to be overridden by linuxthreads.
2834         * sysdeps/posix/raise.c: Reverted.
2835         * sysdeps/generic/raise.c: Reverted.
2836         * signal/allocrtsig.c: Reverted.
2838         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
2840 2002-08-10  Roland McGrath  <roland@redhat.com>
2842         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2843         * locale/localeinfo.h: Declare it.
2844         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2845         current locale if it's not in the file list.
2846         Call _nl_archive_subfreeres.
2848 2002-08-10  Andreas Jaeger  <aj@suse.de>
2850         * sysdeps/i386/strchr.S: Add comment.
2852 2002-08-10  Roland McGrath  <roland@redhat.com>
2854         * include/wchar.h (putwc): Use libc_hidden_proto.
2855         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
2856         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
2857         * stdio-common/dprintf.c: Add libc_hidden_def.
2858         * stdio-common/fprintf.c: Likewise.
2859         * stdio-common/sprintf.c: Likewise.
2860         * stdio-common/sscanf.c: Likewise.
2861         * libio/iofwrite.c: Likewise.
2862         * libio/memstream.c: Likewise.
2863         * libio/putwc.c: Likewise.
2864         * stdio-common/perror.c: Likewise.
2865         * sysdeps/posix/remove.c: Likewise.
2866         * sysdeps/generic/remove.c: Likewise.
2867         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
2868         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
2870 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
2872         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2873         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
2874         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2875         towlower, towupper): Add libc_hidden_weak.
2877         * include/bits/dlfcn.h: New file.
2878         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
2880         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
2881         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
2882         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
2883         * include/pwd.h (_nss_files_parse_pwent): Likewise.
2884         * include/shadow.h (_nss_files_parse_spent): Likewise.
2885         * include/netdb.h (_nss_files_parse_protoent,
2886         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
2887         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
2888         (LINE_PARSER): Use it.
2889         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
2890         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
2892         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
2893         #endif.
2895         * manual/debug.texi (%MENU%): Remove trailing dot.
2896         Reported by <hayastan132@hotmail.com>.
2898         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
2899         aliases.
2900         (lseek): Dummy.
2901         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
2902         Likewise.
2904 2002-08-09  Roland McGrath  <roland@redhat.com>
2906         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
2907         name to find codeset name (if any) and normalize it.  If the
2908         normalized name differs, look up only that in the archive.
2909         * locale/programs/locarchive.c (add_locale_to_archive): If the name
2910         contains a codeset, normalize the codeset store only the normalized
2911         name in the archive.  If not, add an alias containing the locale's
2912         normalized codeset name.  Apply codeset name normalization when
2913         matching entries in the alias file.
2915         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
2916         decrement HEAD->namehash_used here.
2917         (add_locale): Only need to insert name string when name_offset != 0.
2919         * locale/programs/localedef.c (options): Add -A/--alias-file.
2920         (alias_file): New variable.
2921         (parse_opt): Grok -A, set that.
2922         * locale/programs/localedef.h: Declare it.
2924         * locale/locarchive.h (struct locrecent): Add `refs' member.
2925         * locale/programs/locarchive.c (insert_name): New function, broken out
2926         of ...
2927         (add_locale_to_archive): ... here.  Call that.
2928         (add_alias): New function.
2929         (add_locale): New static function, add_locale_to_archive renamed.
2930         (add_locale_to_archive): Call that and use add_alias to add an alias
2931         for the name with codeset if the given name lacks it.
2932         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
2934         * locale/Makefile (routines): Add loadarchive.
2935         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
2936         (_nl_load_locale_from_archive): New function.
2937         * locale/localeinfo.h: Declare it.
2938         * locale/findlocale.c (_nl_find_locale): If using default locale path,
2939         try _nl_load_locale_from_archive first.
2941         * locale/loadlocale.c (_nl_intern_locale_data): New function,
2942         broken out of _nl_load_locale.
2943         (_nl_load_locale): Call that.
2944         * locale/localeinfo.h: Declare it.
2945         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
2946         (struct locale_data): Remove unused member `options'.
2947         * locale/findlocale.c (_nl_remove_locale): Update uses.
2948         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2949         * locale/C-collate.c: Update initializer.
2950         * locale/C-identification.c: Likewise.
2951         * locale/C-measurement.c: Likewise.
2952         * locale/C-telephone.c: Likewise.
2953         * locale/C-address.c: Likewise.
2954         * locale/C-name.c: Likewise.
2955         * locale/C-paper.c: Likewise.
2956         * locale/C-time.c: Likewise.
2957         * locale/C-numeric.c: Likewise.
2958         * locale/C-monetary.c: Likewise.
2959         * locale/C-messages.c : Likewise.
2960         * locale/C-ctype.c: Likewise.
2962         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
2963         use CHAR_BIT instead of BITSPERBYTE.
2965         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
2966         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
2967         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
2968         (_nl_remove_locale): Likewise.
2969         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2971         * locale/findlocale.c (_nl_default_locale_path): New variable.
2972         (_nl_find_locale): If LOCALE_PATH is null, default to that.
2973         * locale/localeinfo.h: Declare it.
2974         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
2975         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
2976         * locale/newlocale.c (__newlocale): Likewise.
2978         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
2979         * inet/rexec.c (rexec_af): Add libc_hidden_def.
2980         * sysdeps/generic/morecore.c: Likewise.
2981         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
2982         (__libc_current_sigrtmax): Likewise.
2984 2002-08-08  Roland McGrath  <roland@redhat.com>
2986         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
2987         * catgets/open_catalog.c (__open_catalog): Likewise.
2989         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
2990         from typo INITIAL_NUM_NANES.
2991         (create_archive): Update use.
2993 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
2995         * sysdeps/unix/sysv/linux/sigwait.c: New file.
2997 2002-08-08  Roland McGrath  <roland@frob.com>
2999         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3001 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3003         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3004         else and undefine after including wcstol_l.c.
3005         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3007 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3009         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3011 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3013         * configure.in: Make the test for broken_alias_attribute stricter.
3015 2002-05-24  Robert Love  <rml@tech9.net>
3017         * posix/Makefile (routines): Add sched_getaffinity and
3018         sched_setaffinity.
3019         * posix/sched.h: Add declarations for sched_getaffinity and
3020         sched_setaffinity.
3021         * sysdeps/generic/sched_getaffinity.c: New file.
3022         * sysdeps/generic/sched_setaffinity.c: New file.
3023         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3024         sched_setaffinity.
3026 2002-08-06  Andreas Schwab  <schwab@suse.de>
3028         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3030 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3032         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3033         message.
3035         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3036         It is known to be defined.
3038         * include/string.h: Define index and rindex only if _ISOMAC is not
3039         defined.
3041         * elf/rtld.c: Include <errno.h>.
3042         * sysdeps/generic/libc-tls.c: Likewise.
3044 2002-08-07  Roland McGrath  <roland@redhat.com>
3046         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3047         it internally.
3048         (precsize_aton): Likewise.
3050         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3051         the static symbols added in the last change (doofus is me).
3053         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3054         loop to notice missing categories in a composite name.
3056         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3057         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3058         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3059         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3061 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3063         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3065 2002-08-07  Roland McGrath  <roland@redhat.com>
3067         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3068         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3069         Reported by Jakub Jelinek  <jakub@redhat.com>.
3071 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3073         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3074         division.
3076 2002-08-06  Roland McGrath  <roland@redhat.com>
3078         * include/getopt.h: Put private decls inside [_GETOPT_H].
3079         Use libc_hidden_proto for getopt_long, getopt_long_only.
3080         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3081         Add libc_hidden_def.
3083         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3084         Define as a macro for __dl_iterate_phdr.
3086         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3087         made static.  Add __ name as a strong alias.
3088         (internal_endnetgrent): Likewise.
3089         (internal_getnetgrent_r): Likewise.
3091         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3092         with no __ prefix.
3093         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3094         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3095         all *_l functions with no __ prefix.
3096         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3097         * ctype/ctype_l.c: Likewise.
3098         * locale/nl_langinfo.c: Likewise.
3099         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3100         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3101         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3102         * wctype/wctype.h [__USE_GNU]: Likewise.
3103         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3104         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3105         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3106         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3107         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3108         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3109         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3110         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3111         (__wcscasecmp_l): Add libc_hidden_def.
3112         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3113         (__wcsncasecmp_l): Add libc_hidden_def.
3114         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3115         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3116         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3117         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3118         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3119         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3120         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3121         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3122         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3123         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3124         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3125         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3126         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3127         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3129 2002-08-05  Roland McGrath  <roland@redhat.com>
3131         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3132         netname2user, host2netname, user2netname, key_gendes.
3133         * sunrpc/netname.c: Add libc_hidden_def.
3134         * sunrpc/key_call.c: Likewise.
3136         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3137         freeaddrinfo.
3138         * inet/getnameinfo.c: Add libc_hidden_def.
3139         * sysdeps/generic/getaddrinfo.c: Likewise.
3140         * sysdeps/posix/getaddrinfo.c: Likewise.
3142         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3143         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3144         * wcsmbs/wmemset.c: Add libc_hidden_def.
3146         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3147         (index, rindex): Define as macros for strchr, strrchr.
3149         * string/envz.c (envz_strip): index -> strchr
3151         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3152         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3154         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3155         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3157         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3158         * stdlib/wctomb.c: Add libc_hidden_def.
3160         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3161         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3162         * resolv/herror.c: Likewise.
3163         * inet/rcmd.c: Add libc_hidden_def.
3164         * inet/ruserpass.c: Likewise.
3165         * inet/getnetgrent_r.c: Likewise.
3167         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3168         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3169         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3170         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3171         libc_hidden_def.
3172         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3173         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3175         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3176         __libc_system.
3177         (__libc_system): Call it, putting just the line == NULL test here.
3179         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3180         variables work right.
3182         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3183         * elf/dl-close.c (_dl_close): Likewise.
3185         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3186         in6addr_any, in6addr_loopback.  Remove decls for
3187         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3188         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3189         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3190         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3191         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3192         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3193         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3194         in6addr_loopback.
3195         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3197         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3198         ether_aton_r.
3199         * inet/ether_aton_r.c: Add libc_hidden_def.
3200         * inet/ether_ntoa_r.c: Likewise.
3202         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3203         xprt_unregister.
3204         * sunrpc/svc.c: Add libc_hidden_def.
3205         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3206         pmap_set, pmap_unset.
3207         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3208         * sunrpc/pm_getport.c: Likewise.
3209         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3210         * sunrpc/publickey.c: Add libc_hidden_def.
3212 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3214         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3215         the other memset call in this function.
3217         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3218         at correct index.  Clear BSS region now that memalign is used.
3220 2002-08-05  Roland McGrath  <roland@redhat.com>
3222         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3223         * sysdeps/generic/uname.c: Add libc_hidden_def.
3224         * sysdeps/mach/hurd/uname.c: Likewise.
3226 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3228         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3229         wcspbrk): Add libc_hidden_proto.
3230         * time/strftime.c (my_strftime): Add libc_hidden_def.
3231         (strftime): Remove libc_hidden_def.
3232         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3233         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3234         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3235         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3236         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3237         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3239         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3240         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3241         __rpc_thread_createerr): Add libc_hidden_proto.
3242         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3243         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3244         __rpc_thread_createerr): Add libc_hidden_def.
3246         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3247         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3248         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3249         clnt_perror, clnt_sperror): Add libc_hidden_def.
3250         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3252         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3253         libc_hidden_proto.
3254         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3255         * sunrpc/des_soft.c (des_setparity): Likewise.
3257         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3258         Add libc_hidden_proto.
3259         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3260         Add libc_hidden_def.
3262 2002-08-05  Roland McGrath  <roland@redhat.com>
3264         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3265         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3266         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3267         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3268         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3269         old data, abandoning the original memory allocated by rtld at startup,
3270         instead of calling realloc normally.
3272 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3274         * po/fr.po: Update from translation team.
3276 2002-08-04  Roland McGrath  <roland@redhat.com>
3278         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3279         then generate a dummy module under the given name, obeying the
3280         normal rules for the "caller" field.
3282         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3283         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3285         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3286         weak here; we declare it weak or strong in the one place we use it.
3287         * sysdeps/generic/libc-start.c: ... which is here.
3288         Don't make the decl weak if [USE_TLS], since static programs need TLS
3289         setup even when single-threaded.
3291         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3293         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3294         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3295         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3296         all these variables.
3298 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3300         * include/stdio.h: Don't define macro magic to redirect function
3301         calls if _ISOMAC is defined.
3303         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3304         ldouble asin tests.
3306 2002-08-04  Roland McGrath  <roland@redhat.com>
3308         * stdlib/lrand48_r.c: Add libc_hidden_def.
3310         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3311         TCB with __libc_memalign instead of mmap.
3312         (_dl_deallocate_tls): Free it with free instead of munmap.
3314         * Makerules (cpp-srcs-left): When setting this to run
3315         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3316         words.  Combine the two loops into one on the concatenated list,
3317         including those as well as $(test-srcs).
3319         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3320         since we align here with optimally minimal waste anyway.
3321         (malloc): Just call that.
3323         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3324         the right variable.
3326         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3327         to compute memory location for l_tls_initimage.
3328         * elf/rtld.c (_dl_start): Likewise.
3329         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3331         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3332         because the .d file is generated in the non-shared case and
3333         so fails to catch them otherwise.
3335         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3336         split out of _dl_allocate_tls.
3337         (_dl_allocate_tls_init): Likewise.
3338         (_dl_allocate_tls): Call those.
3339         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3340         * elf/rtld.c (dl_main): Call them separately instead of calling
3341         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3342         is finished, so that the initializer data has been relocated before we
3343         copy it into the main thread's TLS block.
3345         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3346         loop conditions, prevented the last used module from being initialized.
3348 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3350         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3351         if glob resp. globfree are not macros.
3352         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3353         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3354         Add libc_hidden_ver.
3355         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3356         libc_hidden_def.
3357         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3358         instead of libc_hidden_weak.
3359         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3360         libc_hidden_ver instead of libc_hidden_def.
3361         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3362         libc_hidden_ver instead of libc_hidden_def.
3363         (wcstoll, wcstoq): Remove libc_hidden_weak.
3364         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3365         libc_hidden_ver.
3366         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3367         libc_hidden_ver.
3368         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3369         libc_hidden_ver.
3370         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3371         libc_hidden_ver.
3373 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3375         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3376         to access _sys_siglist.
3377         * string/strsignal.c: Likewise.
3378         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3379         * sysdeps/gnu/siglist.c: Likewise.
3380         * sysdeps/unix/siglist.c: Likewise.
3381         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3383         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3385         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3387         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3388         alias and use it.
3389         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3391         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3392         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3393         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3395         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3396         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3398         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3399         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3400         and __gconv_get_cache respectively.
3401         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3402         defined static.  Change all users.
3403         (__gconv_get_cache): New function.
3404         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3405         (__gconv_get_alias_db): New function.
3406         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3407         (__conv_modules_db): Likewise.
3408         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3409         and __gconv_get_alias_db.
3410         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3411         variables.
3413         * include/stdlib.h: Add prototype and libc_hidden_proto for
3414         __default_morecore.
3415         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3417         * malloc/obstack.c: Remove fputs macro.
3419         * malloc/mtrace.c: Remove fopen macro.
3421 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3423         * manual/debug.texi: Fix spelling to programmatically.
3424         Reported by <hayastan132@hotmail.com>.
3426 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3428         * include/libio.h: Add libc_hidden_proto for __uflow.
3429         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3430         fgetpos to _IO_* names.
3431         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3432         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3433         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3434         putwc_unlocked, vswscanf.
3435         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3436         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3437         * libio/fseek.c: Likewise.
3438         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3439         not fopencookie.
3440         * libio/genops.c (__uflow): Add libc_hidden_def.
3441         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3442         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3443         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3444         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3445         * libio/iofread_u.c (fread_unlocked): Likewise.
3446         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3447         * libio/iovswscanf.c (vswscanf): Likewise.
3448         * libio/putwc_u.c (putwc_unlocked): Likewise.
3449         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3450         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3451         * malloc/mtrace.c: Likewise.
3453         * sunrpc/clnt_perr.c: Remove fputs macro.
3454         * sunrpc/svc_simple.c: Likewise.
3455         * sunrpc/svc_tcp.c: Likewise.
3456         * sunrpc/svc_udp.c: Likewise.
3457         * sunrpc/xdr_rec.c: Likewise.
3458         * sunrpc/xdr_ref.c: Likewise.
3460         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3461         iconv_prog, linereader, and charmap-dir.
3462         * locale/Makefile: Likewise for locale and charmap-dir.
3463         * malloc/Makefile: Likewise for memusagestat.
3464         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3465         * sunrpc/Makefile: Likewise for rpc_main.
3466         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3467         * timezone/Makefile: Likewise for zic.
3469         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3471         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3472         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3473         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3474         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3475         _dl_close.
3477         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3478         __wunderflow.
3479         * libio/genops.c (__underflow): Add libc_hidden_def.
3480         * libio/wgenops.c (__wuflow): Likewise.
3481         (__wunderflow): Likewise.
3483         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3484         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3486         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3487         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3489         * include/string.h: Add libc_hidden_proto for __strverscmp.
3490         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3492         * include/unistd.h: Add libc_hidden_proto for __sysconf.
3493         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3494         * sysdeps/posix/sysconf.c: Likewise.
3495         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3496         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3498         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3499         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3500         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3501         __iswxdigit_l, __towlower_l, __towupper_l.
3502         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3503         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3505         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3506         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3507         * sysdeps/mach/hurd/xmknod.c: Likewise.
3508         * sysdeps/unix/xmknod.c: Likewise.
3509         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3510         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3511         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3513         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3515 2002-08-03  Roland McGrath  <roland@redhat.com>
3517         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3518         setpriority.
3519         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3520         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3521         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3522         * sysdeps/mach/hurd/setpriority.c: Likewise.
3523         * sysdeps/mach/hurd/getpriority.c: Likewise.
3524         * sysdeps/generic/setpriority.c: Likewise.
3525         * sysdeps/generic/getpriority.c: Likewise.
3527         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3528         * malloc/mcheck.c: Add libc_hidden_def.
3530         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3531         * misc/hsearch_r.c: Add libc_hidden_def.
3533         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3534         * posix/fnmatch.c: Add libc_hidden_weak.
3536         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3537         execl, execle, execlp, execvp, getpid, getsid.
3538         * sysdeps/generic/alarm.c: Add libc_hidden_def.
3539         * sysdeps/unix/alarm.c: Likewise.
3540         * posix/confstr.c: Likewise.
3541         * posix/execvp.c: Likewise.
3542         * posix/execlp.c: Likewise.
3543         * posix/execle.c: Likewise.
3544         * posix/execl.c: Likewise.
3545         * sysdeps/generic/getsid.c: Likewise.
3546         * sysdeps/mach/hurd/getsid.c: Likewise.
3547         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3548         * sysdeps/mach/hurd/getpid.c: Likewise.
3550         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3551         qecvt_r, qfcvt_r, lrand48_r.
3552         * misc/efgcvt_r.c: Add libc_hidden_def.
3554         * include/wordexp.h: Use libc_hidden_proto for wordfree.
3555         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3557         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3558         * locale/nl_langinfo.c: Add libc_hidden_def.
3560         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3561         * sysdeps/generic/glob.c: Add libc_hidden_def.
3562         * sysdeps/generic/glob64.c: Likewise.
3563         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3565         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3567         * elf/Makefile (CFLAGS-vismod2.c): New variable.
3569         * locale/setlocale.c (_nl_current_names): Variable moved ...
3570         * locale/localename.c (_nl_current_names): ... here, new file.
3571         Make it global, with attribute_hidden.
3572         * locale/localeinfo.h: Declare it.
3573         * locale/Makefile (aux): Add localename.
3574         * locale/localename.c (__current_locale_name): New function.
3575         * include/locale.h (__current_locale_name): Declare it.
3576         * intl/dcigettext.c (guess_category_value): Use that instead of
3577         calling setlocale.
3579         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3580         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3581         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3582         * locale/newlocale.c: Add alias to __ name.
3583         * locale/duplocale.c: Likewise.
3584         * locale/freelocale.c: Likewise.
3585         * locale/uselocale.c: New file.
3586         * locale/Makefile (routines): Add it.
3587         * locale/Versions (libc: GLIBC_2.3): New set.
3588         Add newlocale, duplocale, freelocale, uselocale.
3589         (libc: GLIBC_PRIVATE): Add __uselocale.
3591         * locale/localeinfo.h [SHARED]
3592         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3593         (_NL_CURRENT_DATA): Define using that.
3594         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3595         (_NL_CURRENT_DEFINE): Define to empty.
3596         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3597         conditionalized on this.
3598         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3599         taking initializer of _nl_C_locobj.
3600         [SHARED] (_nl_global_locale): New variable, using that initializer.
3601         (_nl_C_locobj): Use new macro for initialzier.
3602         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3603         [! SHARED] (CATEGORY_USED): New macro.
3604         [SHARED] (CATEGORY_USED, _nl_C): New macros.
3605         (setdata, setlocale): Use that macro instead of examining _nl_current.
3606         (setdata): Set the slot in _nl_global_locale.
3607         Conditionalize setting of _nl_current on [! SHARED].
3608         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3609         declaration as an extern.
3610         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3612         * include/locale.h: Use libc_hidden_proto for setlocale.
3613         * locale/setlocale.c: Add libc_hidden_def.
3615         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3617         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3618         * misc/hsearch_r.c: Add libc_hidden_def.
3619         * misc/lsearch.c: Likewise.
3621         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3622         endttyent.
3623         * misc/getttyent.c: Add libc_hidden_def.
3625         * include/mcheck.h: Use libc_hidden_proto for mcheck.
3626         * malloc/mcheck.c: Add libc_hidden_def.
3628         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3629         * include/argz.h: Use libc_hidden_proto for argz_delete.
3630         * string/argz-delete.c: Add libc_hidden_def.
3631         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
3633         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3634         HIDDEN_JUMPTARGET for _exit.
3635         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3636         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3637         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3638         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3640         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3641         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3642         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3643         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3645         * include/stdlib.h: Use libc_hidden_proto for abort,
3646         __strtof_internal, __strtod_internal, __strtold_internal,
3647         __strtol_internal, __strtoll_internal, __strtoul_internal,
3648         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3649         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3650         __strtoul_l_internal, __strtoull_l_internal.
3651         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3652         __wcstod_internal, __wcstold_internal, __wcstol_internal,
3653         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3654         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3655         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3656         __wcsncasecmp_l.
3657         * sysdeps/generic/abort.c: Add libc_hidden_def.
3658         * stdlib/strtod.c: Likewise.
3659         * sysdeps/generic/strtol.c: Likewise.
3660         * sysdeps/wordsize-64/strtol.c: Likewise.
3661         * sysdeps/wordsize-64/wcstol.c: Likewise.
3662         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3664         * include/stdlib.h: Use libc_hidden_proto for qsort.
3665         * stdlib/msort.c: Add libc_hidden_def.
3667         * include/utime.h: Use libc_hidden_proto for utime.
3668         * sysdeps/generic/utime.c: Add libc_hidden_def.
3669         * sysdeps/unix/utime.c: Likewise.
3671         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3672         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3673         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3674         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3675         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3677         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3678         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3679         and __libc_current_sigrtmax.
3680         * signal/sigismem.c: Add libc_hidden_def.
3681         * signal/sigfillset.c: Likewise.
3682         * signal/sigempty.c: Likewise.
3683         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3684         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3685         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3686         * sysdeps/posix/raise.c: Likewise.
3687         * sysdeps/generic/raise.c: Likewise.
3689 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3691         * include/string.h: Use libc_hidden_proto for __stpcpy.
3692         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3693         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3694         * sysdeps/generic/stpcpy.c: Likewise.
3695         * sysdeps/i386/stpcpy.S: Likewise.
3696         * sysdeps/i386/i586/stpcpy.S: Likewise.
3697         * sysdeps/powerpc/stpcpy.S: Likewise.
3698         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3699         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3701         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3702         __strncasecmp_l, __strdup, __strndup, __strerror_r.
3703         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3704         libc_hidden_def.
3705         * string/strdup.c (__strdup): Likewise.
3706         * string/strndup.c (__strndup): Likewise.
3707         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3708         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3710 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3712         * include/libio.h: New file.
3713         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3714         * libio/iolibio.h: #include <libio.h>, not "libio.h".
3715         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3716         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3717         * sysdeps/unix/common/syscalls.list: Likewise.
3718         * sysdeps/unix/inet/syscalls.list: Likewise.
3719         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3720         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3721         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3722         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3723         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3724         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3725         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3726         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3727         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3728         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3729         * sysdeps/unix/syscalls.list: Likewise.
3731 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3732             Ulrich Drepper  <drepper@redhat.com>
3734         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3735         the arguments is big enough to cause an overflow.
3737 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3739         * assert/assert.c: Use hidden_def not INTDEF.
3741 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3743         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3744         not defined.
3746 2002-08-03  Roland McGrath  <roland@redhat.com>
3748         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3749         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3750         verr, verrx.
3751         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3752         * misc/syslog.c: Add libc_hidden_def.
3753         * misc/err.c: Likewise.
3754         * stdlib/exit.c: Likewise.
3755         * stdlib/bsearch.c: Likewise.
3756         * sysdeps/generic/getenv.c: Likewise.
3758         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3760         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3761         libc_hidden_weak for every system call symbol defined.
3763         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3764         timelocal, localtime, strftime.
3765         * time/asctime.c: Add libc_hidden_def.
3766         * time/mktime.c: Likewise.
3767         * time/localtime.c: Likewise.
3768         * time/strftime.c: Likewise.
3769         * time/strptime.c: Likewise.
3770         * sysdeps/generic/time.c: Likewise.
3771         * sysdeps/unix/time.c: Likewise.
3772         * sysdeps/unix/sysv/i386/time.S: Likewise.
3773         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3775         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3776         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3777         * resolv/inet_ntop.c: Likewise.
3778         * resolv/inet_pton.c: Likewise.
3779         * inet/inet_mkadr.c: Add libc_hidden_def.
3780         * inet/inet_netof.c: Likewise.
3781         * resolv/inet_addr.c: Likewise.
3783         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3784         clauses from conditionals for now.  Will have to be fixed later
3785         for older compilers.
3787         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3789 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3791         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3792         broken alias attribute handling.
3793         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3795 2002-08-02  Roland McGrath  <roland@frob.com>
3797         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3798         since it sets the variables we use in a -D switch.
3800 2002-08-02  Roland McGrath  <roland@redhat.com>
3802         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3803         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3804         matches long int, not int.
3806         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3807         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3808         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3809         * wctype/wctrans.c (wctrans): Likewise.
3810         * wctype/wctype.c (__wctype): Likewise.
3811         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3813 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3815         * assert/assert.c (__assert_fail): Fix typo in comment.
3817         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3818         * sunrpc/rpc_thread.c: Define it without static.
3819         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3821 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3823         * assert/assert.c (__assert_fail): Remove undef.
3824         Replace INTDEF with libc_hidden_def.
3825         * assert/__assert.c (__assert): Remove INTUSE.
3826         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3827         libc_hidden_weak.
3828         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3829         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3830         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3831         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3832         libm_hiden_ver): Define.
3833         * include/assert.h (__assert_fail_internal): Remove.
3834         (__assert_fail): Add prototype.  Add hidden_proto.
3835         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3836         libc_hidden_proto.
3837         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3838         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
3839         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3840         Add libc_hidden_proto.
3841         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3842         __fcntl): Add libc_hidden_proto.  Remove macros.
3843         (__open_internal, __fcntl_internal): Remove.
3844         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3845         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3846         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3847         libc_hiden_proto.
3848         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3849         libc_hidden_def.
3850         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
3851         Add libc_hidden_def.
3852         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
3853         * sysdeps/generic/open.c (__open): Remove undef.
3854         Add libc_hidden_def.  Remove INTDEF.
3855         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
3856         Add libc_hidden_def.
3857         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
3858         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
3859         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
3860         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3861         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3862         (__libc_fcntl): Add libc_hidden_def.
3863         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
3864         (__open): Remove INTDEF2.  Add libc_hidden_weak.
3865         (__libc_open): Add libc_hidden_def.
3866         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
3867         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
3868         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3869         Add libc_hidden_def.
3870         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
3871         Add libc_hidden_def.
3872         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
3873         undef.
3874         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3875         (__libc_fcntl): Add libc_hidden_def.
3876         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
3877         __getpgid_internal, __chown_internal): Remove.
3878         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
3879         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
3880         __GI___chown): Add.
3881         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
3882         __getpid_internal, __open_internal, __write_internal): Remove.
3883         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
3884         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
3885         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
3886         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
3887         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
3888         Replace INTDEF with libc_hidden_def.
3889         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
3890         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
3891         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
3892         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
3893         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
3894         Add libc_hidden_proto.
3895         * include/sys/poll.h (__poll): Add libc_hidden_proto.
3896         * include/sys/select.h (__select): Likewise.
3897         * include/sys/socket.h (__send): Likewise.
3898         * include/sys/statfs.h (__statfs): Likewise.
3899         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
3900         __getpid, __getpgid, __setpgid, __close, __read, __write,
3901         __getpagesize, __sbrk): Likewise.
3902         (__chown_internal, __dup2_internal, __getpid_internal,
3903         __getpgid_internal, __close_internal, __write_internal,
3904         __getpagesize_internal): Remove.
3905         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
3906         Remove macros.
3907         * include/printf.h (__printf_fp): Add libc_hidden_proto.
3908         * include/sched.h (__sched_setscheduler): Likewise.
3909         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
3910         * include/stdlib.h (__secure_getenv): Likewise.
3911         * include/signal.h (__sigaction, __sigsuspend): Likewise.
3912         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
3913         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
3914         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
3915         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
3916         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
3917         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
3918         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
3919         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
3920         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
3921         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
3922         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
3923         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
3924         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
3925         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
3926         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
3927         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3928         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3929         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3930         * libio/genops.c (__overflow): Add libc_hidden_def.
3931         * libio/iovdprintf.c: Remove libio.h include.
3932         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
3933         libc_hidden_weak): Define to nothing if not defined.
3934         (__overflow, __woverflow): Add libc_hidden_proto.
3935         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
3936         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
3937         (DB_LOOKUP_FCT): Add libc_hidden_proto.
3938         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
3939         (DB_LOOKUP_FCT): Add libc_hidden_proto.
3940         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
3941         and libc_hidden_def.
3942         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
3943         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
3944         (__getpgid): Add libc_hidden_proto.
3945         (__bsd_getpgrp): Remove INTUSE.
3946         * resolv/res_init.c (__res_ninit, __res_randomid): Add
3947         libc_hidden_def.
3948         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
3949         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
3950         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
3951         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
3952         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
3953         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
3954         __rpc_thread_createerr): Add libc_hidden_def.
3955         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
3956         libc_hidden_def.
3957         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
3958         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
3959         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
3960         * sysdeps/generic/chown.c (__chown): Likewise.
3961         * sysdeps/generic/close.c (__close): Likewise.
3962         * sysdeps/generic/dup2.c (__dup2): Likewise.
3963         * sysdeps/generic/pipe.c (__pipe): Likewise.
3964         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
3965         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
3966         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
3967         * sysdeps/generic/read.c (__libc_read): Likewise.
3968         (__read): Add libc_hidden_weak.
3969         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
3970         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
3971         * sysdeps/generic/select.c (__select): Likewise.
3972         * sysdeps/generic/send.c (__send): Likewise.
3973         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
3974         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
3975         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
3976         * sysdeps/generic/statfs.c (__statfs): Likewise.
3977         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
3978         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
3979         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
3980         Remove undef and INTDEF.
3981         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
3982         * sysdeps/generic/getpid.c (__getpid): Likewise.
3983         * sysdeps/generic/write.c (__libc_write): Likewise.
3984         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
3985         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
3986         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3987         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
3988         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
3989         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
3990         Remove undef and INTDEF.
3991         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
3992         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
3993         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
3994         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
3995         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
3996         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
3997         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
3998         (__pipe): Add libc_hidden_def.
3999         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4000         libc_hidden_weak.
4001         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4002         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4003         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4004         (__read): Add libc_hidden_weak.
4005         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4006         (__libc_pwrite64): Add libc_hidden_def.
4007         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4008         * sysdeps/mach/hurd/select.c (__select): Likewise.
4009         * sysdeps/mach/hurd/send.c (__send): Likewise.
4010         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4011         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4012         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4013         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4014         * sysdeps/posix/dup2.c: Likewise.
4015         Remove undef and INTDEF.
4016         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4017         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4018         (__pwrite64): Add libc_hidden_weak.
4019         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4020         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4021         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4022         * sysdeps/standalone/close.c (__close): Likewise.
4023         * sysdeps/standalone/write.c (__libc_write): Likewise.
4024         (__write): Add libc_hidden_weak.
4025         * sysdeps/standalone/read.c (__read): Likewise.
4026         (__libc_read): Add libc_hidden_def.
4027         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4028         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4029         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4030         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4031         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4032         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4033         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4034         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4035         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4036         __GI___sigaction): Add.
4037         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4038         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4039         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4040         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4041         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4042         __GI___setpgid): Add.
4043         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4044         Remove undef and INTDEF.
4045         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4046         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4047         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4048         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4049         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4050         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4051         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4052         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4053         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4054         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4055         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4056         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4057         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4058         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4059         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4060         __GI___statfs, __GI___send): Add.
4061         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4062         libc_hidden_ver resp. libc_hidden_def.
4063         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4064         libc_hidden_def.
4065         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4066         Likewise.  Remove undef and INTDEF.
4067         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4068         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4069         __GI___statfs, __GI___send): Add.
4070         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4071         libc_hidden_def.
4072         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4073         Likewise.
4074         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4075         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4076         libc_hidden_ver resp. libc_hidden_def.
4077         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4078         __GI___send): Add.
4079         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4080         Add libc_hidden_weak.
4081         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4082         Add libc_hidden_def.
4083         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4084         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4085         libc_hidden_weak.
4086         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4087         resp. libc_hidden_def.
4088         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4089         libc_hidden_weak.
4090         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4091         INTDEF.
4092         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4093         Likewise.  Remove undef.
4094         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4095         libc_hidden_weak.
4096         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4097         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4098         libc_hidden_weak.
4099         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4100         libc_hidden_def.
4101         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4102         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4103         Likewise.  Remove undef and INTDEF.
4104         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4105         libc_hidden_def.
4106         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4107         libc_hidden_weak.
4108         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4109         libc_hidden_def.
4110         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4111         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4112         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4113         libc_hidden_weak.
4114         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4115         Add libc_hidden_def.
4116         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4117         __GI___statfs): Add.
4118         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4119         libc_hidden_weak.
4120         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4121         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4122         Remove undef and INTDEF.
4123         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4124         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4125         libc_hidden_def.
4126         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4127         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4128         libc_hidden_weak.
4129         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4130         libc_hidden_def.
4131         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4132         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4133         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4134         Add.
4135         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4136         libc_hidden_def.  Remove undef and INTDEF.
4137         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4138         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4139         libc_hidden_def.
4140         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4141         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4142         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4143         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4144         Remove undef and INTDEF.
4145         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4146         broken visibility attribute handling.
4147         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4149 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4151         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4152         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4154         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4155         previous patch.
4157 2002-06-29  Todd Fries  <todd@openbsd.org>
4159         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4161 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4163         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4165 2002-07-30  Roland McGrath  <roland@redhat.com>
4167         * resolv/resolv.h (_res): Define macro unconditionally.
4168         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4169         * include/resolv.h: ... here.
4170         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4171         as a __thread variable.
4172         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4173         a __thread variable instead of a global.
4174         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4176         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4177         time we test it.
4179         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4181         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4182         decls of memset and memcpy.
4184         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4185         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4187         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4189         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4190         (__libc_tsd_define): Define using __thread.
4192         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4193         (__rpc_thread_variables): Use __libc_tsd_get.
4194         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4195         __rpc_thread_variables, which might allocate what we're about to free.
4197         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4198         thread-local variable.
4199         * resolv/netdb.h (h_errno): Define macro unconditionally.
4200         [_LIBC] (__set_h_errno): Macro moved to ...
4201         * include/netdb.h: ... here.
4202         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4203         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4204         [! _LIBC_REENTRANT]: #undef h_errno here.
4206         * include/errno.h: Protect from multiple inclusion.
4208         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4209         before defining them, since Linux's <linux/posix_types.h> might have
4210         defined them.
4212 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4214         * malloc/malloc.c (public_cALLOc): Check for overflow on
4215         multiplication.
4216         * sunrpc/xdr_array.c (xdr_array): Likewise.
4217         * sunrpc/rpc/types.h (mem_free): Add comment.
4218         Patch by Solar Designer <solar@openwall.com>.
4220 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4222         * sysdeps/unix/sysv/linux/kernel-features.h
4223         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4225 2002-08-01  Roland McGrath  <roland@redhat.com>
4227         * libio/fileops.c (_IO_file_sync_mmap): New function.
4228         (_IO_file_jumps_mmap): Use it.
4229         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4230         repeat the stat check and resize the mapped buffer as necessary.
4232 2002-07-31  Roland McGrath  <roland@redhat.com>
4234         * libio/fileops.c (decide_maybe_mmap): New static function.
4235         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4236         mmap the file contents.  Then switch the jump tables to the mmap
4237         tables if it worked, or the vanilla file tables if not.
4238         (_IO_file_underflow_maybe_mmap): New function.
4239         (_IO_file_seekoff_maybe_mmap): New function.
4240         (_IO_file_xsgetn_maybe_mmap): New function.
4241         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4242         * libio/libioP.h: Declare those.
4243         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4244         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4245         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4246         If the stream is read-only, set its jump tables to those new ones.
4247         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4248         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4249         We need the tables set before _IO_file_attach.
4251         * libio/tst-mmap-eofsync.c: New file.
4252         * libio/tst-mmap-fflushsync.c: New file.
4253         * libio/bug-mmap-fflush.c: New file.
4254         * libio/tst-mmap2-eofsync.c: New file.
4255         * libio/Makefile (tests): Add them.
4257         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4258         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4260 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4262         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4263         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4264         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4265         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4266         declare sys_errlist and sys_nerr.
4267         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4268         provide declarations.
4270 2002-07-31  Roland McGrath  <roland@redhat.com>
4272         * elf/rtld.c (dl_main): Fix typo in error message.
4274 2002-07-31  Roland McGrath  <roland@frob.com>
4276         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4277         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4278         sysdeps/mach/hurd/dl-sysdep.c change.
4280 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4282         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4283         -r`/build/include for kernel headers.
4285         * po/fi.po: New file.
4287 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4289         * configure.in (static_nss): Set to `yes' if --disable-shared.
4291 2002-07-23  Bruno Haible  <bruno@clisp.org>
4293         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4294         is set.
4296 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4298         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4299         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4300         arguments.
4302 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4304         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4305         alias.
4307 2002-07-21  Bruno Haible  <bruno@clisp.org>
4309         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4310         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4311         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4312         trans_sysdep_tab_offset.
4313         (struct sysdep_segment): New type.
4314         (struct sysdep_string): New type.
4315         (SEGMENTS_END): New macro.
4316         * intl/gettextP.h (struct sysdep_string_desc): New type.
4317         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4318         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4319         orig_tab, trans_tab, hash_tab to const pointers because they point
4320         into read-only memory.
4321         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4322         (PRI*): Define fallback values.
4323         (get_sysdep_segment_value): New function.
4324         (_nl_load_domain): Distinguish major and minor revision parts. Add
4325         support for minor revision 1 with system dependent strings.
4326         (_nl_unload_domain): Also free the 'malloced' field.
4327         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4328         now done in loadmsgcat.c. Add support for system dependent strings.
4330 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4332         * posix/bug-regex7.c: New file.
4333         * posix/bug-regex8.c: New file.
4334         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4336 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4338         * posix/bug-regex4.c (main): Fix typos.
4339         * posix/bug-regex6.c (main): Likewise.
4341 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4343         * posix/bug-regex6.c (main): Fix warnings.
4345         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4347         * iconv/iconv_prog.c (main): Improve error message for the cases
4348         where -t and/or -f parameter are missing.
4350 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4352         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4353         (re_search): Likewise.
4354         (re_match_2): Likewise.
4355         (re_search_2): Likewise.
4356         (re_search_stub): New function.
4357         (re_search_2_stub): New function.
4358         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4360 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4362         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4363         (re_string_eoi): Use STOP instead of LEN.
4364         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4365         (re_string_construct): Likewise.
4366         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4367         * posix/regexec.c (re_search_internal): Add a new argument STOP
4368         so that it can handle the argument STOP of re_search_2 and re_match_2
4369         correctly.
4370         (regexec): Adapt to new I/F of re_search_internal.
4371         (re_search_stub): Likewise.
4373 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4375         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4377         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4379         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4380         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4381         of __divdi3.
4383         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4384         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4385         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4386         alias for adjtimex syscall.
4388         * elf/dl-minimal.c: Define __assert_fail_internal.
4389         * assert/assert.c: Likewise.
4390         * include/assert.h: Define __assert_file macro if !SHARED and not
4391         NOT_IN_libc.
4393         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4394         programs.
4395         * locale/Makefile: Likewise.
4396         * nscd/Makefile: Likewise.
4397         * catgets/Makefile: Likewise.
4399 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4401         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4402         compute current position.
4404         * stdio-common/tst-fseek.c (main): Improve error messages.
4406         * libio/tst-freopen.c (main): Remove unused variable.
4408         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4409         succesful seek call.  Simplify error checking.
4411 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4413         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4414         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4416 2002-07-19  Roland McGrath  <roland@frob.com>
4418         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4419         __libc_enable_secure is set.
4421 2002-07-24  Roland McGrath  <roland@frob.com>
4423         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4424         This implementation supports only IPv4.
4425         * inet/ifaddrs.h: New file.
4426         * sysdeps/generic/ifaddrs.c: New file.
4427         * sysdeps/gnu/ifaddrs.c: New file.
4428         * inet/test-ifaddrs.c: New file.
4429         * inet/Makefile (routines): Add ifaddrs.
4430         (headers): Add ifaddrs.h here.
4431         (tests): Add test-ifaddrs.
4432         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4434         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4435         socket call to get an AF_INET socket, instead of using __opensock.
4436         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4438         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4439         if not -1 use it instead of calling __opensock.
4440         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4441         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4442         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4444         * sysdeps/mach/hurd/ifreq.h: New file.
4445         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4446         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4447         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4449         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4450         which gets moved around.  Calculate size of mmap'd buffer instead.
4452 2002-07-24  Philip Blundell  <philb@gnu.org>
4454         * sysdeps/unix/arm/brk.S: Improve schedule.
4455         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4456         efficient instruction.
4457         (__socket): Optimize return sequence.
4459 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4461         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4462         sockets on old kernels.
4464 2002-07-22  Philip Blundell  <philb@gnu.org>
4466         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4467         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4468         alias.
4470 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4472         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4473         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4475         * locale/programs/locarchive.c (add_locale_to_archive): Correct
4476         test to detect duplicate locales.
4478         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4479         position would be before beginning of file.
4480         (_IO_file_seekoff_mmap): Likewise.
4481         * libio/Makefile (tests): Add bug-fseek.
4482         * libio/bug-fseek.c: New file.
4484         * intl/explodename.c: Remove support for CEN-style locale variables.
4485         It was never used and shouldn't be since it's not portable.
4486         * intl/finddomain.c: Likewise.
4487         * intl/l10nflist.c: Likewise.
4488         * intl/loadinfo.h: Likewise.
4489         * locale/findlocale.c: Likewise.
4491 2002-07-24  Roland McGrath  <roland@frob.com>
4493         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4494         position, calculate it to take into account an active pushback buffer.
4496         * libio/Makefile (tests): Add bug-ungetc.
4497         * libio/bug-ungetc.c: New file.
4499 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
4501         * sysdeps/generic/libc-tls.c: New file.
4502         * csu/Makefile (routines): Add libc-tls.
4503         (static-only-routines): Add libc-tls.
4504         * elf/dl-support.c (_dl_phdr): New variable.
4505         (_dl_phnum): New variable.
4506         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4507         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4508         for !SHARED.  First look through auxiliary vector.  If TLS always
4509         call __pthread_initialize_minimal.
4511         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4512         in mmap call is never zero.
4514 2002-07-23  Andreas Jaeger  <aj@suse.de>
4516         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4517         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4519 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
4521         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4522         creation and removal of the temp file.
4524         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
4525         file creation.
4526         * test-skeleton.c (create_temp_file): New function.
4528 2002-07-22  Andreas Jaeger  <aj@suse.de>
4530         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4531         local label.
4533 2002-07-21  Roland McGrath  <roland@frob.com>
4535         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4536         put -I../include before -I../stdlib so we get the right errno.h et al.
4537         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4538         (CFLAGS-wcstof.c): Likewise.
4539         (CFLAGS-wcstold.c): Likewise.
4540         (CFLAGS-wcstod_l.c): Likewise.
4541         (CFLAGS-wcstof_l.c): Likewise.
4542         (CFLAGS-wcstold_l.c): Likewise.
4544 2002-07-19  Roland McGrath  <roland@frob.com>
4546         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4548 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
4550         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4551         __ASSUME_AT_XID is defined.
4552         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4553         for 2.4.1 and up.
4554         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4555         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4557         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4558         (CFLAGS-wcstof.c): Likewise.
4559         (CFLAGS-wcstold.c): Likewise.
4560         (CFLAGS-wcstod_l.c): Likewise.
4561         (CFLAGS-wcstof_l.c): Likewise.
4562         (CFLAGS-wcstold_l.c): Likewise.
4564 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
4566         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4567         __priority_which_t): Always typedef to int for C++.
4569 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
4571         * configure.in: Add test for __thread support in compiler.
4572         * config.h.in: Add HAVE___THREAD.
4573         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4574         * include/sys/errno.h: Moved to...
4575         * stdlib/sys/errno.h: ...here.  New file.
4576         * stdlib/errno.h: New file.  Moved from...
4577         * include/errno.h: ...here.  Changed into an internal header defining
4578         libc-local things like __set_errno.
4579         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4580         bits/errno.h.
4581         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
4582         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
4583         either.
4584         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4585         from...
4586         (_dl_start_final): ...here.  Add code to initialize tls elements from
4587         bootstrap_map.
4588         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4589         if USE_TLS && HAVE___THREAD.
4590         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4591         * sysdeps/mach/hurd/bits/errno.h: Likewise.
4592         * sysdeps/standalone/arm/bits/errno.h: Likewise.
4593         * sysdeps/standalone/bits/errno.h: Likewise.
4594         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4595         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4596         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4597         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4598         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4599         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4600         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4601         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4602         use GL(dl_rtld_map), use map parameter.
4603         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4604         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4605         USE_TLS && HAVE___THREAD.
4606         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4607         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
4608         TLS code sequence.
4609         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4611         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4612         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4613         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4614         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4615         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4616         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4618 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
4620         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4621         MS_INVALIDATE values.
4623 2002-07-17  Andreas Schwab  <schwab@suse.de>
4624             Ulrich Drepper  <drepper@redhat.com>
4626         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4627         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4628         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4629         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4631 2002-07-01  H.J. Lu  <hjl@gnu.org>
4633         * elf/circleload1.c (load_dso): Call "circlemod1" and check
4634         return value.
4636         * elf/circlemod1.c (circlemod1): Return int.
4637         * elf/circlemod2.c (circlemod2): Likewise.
4638         * elf/circlemod2a.c (circlemod2): Likewise.
4639         * elf/circlemod3.c (circlemod3): Likewise.
4640         (circlemod3a): A new function.
4642 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
4644         * catgets/tst-catgets.c (main): Don't expect results for
4645         untranslated messages.
4647         * glibcbug.in: Fix little typo.  Remove STDIO.
4649         * config.h.in: Fail if __FAST_MATH__ is defined.
4650         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4651         (CPPFLAGS-test-idouble.c): Likewise.
4652         (CPPFLAGS-test-ildouble.c): Likewise.
4654 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4656         * intl/tst-gettext.sh: Pass -f option to msgfmt.
4657         * intl/tst-gettext.c: Correctly handle untranslated messages in
4658         positive tests.
4660         * po/de.po: Update from translation team.
4662 2002-07-02  H.J. Lu  <hjl@gnu.org>
4664         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
4665         use ll/sc.
4666         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4668         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4669         to 2.4.0 for mips.
4671 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4673         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4674         TLS fail if USE_TLS is not defined.
4676         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4677         and adjust state for seek position.  [PR libc/4070]
4678         * libio/Makefile (tests): Add bug-rewind.
4679         * libio/bug-rewind.c: New file.
4681 2002-07-12  Philip Blundell  <philb@gnu.org>
4683         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4684         (__backtrace): Use it.
4685         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
4687 2002-07-12  Philip Blundell  <philb@gnu.org>
4689         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4690         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4691         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4692         (elf_machine_rela): Remove unused variable.
4694         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4695         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4696         define.
4698 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
4700         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4702 2002-07-14  Andreas Jaeger  <aj@suse.de>
4704         * sysdeps/x86_64/bits/link.h: Add biarch support.
4706 2002-07-13  Andreas Jaeger  <aj@suse.de>
4708         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4709         Use correct indices.
4710         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4712 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4714         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4715         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4716         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4717         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4718         * sysdeps/s390/s390-32/bits/link.h: Remove.
4719         * sysdeps/s390/s390-64/bits/link.h: Remove.
4720         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4721         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4722         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4723         * sysdeps/s390/bits/wordsize.h: New file.
4724         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4725         elfclass.h.
4726         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4727         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4728         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4729         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4730         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4731         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4732         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4733         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4734         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4735         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4736         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4737         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4738         resource.h.
4739         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4740         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4741         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4742         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4743         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4744         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4745         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4746         sigaction.h.
4747         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4748         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4749         siginfo.h.
4750         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4751         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4752         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4753         socket.h.
4754         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4755         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4756         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4757         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4758         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4759         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4760         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4761         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4762         procfs.h.
4763         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4764         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4765         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4766         ucontext.h.
4767         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4768         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4770 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4772         * Versions.def (libc): Add GLIBC_2.3.
4773         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4774         * stdlib/canonicalize.c: Add compatibility version for realpath
4775         and make new code available in GLIBC_2.3.
4777 2002-07-06  Bruno Haible  <bruno@clisp.org>
4779         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4781 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4783         * resolv/res_hconf.c (_res_hconf_init): Move code into new
4784         function do_init.  Use __libc_once.
4785         (do_init): New function.
4787         * iconvdata/iso8859-11.h: Removed.
4788         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4789         (distribute): Remove iso8859-11.h.
4790         * iconvdata/tst-tables.sh: Add ISO-8859-11.
4792         * stdio-common/vfscanf.c (inchar): Restore errno from previous
4793         underflow operation if c == (W)EOF.
4795 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4797         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4798         non-zero, adjust exponent.
4799         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4800         Remove NO_LONG_DOUBLE aliases.
4801         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4802         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4803         (__log1pl): Raise divide by zero and invalid exceptions when needed.
4804         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4805         1**y and -1**+-Inf.
4806         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4807         Fix BITS_PER_MP_LIMB 32 extraction.
4808         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4809         exceptions for qNaNs.
4810         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4811         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4812         Raise exceptions when needed.  Don't recurse unnecessarily.
4813         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4814         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4815         exceptions for qNaNs.
4816         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4817         to fix *quo return value sign.
4818         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4819         case -Inf argument.
4820         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4822 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4824         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4825         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4826         -DNDEBUG.
4828 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4830         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4831         the result.
4833         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4834         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
4836         * Versions.def (libthread_db): Add GLIBC_2.3.
4838 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
4840         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4841         new stream if possible.
4842         * libio/freopen64.c (freopen64): Likewise.
4843         * libio/Makefile (tests): Add tst-freopen.
4844         * libio/tst-freopen.c: New file.
4846 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4848         * libio/stdio.h (obstack_printf): Add format attribute.
4849         (obstack_vprintf): Likewise.
4851 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4853         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
4854         resp. 16 bytes on 32-bit resp. 64-bit platforms.
4855         (re_charset_t, re_string_t): Reorder structure members for 64-bit
4856         architectures.
4858 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4860         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
4861         (init_dfa): ...here.
4863 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
4865         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
4866         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
4867         nodes in parse trees.
4868         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
4869         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
4870         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
4871         nodes which can epsilon transit.
4872         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
4873         to IS_EPSILON_NODE macro.
4874         * posix/regexec.c (update_regs): New function to update registers
4875         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
4876         (proceed_next_node): Use the entities of the nodes to determine
4877         whether the node can transit to.
4878         (set_regs): Use update_regs function to update registers.
4880 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4882         * posix/bug-regex4.c (main): Remove duplicate setlocale.
4883         * posix/bug-regex6.c: New file.
4884         * posix/Makefile (tests): Add bug-regex6.
4885         (bug-regex6-ENV): Set LOCPATH.
4887 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4889         * Versions.def [libpthread]: Add GLIBC_2.2.6.
4890         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
4892 2002-07-06  Bruno Haible  <bruno@clisp.org>
4894         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
4896 2002-07-06  Bruno Haible  <bruno@clisp.org>
4898         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
4899         declarations.
4901         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
4903         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
4905         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
4906         not _UTSNAME_H.
4907         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
4909         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
4910         * sysdeps/generic/bits/ustat.h: Likewise.
4912         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
4914 2002-07-08  Andreas Jaeger  <aj@suse.de>
4916         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
4918 2002-07-08  Andreas Jaeger  <aj@suse.de>
4920         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
4922 2002-07-06  Andreas Jaeger  <aj@suse.de>
4924         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
4925         * sysdeps/x86_64/fpu/s_copysign.S: New file.
4926         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
4927         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
4928         * sysdeps/x86_64/fpu/s_finitel.S: New file.
4929         * sysdeps/x86_64/fpu/s_fmax.S: New file.
4930         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
4931         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
4932         * sysdeps/x86_64/fpu/s_fmin.S: New file.
4933         * sysdeps/x86_64/fpu/s_fminf.S: New file.
4934         * sysdeps/x86_64/fpu/s_fminl.S: New file.
4936 2002-06-05  Brian Youmans <3diff@gnu.org>
4938         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
4939         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
4940         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
4941         * sysdeps/ia64/fpu/e_asin.S: Likewise.
4942         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
4943         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
4944         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
4945         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
4946         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
4947         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
4948         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
4949         * sysdeps/ia64/fpu/e_exp.S: Likewise.
4950         * sysdeps/ia64/fpu/e_expf.S: Likewise.
4951         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
4952         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
4953         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
4954         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
4955         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
4956         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
4957         * sysdeps/ia64/fpu/e_log.S: Likewise.
4958         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4959         * sysdeps/ia64/fpu/e_pow.S: Likewise.
4960         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4961         * sysdeps/ia64/fpu/e_powl.S: Likewise.
4962         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
4963         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
4964         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
4965         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
4966         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
4967         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
4968         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
4969         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
4970         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
4971         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
4972         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
4973         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
4974         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
4975         * sysdeps/ia64/fpu/libm_error.c: Likewise.
4976         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
4977         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
4978         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
4979         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
4980         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
4981         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
4982         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
4983         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
4984         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
4985         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
4986         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
4987         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
4988         * sysdeps/ia64/fpu/s_logb.S: Likewise.
4989         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
4990         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
4991         * sysdeps/ia64/fpu/s_modf.S: Likewise.
4992         * sysdeps/ia64/fpu/s_modff.S: Likewise.
4993         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
4994         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
4995         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
4996         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
4997         * sysdeps/ia64/fpu/s_rint.S: Likewise.
4998         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
4999         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5000         * sysdeps/ia64/fpu/s_round.S: Likewise.
5001         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5002         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5003         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5004         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5005         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5006         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5007         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5008         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5009         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5010         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5011         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5012         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5013         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5014         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5015         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5016         reflect IBM donation of math library to FSF
5017         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5018         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5019         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5020         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5021         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5022         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5023         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5024         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5025         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5026         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5027         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5028         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5029         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5030         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5031         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5032         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5033         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5034         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5035         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5036         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5037         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5038         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5039         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5040         * sysdeps/vax/__longjmp.c: Likewise.
5041         * sysdeps/vax/setjmp.c: Likewise.
5042         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5043         remove advertising clause
5044         * sysdeps/vax/htonl.s: Likewise.
5045         * sysdeps/vax/htons.s: Likewise.
5046         * libio/wfiledoalloc.c: Likewise.
5047         * stdlib/random.c: Likewise.
5048         * stdlib/random_r.c: Likewise.
5049         * sysdeps/mach/sys/reboot.h: Likewise.
5050         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5051         * sysdeps/posix/getaddrinfo.c: Likewise.
5052         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5053         GPL and corrected pointer to point to the correct license.
5055 2002-07-04  Andreas Jaeger  <aj@suse.de>
5057         * scripts/config.guess: New upstream version.
5058         * scripts/config.sub: Likewise.
5060 2002-07-02  Andreas Schwab  <schwab@suse.de>
5062         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5063         in parallel to bumping up the buffer pointer.
5065 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5067         * math/libm-test.inc (acos_test): Add missing L suffix for
5068         expected result.
5069         (cpow_test): Likewise.
5070         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5071         error for acos (0.0625).
5073 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5075         * locale/iso-639.def: Add entry for Ganda.
5076         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5077         definition.
5078         (address_finish): Handle entries with two letter ISO 639 code.
5080         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5081         directory if it existed before.
5082         * iconv/iconvconfig.c: Implement --prefix option.
5084         * math/libm-test.inc (cexp_test): Add missing L suffix for
5085         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5086         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5087         1.25 i).
5089 2002-05-29  H.J. Lu  <hjl@gnu.org>
5091         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5092         is turned on.
5094 2002-05-28  H.J. Lu  <hjl@gnu.org>
5096         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5097         are not dlopened on the dependency list of a dlopened object.
5099 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5101         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5102         dependencies if they are created between objects which are created
5103         while processing RTLD_NOW for objects loaded as part of the same
5104         dlopen call.
5106 2002-06-14  H.J. Lu  <hjl@gnu.org>
5108         * elf/Makefile (tests): Add circleload1.
5109         (modules-names): Add circlemod1, circlemod2, circlemod3,
5110         circlemod1a, circlemod2a and circlemod3a.
5111         ($(objpfx)circleload1): New target.
5112         ($(objpfx)circleload1.out): Likewise.
5113         ($(objpfx)circlemod1.so): Likewise.
5114         ($(objpfx)circlemod2.so): Likewise.
5115         ($(objpfx)circlemod1a.so): Likewise.
5116         ($(objpfx)circlemod2a.so): Likewise.
5117         * elf/circleload1.c: New file.
5118         * elf/circlemod1.c: New file.
5119         * elf/circlemod1a.c: New file.
5120         * elf/circlemod2.c: New file.
5121         * elf/circlemod2a.c: New file.
5122         * elf/circlemod3.c: New file.
5123         * elf/circlemod3a.c: New file.
5125 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5127         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5128         file descriptor.
5129         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5130         add check for fd not open for writing.
5132         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5133         completed element(s) and do not suspend thread if so.  Patch
5134         heavily modified by drepper.
5136         * rt/tst-aio7.c: New file.  Regression test for problems which the
5137         above three changes fix.
5138         * rt/Makefile (tests): Add tst-aio7.
5140 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5142         * rt/tst-aio6.c: Fix comment.
5144         * catgets/gencat.c (read_input_file): Handle more than one slash
5145         at end of line correctly [PR libc/3926].
5146         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5148         * catgets/sample.SJIS: Add test case for above bug.
5149         * catgets/test-gencat.c: Adjust test code.
5150         * catgets/test-gencat.sh: Adjust expected results.
5152         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5153         to skip relative relocations.
5154         Patch by Geoff Keating <geoffk@redhat.com>.
5156 2002-05-26  Bruno Haible  <bruno@clisp.org>
5158         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5159         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5160         All callers changed.
5161         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5162         STANDARD_FROM_LOOP_ERR_HANDLER.
5163         (utf8_internal_loop): Likewise.
5164         (ucs2_internal_loop): Likewise.
5165         (internal_ucs2_loop): Perform error handling like in
5166         STANDARD_FROM_LOOP_ERR_HANDLER.
5167         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5168         in STANDARD_FROM_LOOP_ERR_HANDLER.
5169         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5170         handling.
5171         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5172         in STANDARD_FROM_LOOP_ERR_HANDLER.
5173         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5174         handling.
5175         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5176         in STANDARD_FROM_LOOP_ERR_HANDLER.
5177         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5178         handling.
5179         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5180         STANDARD_FROM_LOOP_ERR_HANDLER.
5181         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5182         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5183         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5184         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5185         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5186         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5187         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5188         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5189         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5190         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5191         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5192         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5193         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5194         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5195         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5196         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5197         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5198         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5199         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5200         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5201         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5202         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5203         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5204         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5205         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5206         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5207         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5208         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5209         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5210         an error, still set result = __GCONV_ILLEGAL_INPUT.
5211         (BODY for TO_LOOP): Likewise.
5212         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5213         STANDARD_FROM_LOOP_ERR_HANDLER.
5214         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5215         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5216         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5217         handling.
5218         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5219         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5220         STANDARD_FROM_LOOP_ERR_HANDLER.
5221         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5222         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5223         STANDARD_FROM_LOOP_ERR_HANDLER.
5224         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5225         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5226         STANDARD_FROM_LOOP_ERR_HANDLER.
5227         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5228         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5229         STANDARD_FROM_LOOP_ERR_HANDLER.
5230         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5231         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5232         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5233         handling.
5234         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5235         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5236         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5237         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5239 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5241         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5242         labels in assembler instructions.
5244 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5246         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5247         not enough content is available.
5248         * libio/tst-eof.c: New file.
5249         * libio/Makefile (tests): Add tst-eof.
5251         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5252         update atime.
5253         * libio/tst-atime.c: New file.
5254         * libio/Makefile (tests): Add tst-atime.
5256         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5257         handling of overly long words.
5259 2002-06-25  Andreas Jaeger  <aj@suse.de>
5261         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5262         to not use 32-bit pc relative relocations.
5263         (elf_machine_dynamic): Likewise.
5265 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5267         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5268         (__GETDENTS): Check for failed getdents64 syscall.
5269         * dirent/Makefile (tests): Add bug-readdir1.
5270         * dirent/bug-readdir1.c: New file.
5272 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5274         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5275         lookups.
5276         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5277         code.  Print TLS modid and offset for modules containing PT_TLS
5278         segments.
5280 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5282         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5283         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5284         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5285         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5287 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5289         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5290         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5291         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5292         * nss/getXXent_r.c (NEW, NEW1): Define.
5293         (NEW (REENTRANT_GETNAME)): Strong alias to
5294         INTERNAL (REENTRANT_GETNAME).
5295         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5297 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5299         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5300         (_IO_file_jumps_mmap): Use it.
5301         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5302         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5303         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5304         prototype.
5305         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5306         (_IO_wfile_jumps_mmap): Don't use it anymore.
5307         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5308         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5309         _IO_wdefault_setbuf.
5310         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5311         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5312         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5314 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5316         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5317         * libio/tst-mmap-setvbuf.c: New test.
5319 2002-06-21  Andreas Jaeger  <aj@suse.de>
5321         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5323 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5325         * include/unistd.h (__fork_internal): Remove.
5326         (__fork): Don't define to __fork_internal.
5327         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5328         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5329         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5330         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5331         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5333 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5335         * po/hr.po: New file.
5337 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5339         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5340         Reported by Michael Meissner <meissner@redhat.com>.
5342 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5344         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5345         Patch by Hans Boehm <hans_boehm@hp.com>.
5347 2002-06-20  Andreas Jaeger  <aj@suse.de>
5349         * math/libm-test.inc: Use exact values as input parameters,
5350         compute output parameters with 36 digits for 128-bit long doubles.
5351         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5352         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5353         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5355 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5357         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5358         argument or result is subnormal.
5360 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5362         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5363         quotient.
5364         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5365         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5367         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5369 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5371         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5372         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5373         Reported by Peter A. Buhr.
5375 2002-06-15  Roland McGrath  <roland@frob.com>
5377         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5378         warning.
5380         * sysdeps/mach/hurd/getcwd.c
5381         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5383         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5384         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5386         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5387         jump to local subroutine.
5389 2002-06-14  Roland McGrath  <roland@frob.com>
5391         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5392         * sysdeps/mach/hurd/Makeconfig: ... here.
5394 2002-06-13  Andreas Schwab  <schwab@suse.de>
5396         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5397         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5398         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5400 2002-06-13  Roland McGrath  <roland@frob.com>
5402         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5403         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5404         Use intptr_t instead of int for argc in stack layout.
5405         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5406         (_dl_init_first): Likewise.
5407         (_hurd_stack_setup): Likewise.
5408         (init1): Add a cast.
5409         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5411         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5412         argument to pfinet_siocgifconf RPC.
5414 2002-06-13  Andreas Schwab  <schwab@suse.de>
5416         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5417         expansion order.
5419 2002-06-12  Roland McGrath  <roland@frob.com>
5421         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5422         if already defined.
5423         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5424         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5426 2002-06-11  Roland McGrath  <roland@frob.com>
5428         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5429         file on [!RTLD_STAT64].
5430         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5432         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5433         (__fdopen): Use INTUSE.
5434         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5436         * stdio-common/tmpfile64.c: File removed.
5437         * sysdeps/generic/tmpfile64.c: New file.
5438         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5439         if not already defined.
5440         (tmpfile): Use it in place of __GT_FILE.
5442         * include/unistd.h: Declare __chown_internal.
5444         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5445         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5447 2002-06-09  Roland McGrath  <roland@frob.com>
5449         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5450         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5451         value of HURD_INTERFACE_VERSION >= 20020609.
5452         * sysdeps/mach/hurd/configure: Regenerated.
5453         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5454         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5455         convert a struct stat64 into a struct stat and return 0 or -1
5456         with errno set to EOVERFLOW.
5457         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5458         for struct statfs64 to struct statfs.
5459         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5460         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5461         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5462         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5463         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5464         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5465         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5466         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5467         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5468         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5469         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5470         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5471         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5472         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5473         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5474         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5475         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5476         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5477         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5478         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5479         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5480         Use struct stat64 for io_stat argument.
5481         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5482         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5483         to io_seek.
5484         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5485         * hurd/fd-write.c (_hurd_fd_write): Likewise.
5486         * hurd/hurd/fd.h: Update decls.
5487         * sysdeps/mach/hurd/getcwd.c
5488         (_hurd_canonicalize_directory_name_internal): Use ino64_t
5489         and struct dirent64.
5490         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5491         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5492         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5493         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5495 2002-06-08  Roland McGrath  <roland@frob.com>
5497         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5498         instead of unsigned long int for __allocation and __size members.
5500 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5502         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5503         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5504         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5505         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5507 2002-06-07  Roland McGrath  <roland@frob.com>
5509         * sysdeps/mach/hurd/bits/environments.h: File removed.
5511 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5513         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5514         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5515         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5516         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5517         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5518         (sendfile64): Likewise.
5519         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5520         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5521         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5522         Likewise.
5523         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5525         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5526         already defined.
5528 2002-06-04  Bruno Haible  <bruno@clisp.org>
5530         * sysdeps/cris/stackinfo.h: New file.
5532         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5533         to an integer type before performing bit operations on it.
5535 2002-06-05  Roland McGrath  <roland@frob.com>
5537         * sysdeps/generic/sendfile.c: Include <errno.h>.
5538         * sysdeps/generic/sendfile64.c: Likewise.
5540         * io/Makefile (routines): Add sendfile and sendfile64.
5541         (headers): Add sys/sendfile.h to the list.
5542         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5543         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5544         * io/sys/sendfile.h: ... here.
5545         * sysdeps/generic/sendfile.c: New file.
5546         * sysdeps/generic/sendfile64.c: New file.
5548         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5549         Move sendfile, sendfile64 to ...
5550         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5551         * sysdeps/mach/hurd/sendfile.c: New file.
5552         * sysdeps/mach/hurd/sendfile64.c: New file.
5554         * sysdeps/mach/nanosleep.c: New file.
5556 2002-06-04  Roland McGrath  <roland@frob.com>
5558         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
5559         * sysdeps/alpha/elf/configure: New file (generated).
5561 2002-06-02  Roland McGrath  <roland@frob.com>
5563         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5565 2002-06-01  Roland McGrath  <roland@frob.com>
5567         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5568         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5570 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5572         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5573         Add nsmap.
5574         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5575         Remove nstimes setting.
5576         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5577         * resolv/res_send.c (res_nsend): Don't close unconditionally if
5578         there is mix of IPv6 and IPv4 nameservers.
5579         Use nsmap array to find free slots and preserve nameserver ordering.
5580         Fix RES_ROTATE.
5582 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5584         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5585         use this header with LFS.
5587         * po/sk.po: Update from translation team.
5589 2002-05-28  Andreas Schwab  <schwab@suse.de>
5591         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5592         message when finding object of wrong class.
5594 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
5596         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5597         Patch by <radu@netsoft.ro>.
5599 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5601         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5602         Add readahead.
5603         * sysdeps/unix/sysv/linux/readahead.c: New file.
5604         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5605         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5606         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5607         Add sendfile64 alias to sendfile syscall.
5608         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5609         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5610         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5611         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5612         syscall.
5614         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5615         special section for PIC register loading.
5616         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5618         * config.h.in: Define HAVE_HIDDEN.
5619         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5621         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5623 2002-05-28  Roland McGrath  <roland@frob.com>
5625         * sysdeps/mach/alpha/setfpucw.c: New file.
5627 2002-05-26  Roland McGrath  <roland@frob.com>
5629         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5630         Use integer_t instead of int for IOC_VOID case.
5632 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
5634         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5636 2002-05-26  Bruno Haible  <bruno@clisp.org>
5638         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5639         end of the ISO-8859-7 from idx table.
5641 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
5643         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5645 2002-05-24  David S. Miller  <davem@redhat.com>
5647         * string/bits/string2.h (memset): Do not try to optimize when
5648         not _STRING_ARCH_unaligned if GCC will do the right thing.
5650 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
5652         * posix/regex.c: Define `inline' as a macro into nothing for the
5653         compilers which lack the keyword.
5654         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5655         for the compatibility of gawk.
5656         * posix/regcomp.c: Add fake implementation of isblank() for the
5657         environments which lack the function.
5658         Don't use free_charset() in case of non-i18n envs.
5659         (build_range_exp): Don't use i18n related code in case of non-i18n
5660         envs.
5661         (build_collating_symbol): Likewise.
5662         (build_equiv_class): Likewise.
5663         (build_charclass): Likewise.
5664         (re_compile_fastmap_iter): Likewise.
5665         (parse_bracket_exp): Likewise.
5666         (build_word_op): Likewise.
5667         (regfree): Don't use free_charset() in case of non-i18n envs.
5668         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5669         re_token_type_t in case of non-i18n envs.
5670         Don't define re_charset_t in case of non-i18n envs.
5671         Change the type of wcs of re_string_t from wchar_t to wint_t,
5672         since we store also WEOF.
5673         * posix/regex_internal.c: (re_string_realloc_buffers): Change
5674         the type of wcs of re_string_t from wchar_t to wint_t.
5675         (re_string_reconstruct): Likewise.
5676         (create_ci_newstate): Don't use i18n related code in case of
5677         non-i18n envs.
5678         (create_cd_newstate): Likewise.
5680 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
5682         * iconv/loop.c: Fix typo.
5684 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5686         * inet/ether_line.c (ether_line): Fix a typo causing only
5687         lower 4 bits of each ethernet address byte being assigned.
5688         Don't modify what line points to.
5689         * inet/tst-ether_aton.c (main): Add ether_line tests.
5691 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
5693         * manual/filesys.texi: Don't make readlink example leak memory
5694         when readlink fails.
5696 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
5698         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
5699         some more security checks.
5701 2002-05-17  David S. Miller  <davem@redhat.com>
5703         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5705 2002-05-16  David S. Miller  <davem@redhat.com>
5707         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5708         (elf_machine_dynamic): Use it to force PIC register to be loaded.
5709         (elf_machine_load_address): Likewise.
5710         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5712         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5713         is unaligned, do not forget to fully initialize %g1 magic value.
5715         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5716         register definitions and provide 32-bit variants of structures
5717         during 64-bit builds.
5719         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5720         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5721         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5722         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5723         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5724         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5725         Do not clear implicit one bit here, it must be done post-rounding.
5726         Only pad to the left using left shift if value uses less than the
5727         available fractional bits.
5729 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5731         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5732         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5733         (shared-only-routines): Likewise.
5734         * sysdeps/powerpc/libgcc-compat.c: New file.
5735         * sysdeps/wordsize-32/cmpdi2.c: Removed.
5736         * sysdeps/wordsize-32/fixdfdi.c: Removed.
5737         * sysdeps/wordsize-32/fixsfdi.c: Removed.
5738         * sysdeps/wordsize-32/shdi3.c: Removed.
5740 2002-05-16  Bruno Haible  <bruno@clisp.org>
5742         * MakeTAGS (libc.pot): Don't sort the output.
5743         * po/header.pot: Update to match xgettext 0.11 output.
5745 2002-05-16  Bruno Haible  <bruno@clisp.org>
5747         * MakeTAGS (subdirs): Remove duplicates.
5749 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5751         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5752         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5753         alias.
5755 2002-05-19  Andreas Jaeger  <aj@suse.de>
5757         * sysdeps/unix/sysv/linux/configure.in: Warn against an
5758         installation in /usr/local.
5760 2002-05-16  Bruno Haible  <bruno@clisp.org>
5762         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5763         string as argument of #error.
5765 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
5767         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5768         don't define static.  Remove old __realpath function.  TC1 of
5769         POSIX 2001 will allow the second parameter to be NULL.
5770         * stdlib/test-canon.c: Comment out test for NULL as second
5771         parameter of realpath.
5773         * time/offtime.c (__offtime): Set errno if overflow is detected.
5775         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5776         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5777         dl-brk and dl-sbrk.
5779         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5780         (fdimf): Likewise.
5782 2002-05-15  Roland McGrath  <roland@frob.com>
5784         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5786 2002-05-12  Bruno Haible  <bruno@clisp.org>
5788         * iconvdata/testdata/EUC-JISX0213: New file.
5789         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5790         * iconvdata/testdata/SHIFT_JISX0213: New file.
5791         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5792         * iconvdata/testdata/ISO-2022-JP-3: New file.
5793         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5794         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5795         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5796         contains comments indicating precomposed characters.
5798 2002-04-21  Bruno Haible  <bruno@clisp.org>
5800         * iconvdata/iso-2022-jp-3.c: New file.
5801         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5802         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5803         (LDFLAGS-ISO-2022-JP-3.so): New variable.
5804         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5805         (distribute): Add iso-2022-jp-3.c.
5807 2002-05-12  Bruno Haible  <bruno@clisp.org>
5809         * iconvdata/tst-table-to.c (main): Restore handling of
5810         transliterations, broken by last patch.
5812 2002-05-12  Bruno Haible  <bruno@clisp.org>
5814         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5816 2002-05-12  Bruno Haible  <bruno@clisp.org>
5818         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5819         when there is not enough room in the output buffer.
5820         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5822 2002-04-20  Bruno Haible  <bruno@clisp.org>
5824         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5825         macros.
5826         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5827         Also make this macro work if FROM_DIRECTION evaluates to 0.
5828         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5829         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5830         of consume_incomplete.
5831         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5832         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5833         4, not 8.
5834         * iconvdata/cp1258.c: Likewise.
5835         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5836         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5837         not 2.
5838         * iconvdata/ibm933.c: Likewise.
5839         * iconvdata/ibm935.c: Likewise.
5840         * iconvdata/ibm937.c: Likewise.
5841         * iconvdata/ibm939.c: Likewise.
5842         * iconvdata/iso-2022-cn.c: Define
5843         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5844         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5845         * iconvdata/iso-2022-cn-ext.c: Likewise.
5846         * iconvdata/iso-2022-jp.c: Define
5847         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5848         {MIN,MAX}_NEEDED_{FROM,TO}.
5849         * iconvdata/tcvn5712-1.c: Define
5850         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5851         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
5852         * iconvdata/euc-jisx0213.c: Define
5853         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5854         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
5855         * iconvdata/shift_jisx0213.c: Likewise.
5857 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5859         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
5860         shdi3, fixdfdi, fixsfdi in csu dir.
5861         (shared-only-routines): Likewise.
5862         * sysdeps/wordsize-32/cmpdi2.c: New file.
5863         * sysdeps/wordsize-32/shdi3.c: New file.
5864         * sysdeps/wordsize-32/fixdfdi.c: New file.
5865         * sysdeps/wordsize-32/fixsfdi.c: New file.
5866         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
5867         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
5868         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
5870         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
5871         Only use va_arg if the argument will be used [PR libc/3259].
5873 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
5875         * catgets/catgets.c (catopen): Free buffer if internal catalog
5876         open fails.
5878 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5880         * debug/xtrace.sh: Make more robust.  For realtime tracking use
5881         non-buffering methods.
5882         * debug/pcprofiledump.c: Implement -u option.
5883         Patch by Roger Luethi <rl@hellgate.ch>.
5885 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
5887         * include/netinet/in.h (bindresvport_internal): Add prototype.
5888         * include/rpc/auth.h  (authunix_create_internal,
5889         authunix_create_default_internal, authnone_create_internal,
5890         authdes_pk_create_internal): Add prototypes.
5891         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
5892         clntudp_create_internal, clntudp_bufcreate_internal,
5893         clntunix_create_internal): Add prototypes.
5894         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
5895         svc_getreq_internal, svc_getreq_common_internal,
5896         svc_getreqset_internal, svc_getreq_poll_internal,
5897         svc_register_internal, svc_unregister_internal,
5898         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
5899         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
5900         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
5901         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
5902         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
5903         * inet/rcmd.c (rcmd_af): Use __listen.
5904         (rresvport_af): Use __bind.
5905         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
5906         authunix_create, authunix_create_default, authnone_create,
5907         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
5908         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
5909         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
5910         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
5911         _authenticate, add INTDEF after such function definitions.
5912         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
5913         __setsockopt, __getsockname instead of non-__ variants.
5914         * sunrpc/pmap_rmt.c: Likewise.
5915         * sunrpc/rtime.c: Likewise.
5916         * sunrpc/svc_udp.c: Likewise.
5917         * sunrpc/clnt_unix.c: Likewise.
5918         * sunrpc/svc_unix.c: Likewise.
5919         * sunrpc/bindrsvprt.c: Likewise.
5920         * sunrpc/svc_tcp.c: Likewise.
5921         * sunrpc/auth_none.c: Likewise.
5922         * sunrpc/clnt_raw.c: Likewise.
5923         * sunrpc/clnt_tcp.c: Likewise.
5924         * sunrpc/auth_unix.c: Likewise.
5925         * sunrpc/key_call.c: Likewise.
5926         * sunrpc/clnt_gen.c: Likewise.
5927         * sunrpc/pm_getmaps.c: Likewise.
5928         * sunrpc/clnt_simp.c: Likewise.
5929         * sunrpc/pmap_clnt.c: Likewise.
5930         * sunrpc/svc_run.c: Likewise.
5931         * sunrpc/svc.c: Likewise.
5932         * sunrpc/svc_simple.c: Likewise.
5933         * sunrpc/pm_getport.c: Likewise.
5934         * sunrpc/auth_des.c: Likewise.
5935         * sunrpc/svc_auth.c: Likewise.
5936         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
5937         __register_frame_info_table_bases, __deregister_frame_info_bases):
5938         Add INTDEF.
5939         (__register_frame_info_bases_internal,
5940         __register_frame_info_table_bases_internal,
5941         __deregister_frame_info_bases_internal): Add prototypes.
5942         (__register_frame_info, __register_frame): Use INTUSE in call to
5943         __register_frame_info_bases.
5944         (__register_frame_info_table): Similarly.
5945         (__deregister_frame_info, __deregister_frame): Similarly.
5946         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
5947         sendto as weak alias.
5948         * sysdeps/mach/hurd/sendto.c: Likewise.
5949         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
5950         recvfrom as weak alias.
5951         * sysdeps/mach/hurd/recvfrom.c: Likewise.
5952         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
5953         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
5954         recvmsg as weak alias.
5955         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
5956         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
5957         sendmsg as weak alias.
5958         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
5959         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
5960         setsockopt, add setsockopt as weak alias.
5961         * sysdeps/mach/hurd/setsockopt.c: Likewise.
5962         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
5963         weak alias.
5964         * sysdeps/mach/hurd/bind.c: Likewise.
5965         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
5966         as weak alias.
5967         * sysdeps/mach/hurd/listen.c: Likewise.
5968         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
5969         getsockname, add getsockname as weak alias.
5970         * sysdeps/mach/hurd/getsockname.c: Likewise.
5971         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
5972         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
5973         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
5974         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
5975         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
5976         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
5977         Add aliases.
5978         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5979         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5980         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5981         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5982         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
5983         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
5984         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
5985         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
5986         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
5987         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
5988         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
5989         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
5991 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
5993         * locale/programs/localedef.h (show_archive_content): Add verbose
5994         argument.
5995         * locale/programs/localedef.c (main): Adjust caller.
5996         * locale/programs/locarchive.c (struct nameent, struct dataent): New
5997         types.
5998         (nameentcmp, dataentcmp): New functions.
5999         (xstrcmp): Remove.
6000         (show_archive_content): Print verbose listing with --list-archive -v.
6002 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6004         * locale/programs/locarchive.c (open_archive): Take extra argument
6005         readonly.  If true open file with O_RDONLY and don't create the
6006         archive if it doesn't exist.
6007         Adapt all callers.
6008         (close_archive): Don't do anything if fd element is -1.
6009         * locale/programs/localedef.h (open_archive): Adjust prototype.
6010         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6011         call.
6013         * malloc/malloc.c (__posix_memalign): Correct check for size of
6014         alignment value [PR libc/3444].
6016         * include/stdio.h: Remove references to old stdio implementation.
6018         * libio/Makefile (bug-ungetwc2-ENV): Define.
6020 2002-05-13  Roland McGrath  <roland@frob.com>
6022         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6024         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6026 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6028         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6029         Allocate three, not two, more than LEN when appending '/.'.
6030         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6031         if NAME ends with '/.' if it is shorter than 2 chars.
6033 2002-05-12  Roland McGrath  <roland@frob.com>
6035         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6036         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6038         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6039         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6041 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6043         * sysdeps/ia64/Makefile: Remove extra endif.
6044         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6046 2002-05-10  Andreas Schwab  <schwab@suse.de>
6048         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6050 2002-05-09  Andreas Jaeger  <aj@suse.de>
6052         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6053         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6054         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6056         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6057         * sysdeps/wordsize-64/glob.c: ...here.
6058         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6059         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6060         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6062 2002-05-08  Roland McGrath  <roland@frob.com>
6064         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6065         O_NOTRANS flag in "." lookup.
6067 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6069         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6071 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6073         * locale/duplocale.c (__duplocale): Update special members only
6074         when allocation succeeded.
6076 2002-05-03  Roland McGrath  <roland@frob.com>
6078         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6079         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6081 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6083         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6084         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6085         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6086         * sysdeps/ia64/ia64libgcc.S: New file.
6088 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6090         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6092         * malloc/memusage.c: Distinguish anonymous mmap.
6094 2002-05-01  Roland McGrath  <roland@frob.com>
6096         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6097         and use INTDEF on it.
6098         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6100         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6102         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6104 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6106         * malloc/memusage.c: Add support for tracking mmap & friends.
6107         * malloc/memusage.sh: Implement -m/--mmap option.
6109 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6111         * locale/programs/locarchive.c (create_archive): Add archivefname
6112         argument, create fname from it.
6113         (enlarge_archive): Honour output_prefix.
6114         (open_archive): Likewise.
6116 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6118         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6119         too many stpcpy macros.
6121 2002-04-26  Bruno Haible  <bruno@clisp.org>
6123         * locale/programs/ld-collate.c (collate_read): Cast first argument
6124         for "%.*s" to int.
6126 2002-04-26  Bruno Haible  <bruno@clisp.org>
6128         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6129         __dcngettext_internal): New declarations.
6130         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6131         attribute declarations.
6133 2002-04-30  Roland McGrath  <roland@frob.com>
6135         Removed old GNU stdio implementation; GNU libio is now the only option.
6136         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6137         Define USE_IN_LIBIO unconditionally.
6138         * configure: Regenerated.
6139         * Makeconfig (stdio): Set to libio by default.
6140         * config.make.in (stdio): Variable removed.
6141         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6142         * sysdeps/unix/sysv/linux/configure: Regenerated.
6143         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6144         * sysdeps/mach/hurd/configure: Regenerated.
6145         * stdio/.cvsignore: File removed.
6146         * stdio/Makefile: File removed.
6147         * stdio/Versions: File removed.
6148         * stdio/__fbufsize.c: File removed.
6149         * stdio/__flbf.c: File removed.
6150         * stdio/__fpending.c: File removed.
6151         * stdio/__fpurge.c: File removed.
6152         * stdio/__freadable.c: File removed.
6153         * stdio/__freading.c: File removed.
6154         * stdio/__fsetlocking.c: File removed.
6155         * stdio/__fwritable.c: File removed.
6156         * stdio/__fwriting.c: File removed.
6157         * stdio/clearerr.c: File removed.
6158         * stdio/fclose.c: File removed.
6159         * stdio/fcloseall.c: File removed.
6160         * stdio/feof.c: File removed.
6161         * stdio/ferror.c: File removed.
6162         * stdio/fflush.c: File removed.
6163         * stdio/fgetc.c: File removed.
6164         * stdio/fgetpos.c: File removed.
6165         * stdio/fgets.c: File removed.
6166         * stdio/fileno.c: File removed.
6167         * stdio/fmemopen.c: File removed.
6168         * stdio/fopen.c: File removed.
6169         * stdio/fopncook.c: File removed.
6170         * stdio/fputc.c: File removed.
6171         * stdio/fputs.c: File removed.
6172         * stdio/fread.c: File removed.
6173         * stdio/freopen.c: File removed.
6174         * stdio/fseek.c: File removed.
6175         * stdio/fsetpos.c: File removed.
6176         * stdio/ftell.c: File removed.
6177         * stdio/fwrite.c: File removed.
6178         * stdio/getc.c: File removed.
6179         * stdio/getchar.c: File removed.
6180         * stdio/getdelim.c: File removed.
6181         * stdio/gets.c: File removed.
6182         * stdio/glue.c: File removed.
6183         * stdio/internals.c: File removed.
6184         * stdio/linewrap.c: File removed.
6185         * stdio/linewrap.h: File removed.
6186         * stdio/memstream.c: File removed.
6187         * stdio/newstream.c: File removed.
6188         * stdio/obstream.c: File removed.
6189         * stdio/putc.c: File removed.
6190         * stdio/putchar.c: File removed.
6191         * stdio/puts.c: File removed.
6192         * stdio/rewind.c: File removed.
6193         * stdio/setbuf.c: File removed.
6194         * stdio/setbuffer.c: File removed.
6195         * stdio/setlinebuf.c: File removed.
6196         * stdio/setvbuf.c: File removed.
6197         * stdio/stdio.h: File removed.
6198         * stdio/ungetc.c: File removed.
6199         * stdio/vasprintf.c: File removed.
6200         * stdio/vscanf.c: File removed.
6201         * stdio/vsnprintf.c: File removed.
6202         * stdio/vsprintf.c: File removed.
6203         * stdio/vsscanf.c: File removed.
6204         * sysdeps/generic/defs.c: File removed.
6205         * sysdeps/generic/fdopen.c: File removed.
6206         * sysdeps/generic/pipestream.c: File removed.
6207         * sysdeps/generic/stdio_init.c: File removed.
6208         * sysdeps/generic/sysd-stdio.c: File removed.
6209         * sysdeps/generic/vdprintf.c: File removed.
6210         * sysdeps/mach/hurd/defs.c: File removed.
6211         * sysdeps/mach/hurd/fdopen.c: File removed.
6212         * sysdeps/mach/hurd/pipestream.c: File removed.
6213         * sysdeps/mach/hurd/stdio_init.c: File removed.
6214         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6215         * sysdeps/mach/hurd/vdprintf.c: File removed.
6216         * sysdeps/posix/defs.c: File removed.
6217         * sysdeps/posix/fdopen.c: File removed.
6218         * sysdeps/posix/pipestream.c: File removed.
6219         * sysdeps/posix/stdio_init.c: File removed.
6220         * sysdeps/posix/vdprintf.c: File removed.
6221         * sysdeps/unix/pipestream.c: File removed.
6222         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6223         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6224         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6226 2002-04-29  Roland McGrath  <roland@frob.com>
6228         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6230 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6232         * sysdeps/generic/tls.h: Describe what must be defined.
6234         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6235         glob_in_dir [PR libc/3385].
6236         * posix/globtest.sh: Add test case.
6238         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6239         //TRANSLIT twice.
6241 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6243         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6244         _internal symbol handling.
6245         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6247 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6249         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6250         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6252 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6254         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6255         not _LIBC and RE_ENABLE_I18N.
6256         (build_range_exp): Implement for not _LIBC.
6257         (build_collating_symbol): Likewise.
6258         (parse_bracket_exp): Unify redundant error handlings.
6259         Don't erase mbcset for non matching list in multibyte envs.
6260         (build_word_op): Add '_' to matching list for \w operator.
6261         * posix/regex_internal.c (re_string_construct): Invoke
6262         build_upper_buffer in case of not RE_ENABLE_I18N.
6263         (re_string_reconstruct): Don't touch cur_state in case of not
6264         RE_ENABLE_I18N.
6265         * posix/regex_internal.h (attribute_hidden): New macro in case of
6266         not _LIBC.
6267         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6268         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6269         RE_ENABLE_I18N.
6270         (transit_state_mb): Likewise.
6271         (check_node_accept_bytes): Implement the code evaluating range
6272         expression in case of not _LIBC.
6273         (find_collation_sequence_value): Hide in case of not _LIBC.
6275 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6277         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6278         i386/semctl.c.
6279         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6280         be used.
6282 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6284         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6286         * sysdeps/ia64/strncpy.S: Fix recovery code.
6287         Patch by David Mosberger <davidm@hpl.hp.com>.
6289 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6291         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6292         GLIBC_2.2.6.
6294 2002-04-14  Bruno Haible  <bruno@clisp.org>
6296         * posix/regex.c (re_max_failures): Add back symbol for binary
6297         compatibility.
6299 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6301         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6302         of buffer building functions.
6303         * posix/regex_internal.c (re_string_allocate): New function.
6304         (re_string_realloc_buffers): New function.
6305         (re_string_skip_chars): New function.
6306         (re_string_reconstruct): New function.
6307         (re_string_construct): Adapt it to new interface of buffer building
6308         functions.
6309         (re_string_construct_common): Likewise.
6310         (build_wcs_buffer): Likewise.
6311         (build_wcs_upper_buffer): Likewise.
6312         (build_upper_buffer): Likewise.
6313         (re_string_translate_buffer): Likewise.
6314         (re_string_context_at): Adapt it to variable length buffers.
6315         * posix/regex_internal.h (re_string_t): Add new fields to handle
6316         variable length buffers.
6317         (re_match_context_t): Likewise.
6318         * posix/regexec.c (re_search_internal): Adapt it to new interface
6319         of re_string_t and re_match_context_t.
6320         (acquire_init_state_context): Likewise.
6321         (check_matching): Likewise.
6322         (check_halt_state_context): Likewise.
6323         (proceed_next_node): Likewise.
6324         (set_regs): Likewise.
6325         (sift_states_backward): Likewise.
6326         (clean_state_log_if_need): Likewise.
6327         (sift_states_iter_mb): Likewise.
6328         (sift_states_iter_bkref): Likewise.
6329         (add_epsilon_backreference): Likewise.
6330         (transit_state): Likewise.
6331         (transit_state_sb): Likewise.
6332         (transit_state_mb): Likewise.
6333         (transit_state_bkref): Likewise.
6334         (transit_state_bkref_loop): Likewise.
6335         (check_node_accept): Likewise.
6336         (match_ctx_init): Likewise.
6337         (extend_buffers): New function.
6339 2002-04-21  Bruno Haible  <bruno@clisp.org>
6341         * iconvdata/tst-table.sh: For the second check, use the truncated
6342         GB18030 charmap table, like for the first check.
6344 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6346         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6347         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6349 2002-04-23  H.J. Lu  <hjl@gnu.org>
6351         * include/math.h (isfinite): Fix a typo.
6353 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6355         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6356         which is created by the test suite.
6358 2002-04-20  Bruno Haible  <bruno@clisp.org>
6360         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6361         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6363 2002-04-20  Bruno Haible  <bruno@clisp.org>
6365         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6366         to avoid gcc warning.
6368 2002-04-20  Bruno Haible  <bruno@clisp.org>
6370         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6371         of data->__statep->__count.
6373 2002-04-20  Bruno Haible  <bruno@clisp.org>
6375         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6376         tag characters.
6377         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6379 2002-04-24  Roland McGrath  <roland@frob.com>
6381         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6382         use END macro instead of our own .end directive.
6383         Use `callsys' insn mnemonic instead of `call_pal'.
6385         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6387         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6388         macro; we need this for Hurd.
6390         Log entry was missing for 2002/03/24 commit of rev 1.8,
6391         goes with 2002-03-17 changes.
6392         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6393         (sysdep_routines): Append ioperm here.
6394         (sysdep_headers): Append sys/io.h here.
6396 2002-04-23  Roland McGrath  <roland@frob.com>
6398         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6399         * sysdeps/mach/hurd/sendto.c: Likewise.
6400         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6401         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6402         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6404 2002-04-22  Roland McGrath  <roland@frob.com>
6406         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6407         failure from i386_io_perm_* RPCs to ENOSYS.
6409 2002-04-22  Andreas Jaeger  <aj@suse.de>
6411         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6413         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6415         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6416         register instead of destroying %rbx.
6418 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6420         * string/string.h: Declare strerror_r also for XPG6.
6422 2002-04-19  Roland McGrath  <roland@frob.com>
6424         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6426 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6428         * Makefile: Add handling of xtests and xcheck targets.
6429         * MakeTAGS: Likewise.
6430         * Makeconfig: Likewise.
6431         * Makerules: Likewise.
6432         * Rules: Likewise.
6433         * manual/Makefile: Likewise.
6434         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6435         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6437 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6439         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6440         authnone_private_s.
6441         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6442         Delete #ifdef _RPC_THREAD_SAFE_ block.
6443         (authnone_private): Make a struct, not a pointer to struct.
6444         (authnone_private_guard): New once-control variable.
6445         (authnone_create_once): New function, split out of
6446         authnone_create.  No need to allocate memory.
6447         (authnone_create): Just call authnone_create_once via
6448         __libc_once, then return &authnone_private->no_client.
6449         (authnone_marshal): Access private data via CLIENT argument,
6450         not authnone_private pointer.
6451         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6452         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6453         authnone_private_s.
6455 2002-04-12  H.J. Lu  <hjl@gnu.org>
6457         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6459 2002-04-18  Bruno Haible  <bruno@clisp.org>
6461         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6462         FROM_DIRECTION): Make the FROM direction stateless.
6463         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6464         FROM_DIRECTION): Likewise.
6466 2002-04-15  Bruno Haible  <bruno@clisp.org>
6468         * iconvdata/JISX0213.TXT: New file.
6469         * iconvdata/jisx0213.h: New file.
6470         * iconvdata/jisx0213.c: New file.
6471         * iconvdata/euc-jisx0213.c: New file.
6472         * iconvdata/shift_jisx0213.c: New file.
6473         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6474         * iconvdata/EUC-JISX0213.precomposed: New file.
6475         * iconvdata/SHIFT_JISX0213.precomposed: New file.
6476         * iconvdata/SHIFT_JISX0213.irreversible: New file.
6477         * iconvdata/tst-table-to.c (main): Make it work for encodings for
6478         which the "to" direction is stateful.
6479         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6480         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6481         SHIFT_JISX0213.
6482         (libJISX0213-routines): New variable.
6483         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6484         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6485         (LDFLAGS-libJISX0213.so): New variable.
6486         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6487         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6488         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6490 2002-04-15  Bruno Haible  <bruno@clisp.org>
6492         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6493         uint32_t.  Update to Unicode 3.2.
6494         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6495         (BODY for TO_LOOP): Handle the ASCII range specially.
6496         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6497         * iconvdata/testdata/BIG5HKSCS: Remove a character.
6498         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6500 2002-04-15  Bruno Haible  <bruno@clisp.org>
6502         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6503         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6505 2002-04-15  Bruno Haible  <bruno@clisp.org>
6507         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6508         (ucs4_to_cns11643): Update.
6509         * iconvdata/cns11643.c: Update to Unicode 3.2.
6510         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6511         __cns11643_from_ucs4p2_tab): Regenerated.
6512         (__cns11643_from_ucs4p2c_tab): New array.
6513         * iconvdata/cvs11643l1.c: Update comments.
6514         * iconvdata/EUC-TW.irreversible: Remove two entries.
6516 2002-04-15  Bruno Haible  <bruno@clisp.org>
6518         * locale/C-translit.h.in: Update to Unicode 3.2.
6519         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6520         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6522 2002-04-15  Bruno Haible  <bruno@clisp.org>
6524         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6525         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6527 2002-04-15  Bruno Haible  <bruno@clisp.org>
6529         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6530         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6531         always one byte, not 0 bytes in some cases and 2 bytes in others.
6533         * iconvdata/tst-table-from.c (main): Correct the usage message.
6535 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6537         * posix/regcomp.c (parse_expression): Fix incorrect error code.
6538         (parse_dup_op): Fix error handling like "a{}".
6539         (parse_bracket_exp): Add error handling.
6540         (fetch_number): Add error handling for "a{<very_large_number>}".
6542 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6544         * posix/regcomp.c (parse_bracket_symbol): Add error handling
6545         in case that the symbol name is too long.
6546         (build_charclass): Handle [:lower:]/[:uppper:] correctly
6547         in case of REG_ICASE.
6549 2002-04-19  Andreas Jaeger  <aj@suse.de>
6551         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6552         <hartvige@mips.com>.
6554 2002-04-15  H.J. Lu  <hjl@gnu.org>
6556         * include/math.h (__finitel_internal): Declare only if
6557         __NO_LONG_DOUBLE_MATH is not defined.
6558         (__isinfl_internal): Likewise.
6559         (__isnanl_internal): Likewise.
6561         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6562         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6563         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6564         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6565         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6566         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6567         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6569         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6570         __fcntl_internal.
6572         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6573         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6575 2002-04-15  Bruno Haible  <bruno@clisp.org>
6577         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6578         (BODY for TO_LOOP): Likewise.
6579         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6580         * iconvdata/tst-table.sh: Add support for encodings which contain
6581         precomposed Unicode characters, known to the iconv converter in both
6582         directions but not listed in the charmap.
6583         * iconvdata/IBM856.irreversible: New file.
6584         * iconvdata/IBM922.irreversible: New file.
6585         * iconvdata/IBM1132.irreversible: New file.
6586         * iconvdata/IBM1133.irreversible: New file.
6587         * iconvdata/IBM1160.irreversible: New file.
6588         * iconvdata/IBM1161.irreversible: New file.
6589         * iconvdata/IBM1163.irreversible: New file.
6590         * iconvdata/IBM1164.irreversible: New file.
6591         * iconvdata/ARMSCII-8.irreversible: New file.
6592         * iconvdata/TCVN5712-1.precomposed: New file.
6593         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6594         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6595         ARMSCII-8, TCVN5712-1.
6596         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6597         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6598         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6599         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6601 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6603         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
6604         for EVENING69.  Include offsets in TZ environment variable.
6606 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
6608         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6609         avoid compiler warnings.
6611         * locale/programs/localedef.c (main): Always call
6612         construct_output_path.
6614         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6616         * locale/programs/locfile.c (to_archive): New variable.  To collect
6617         data which has to be added to the locale archive.
6618         (write_all_categories): Take new third parameter with locale name.
6619         Unless no_archive flag set add new locale data to the archive
6620         (write_locale_data): Unless no-archive flag set store generated data
6621         in to_archive data structure instead of generation output file.
6622         Add new parameter with locale category index.
6623         * locale/programs/locfile.h: Add new parameters in declaractions of
6624         write_all_categories and write_locale_data.
6625         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6626         --add-to-archive, and --delete-from-archive options.  Pass extra
6627         parameter to write_all_categories.
6628         * locale/programs/localedef.h: Add prototypes for functions in
6629         locarchive.c.
6630         * locale/locarchive.h: New file.
6631         * locale/programs/locarchive.c: New file.
6632         * locale/Makefile (distribute): Add programs/locarchive.c and
6633         locarchive.h.
6634         (localedef-modules): Add md5 and locarchive.
6635         Add vpath to crypt subdir for md5.c.
6637         * locale/programs/ld-address.c: Pass locale category ID as new second
6638         parameter to write_locale_data.
6639         * locale/programs/ld-collate.c: Likewise.
6640         * locale/programs/ld-ctype.c: Likewise.
6641         * locale/programs/ld-identification.c: Likewise.
6642         * locale/programs/ld-measurement.c: Likewise.
6643         * locale/programs/ld-messages.c: Likewise.
6644         * locale/programs/ld-monetary.c: Likewise.
6645         * locale/programs/ld-name.c: Likewise.
6646         * locale/programs/ld-numeric.c: Likewise.
6647         * locale/programs/ld-paper.c: Likewise.
6648         * locale/programs/ld-telephone.c: Likewise.
6649         * locale/programs/ld-time.c: Likewise.
6651         * locale/simple-hash.c: Move compute_hashval function from here...
6652         * locale/hashval.h: ...to here.  New file.
6653         * locale/simple-hash.h: Add prototype for compute_hashval.
6655         * include/libintl.h: Minor cleanups.
6657 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
6659         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6661 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
6663         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
6665 2002-04-14  Bruno Haible  <bruno@clisp.org>
6667         * locale/programs/charmap.c (charmap_read): Don't access result if
6668         result == NULL.
6670 2002-02-17  Andreas Schwab  <schwab@suse.de>
6672         * elf/reldep7.c: New file.
6673         * elf/reldep7mod1.c: New file.
6674         * elf/reldep7mod2.c: New file.
6675         * elf/Makefile: Add rules to build and run reldep7.
6677 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
6679         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6680         the end of the function.  Pass original flags to recursive call if
6681         add_dependency failed.
6682         (_dl_lookup_versioned_symbol): Likewise.
6684 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
6686         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6687         early, but check whether it overflowed afterwards.
6688         * time/tst-mktime.c (main): Add new tests.
6690 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
6692         * debug/xtrace.sh: Fix program name in help message.
6693         Patch by Roger Luethi <rl@hellgate.ch>.
6695         * include/sys/stat.h: Add prototypes for __lxstat_internal and
6696         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
6697         NOT_IN_libc.
6698         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6699         * sysdeps/mach/hurd/lxstat.c: Likewise.
6700         * sysdeps/unix/common/lxstat.c: Likewise.
6701         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6702         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6703         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6704         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6705         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6706         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6707         * sysdeps/mach/hurd/lxstat64.c: Likewise.
6708         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6709         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6711         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6712         prototypes.  Add __mbrlen and __mbrtowc macros.
6713         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6714         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6716         * include/unistd.h: Add prototype for __write_internal and add
6717         __libc_write macro is SHARED.
6718         * sysdeps/generic/write.c: Use INTDEF for __write.
6719         * sysdeps/mach/hurd/write.c: Likewise.
6720         * sysdeps/unix/sysv/aix/write.c: Likewise.
6721         * sysdeps/unix/syscalls.list: Add __libc_write alias.
6723         * assert/assert.c: Replace STR_N_SIZE with something usable in
6724         macro arguments.
6725         * assert/assert-perr.c: Likewise.
6727         * include/sys/socket.h: Declare __libc_sa_len_internal and define
6728         SA_LEN macro to use it if not NOT_IN_libc.
6729         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6731         * include/fcntl.h: Declare __open_internal and define __open and
6732         __libc_open macros if not NOT_IN_libc.
6733         * sysdeps/generic/open.c: Use INTDEF for __open.
6734         * sysdeps/mach/hurd/open.c: Likewise.
6735         * sysdeps/unix/sysv/aix/open.c: Likewise.
6736         * sysdeps/unix/syscalls.list: Add __open_internal alias.
6738         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6739         has correct number.
6741         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6742         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6743         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6744         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6746         * include/wctype.h: Declare __iswalpha_l_internal,
6747         __iswdigit_l_internal, __iswspace_l_internal,
6748         __iswxdigit_l_internal, and __iswctype_internal.  Define
6749         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6750         __iswxdigit_l macros if not NOT_IN_libc.
6751         * wctype/iswctype.c: Use INTDEF for __iswctype.
6752         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6754         * include/math.h: Declare __isinf_internal, __isinfl_internal,
6755         __isnan_internal, and __isnanl_internal.
6756         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6757         __isnan, and __isnanl.
6758         * stdio-common/printf_size.c: Likewise.
6759         * sysdeps/generic/printf_fphex.c: Likewise.
6760         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6761         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6762         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6763         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6764         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6765         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6766         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6767         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6768         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6769         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6770         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6771         * sysdeps/m68k/s_isinfl.c: Likewise.
6772         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6773         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6775         * include/sys/time.h: Declare __gettimeofday_internal and define
6776         __gettimeofday macro if not NOT_IN_libc.
6777         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6778         * sysdeps/mach/gettimeofday.c: Likewise.
6779         * sysdeps/posix/gettimeofday.c: Likewise.
6780         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6781         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6782         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6783         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6785         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6786         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6787         Remove __lstat and __fstat inline functions.
6788         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6789         * sysdeps/mach/hurd/fxstat.c: Likewise.
6790         * sysdeps/unix/fxstat.c: Likewise.
6791         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6792         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6793         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6794         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6795         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6796         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6797         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6798         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6799         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6801         * include/unistd.h: Declare __getpid_internal and define
6802         __getpid macro if not NOT_IN_libc.
6803         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6804         * sysdeps/generic/getpid.c: Likewise.
6805         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6806         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6808         * include/unistd.h: Declare __getpgid_internal and define
6809         __getpgid macro if not NOT_IN_libc.
6810         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6811         * sysdeps/mach/hurd/getpgid.c: Likewise.
6812         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6813         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6814         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6815         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6817         * include/unistd.h: Declare __getpagesize_internal and define
6818         __getpagesize macro if not NOT_IN_libc.
6819         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6820         __getpagesize.
6821         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6822         * sysdeps/mach/getpagesize.c: Likewise.
6823         * sysdeps/posix/getpagesize.c: Likewise.
6824         * sysdeps/unix/getpagesize.c: Likewise.
6825         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6826         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6827         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6828         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6830 2002-04-13  Andreas Jaeger  <aj@suse.de>
6832         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6833         as clobber to reduce register pressure.
6834         (__strpbrk_cg): Likewise.
6835         (__mempcpy_by4): Likewise.
6836         (__strstr_cg): Likewise.
6837         Add prototype for __memrchr.
6839 2002-04-13  Andreas Schwab  <schwab@suse.de>
6841         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6842         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6843         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6845 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
6847         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
6848         check whether the caller prefers getting the most recent version of
6849         a symbol of the earliest version.
6850         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
6851         _dl_do_lookup to also take the new parameter and pass it on.
6852         Change 'explicit' parameter of _dl_lookup_symbol and
6853         _dl_lookup_versioned_symbol to flags.  Adjust tests.
6854         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6855         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
6856         _dl_lookup_versioned_symbol.
6857         * elf/dl-reloc.c: Likewise.
6858         * elf/dl-runtime.c: Likewise.
6859         * elf/dl-sym.c: Likewise.
6860         * sysdeps/mips/dl-machine.h: Likewise.
6862 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6864         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
6865         in a token.
6866         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
6868 2002-04-10  Andreas Jaeger  <aj@suse.de>
6870         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6872         * include/argz.h: Remove extra char from last patch.
6874 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
6876         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
6877         * sysdeps/unix/sysv/aix/chown.c: Likewise.
6878         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
6879         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
6880         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6881         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
6882         __chown_internal.
6883         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6885         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
6886         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
6887         * intl/ngettext.c: Likewise.
6889         * include/sys/socket.h: Declare __connect_internal and define
6890         __connect macro if not NOT_IN_libc.
6891         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
6892         * sysdeps/unix/sysv/aix/connect.c: Likewise.
6893         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
6895         * include/unistd.h: Declare __close_internal and define __close macro
6896         if not NOT_IN_libc.
6897         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
6898         WJUMP3): Add extra parenthesis to avoid expanding element names with
6899         macors like __close.
6900         * sysdeps/unix/syscalls.list: Add __close_internal alias.
6902         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
6903         if not NOT_IN_libc.
6904         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
6905         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
6906         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
6908         * include/unistd.h: Declare __fork_internal and define __fork macro
6909         if not NOT_IN_libc.
6910         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
6911         * sysdeps/unix/sysv/aix/fork.c: Likewise.
6912         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
6914         * include/stdio_ext.h: Declare __fsetlocking_internal and define
6915         __fsetlocking macro to use it if not NOT_IN_libc.
6916         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
6918         * libio/__fbufsize.c: Correct copyright.
6919         * libio/__flbf.c: Likewise.
6920         * libio/__fpending.c: Likewise.
6921         * libio/__fpurge.c: Likewise.
6922         * libio/__freadable.c: Likewise.
6923         * libio/__freading.c: Likewise.
6924         * libio/__fsetlocking.c: Likewise.
6925         * libio/__fwritable.c: Likewise.
6926         * libio/__fwriting.c: Likewise.
6928         * include/stdio.h: Declare __asprintf_internal and define __asprintf
6929         macro to use it if not NOT_IN_libc.
6930         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
6932         * include/mntent.h: Declare __setmntent_internal,
6933         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
6934         __getmntent_r, and __endmntent macros to use these functions if not
6935         NOT_IN_libc.
6936         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
6937         __endmntent.
6939         * include/math.h: Declare __finite_internal, __finitef_internal, and
6940         __finitel_internal.  Redefine isfinite macro if in libc or libm using
6941         these functions.
6942         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
6943         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
6944         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
6945         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
6946         * sysdeps/i386/fpu/s_finitef.S: Likewise.
6947         * sysdeps/i386/fpu/s_finitel.S: Likewise.
6948         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6949         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6950         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6951         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
6953         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
6954         to use this function if not NOT_IN_libc.
6955         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
6956         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
6957         * sysdeps/mach/hurd/fcntl.c: Likewise.
6958         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6959         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6961         * include/argz.h: Declare __argz_count_internal and
6962         __argz_stringify_internal.
6963         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
6964         __argz_stringify.
6965         * string/argz-count.c: Use INTDEF for __argz_count.
6966         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
6968         * include/stdlib.h: Declare __cxa_atexit_internal and define
6969         __cxa_atexit macro if not NOT_IN_libc.
6970         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
6971         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
6973         * assert/assert.c: Use INTDEF for __assert_fail.
6974         * assert/__assert.c: Use INTUSE for call to __assert_fail.
6975         * include/assert.h: Declare __assert_fail_internal.
6977         * extra-lib.mk: Mark assignment to lib with override.
6979 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6981         * Makerules: Use cppflags-iterator.mk to add defines for all test
6982         source files.
6984 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6986         * elf/elf.h: Define R_SH_TLS_xxx macros.
6987         * elf/rtld.c: Remove an extra parenthesis.
6988         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
6989         TLS_GD macros.
6990         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
6991         * sysdeps/sh/dl-lookupcfg.h: New file.
6992         * sysdeps/sh/dl-tls.h: New file.
6993         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
6994         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
6995         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
6996         R_SH_TLS_TPOFF32 relocations.
6998 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7000         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7001         of NOT_IN_LIBC.
7002         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7003         * include/stdlib.h: Likewise.
7005 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7007         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7008         instead of _RTLD_LOCAL.
7009         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7010         * include/unistd.h: Likewise.
7011         * sysdeps/generic/ldsodefs.h: Likewise.
7013         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7014         if in libc or ld.so.
7016 2002-04-08  Andreas Jaeger  <aj@suse.de>
7018         * elf/cache.c (print_entry): Support x86-64.
7020 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7022         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7023         with one accessing the locale data structures directly.
7024         * stdio-common/printf-prs.c: Include localeinfo.h for new
7025         MB_CUR_MAX definition.
7027         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7028         is the name of the source file without extension.
7029         * Makefile (distribute): Add cppflags-iterator.mk.
7030         * cppflags-iterator.mk: New file.
7031         * extra-lib.mk: For the sources of the library run
7032         cppflags-iterator.mk.
7034         * include/libintl.h: Declare __dcgettext_internal and
7035         _libc_intl_domainname_internal.  Define __dcgettext using these
7036         two symbols if used in libc itself.
7037         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7038         _libc_intl_domainname_internal.
7039         * argp/argp-parse.c: Likewise.
7040         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7041         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7042         * intl/gettext.c: Likewise.
7043         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7044         alias.
7045         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7046         __dcgettext.
7047         * posix/regex_internal.c (gettext): Likewise.
7049 2002-04-08  Andreas Jaeger  <aj@suse.de>
7051         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7053         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7054         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7055         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7056         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7057         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7058         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7060 2002-04-08  Roland McGrath  <roland@frob.com>
7062         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7063         widening __hurd_fail value.
7065 2002-04-07  Roland McGrath  <roland@frob.com>
7067         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7068         <mach/machine/alpha_instruction.h>.
7069         (_hurd_setup_sighandler): Take proper arguments for current decls.
7070         Update code to use _hurdsig_catch_fault.
7071         Use `callsys' instruction instead of `call_pal'.
7072         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7074         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7075         (ALIGN, at, AT, fp): New macros.
7077 2002-04-06  Roland McGrath  <roland@frob.com>
7079         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7081         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7082         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7084         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7085         * sysdeps/mach/hurd/connect.c: Likewise.
7086         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7087         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7089         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7090         __msg_sig_post RPC.
7092         * hurd/catch-exc.c: Use integer_t instead of int.
7093         * hurd/hurdfault.c: Likewise.
7095         * sysdeps/mach/hurd/alpha/exc2signal.c
7096         (_hurd_exception2signal): Rewritten.
7097         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7098         (_hurd_longjmp_thread_state): Rewritten.
7100 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7102         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7103         DB_LOOKUP_FCT prototype.
7104         * nss/getXXent_r.c: Likewise.
7105         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7106         * inet/getaliasname_r.c: Likewise.
7107         * inet/getnetbyad_r.c: Likewise.
7108         * inet/getnetbynm_r.c: Likewise.
7109         * inet/getnetent_r.c: Likewise.
7110         * inet/getproto_r.c: Likewise.
7111         * inet/getprtent_r.c: Likewise.
7112         * inet/getprtname_r.c: Likewise.
7113         * inet/getrpcbyname_r.c: Likewise.
7114         * inet/getrpcbynumber_r.c: Likewise.
7115         * inet/getrpcent_r.c: Likewise.
7116         * inet/getservent_r.c: Likewise.
7117         * inet/getsrvbynm_r.c: Likewise.
7118         * inet/getsrvbypt_r.c: Likewise.
7119         * shadow/getspent_r.c: Likewise.
7120         * shadow/getspnam_r.c: Likewise.
7122         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7124         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7125         Use i686-friendly PIC code.
7126         * sysdeps/i386/elf/setjmp.S: Likewise.
7128         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7130         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7131         list.
7132         * elf/Versions: Remove it here.
7134 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7136         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7137         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7139 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7141         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7142         test just before the test runs.
7143         * intl/tst-translit.sh: Likewise.
7144         * intl/tst-codeset.sh: Likewise.
7146         * timezone/zic.c: Update from tzcode2002c.
7147         * timezone/asia: Update from tzdata2002c.
7148         * timezone/backward: Likewise.
7149         * timezone/europe: Likewise.
7150         * timezone/northamerica: Likewise.
7151         * timezone/northamerica: Likewise.
7152         * timezone/northamerica: Likewise.
7153         * timezone/southamerica: Likewise.
7154         * timezone/zone.tab: Likewise.
7156 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7158         * sysdeps/generic/brk.c (__curbrk): Declare.
7159         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7160         * sysdeps/generic/dl-sbrk.c: Likewise.
7161         * sysdeps/unix/arm/dl-brk.S: New file.
7162         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7163         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7164         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7165         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7166         * sysdeps/unix/i386/dl-brk.S: New file.
7167         * sysdeps/unix/mips/dl-brk.S: New file.
7168         * sysdeps/unix/sparc/dl-brk.S: New file.
7169         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7170         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7171         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7172         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7174 2002-04-03  Andreas Schwab  <schwab@suse.de>
7176         * Makefile (headers): Add gnu/lib-names.h here instead of
7177         install-others.
7178         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7179         installation rule.
7180         (install-headers): Add dependency on install-headers-nosubdir.
7181         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7182         instead of install-others.
7183         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7184         installation rule.
7186 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7188         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7189         Reported by Sam Roberts <sroberts@uniserve.com>.
7191 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7193         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7194         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7195         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7196         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7198 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7200         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7201         (RTLD_START): Ditto.
7202         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7203         dependency violation.
7205 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7207         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7208         all variable declarations.
7210 2002-04-04  Andreas Schwab  <schwab@suse.de>
7212         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7214 2002-04-04  Andreas Jaeger  <aj@suse.de>
7216         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7217         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7219         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7220         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7221         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7223         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7225         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7227         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7228         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7230         * configure.in: Handle all mips entries the same.
7232         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7233         * sysdeps/mips/mips3/*: Likewise.
7234         * sysdeps/mips/p40/bits/endian.h: Likewise.
7236 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7238         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7239         non-null result [PR libc/2600].
7241         * misc/tst-dirname.c: Add more tests.
7243 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7245         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7246         define a code_set_name provide one based on the filename.
7248         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7250 2001-12-28  Andreas Jaeger  <aj@suse.de>
7252         * time/mktime.c (__mktime_internal): Check for year < 70
7253         [PR libc/2738].
7255 2002-04-03  Andreas Jaeger  <aj@suse.de>
7257         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7258         shmat.
7259         Reported by Andi Kleen <ak@suse.de>.
7261 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7263         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7264         * sysdeps/generic/w_lgammaf.c: Likewise.
7265         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7267         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7268         Adjust for new output format of the backtrace functions.
7270         * misc/syslog.c (vsyslog): Only use cleanup handler if
7271         _LIBC_REENTRANT is defined [PR libc/2924].
7273         * libio/Makefile (tests): Add bug-ungetwc2.
7274         * libio/bug-ungetwc2.c: New file.
7276         * manual/install.texi: Typographical and grammatical cleanup.
7277         Patch by Dennis Grace <dgrace@us.ibm.com>.
7279         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7280         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7282         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7283         always "&".  Adjust callers.
7284         Add "_" prefix to several generated definitions.
7285         Patch by paul@serice.net [PR libc/3158].
7287 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7289         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7290         size of _dl_arm_cap_flags.
7291         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7293         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7294         Define as 8.
7296 2002-03-22  H.J. Lu  <hjl@gnu.org>
7298         * scripts/firstversions.awk: Check the first version.
7300 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7302         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7303         dependencies must be stable to work correctly.
7304         Reported by martin.lubich@datacon.at.
7306         * libio/bug-ungetwc1.c: New file.
7307         * libio/Makefile (tests): Add bug-ungetwc1.
7309         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7310         if stream was last used for writing.
7312         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7313         number [PR libc/3111].
7315         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7316         to ...
7317         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7319 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7321         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7322         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7323         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7324         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7325         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7327 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7329         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7330         dynamic tags.
7332 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7334         * sysdeps/i386/fpu/s_fabs.S: New file.
7335         * sysdeps/i386/fpu/s_fabsf.S: New file.
7336         * sysdeps/i386/fpu/s_fabsl.S: New file.
7337         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7338         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7339         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7341 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7343         * rt/tst-shm.c (do_test): Add one more test for size of shared
7344         memory object.
7346 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7348         * malloc/malloc.c: Add short description and prototypes for
7349         malloc_get_state, malloc_set_state and posix_memalign, for
7350         consistency and to avoid warnings with -Wstrict-prototypes.
7351         Reported by Andreas Jaeger <aj@suse.de>.
7353 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7355         * po/gl.po: Update from translation team.
7357 2002-03-31  Roland McGrath  <roland@frob.com>
7359         * hurd/hurdselect.c (_hurd_select): Fix
7360         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7361         Use a union rather than casts to compare mach_msg_type_t as int.
7363 2002-03-25  Roland McGrath  <roland@frob.com>
7365         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7366         check off the end of NAME when it's shorter than 2 chars.
7367         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7369 2002-03-17  Roland McGrath  <roland@frob.com>
7371         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7372         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7373         * sysdeps/mach/hurd/i386/Dist: Add them.
7374         * sysdeps/mach/hurd/i386/Versions
7375         (libc: GLIBC_2.2.6): New set, add ioperm.
7376         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7377         (mach_interface_list): Check for mach_i386.defs.
7378         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7379         * sysdeps/mach/configure: Regenerated.
7381 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7383         * po/fr.po: Update from translation team.
7385 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7387         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7388         getpriority from syscalls list.
7390 2002-03-28  Andreas Jaeger  <aj@suse.de>
7392         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7393         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7394         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7395         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7397 2002-03-27  Andreas Jaeger  <aj@suse.de>
7399         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7400         sigcontext): Follow further kernel change.
7402         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7403         kernel change.
7405         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7406         Change for struct sigcontext change.
7408         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7409         Follow changes in struct sigcontext.
7411         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7412         sysycall, use wrapper instead.
7414 2002-03-26  Andreas Jaeger  <aj@suse.de>
7416         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7417         read and write accesses as detailed as possible.
7418         (__memcpy_by2): Likewise.
7419         (__memcpy_g): Likewise.
7420         (memmove): Likewise.
7421         (memcmp): Likewise.
7422         (__memset_ccn_by4): Likewise.
7423         (__memset_ccn_by2): Likewise.
7424         (__memset_gcn_by4): Likewise.
7425         (__memset_gcn_by2): Likewise.
7426         (memchr): Likewise.
7427         (__memrchr): Likewise.
7428         (rawmemchr): Likewise.
7429         (__strlen_g): Likewise.
7430         (__strcpy_g): Likewise.
7431         (__mempcpy_by4): Likewise.
7432         (__mempcpy_by2): Likewise.
7433         (__mempcpy_byn): Likewise.
7434         (__stpcpy_g): Likewise.
7435         (__strncpy_by4): Likewise.
7436         (__strncpy_by2): Likewise.
7437         (__strncpy_byn): Likewise.
7438         (__strncpy_gg): Likewise.
7439         (__strcat_c): Likewise.
7440         (__strcat_g): Likewise.
7441         (__strncat_g): Likewise.
7442         (__strcmp_gg): Likewise.
7443         (__strncmp_g): Likewise.
7444         (__strchr_c): Likewise.
7445         (__strchr_g): Likewise.
7446         (__strchrnul_c): Likewise.
7447         (__strchrnul_g): Likewise.
7448         (__strrchr_c): Likewise.
7449         (__strrchr_g): Likewise.
7450         (__strrchr_c): Likewise.
7451         (__strrchr_g): Likewise.
7452         (__strcspn_c1): Likewise.
7453         (__strcspn_cg): Likewise.
7454         (__strcspn_g): Likewise.
7455         (__strcspn_g): Likewise.
7456         (__strspn_c1): Likewise.
7457         (__strspn_cg): Likewise.
7458         (__strspn_g): Likewise.
7459         (__strspn_g): Likewise.
7460         (__strpbrk_cg): Likewise.
7461         (__strpbrk_g): Likewise.
7462         (__strstr_cg): Likewise.
7463         (__strstr_g): Likewise.
7465         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
7466         Michal Ludvig <mludvig@suse.cz>.
7468         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7469         compatibilty, adjust for kernel changes.
7471         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7472         sigcontext): Adjust for kernel changes.
7474 2002-03-25  Andreas Jaeger  <aj@suse.de>
7476         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7477         little endian.
7478         Reported by Artur Zaprzala <zybi@talex.com.pl>.
7480 2002-03-24  Andreas Jaeger  <aj@suse.de>
7482         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7484         * stdio-common/tst-fdopen.c (main): Remove unused variable.
7486         * iconv/tst-iconv3.c (main): Use correct printf strings.
7488 2002-03-18  Roland McGrath  <roland@frob.com>
7490         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7491         (CMGROUP_MAX): New macro.
7493 2002-03-23  Roland McGrath  <roland@frob.com>
7495         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7496         * sysdeps/posix/shm_unlink.c: Likewise.
7498 2002-03-22  Roland McGrath  <roland@frob.com>
7500         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7501         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7502         under --enable-libio.
7503         * sysdeps/mach/hurd/configure: Regenerated.
7505 2002-03-23  Roland McGrath  <roland@frob.com>
7507         * sysdeps/mach/hurd/i386/Makefile
7508         (sysdep_routines, shared-only-routines): Don't add framestate,
7509         reverting 2001-10-02 change.
7510         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7511         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7512         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7513         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7514         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7515         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7516         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7517         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7518         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7519         Do it here instead, only if [$(unwind-find-fde) = yes].
7521 2002-03-23  Andreas Jaeger  <aj@suse.de>
7523         * signal/signal.h: Fix typo. Patch by Steve Kemp
7524         <skx@tardis.ed.ac.uk>.
7526 2002-03-22  Andreas Jaeger  <aj@suse.de>
7528         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7529         getresuid.
7531         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7532         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7533         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7534         user_fpregs_struct): Rename fwd.
7536         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7537         Follow sigcontext changes.
7539 2002-03-22  Andreas Jaeger  <aj@suse.de>
7541         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
7542         changes for NaNs on MIPS.
7543         Patch by Hartvig Ekner <hartvige@mips.com>.
7545 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
7547         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7548         Use realloc if too large.
7549         (addgrbyid): Likewise.
7550         * nscd/hstcache.c (addhstbyname): Likewise.
7551         (addhstbyaddr): Likewise.
7552         (addhstbynamev6): Likewise.
7553         (addhstbyaddrv6): Likewise.
7554         * nscd/pwdcache.c (addpwbyname): Likewise.
7555         (addpwbyuid): Likewise.
7557 2002-03-21  Andreas Jaeger  <aj@suse.de>
7559         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7560         _fpstate): Add separate struct for x86-64.
7562         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7563         user_fpregs_struct): Change member names to follow kernel.
7565 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
7567         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7568         Correctly close the UDP connection right away [PR libc/3120].
7570 2002-03-20  Andreas Jaeger  <aj@suse.de>
7572         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7573         user_fpregs_struct): Fix for changed kernel struct.
7574         (struct user_regs_struct): Likewise.
7575         (struct user): Likewise.
7576         Add 32-bit x86 compatibility.
7578         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7580 2002-03-19  Andreas Jaeger  <aj@suse.de>
7582         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7584 2002-03-18  Andreas Jaeger  <aj@suse.de>
7586         * iconvdata/Makefile: Only run tests when shared libs are
7587         available.
7589 2002-03-17  Andreas Jaeger  <aj@suse.de>
7591         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7593         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7595         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7596         bits.
7598         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7599         (CAUSE_SHIFT): New macro.
7600         Patch by Hartvig Ekner <hartvige@mips.com>.
7602         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7603         * sysdeps/generic/unwind-pe.h: Likewise.
7605         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7606         type to _IO_setb.
7608         * libio/stdio.c (AL2): Define variant when visibility attribute is
7609         not supported.
7611         * include/libc-symbols.h (_INTVARDEF): Define variant when
7612         visibility attribute is not supported.
7614 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
7616         * po/fr.po: Update from translation team.
7618 2002-02-25  Bruno Haible  <bruno@clisp.org>
7620         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7622 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7624         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7625         buffers if _IO_file_attach failed.
7627         * libio/fileops.c (_IO_file_open): Close file descriptor if
7628         _IO_SEEKOFF call failed.
7630 2002-03-15  H.J. Lu  <hjl@gnu.org>
7631             Ulrich Drepper  <drepper@redhat.com>
7633         * configure.in: Check for availability of
7634         init_array/fini_array/preinit_array handling in binutils.
7635         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7636         * config.make.in (have-initfini-array): New variable.
7638 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7640         * stdio-common/tst-printf.c (main): Comment out one test which
7641         checked the compiler's ability to fold floating-point constants
7642         but not really printf.
7643         (rfg3): Make s const.
7644         * stdio-common/tst-printf.sh: Adjust for removed test.
7646         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7647         internal function.  Adjust for internal_function calling convention.
7648         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7649         as internal_function.
7651         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7652         hidden.
7654         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7655         declaration and definition.
7656         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7657         declaration.
7658         * nss/getXXent_r.c: Likewise.
7659         * nss/nsswitch.h (db_lookup_function): Add internal_function to
7660         definition.
7662         * include/time.h: Declare __localtime_r as hidden.
7664         * include/aliases.h: Declare __getaliasent_r as hidden.
7665         * include/grp.h: Declare __getgrent_r as hidden.
7666         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7667         __getservent_r, and __getprotoent_r as hidden.
7668         * include/pwd.h: Declare __getpwent_r as hidden.
7669         * include/shadow.h: Declare __getspent_r as hidden.
7670         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7672         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7673         and __gconv_transliterate as hidden.
7674         Add internal_function to __gconv_get_path declaration.
7675         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7676         definition.  Add attribute_hidden to __gconv_read_conf definition.
7678 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
7680         * elf/rtld.c: Declare _environ as hidden.
7681         * sysdeps/generic/dl-environ.c: Likewise.
7682         * sysdeps/generic/dl-sysdep.c: Likewise.
7684         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7685         _dl_mcount_internal as hidden.
7687         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7688         * sysdeps/generic/dl-brk.c: New file.
7689         * sysdeps/generic/dl-sbrk.c: New file.
7690         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7691         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7693         * elf/dl-minimal.c (malloc): Declare _end as hidden.
7694         (__errno_location): New function.  Declare errno as hidden.
7695         * elf/rtld.c (_dl_argc): Define as hidden.
7696         (_dl_skip_args): Define as hidden.
7697         (_begin, _end): Declare as hidden.
7698         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7699         * sysdeps/generic/entry.h (_start): Declare as hidden.
7700         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7701         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7702         _dl_runtime_resolve and _dl_runtime_profile as hidden.
7703         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7705 2002-03-14  Roland McGrath  <roland@frob.com>
7707         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7709         * Makeconfig (%.v.i, %.v): New implicit rules.
7710         (preprocess-versions): Variable removed.
7711         ($(common-objpfx)shlib-versions.v.i): New target giving just the
7712         shlib-versions input files as dependencies.
7713         ($(common-objpfx)soversions.i): Depend on that instead of the input
7714         files.  Use it as input instead of using a pipeline.
7715         (postclean-generated): Append soversions.i, shlib-versions.v, and
7716         shlib-versions.v.i here.
7717         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7718         the Versions.def input files as dependencies.
7719         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7720         ($(common-objpfx)Versions.all): Depend on that instead of the input
7721         files.  Use it as input instead of using a pipeline.
7722         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7723         (postclean-generated): Append those .v and .v.i files here.
7725 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7727         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7728         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7729         Remove.
7731 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7733         * sysdeps/generic/mp_clz_tab.c: New file.
7734         * sysdeps/i386/mp_clz_tab.c: New file.
7735         * sysdeps/hppa/mp_clz_tab.c: New file.
7736         * sysdeps/powerpc/mp_clz_tab.c: New file.
7737         * stdlib/Makefile (aux): Revert last patch.
7738         * math/Makefile (gmp-objs): Likewise.
7740 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7742         * time/strftime.c: Comment fixes for references to obsolescent
7743         standards, In most cases the simplest fix is to remove the
7744         confusing comments.  Cross-referencing all the standards properly
7745         is a bit of a pain, and it should be enough to put that info in
7746         the documentation as I did in my recent time.texi patch.
7748 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7750         * manual/time.texi (Formatting Calendar Time):
7751         ISO C99 also specifies the E and O modifiers.
7752         %P is a GNU extension, and is not in ISO C99.
7753         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7754         %T is also in ISO C99.
7755         The RFC 822 example is not valid in arbitrary locales.
7756         Reword the POSIX.2 wording slightly, to make it a bit clearer
7757         that POSIX.2 formats are also supported by later POSIX versions.
7758         If a format was introduced in ISO C99 it is also required by
7759         POSIX.1-2001.
7761 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7763         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7764         _sys_nerr_internal with INTVARDEF2.
7765         * include/libc-symbols.h (INTVARDEF2): New macro.
7766         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7767         (_sys_nerr_internal): Library.
7769         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7770         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7772         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7774 2002-03-13  Wolfram Gloger  <wg@malloc.de>
7776         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7778 2002-03-02  Andreas Schwab  <schwab@suse.de>
7780         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7781         'h' flag and positional arg.
7782         * stdio-common/tst-printf.c (rfg3): New function to test
7783         positional arguments.
7784         (main): Fix some warnings.
7786 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7788         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7789         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7791 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7793         * grp/initgroups.c (__nss_group_data): Declare as hidden.
7795         * include/locale.h (_nl_C_locobj): Declare as hidden.
7797         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7798         * time/strptime.c (_nl_C_LC_TIME): Likewise.
7800         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7802         * include/sys/gmon.h: Declare _gmonparam as hidden.
7804         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7805         (__ctype32_wctrans): Likewise.
7806         (__ctype32_width): Likewise.
7808         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7809         use of __ttyname.
7811         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7812         Define as hidden.
7813         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
7814         hidden.  Change all users of these variables.
7816         * posix/regex_internal.h (__re_error_msgid): Renamed from
7817         re_error_msgid.  Declare as hidden.
7818         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
7819         hidden.
7821         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7822         (__printf_function_table): Likewise.
7823         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7824         hidden.
7825         (__printf_function_table): Likewise.
7827         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7828         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7830         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7831         * nss/nsswitch.c: Declare _nss_*_database as hidden.
7833         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7834         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7836 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
7838         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7839         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7840         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7841         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7842         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7843         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7844         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7845         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7846         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7847         _nl_C_LC_CTYPE_width: Declare as hidden.
7848         * include/locale.h: Declare _nl_locale_file_list.
7849         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
7850         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
7851         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
7852         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
7853         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
7854         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
7855         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
7856         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
7857         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
7858         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
7859         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
7860         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
7861         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7862         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7863         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7864         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7865         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7866         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7867         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7868         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
7869         _nl_C_LC_CTYPE_width, and as hidden.
7870         * locale/findlocale.c: Declare _nl_C as hidden.
7871         * locale/newlocale.c: Likewise.
7872         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
7873         _nl_locale_file_list.
7874         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
7875         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
7876         Define _nl_C_locobj as hidden.
7878         * malloc/mtrace.c (_mtrace_file): Define as hidden.
7879         (_mtrace_line): Likewise.
7881         * include/time.h: Declare __mon_yday as hidden.
7882         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
7884         * libio/libioP.h: Declare __libio_codecvt as hidden.
7885         * libio/fileops.c: Declare __libio_translit as hidden.
7886         * libio/iofwide.c: Define __libio_translit as hidden.
7888         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
7889         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
7890         * login/getutline_r.c: Likewise.
7891         * login/utmpname.c: Likewise.
7893         * login/utmp-private.h: Declare __libc_utmp_file_functions,
7894         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
7895         __libc_utmp_file_name as hidden.
7897         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
7898         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
7899         * locale/freelocale.c: Likewise.
7900         * locale/lc-time.c: Likewise.
7902         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
7903         (__libc_ptyname2): Likewise.
7904         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
7905         hidden.
7906         (__libc_ptyname2): Likewise.
7908         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
7909         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
7910         * sysdeps/generic/init-first.c: Likewise.
7911         * sysdeps/i386/init-first.c: Likewise.
7912         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7913         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7914         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7915         * sysdeps/sh/init-first.c: Likewise.
7916         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7917         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7919         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
7920         (_itowa_upper_digits): Likewise.
7922         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
7923         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
7924         as hidden.
7926         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
7927         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
7928         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
7929         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
7931         * gmon/gmon.c (__bb_head): Define as hidden.
7932         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
7934         * argp/argp-parse.c (_argp_hang): Define as static.
7936         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
7937         handling in latest compilers.
7939         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
7940         define alias.
7941         * libio/fileops.c (_IO_file_jumps): Likewise.
7942         * libio/stdfiles.c (_IO_list_all): Likewise.
7943         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
7945         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
7946         include/malloc.h.
7947         * include/malloc.h: Add __libc_malloc_initialized declaration
7948         here.  Mark variable hidden.
7949         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
7951         * elf/dl-open.c (__libc_argc): Declare as hidden.
7952         (__libc_argv): Likewise.
7953         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
7954         (__libc_argv): Likewise.
7955         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
7956         __libc_argv as hidden.
7957         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7958         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7959         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7960         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7962         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
7963         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
7964         * stdlib/erand48.c: Likewise.
7965         * stdlib/jrand48.c: Likewise.
7966         * stdlib/lcong48.c: Likewise.
7967         * stdlib/lrand48.c: Likewise.
7968         * stdlib/mrand48.c: Likewise.
7969         * stdlib/nrand48.c: Likewise.
7970         * stdlib/seed48.c: Likewise.
7971         * stdlib/srand48.c: Likewise.
7973         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
7974         (_itoa_lower_digits_internal): New declaration.
7975         (_itoa_upper_digits_internal): New declaration.
7976         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
7977         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
7978         (_itoa_upper_digits_internal): New declaration.
7979         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
7980         _itoa_lower_digits.
7981         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
7982         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
7984         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
7985         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7987         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
7988         (_itowa_lower_digits): Likewise.
7989         (_itowa_upper_digits): Likewise.
7990         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
7991         (_itowa_upper_digits): Likewise.
7993         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
7994         not already defined.
7995         (GERMANIC_PLURAL): Declare as hidden.
7997         * posix/getopt.c (__getopt_initialized): Declare as hidden.
7998         (attribute_hidden): Define as empty macro if not already defined.
8000         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8001         (__gconv_max_path_elem_len): Likewise.
8002         (__gconv_path_envvar): Likewise.
8004         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8005         * stdlib/Makefile (aux): Remove mp_clz_tab.
8006         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8008         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8010         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8012         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8013         _nl_category_names, _nl_category_name_sizes, _nl_current,
8014         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8016         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8017         (_nl_current_default_domain): Likewise
8018         (_nl_state_lock): Likewise.
8019         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8020         (_nl_current_default_domain): Likewise
8021         (_nl_state_lock): Likewise.
8022         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8024         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8025         (_fpioconst_pow10): Likewise.
8027         * include/time.h (_tmbuf): Add attribute_hidden.
8029         * time/tzset.c (tzstring_list): Define as static.
8031         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8032         __use_tzfile declaration.
8034         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8035         and __wcsmbs_last_locale declaration.
8037 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8039         * timezone/Makefile (tzbases): Move systemv from here...
8040         (tzlinks): to here, since the entries in systemv were all changed
8041         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8042         tested) by Peter Breitenlohner.
8044 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8046         * time/tst-posixtz.c (tests): Add new tests.
8047         (main): Test whether tzset() sets daylight properly.
8049 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8051         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8052         __tzname_cur_max setting...
8053         (tzset_internal): ...here.
8055 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8057         * time/tzset.c (compute_change): Don't return any value.
8058         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8059         (__tz_convert): But here.
8061 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8063         * manual/examples/mkfsock.c: Include <string.h> as well.
8064         Patch by Alain De Carolis <alaind@wseurope.com>.
8066 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8068         * posix/regexec.c (re_match): Fix incorrect register sizes.
8069         (re_search): Likewise.
8071 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8073         * posix/regcomp.c (regfree): Remove a disused condition.
8074         * posix/regex_internal.c (re_acquire_state): Likewise.
8075         (re_acquire_state_context): Likewise.
8076         (register_state): Remove a redundant malloc invocation.
8077         * posix/regex_internal.h: (re_state_table_entry): Simplify
8078         the structure.
8080 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8082         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8083         handling conditions.
8084         (regerror): Likewise.
8085         (regfree): Likewise.
8086         (re_compile_internal): Likewise.
8087         (init_dfa): Likewise.
8088         (init_word_char): Likewise.
8089         (create_initial_state): Likewise.
8090         (analyze): Likewise.
8091         (analyze_tree): Likewise.
8092         (duplicate_node): Likewise.
8093         (calc_eclosure): Likewise.
8094         (calc_eclosure_iter): Likewise.
8095         (parse): Likewise.
8096         (parse_reg_exp): Likewise.
8097         (parse_branch): Likewise.
8098         (parse_expression): Likewise.
8099         (parse_subexp): Likewise.
8100         (parse_dup_op): Likewise.
8101         (parse_bracket_exp): Likewise.
8102         (build_equiv_class): Likewise.
8103         (build_charclass): Likewise.
8104         (build_word_op): Likewise.
8105         (fetch_number): Likewise.
8106         (create_tree): Likewise.
8107         (duplicate_tree): Likewise.
8108         * posix/regex.c (BE): New macro.
8109         * posix/regexec.c (re_match): Add __builtin_expect to error
8110         handling conditions.
8111         (re_match_2): Likewise.
8112         (re_search): Likewise.
8113         (re_search_internal): Likewise.
8114         (check_matching): Likewise.
8115         (proceed_next_node): Likewise.
8116         (set_regs): Likewise.
8117         (sift_states_backward): Likewise.
8118         (add_epsilon_backreference): Likewise.
8119         (transit_state): Likewise.
8120         (transit_state_sb): Likewise.
8121         (transit_state_mb): Likewise.
8122         (transit_state_bkref): Likewise.
8123         (transit_state_bkref_loop): Likewise.
8124         (build_trtable): Likewise.
8125         (group_nodes_into_DFAstates): Likewise.
8126         (match_ctx_init): Likewise.
8127         (match_ctx_add_entry): Likewise.
8128         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8129         to error handling conditions.
8130         (re_string_construct_toupper): Likewise.
8131         (build_wcs_buffer): Likewise.
8132         (build_wcs_upper_buffer): Likewise.
8133         (build_upper_buffer): Likewise.
8134         (re_string_translate_buffer): Likewise.
8135         (re_node_set_alloc): Likewise.
8136         (re_node_set_init_1): Likewise.
8137         (re_node_set_init_2): Likewise.
8138         (re_node_set_init_copy): Likewise.
8139         (re_node_set_intersect): Likewise.
8140         (re_node_set_init_union): Likewise.
8141         (re_node_set_merge): Likewise.
8142         (re_node_set_insert): Likewise.
8143         (re_dfa_add_node): Likewise.
8144         (re_acquire_state): Likewise.
8145         (re_acquire_state_context): Likewise.
8146         (create_new_state_common): Likewise.
8147         (register_state): Likewise.
8148         (create_ci_new_state): Likewise.
8149         (create_cd_new_state): Likewise.
8150         (re_string_context_at): Remove redundant condition.
8152 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8154         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8156         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8158 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8160         * sysdeps/i386/elf/configure.in: Fix comment.
8162         * sysdeps/sparc/sparc64/configure.in: New file.
8163         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8164         if .dynamic comes before .got.
8165         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8167         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8168         HP_TIMING_ACCUM): Fix typos.
8170 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8172         * string/strfry.c: Add some more randomness to the seed.
8173         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8175         * po/es.po: Update from translation team.
8176         * po/fr.po: Likewise.
8178         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8180         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8181         when determining type of format.
8182         Patch by James Antill <james@anqd.org> [PR libc/2787].
8184 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8186         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8188 2002-03-11  Roland McGrath  <roland@frob.com>
8190         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8192         * Versions.def (libc): Add GLIBC_2.2.6.
8193         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8194         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8195         __errno_location instead of __hurd_errno_location, and don't inline it.
8196         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8197         * hurd/errno.c: New file.
8198         * hurd/Makefile (routines): Add errno.
8200 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8202         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8203         ridiculously large widths and precisions [PR libc/3026].
8205 2002-03-11  Andreas Jaeger  <aj@suse.de>
8207         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8208         support.
8209         Patch by Susanne Oberhauser <froh@SuSE.de>.
8211 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8213         * inet/rexec.c (ahostbuf): Define as static.
8215         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8216         (__ctype32_wctrans): Likewise.
8217         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8218         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8219         (__ctype32_wctrans): Likewise.
8220         (__ctype32_width): Likewise.
8222         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8223         They were never exported anyway.
8225         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8226         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8227         exported.
8228         * include/sys/gmon.h: Declare _gmonparam.
8230         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8231         symbols for getdents64.  They were never exported.
8233 2002-03-09  Roland McGrath  <roland@frob.com>
8235         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8236         Reported by Jon Arney <jarney1@cox.net>.
8238 2002-02-23  Roland McGrath  <roland@frob.com>
8240         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8241         declaration.
8242         (__hurd_errno_location): Function removed.
8244 2002-03-06  Andreas Jaeger  <aj@suse.de>
8246         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8247         32-bit.
8249 2002-03-04  Andreas Jaeger  <aj@suse.de>
8251         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8253         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8254         x86-64.
8256         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8258         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8260         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8262         * sysdeps/x86_64/bits/setjmp.h: New file.
8264         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8266         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8268         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8269         for x86.
8270         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8271         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8273 2002-02-28  Bo Thorsen  <bo@suse.de>
8275         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8276         version.
8278 2002-03-03  Andreas Jaeger  <aj@suse.de>
8280         * sysdeps/x86_64/bits/wordsize.h: New file.
8282         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8283         * elf/tst-tlsmod1.c: Likewise.
8285         * posix/regcomp.c: Get regex.h from include dir for internal
8286         prototypes.
8288         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8289         to libc-internal.h and include it.
8290         * include/libc-internal.h: Add __init_misc.
8292         * misc/init-misc.c: Include libc-internal.h for prototypes.
8294         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8296         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8297         _IO_putc_internal.
8299 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8301         * posix/regcomp.c: Compatibility changes to allow using the code
8302         outside glibc.
8304 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8306         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8307         compiled non-PIC.
8309 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8311         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8312         of .str elements in the returned data structure.
8314         * elf/elf.h: Add Alpha TLS bits.
8316 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8318         * sysdeps/unix/sysv/linux/nice.c: New file.
8320 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8322         * elf/Makefile (dl-routines): Add dl-origin.
8323         (elide-routines.os): Add dl-origin.
8324         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8325         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8326         _dl_debug_state.
8327         * include/libc-symbols.c: Define attribute_hidden depending on
8328         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8330         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8331         * elf/dl-load.c: Likewise.
8332         * elf/rtld.c: Likewise.
8333         * include/unistd.h: Declare __libc_enable_secure_internal.
8334         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8335         Use INTUSE with __libc_enable_secure.
8336         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8338         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8339         * elf/dl-error.c: Likewise,
8340         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8342         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8343         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8344         function definition.  Use INTDEF with _dl_get_origin.
8345         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8347         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8348         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8350         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8351         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8352         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8354         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8355         * elf/dl-deps.c: Likewise.
8356         * elf/dl-error.c: Likewise.
8357         * elf/dl-fini.c: Likewise.
8358         * elf/dl-init.c: Likewise.
8359         * elf/dl-load.c: Likewise.
8360         * elf/dl-lookup.c: Likewise.
8361         * elf/dl-reloc.c: Likewise.
8362         * elf/dl-version.c: Likewise.
8363         * elf/do-lookup.h: Likewise.
8364         * sysdeps/arm/dl-machine.h: Likewise.
8365         * sysdeps/cris/dl-machine.h: Likewise.
8366         * sysdeps/hppa/dl-machine.h: Likewise.
8367         * sysdeps/i386/dl-machine.h: Likewise.
8368         * sysdeps/m68k/dl-machine.h: Likewise.
8369         * sysdeps/powerpc/dl-machine.h: Likewise.
8370         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8371         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8372         * sysdeps/sh/dl-machine.h: Likewise.
8373         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8374         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8375         * sysdeps/x86_64/dl-machine.h: Likewise.
8376         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8377         _dl_argv[0].  Use INTUSE with _dl_argv.
8378         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8379         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8381 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8383         * elf/rtld.c (_rtld_global): Remove .protected.
8384         (_rtld_local): Strong alias to _rtld_global.
8385         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8386         only .os object.
8387         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8388         _rtld_local instead of _rtld_global.
8389         (_rtld_local): Add hidden extern, possibly in .sdata section.
8390         * configure.in: Add tests for visibility attribute and .sdata.
8391         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8392         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8393         * sysdeps/arm/dl-machine.h: Likewise.
8394         * sysdeps/generic/ldsodefs.h: Likewise.
8395         * sysdeps/hppa/dl-machine.h: Likewise.
8396         * sysdeps/cris/dl-machine.h: Likewise.
8397         * sysdeps/i386/dl-machine.h: Likewise.
8398         * sysdeps/ia64/dl-machine.h: Likewise.
8399         * sysdeps/m68k/dl-machine.h: Likewise.
8400         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8401         * sysdeps/mips/dl-machine.h: Likewise.
8402         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8403         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8404         * sysdeps/sh/dl-machine.h: Likewise.
8405         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8406         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8407         * sysdeps/x86_64/dl-machine.h: Likewise.
8409 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8411         * login/login.c (login): Always initialize ut_line field
8412         [PR libc/2991].
8414 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8416         * sysdeps/i386/Makefile (sysdep_routines): Add
8417         divdi3 in csu dir.
8418         (shared-only-routines): Likewise.
8419         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8420         (shared-only-routines): Likewise.
8421         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8422         (shared-only-routines): Likewise.
8423         * sysdeps/wordsize-32/divdi3.c: New file.
8425 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8427         * locale/iso-4217.def: Remove obsolete currencies for countries
8428         with Euro.
8430 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8432         * posix/regcomp.c (regcomp): Remove a redundant condition.
8433         (init_word_char): Add a check on malloc failure.
8434         (create_initial_state): Likewise.
8435         (duplicate_node): Likewise.
8436         (calc_eclosure): Likewise.
8437         (calc_eclosure_iter): Likewise.
8438         (parse_expression): Likewise.
8439         (parse_bracket_exp): Remove unnecessary malloc invocations.
8440         (build_equiv_class): Likewise.
8441         (build_charclass): Likewise.
8442         * posix/regex_internal.c (re_node_set_intersect): Add a check
8443         on malloc failure.
8444         (re_node_set_add_intersect): Likewise.
8445         (re_node_set_merge): Likewise.
8446         (re_acquire_state): Likewise.
8447         (re_acquire_state_context): Likewise.
8448         (create_newstate_common): Likewise.
8449         (register_state): Likewise.
8450         (create_ci_newstate): Likewise.
8451         (create_cd_newstate): Likewise.
8452         * posix/regex_internal.h: Fix prototypes of re_acquire_state
8453         and re_acquire_state_context.
8454         * posix/regexec.c (regexec): Suit it to the error handling of
8455         re_search_internal.
8456         (re_match): Likewise.
8457         (re_search): Likewise.
8458         (re_search_internal): Add a check on malloc failure.
8459         (acquire_init_state_context): Likewise.
8460         (check_matching): Likewise.
8461         (proceed_next_node): Likewise.
8462         (set_regs): Likewise.
8463         (sift_states_backward): Likewise.
8464         (sift_states_iter_bkref): Likewise.
8465         (add_epsilon_backreference): Likewise.
8466         (transit_state): Likewise.
8467         (transit_state_sb): Likewise.
8468         (transit_state_mb): Likewise.
8469         (transit_state_bkref_loop): Likewise.
8470         (build_trtable): Likewise.
8471         (group_nodes_into_DFAstates): Likewise.
8472         (match_ctx_init): Likewise.
8473         (match_ctx_add_entry): Likewise.
8475 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8477         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8478         l_libname if profiling is enabled [PR libc/2916].
8480         * sysdeps/ia64/dl-tls.h: New file.
8482 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
8484         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8485         Work around an Alpha gas bug.
8487 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8489         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8490         uses read to load the catalog.
8491         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8493 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
8495         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8496         regex_internal.c, and regex_internal.h.
8497         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8498         * posix/regex.c: Complete rewrite.
8499         * posix/regexec.c: New file.
8500         * posix/regcomp.c: New file.
8501         * posix/regex_internal.c: New file.
8502         * posix/regex_internal.h: New file.
8503         * posix/regex.h (RE_ICASE): New macro.
8504         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8506         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8507         ungetwc.  It's a macro.
8508         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8509         implementation.
8510         Reported by Jason Merrill <jason@redhat.com>.
8512 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8514         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8515         position to fp->_offset if it is set.
8516         * stdio-common/Makefile (tests): Add tst-fdopen.
8517         * stdio-common/tst-fdopen.c: New test.
8519 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8521         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8522         * stdio-common/tst-ungetc.c (main): Add another test.
8524 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
8526         * assert/assert-perr.c: Use INTUSE to reference functions and variables
8527         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
8528         aliases.  Add prototypes for the new aliases.
8529         * assert/assert.c: Likewise.
8530         * include/libc-symbols.h: Likewise.
8531         * include/stdio.h: Likewise.
8532         * include/netinet/in.h: Likewise.
8533         * include/rpc/auth.h: Likewise.
8534         * include/rpc/auth_unix.h: Likewise.
8535         * include/rpc/key_prot.h: Likewise.
8536         * include/rpc/pmap_prot.h: Likewise.
8537         * include/rpc/pmap_rmt.h: Likewise.
8538         * include/rpc/rpc_msg.h: Likewise.
8539         * include/rpc/xdr.h: Likewise.
8540         * inet/gethstbyad_r.c: Likewise.
8541         * inet/gethstbynm2_r.c: Likewise.
8542         * inet/gethstbynm_r.c: Likewise.
8543         * inet/gethstent_r.c: Likewise.
8544         * inet/in6_addr.c: Likewise.
8545         * libio/__fpurge.c: Likewise.
8546         * libio/filedoalloc.c: Likewise.
8547         * libio/fileops.c: Likewise.
8548         * libio/ftello.c: Likewise.
8549         * libio/ftello64.c: Likewise.
8550         * libio/genops.c: Likewise.
8551         * libio/iofclose.c: Likewise.
8552         * libio/iofdopen.c: Likewise.
8553         * libio/iofflush.c: Likewise.
8554         * libio/iofflush_u.c: Likewise.
8555         * libio/iofgetpos.c: Likewise.
8556         * libio/iofgetpos64.c: Likewise.
8557         * libio/iofgets.c: Likewise.
8558         * libio/iofgets_u.c: Likewise.
8559         * libio/iofopen.c: Likewise.
8560         * libio/iofopncook.c: Likewise.
8561         * libio/iofputs.c: Likewise.
8562         * libio/iofread.c: Likewise.
8563         * libio/iofread_u.c: Likewise.
8564         * libio/iofsetpos.c: Likewise.
8565         * libio/iofsetpos64.c: Likewise.
8566         * libio/ioftell.c: Likewise.
8567         * libio/iofwrite.c: Likewise.
8568         * libio/iogetline.c: Likewise.
8569         * libio/iogets.c: Likewise.
8570         * libio/iogetwline.c: Likewise.
8571         * libio/iolibio.h: Likewise.
8572         * libio/iopadn.c: Likewise.
8573         * libio/iopopen.c: Likewise.
8574         * libio/ioseekoff.c: Likewise.
8575         * libio/ioseekpos.c: Likewise.
8576         * libio/iosetbuffer.c: Likewise.
8577         * libio/iosetvbuf.c: Likewise.
8578         * libio/ioungetc.c: Likewise.
8579         * libio/ioungetwc.c: Likewise.
8580         * libio/iovdprintf.c: Likewise.
8581         * libio/iovsprintf.c: Likewise.
8582         * libio/iovsscanf.c: Likewise.
8583         * libio/libioP.h: Likewise.
8584         * libio/memstream.c: Likewise.
8585         * libio/obprintf.c: Likewise.
8586         * libio/oldfileops.c: Likewise.
8587         * libio/oldiofclose.c: Likewise.
8588         * libio/oldiofdopen.c: Likewise.
8589         * libio/oldiofgetpos.c: Likewise.
8590         * libio/oldiofgetpos64.c: Likewise.
8591         * libio/oldiofopen.c: Likewise.
8592         * libio/oldiofsetpos.c: Likewise.
8593         * libio/oldiofsetpos64.c: Likewise.
8594         * libio/oldiopopen.c: Likewise.
8595         * libio/oldstdfiles.c: Likewise.
8596         * libio/putc.c: Likewise.
8597         * libio/setbuf.c: Likewise.
8598         * libio/setlinebuf.c: Likewise.
8599         * libio/stdfiles.c: Likewise.
8600         * libio/stdio.c: Likewise.
8601         * libio/strops.c: Likewise.
8602         * libio/vasprintf.c: Likewise.
8603         * libio/vscanf.c: Likewise.
8604         * libio/vsnprintf.c: Likewise.
8605         * libio/vswprintf.c: Likewise.
8606         * libio/wfiledoalloc.c: Likewise.
8607         * libio/wfileops.c: Likewise.
8608         * libio/wgenops.c: Likewise.
8609         * libio/wstrops.c: Likewise.
8610         * malloc/mtrace.c: Likewise.
8611         * misc/error.c: Likewise.
8612         * misc/syslog.c: Likewise.
8613         * nss/getXXbyYY_r.c: Likewise.
8614         * nss/getXXent_r.c: Likewise.
8615         * nss/hosts-lookup.c: Likewise.
8616         * stdio-common/getw.c
8617         * stdio-common/printf-prs.c: Likewise.
8618         * stdio-common/printf_fp.c: Likewise.
8619         * stdio-common/printf_size.c: Likewise.
8620         * stdio-common/putw.c: Likewise.
8621         * stdio-common/scanf.c: Likewise.
8622         * stdio-common/sprintf.c: Likewise.
8623         * stdio-common/tmpfile64.c: Likewise.
8624         * stdio-common/vfprintf.c: Likewise.
8625         * stdio-common/vfscanf.c: Likewise.
8626         * stdlib/strfmon.c: Likewise.
8627         * sunrpc/auth_des.c: Likewise.
8628         * sunrpc/auth_none.c: Likewise.
8629         * sunrpc/auth_unix.c: Likewise.
8630         * sunrpc/authdes_prot.c: Likewise.
8631         * sunrpc/authuxprot.c: Likewise.
8632         * sunrpc/clnt_perr.c: Likewise.
8633         * sunrpc/clnt_raw.c: Likewise.
8634         * sunrpc/clnt_tcp.c: Likewise.
8635         * sunrpc/clnt_udp.c: Likewise.
8636         * sunrpc/clnt_unix.c: Likewise.
8637         * sunrpc/key_call.c: Likewise.
8638         * sunrpc/key_prot.c: Likewise.
8639         * sunrpc/openchild.c: Likewise.
8640         * sunrpc/pm_getmaps.c: Likewise.
8641         * sunrpc/pm_getport.c: Likewise.
8642         * sunrpc/pmap_clnt.c: Likewise.
8643         * sunrpc/pmap_prot.c: Likewise.
8644         * sunrpc/pmap_prot2.c: Likewise.
8645         * sunrpc/pmap_rmt.c: Likewise.
8646         * sunrpc/rpc_cmsg.c: Likewise.
8647         * sunrpc/rpc_prot.c: Likewise.
8648         * sunrpc/svc_authux.c: Likewise.
8649         * sunrpc/svc_raw.c: Likewise.
8650         * sunrpc/svc_simple.c: Likewise.
8651         * sunrpc/svc_tcp.c: Likewise.
8652         * sunrpc/svc_udp.c: Likewise.
8653         * sunrpc/svc_unix.c: Likewise.
8654         * sunrpc/xdr.c: Likewise.
8655         * sunrpc/xdr_array.c: Likewise.
8656         * sunrpc/xdr_mem.c: Likewise.
8657         * sunrpc/xdr_rec.c: Likewise.
8658         * sunrpc/xdr_ref.c: Likewise.
8659         * sunrpc/xdr_stdio.c: Likewise.
8660         * sysdeps/generic/_strerror.c: Likewise.
8661         * sysdeps/generic/printf_fphex.c: Likewise.
8662         * sysdeps/generic/tmpfile.c: Likewise.
8663         * sysdeps/gnu/errlist.awk: Likewise.
8664         * sysdeps/gnu/errlist.c: Likewise.
8666         * libio/Makefile (routines): Remove iosprint.
8667         * libio/iosprintf.c: Removed
8670 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
8672         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8673         non_dynamic_init and exported now.
8674         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8675         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8676         !SHARED.
8677         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8678         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8679         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8681 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
8683         * elf/dl-close.c (free_slotinfo): Check for end of list and return
8684         true in this case.
8686         * locale/iso-639.def: Add language codes for Walloon.
8688         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8689         total number of relocations performed.
8691         * elf/sprof.c (load_profdata): If do_test provide information as
8692         to why loading failed.
8693         * elf/dl-profile.c (_dl_start_profile): Initialize all of
8694         hist_hdr.dimen.
8696         * csu/set-init.c: Moved to...
8697         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
8698         * csu/Makefile: Don't compile set-init.
8699         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8700         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8701         to __libc_init.
8702         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8703         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8704         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8705         __libc_init.
8706         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
8707         __libc_subinit.
8709 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
8711         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8712         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8713         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8714         (_dl_deallocate_tls): New function.
8715         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8716         _dl_deallocate_tls.
8718 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8720         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8721         * stdio-common/tst-fseek.c (main): Add test for this.
8723 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
8725         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8727 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
8729         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8730         pointer before dereferencing.
8732 2002-02-18  Roland McGrath  <roland@frob.com>
8734         * sysdeps/mach/hurd/times.c: Fix typo in last change.
8736         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8737         Use task_policy in place of task_priority.
8739         * sysdeps/generic/bits/mman.h
8740         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8741         * sysdeps/mach/msync.c: New file.
8743         * sysdeps/mach/powerpc/syscall.S: New file.
8745         * mach/msg.c [MACH_MSG_OVERWRITE]
8746         (__mach_msg_trap, __mach_msg_overwrite): New functions.
8747         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8749         * sysdeps/mach/configure.in: Check for clock.defs to put into
8750         mach_interface_list.
8751         * sysdeps/mach/configure: Regenerated.
8753         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8754         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8755         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8756         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8757         (mach-shortcuts): Add device_read_overwrite_request,
8758         device_read_overwrite, vm_read_overwrite, thread_switch.
8760         * configure.in (base_machine): Set to $machine by default.
8761         * configure: Regenerated.
8763         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8764         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8765         * sysdeps/mach/configure: Regenerated.
8766         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8768         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8770         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8772         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8773         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8775 2002-02-17  Roland McGrath  <roland@frob.com>
8777         * sysdeps/mach/hurd/times.c
8778         [NO_CREATION_TIME] (startup_time): New static variable.
8779         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8780         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8781         creation_time from task_basic_info.
8782         (__times): Use __gettimeofday instead of __host_get_time.
8784         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8785         Use untyped Mach IPC message format.
8787         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8789         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8790         _S_catch_exception_raise_state_identity,
8791         _hurdsig_fault_catch_exception_raise_state,
8792         _hurdsig_fault_catch_exception_raise_state_identity.
8794         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8796         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8797         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8799         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8800         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8802         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8803         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
8804         them as no-op macros.
8805         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8806         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8808         * sysdeps/powerpc/dl-machine.h
8809         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8811         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8812         Use untyped Mach IPC message format.
8814         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8815         Handle untyped Mach IPC message formats.
8817         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8818         Expect different argument conventions when this is defined.
8819         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8820         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8821         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8822         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8823         for OSF Mach variant.
8824         (faulted): Use mig_reply_error_t for REPLY.
8825         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8826         in __thread_set_exception_ports call.
8827         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8828         __mach_port_set_attributes in place of __mach_port_set_qlimit.
8830         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8831         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8832         on Darwin, which includes bogons.
8834         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8835         variable LOADBASE so it's not declared when it's not used.
8837 2002-02-16  Roland McGrath  <roland@frob.com>
8839         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8840         to use BI.creation_time.
8842         * mach/Machrules (MIG): Add -x c to CPP value passed down.
8844         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8845         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8846         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8847         host_page_size instead of vm_statistics.
8849         * sysdeps/mach/Makefile (mach-before-compile): Don't include
8850         mach_interface.h here, since not all variants use that name.
8852         * sysdeps/mach/configure.in: Add some checks for Mach headers
8853         to ensure a sane installation.
8854         (mach_interface_list): Define this variable by checking for .defs
8855         files found in various variants.
8856         * configure.in (mach_interface_list): AC_SUBST this.
8857         * config.make.in (mach-interface-list): New substituted variable.
8858         * mach/Makefile (user-interfaces): Define this using the value
8859         of $(mach-interface-list) instead of mach, mach4.
8860         Updated other references to mach_interface to use it as well.
8862         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
8864         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
8865         mig_reply_error_t for OSF Mach variant.
8867         * mach/Makefile (routines): Remove bootprivport.
8868         * mach/bootprivport.c: File removed.  It has never been used.
8870         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
8871         Grok the OSF flavor of message format.
8872         (mach_msg_destroy_port): For MAKE_SEND and
8873         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
8874         no-senders notification.
8876 2002-02-06  Roland McGrath  <roland@frob.com>
8878         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
8879         to here if 2.0 compatibility enabled ...
8880         (libc: GLIBC_2.1.3): ... from here.
8882 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
8884         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
8885         generation counter.
8886         * elf/dl-close.c (_dl_close): Likewise.
8888 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
8890         * elf/Makefile: Add rules to build and run tst-tls8.
8891         * elf/tst-tls8.c: New file.
8892         * elf/tst-tlsmod4.c: New file.
8894         * stdlib/test-a64l.c (tests): Add more test cases.
8896         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
8897         Reported by Walter Harms <WHarms@bfs.de>.
8899 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
8901         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
8902         definitions for struct sigcontext.
8903         Suggested by David Mosberger-Tang.
8905 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8907         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
8908         for removing reference of module in slotinfo list.
8909         (_dl_close): Use remove_slotinfo.
8910         * sysdeps/generic/dl-tls.c: General pretty printing.
8911         (oom): Define only if SHARED.
8912         (_dl_next_tls_modid): Correct starting point for the case we assume
8913         there is a gap.  Add missing instruction grouping (doh!).  Correct
8914         tests for reaching maximum index.
8915         * elf/Makefile: Add rules to build and run tst-tls7.
8916         * elf/tst-tls7.c: New file.
8917         * elf/tst-tlsmod3.c: New file.
8919         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
8920         USE_TLS.
8921         * elf/tst-tlsmod2.c: Likewise.
8923         * elf/dl-close.c (_dl_close): When closing an object using TLS
8924         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
8925         true.  Increment dl_tls_generation only if we closed any TLS-using
8926         object.
8927         * elf/tst-tls6.c: New file.
8928         * elf/Makefile: Add rules to build and run tst-tls6.
8930         * po/da.po: Update from translation team.
8932         * locale/categories.def: Fix typo [PR libc/2948].
8933         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
8934         [PR libc/2949].
8935         * locale/iso-4217.def: Update from official version [PR libc/2950].
8936         * glibcbug.in: Honor TMPDIR [PR libc/2951].
8937         * locale/programs/ld-collate.c (collate_finish): Bail out with a
8938         message if input is too confusion instead of using assert.
8939         (collate_read): Don't crash on unknown symbol [PR libc/2952].
8940         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
8942         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
8943         * elf/tst-tls2.c: Likewise.
8944         * elf/tst-tls3.c: Likewise.
8946 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
8948         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
8950 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8952         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
8953         if this is really necessary.
8955         * elf/dl-close.c (_dl_close): Implement freeing entries in the
8956         slotinfo array.
8957         (free_mem): Free memory for the slotinfo array if possible.
8959 2002-02-12  Andreas Schwab  <schwab@suse.de>
8961         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
8963 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
8965         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
8966         TLS_DTV_UNALLOCATE.
8967         (oom): New function.
8968         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
8969         (_dl_determine_tlsoffset): Likewise.
8970         (_dl_allocate_tls): Likewise.
8971         (__TLS_GET_ADDR): Define if not already defined.
8972         (_dl_tls_symaddr): New function.
8973         (allocate_and_init): New function.
8974         (__tls_get_addr): Actually implement handling of generation counter
8975         and deferred allocation.
8976         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
8977         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8978         _dl_tls_generation.
8979         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
8980         Declare _dl_tls_symaddr.
8981         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
8982         SHARED.
8983         * include/link.h (struct link_map):  Remove l_tls_nextimage and
8984         l_tls_previmage.
8985         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
8986         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
8987         (_dl_vsym): Likewise.
8988         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
8989         layout.
8990         (dl_main): Allow PT_TLS be present for empty segment.  Remove
8991         nextimage list handling.  Instead add all modules using TLS to
8992         dl_tls_dtv_slotinfo_list.
8993         * elf/dl-open.c (dl_open_worker): After successfully loading all
8994         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
8995         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
8996         empty segment don't do anything.  Remove handling of initimage list.
8997         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
8998         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
8999         * elf/dl-minimal.c: Define __libc_memalign.
9000         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9001         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9002         _dl_tls_generation.
9003         * include/stdlib.h: Declare __libc_memalign.
9005         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9006         * elf/tst-tls4.c: New file.
9007         * elf/tst-tls5.c: New file.
9008         * elf/tst-tlsmod2.c: New file.
9010         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9012         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9014         * elf/tst-tls1.c: Use test-skeleton.c.
9015         * elf/tst-tls2.c: Likewise.
9016         * elf/tst-tls3.c: Likewise.
9018         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9020 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9022         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9024 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9026         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9028         * elf/tst-tls3.c: New file.
9029         * elf/tst-tlsmod1.c: New file.
9030         * elf/Makefile: Add rules to build and run tst-tls3.
9032         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9033         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9034         TLS relocations.
9036         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9038         * po/fr.po: Update from translation team.
9040         * elf/tls-macros.h: Add alternative macros for use in PIC.
9042         * elf/dl-lookup.c: Include <tls.h>.
9043         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9045         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9046         required by passing pointer to last element of the list.
9048         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9049         l_tls_initimage to a place where it actually is performed.
9051         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9052         after globfree() calls.
9054         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9055         (openaux): Pass open_mode as new last argument to _dl_map_object.
9056         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9057         open_mode element of args variable with it.
9058         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9059         _dl_map_object_deps.
9060         * elf/rtld.c (dl_main): Add zero as last parameter to
9061         _dl_map_object_deps call.
9062         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9063         * elf/nodlopen2.c: New file.
9064         * elf/nodlopenmod2.c: New file.
9065         * elf/Makefile: Add rules to build and run nodlopen2.
9067         * elf/tst-tls1.c: Move TLS helper macros to...
9068         * elf/tls-macros.h: ...here.  New file.
9069         * elf/tst-tls2.c: New file.
9070         * elf/Makefile (tests): Add tst-tls2.
9071         (distribute): Add tls-macros.h.
9073         * po/sv.po: Update from translation team.
9075         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9076         architecture specific definitions from the actual test code.
9078         * po/tr.po: Update from translation team.
9080 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9082         * elf/Makefile (tests): Add tst-tls1.
9083         * elf/tst-tls1.c: New file.
9085         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9086         alignment of TCB for now.
9088         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9089         initialization image for the application itself.
9091         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9092         loop to initialize TLS block.
9094 2002-02-08  Richard Henderson  <rth@redhat.com>
9096         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9097         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9099         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9101 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9103         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9105 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9107         * po/ca.po: Update from translation team.
9108         * po/sk.po: Likewise.
9110         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9111         (dl_main): Move dtv/static TLS handling before relocation.
9112         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9113         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9114         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9115         so far uses TLS initialize GL(dl_tls_static_size) and
9116         GL(dl_tls_static_align) to account for the TCB.
9117         (_dl_allocate_tls): New function.
9118         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9119         _dl_initial_dtv_malloced.
9121         * configure.in: Test for __builtin_memset more realistically.
9123         * csu/version.c (banner): If TLS support is available say so.
9125 2002-02-04  H.J. Lu  <hjl@gnu.org>
9127         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9128         __attribute_used__.
9129         (__dl_runtime_resolve): Likewise.
9131         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9132         declaration.
9134 2001-11-15  H.J. Lu  <hjl@gnu.org>
9136         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9137         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9139         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9141 2002-02-07  H.J. Lu  <hjl@gnu.org>
9143         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9144         ".set noreorder".
9145         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9146         Likewise.
9148 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9150         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9152         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9153         ___tls_get_addr_internal.
9154         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9156         * po/ko.po: Update from translation team.
9158 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9160         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9161         attribute, change __pad{1,2} type to unsigned int.
9162         (struct stat64): Remove packed attribute.
9164 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9166         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9168 2002-02-07  Andreas Schwab  <schwab@suse.de>
9170         * configure.in: Fix check for -zcombreloc.
9172 2002-02-06  H.J. Lu  <hjl@gnu.org>
9174         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9175         * configure.in: Check if __builtin_memset really works.
9176         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9177         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9179 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9181         * io/bug-ftw3.c (main): Don't try the test if root.
9183 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9185         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9186         constraints.
9187         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9188         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9189         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9190         Likewise.
9191         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9192         a weak alias for __clone.
9193         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9194         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9195         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9196         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9197         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9198         a weak alias for __mmap64.
9200 2002-02-05  H.J. Lu  <hjl@gnu.org>
9202         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9203         (atomic_add): Likewise.
9204         (compare_and_swap): Likewise.
9205         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9207 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9209         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9211         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9212         alignment of the TCB and store total size and alignment of static
9213         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9214         tls_index is a typedef.
9215         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9216         _dl_tls_static_align.
9217         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9218         * elf/dl-support.c: Define _dl_tls_static_size and
9219         _dl_tls_static_align.
9221 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9223         * configure.in: Add --without-tls option.
9224         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9225         --without-tls is given.
9227         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9229         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9231 2002-02-06  Roland McGrath  <roland@frob.com>
9233         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9234         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9236         * scripts/versions.awk: Improve error message for missing version.
9237         Each version inherits from the last one only if they have the same
9238         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9239         but not GLIBC_x and FOO_y.
9241         * scripts/firstversions.awk: Handle libraries that don't have each
9242         particular version named in the third column of shlib-versions.
9244         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9246 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9248         * Versions.def [ld]: Add GLIBC_2.3.
9249         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9250         * elf/Makefile (dl-routines): Add dl-tls.
9251         (distribute): Add dl-tls.h.
9252         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9253         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9254         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9255         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9256         along with the other info in the link map.  Change queueing of init
9257         images for double linked list.  Use _dl_next_tls_modid to compute
9258         l_tls_modid.
9259         * elf/rtld.c (_dl_start_final): Store alignment requirement
9260         along with the other info in rtld map and executable map.
9261         (dl_main): Add ld.so to the init image list if necessary.  Compute
9262         final module ID with _dl_next_tls_modid.
9263         * include/link.h (struct link_map): Add l_tls_previmage and
9264         l_tls_align.
9265         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9266         * sysdeps/i386/elf/Versions: New file.
9267         * sysdeps/generic/dl-tls.c: New file.
9268         * sysdeps/generic/dl-tls.h: New file.
9269         * sysdeps/i386/dl-tls.h: New file.
9271 2002-02-06  Roland McGrath  <roland@frob.com>
9273         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9274         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9276 2002-01-05  Roland McGrath  <roland@frob.com>
9278         * sysdeps/mach/configure.in: New file.
9279         * sysdeps/mach/configure: New generated file.
9281         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9282         It has never been used by anything.
9284 2002-02-06  H.J. Lu  <hjl@gnu.org>
9286         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9287         is included.
9289 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9291         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9292         attribute((packed)) to counter stupid people misusing gcc options.
9293         (struct stat64): Likewise.
9295 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9297         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9298         the variables which are used as booleans.
9300 2002-02-06  Andreas Jaeger  <aj@suse.de>
9302         * include/libc-symbols.h (INTUSE): Renamed from INT.
9303         * elf/dl-deps.c: Change users.
9304         * sysdeps/generic/dl-sysdep.c: Likewise.
9305         * sysdeps/generic/dl-cache.c: Likewise.
9306         * elf/dl-reloc.c: Likewise.
9307         * elf/rtld.c: Likewise.
9308         * elf/dl-version.c: Likewise.
9309         * elf/dl-load.c: Likewise.
9310         * elf/dl-dst.h: Likewise.
9311         * elf/dl-init.c: Likewise.
9312         * elf/dl-error.c: Likewise.
9313         * elf/dl-fini.c: Likewise.
9314         * elf/dl-runtime.c: Likewise.
9315         * elf/do-lookup.h: Likewise.
9317         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9318         definition.
9319         * stdio-common/_itowa.h: Likewise.
9321 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9323         * elf/dl-minimal.c: Define _itoa_lower_digits.
9325         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9326         DT_FLAGS set.
9328         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9329         loading modules with the DF_STATIC_TLS flag set.
9330         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9331         element.
9332         * include/link.h (struct link_map): Add l_flags field.
9333         * elf/elf.h (DF_STATIC_TLS): New definition.
9335         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9336         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9338         * elf/rtld.c (process_dl_debug): Correct printing help message.
9339         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9340         for %s.
9342         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9343         definition and pass &errno in use of this variable.
9344         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9346 2002-02-04  Andreas Schwab  <schwab@suse.de>
9348         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9349         * locale/programs/charmap-dir.c: Wrap calls that output messages
9350         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9351         * locale/programs/charmap.c: Likewise.
9352         * locale/programs/ld-address.c: Likewise.
9353         * locale/programs/ld-collate.c: Likewise.
9354         * locale/programs/ld-ctype.c: Likewise.
9355         * locale/programs/ld-identification.c: Likewise.
9356         * locale/programs/ld-measurement.c: Likewise.
9357         * locale/programs/ld-messages.c: Likewise.
9358         * locale/programs/ld-monetary.c: Likewise.
9359         * locale/programs/ld-name.c: Likewise.
9360         * locale/programs/ld-numeric.c: Likewise.
9361         * locale/programs/ld-paper.c: Likewise.
9362         * locale/programs/ld-telephone.c: Likewise.
9363         * locale/programs/ld-time.c: Likewise.
9364         * locale/programs/linereader.c: Likewise.
9365         * locale/programs/linereader.h: Likewise.
9366         * locale/programs/localedef.c: Likewise.
9367         * locale/programs/locfile.c: Likewise.
9368         * locale/programs/repertoire.c: Likewise.
9370 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9372         * elf/rtld.c (_dl_start_final): Determine load address to locate
9373         ehdr with GL(dl_rtld_map).l_map_start.
9375         * po/ca.po: Update from translation team.
9377         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9378         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9379         header entry.
9380         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9381         _dl_tls_module_cnt.
9382         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9384 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9386         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9387         * include/link.h (struct link_map): Add various members for TLS
9388         information.
9389         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9390         _rtld_tlsoffset, add _dl_initimage_list.
9391         * sysdeps/i386/dl-lookupcfg.h: New file.
9392         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9393         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9394         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9395         is used.
9397         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9398         unused.
9400         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9401         thread-pointer as soon as possible.
9402         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9403         elements in rtld_global.
9404         * sysdeps/generic/tls.h: New file.
9405         * elf/Makefile (distribute): Add tls.h.
9406         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9407         relocations.  Not complete yet.
9409         * resolv/resolv.h: Allow user to define __need_res_state and only
9410         define __res_start structure then.
9411         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9413         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9414         dl_cpuclock_offset initialization to _dl_start_final.
9415         (_dl_show_auxv): Avoid unnecessary sign extension.
9416         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9418 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9420         * config.h.in: Add HAVE_TLS_SUPPORT.
9421         * sysdeps/i386/elf/configure.in: New file.
9423 2002-02-03  Andreas Schwab  <schwab@suse.de>
9425         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9426         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9428 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9430         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9431         alloca if the memory reqirements are too high.
9433 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9435         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9436         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9437         the former is available anyway and speed isn't important here.
9438         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9439         * elf/dl-version.c (match_symbol): Likewise.
9440         (_dl_check_map_versions): Likewise.
9441         * elf/rtld.c (process_envvars): Likewise.
9442         (print_statistics): Likewise.
9443         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9444         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9445         bases.  Add assert to catch uses of unimplemented features.
9446         (__strsep): Add assert to catch uses of unimplemented features.
9447         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9448         and avoid inline optimization.
9449         * elf/rtld.c (process_envvars): Likewise.
9450         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9451         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9452         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9454 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9456         * stdio-common/_itoa.h: Minor simplifications of the code.
9457         * stdio-common/_itoa.c: Likewise.
9459         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9460         instead of _dl_printf for debugging info output.
9462         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9463         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9465 2002-02-01  H.J. Lu  <hjl@gnu.org>
9467         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9468         (atomic_add): Likewise.
9469         (compare_and_swap): Return 0 only when failed to compare. Use
9470         branch likely.
9472         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9473         branch likely.
9475 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9477         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9479 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9481         * elf/dl-minimal.c (__strsep): New minimal implementation.
9483 2002-02-02  Paul Eggert  <eggert@twinsun.com>
9485         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9486         (__mktime_internal): If no tm_isdst is requested, prefer solutions
9487         with tm_isdst > 0 when the requested time falls within a
9488         spring-forward gap [PR libc/2894].
9490 2002-02-03  Andreas Schwab  <schwab@suse.de>
9492         * stdio-common/tst-rndseek.c: Increase timeout.
9494 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9496         Change ld.so to not use functions which are exported.  One cannot
9497         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
9498         definitions.
9499         * include/libc-symbols.h: Define INT and INTDEF.
9500         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9501         _dl_signal_error_internal, _dl_map_object_internal,
9502         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9503         _dl_lookup_versioned_symbol_internal,
9504         _dl_relocate_object_internal, _dl_debug_state_internal,
9505         _dl_start_profile_internal, and _dl_unload_cache_internal.
9506         * include/dlfcn.h: Declare _dl_catch_error_internal.
9507         * elf/rtld.c: Use INT for calls to any of the *_internal functions
9508         above.  Add INTDEF to function definitions.
9509         * elf/dl-debug.c: Likewise.
9510         * elf/dl-deps.c: Likewise.
9511         * elf/dl-dst.h: Likewise.
9512         * elf/dl-error.c: Likewise.
9513         * elf/dl-fini.c: Likewise.
9514         * elf/dl-init.c: Likewise.
9515         * elf/dl-load.c: Likewise.
9516         * elf/dl-lookup.c: Likewise.
9517         * elf/dl-misc.c: Likewise.
9518         * elf/dl-open.c: Likewise.
9519         * elf/dl-profile.c: Likewise.
9520         * elf/dl-reloc.c: Likewise.
9521         * elf/dl-runtime.c: Likewise.
9522         * elf/dl-version.c: Likewise.
9523         * elf/do-lookup.h: Likewise.
9524         * sysdeps/generic/dl-cache.c: Likewise.
9525         * sysdeps/generic/dl-sysdep.c: Likewise.
9526         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9527         instead of _dl_init.
9528         * sysdeps/arm/dl-machine.h: Likewise.
9529         * sysdeps/cris/dl-machine.h: Likewise.
9530         * sysdeps/hppa/dl-machine.h: Likewise.
9531         * sysdeps/i386/dl-machine.h: Likewise.
9532         * sysdeps/ia64/dl-machine.h: Likewise.
9533         * sysdeps/m68k/dl-machine.h: Likewise.
9534         * sysdeps/mips/dl-machine.h: Likewise.
9535         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9536         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9537         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9538         * sysdeps/sh/dl-machine.h: Likewise.
9539         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9540         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9541         * sysdeps/x86_64/dl-machine.h: Likewise.
9542         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9544         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9545         and _dl_debug_initialize.
9547         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
9548         more information.
9549         * elf/rtld.c (dl_main): Avoid strrchr.
9550         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9551         result of readlink.  Search from the back for '/'.
9553         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9554         strncpy if possible.
9556         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
9557         strncmp.
9558         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
9559         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9560         strspn, and strcspn.
9561         (process_envvars): Don't use strcspn.
9563         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9564         (_dl_dst_substitute): Likewise.
9566 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9568         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9569         code which is never used when relocating ld.so itself.
9571         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9572         starting ld.so itself.  Move l_addr variable initialization closer
9573         to use.
9574         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9576 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9578         * Versions.def (libc): Add GLIBC_PRIVATE.
9579         (libdb, libnss_db, libdb1): Remove.
9580         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9581         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9582         (libpthread): Add GLIBC_PRIVATE.
9583         (libresolv): Likewise, remove GLIBC_2.1.
9584         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9585         GLIBC_2.2.3, GLIBC_2.3.
9586         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9587         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9588         _dl_sym, _dl_vsym): Likewise.
9589         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9590         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9591         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9592         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9593         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9594         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9595         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9596         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9597         Likewise.
9598         (_dl_object_relocation_scope): Remove.
9599         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9600         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9601         __gconv_cache): Move to GLIBC_PRIVATE.
9602         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9603         __internal_setnetgrent): Likewise.
9604         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9605         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9606         * locale/Versions (__collate_element_hash, __collate_element_strings,
9607         __collate_symbol_classes, __collate_symbol_hash,
9608         __collate_symbol_strings, _nl_current_LC_COLLATE,
9609         _nl_current_LC_CTYPE): Likewise.
9610         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9611         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9612         (libnss_nis, libnss_nisplus): Likewise.
9613         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9614         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9615         (libnss_files): Move all symbols to GLIBC_PRIVATE.
9616         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9617         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9618         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9619         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9620         __ns_get16, __ns_samename): Likewise.
9621         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9622         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9623         GLIBC_PRIVATE.
9624         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9625         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9626         __libc_connect): Likewise.
9627         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9628         Likewise.
9629         * stdlib/Versions (__libc_system): Likewise.
9630         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9631         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9632         * sysdeps/ia64/fpu/Versions: Likewise.
9633         * sysdeps/ia64/Versions: Likewise.
9634         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9635         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9636         to GLIBC_PRIVATE.
9637         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9638         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9639         __libc_sigaction): Likewise.
9640         * termios/Versions (__libc_tcdrain): Likewise.
9642         * misc/sys/cdefs (__attribute_noinline__): Define.
9643         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9644         __attribute_noinline__.
9646         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9647         * elf/dl-xstat64.c: New file.
9648         * elf/dl-fxstat64.c: New file.
9649         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9650         don't export __fxstat64 at multiple versions.
9651         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9652         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9654 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
9656         * locale/program/ld-collate.c (collate_finish): Assign a wide
9657         char collation sequence value to multi character collating
9658         elements, and avoid over writing by non-character elements.
9660 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9662         * elf/Makefile (distribute): Add dl-procinfo.c.
9663         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9664         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9666 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9668         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9669         definition.
9670         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9671         _rtld_global struct.
9672         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9673         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9674         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9675         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9676         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9677         _dl_fpu_control_set): Remove unused externs.
9678         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9679         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9680         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9681         related variables in _rtld_global struct.
9682         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9683         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9684         unused extern.
9686 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9688         * sysdeps/generic/dl-procinfo.c: New file.
9690 2002-02-01  Andreas Schwab  <schwab@suse.de>
9692         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9694 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9696         * elf/rtld.c (_dl_start): Mark as internal_function.
9697         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9698         in register.
9699         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9700         General pretty printing.
9702 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9704         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9705         * elf/dl-reloc.c: Pretty printing.
9706         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9707         procinfo-related variables in rtld_global struct.
9708         * elf/dl-support.c: Likewise.
9709         * elf/rtld.c: Likewise.
9710         * sysdeps/i386/i686/Makefile: Likewise.
9711         * sysdeps/i386/i686/hp-timing.c: Likewise.
9712         * sysdeps/i386/i686/hp-timing.h: Likewise.
9713         * sysdeps/ia64/Makefile: Likewise.
9714         * sysdeps/ia64/hp-timing.c: Likewise.
9715         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9716         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9717         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9718         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9719         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9720         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9721         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9722         * sysdeps/x86_64/Makefile: Likewise.
9724         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9725         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9726         _dl_debug_fd to rtld_global.
9727         * elf/Versions: Likewise.
9728         * elf/dl-close.c: Likewise.
9729         * elf/dl-iteratephdr.c: Likewise.
9730         * elf/dl-lookup.c: Likewise.
9731         * elf/dl-misc.c: Likewise.
9732         * elf/dl-open.c: Likewise.
9733         * elf/dl-support.c: Likewise.
9734         * elf/do-lookup.h: Likewise.
9735         * elf/rtld.c: Likewise.
9736         * sysdeps/generic/dl-cache.c: Likewise.
9737         * sysdeps/generic/dl-sysdep.c: Likewise.
9738         * sysdeps/ia64/Versions: Likewise.
9739         * sysdeps/unix/clock_gettime.c: Likewise.
9740         * sysdeps/unix/clock_settime.c: Likewise.
9741         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9742         * sysdeps/sparc/Versions: Removed.
9743         * sysdeps/i386/i686/Versions : Removed.
9744         * sysdeps/x86_64/Versions: Removed.
9745         * configure.in: Define HAVE_PROTECTED if .protected is available.
9746         * config.h.in: Add entry for HAVE_PROTECTED.
9748 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
9750         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9751         code in struct _rtld_global.  Export this struct, remove all
9752         exports for the signal variables.
9753         * sysdeps/arm/dl-machine: Likewise.
9754         * sysdeps/generic/dl-origin: Likewise.
9755         * sysdeps/generic/dl-sysdep: Likewise.
9756         * sysdeps/generic/dl-cache: Likewise.
9757         * sysdeps/hppa/dl-fptr: Likewise.
9758         * sysdeps/hppa/dl-machine: Likewise.
9759         * sysdeps/cris/dl-machine: Likewise.
9760         * sysdeps/i386/dl-machine: Likewise.
9761         * sysdeps/ia64/dl-machine: Likewise.
9762         * sysdeps/m68k/dl-machine: Likewise.
9763         * sysdeps/mach/hurd/dl-sysdep: Likewise.
9764         * sysdeps/mips/mips64/dl-machine: Likewise.
9765         * sysdeps/mips/dl-machine: Likewise.
9766         * sysdeps/powerpc/elf/libc-start: Likewise.
9767         * sysdeps/powerpc/dl-machine: Likewise.
9768         * sysdeps/powerpc/dl-start: Likewise.
9769         * sysdeps/sparc/sparc32/dl-machine: Likewise.
9770         * sysdeps/sparc/sparc64/dl-machine: Likewise.
9771         * sysdeps/sh/dl-machine: Likewise.
9772         * sysdeps/s390/s390-32/dl-machine: Likewise.
9773         * sysdeps/s390/s390-64/dl-machine: Likewise.
9774         * sysdeps/unix/sysv/aix/libc-start: Likewise.
9775         * sysdeps/unix/sysv/aix/start-libc: Likewise.
9776         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9777         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9778         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9779         * sysdeps/x86_64/dl-machine: Likewise.
9781 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9783         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9784         are too high.
9786 2002-01-31  Andreas Schwab  <schwab@suse.de>
9788         * sysdeps/posix/readv.c: Check for ssize_t overflow.
9790 2002-01-31  Andreas Schwab  <schwab@suse.de>
9792         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9793         reference to _dl_pagesize.
9795 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
9797         * Versions.def [ld]: Add GLIBC_2.3.
9798         * elf/dl-addr.c: Move global variables for SHARED code in struct
9799         _rtld_global.  Export this struct, remove all exports for the
9800         signal variables.
9801         * elf/dl-close.c: Likewise.
9802         * elf/dl-conflict.c: Likewise.
9803         * elf/dl-debug.c: Likewise.
9804         * elf/dl-deps.c: Likewise.
9805         * elf/dl-dst.h: Likewise.
9806         * elf/dl-error.c: Likewise.
9807         * elf/dl-fini.c: Likewise.
9808         * elf/dl-init.c: Likewise.
9809         * elf/dl-iteratephdr.c: Likewise.
9810         * elf/dl-libc.c: Likewise.
9811         * elf/dl-load.c: Likewise.
9812         * elf/dl-lookup.c: Likewise.
9813         * elf/dl-minimal.c: Likewise.
9814         * elf/dl-object.c: Likewise.
9815         * elf/dl-open.c: Likewise.
9816         * elf/dl-profile.c: Likewise.
9817         * elf/dl-profstub.c: Likewise.
9818         * elf/dl-reloc.c: Likewise.
9819         * elf/dl-runtime.c: Likewise.
9820         * elf/dl-support.c: Likewise.
9821         * elf/dl-sym.c: Likewise.
9822         * elf/dl-version.c: Likewise.
9823         * elf/do-lookup.h: Likewise.
9824         * elf/do-rel.h: Likewise.
9825         * elf/dynamic-link.h: Likewise.
9826         * elf/rtld.c: Likewise.
9827         * sysdeps/generic/dl-cache.c: Likewise.
9828         * sysdeps/generic/dl-sysdep.c: Likewise.
9829         * sysdeps/generic/ldsodefs.h: Likewise.
9830         * sysdeps/generic/libc-start.c: Likewise.
9831         * sysdeps/i386/dl-machine.h: Likewise.
9832         * sysdeps/ia64/dl-fptr.c: Likewise.
9833         * sysdeps/ia64/dl-machine.h: Likewise.
9834         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9835         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9836         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9837         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9838         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9839         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9840         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9841         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9843 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9845         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9846         to avoid warning
9847         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9849         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
9850         SHARED version.
9851         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
9853         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
9855 2002-01-29  Ben Collins  <bcollins@debian.org>
9857         * string/bits/string2.h (__mempcpy): Protect size arg for
9858         addition when using __builtin_memcpy.
9860 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9862         * stdlib/Makefile (tests): Add tst-qsort.
9863         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
9865         * manual/signal.texi (Process Signal Mask): Document that
9866         pthread_sigmask, not sigprocmask, must be used in MT programs.
9867         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
9869         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
9870         found.
9871         * misc/Makefile (tests): Add tst-hsearch.
9872         * misc/tst-hsearch.c: New file.
9874 2002-01-18  Wolfram Gloger  <wg@malloc.de>
9876         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
9877         * malloc/malloc.h: Likewise.
9878         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
9879         * malloc/arena.c: New file.
9880         * malloc/hooks.c: New file.
9881         * malloc/tst-mallocstate.c: New file.
9882         * malloc/Makefile: Add new testcase tst-mallocstate.
9883         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
9885 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9887         * stdlib/msort.c: Remove last patch.  The optimization violates the
9888         same rule which qsort.c had problems with.
9890 2002-01-27  Paul Eggert  <eggert@twinsun.com>
9892         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
9893         to a pivot element that lies outside the array to be sorted, as
9894         ISO C99 requires that the comparison function be called only with
9895         addresses of array elements [PR libc/2880].
9897 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9899         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
9900         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
9902         * timezone/asia: Update from tzdata2002b.
9903         * timezone/australasia: Likewise.
9904         * timezone/backward: Likewise.
9905         * timezone/europe: Likewise.
9906         * timezone/leapseconds: Likewise.
9907         * timezone/iso3166.tab: Likewise.
9908         * timezone/zone.tab: Likewise.
9910 2002-01-23  Richard Henderson  <rth@redhat.com>
9912         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
9914 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9916         * string/strxfrm.c: Allocate one more byte for rulearr and clear
9917         this element [PR libc/2855].
9919         * string/strcoll.c: Handle zero-length arguments specially
9920         [PR libc/2856].
9922 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
9924         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
9925         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
9926         short lengths and constant src.
9927         (strcpy): Don't optimize for gcc 3.0+.
9928         (__stpcpy): For gcc 3.0+, don't use
9929         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
9930         for short string literal src.
9932 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9934         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
9935         Set for arm, too.
9937 2001-01-22  Paul Eggert  <eggert@twinsun.com>
9939         * manual/llio.texi (Linked Channels, Cleaning Streams):
9940         Make it clearer that a just-opened input stream might need cleaning.
9942 2002-01-21  H.J. Lu  <hjl@gnu.org>
9944         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9945         Don't use label at end of compound statement.
9947 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
9949         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
9950         Remove test for negative integer arg; sin_pi does it correctly.
9952 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
9954         * nscd/Makefile (distribute): Filter out xmalloc.c.
9956 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
9958         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
9959         Set offset if read end wasn't the buffer end.
9960         (_IO_file_seekoff_mmap): New function.
9961         (_IO_file_xsgetn_mmap): New function.
9962         (_IO_file_jumps_mmap): Use the two new functions.
9963         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
9964         != end buffer.
9965         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
9966         _IO_file_underflow_mmap.
9967         * libio/iofopen.c: Don't position file descriptor at end of file.
9968         * libio/tst-widetext.c: Improve error messages.
9969         * stdio-common/tst-rndseek.c: Likewise.
9971 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
9973         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
9974         end of enum for !_GNU_SOURCE.
9975         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
9976         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
9977         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
9978         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
9979         values unless _GNU_SOURCE.
9981         * iconvdata/tcvn5712-1.c: Minor cleanups.
9983 2002-01-18  Andreas Schwab  <schwab@suse.de>
9985         * sysdeps/unix/sysv/linux/configure.in
9986         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
9988 2002-01-16  Roger Sayle  <roger@eyesopen.com>
9990         * stdlib/msort.c (msort_with_tmp): Replace implementation with
9991         more efficient "Towers of Hanoi" mergesort.
9992         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
9993         for generic, sizeof(int) and sizeof(long) variants respectively.
9995 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
9997         * manual/syslog.texi (openlog): Describe possible problems with
9998         first parameter.
9999         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10001         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10002         * nscd/connections.c (begin_drop_privileges): New function.
10003         (finish_drop_privileges): New function.
10004         (nscd_init): Call the new functions which also install all groups
10005         for the server user.
10006         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10007         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10009 2002-01-17  H.J. Lu  <hjl@gnu.org>
10011         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10012         `const' from `got'.
10014 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10016         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10017         instructions for pointer operations.
10018         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10020 2002-01-17  Andreas Jaeger  <aj@suse.de>
10022         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10023         __uint128_t build-in.
10025         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10026         PowerPC, sync with 2.2 branch.
10028 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10030         * posix/getconf.c: Update copyright year.
10031         * nss/getent.c: Likewise.
10032         * nscd/nscd_nischeck.c: Likewise.
10033         * iconv/iconvconfig.c: Likewise.
10034         * iconv/iconv_prog.c: Likewise.
10035         * elf/ldconfig.c: Likewise.
10036         * catgets/gencat.c: Likewise.
10037         * csu/version.c: Likewise.
10038         * elf/ldd.bash.in: Likewise.
10039         * elf/sprof.c (print_version): Likewise.
10040         * locale/programs/locale.c: Likewise.
10041         * locale/programs/localedef.c: Likewise.
10042         * nscd/nscd.c (print_version): Likewise.
10043         * debug/xtrace.sh: Likewise.
10044         * malloc/memusage.sh: Likewise.
10045         * malloc/mtrace.pl: Likewise.
10047 2002-01-16  Andreas Schwab  <schwab@suse.de>
10049         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10050         reliably remove "-ia64" from rtld name.
10052 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10054         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10055         Patch by Yu Shao <yshao@redhat.com>.
10057 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10059         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10060         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10061         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10063 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10065         * sysdeps/s390/fpu/libm-test-ulps: Update.
10067 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10069         * elf/elf.h: Update x86 relocations.
10071 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10073         * locale/programs/charmap.c (new_width): Check whether byte
10074         sequences for both ends of range have the same length.
10076 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10078         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10080 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10082         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10083         string literals.
10084         (__full_ieee754_sqrt): Add __attribute_used__.
10086 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10088         * sysdeps/generic/group_member.c (__group_member): Also check
10089         groups[0] [PR libc/2781].
10091 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10093         * Makefile (distribute): Add scripts/cpp.
10094         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10095         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10096         unwind-dw2-fde.h, and dwarf2.h.
10097         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10098         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10099         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10100         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10102 2002-01-07  Roland McGrath  <roland@frob.com>
10104         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10105         volatile on type of ARGC so the compiler doesn't get clever.
10107 2002-01-07  Andreas Jaeger  <aj@suse.de>
10109         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10110         * sysdeps/i386/bits/byteswap.h: Likewise.
10111         * sysdeps/ia64/bits/byteswap.h: Likewise.
10112         * sysdeps/m68k/bits/byteswap.h: Likewise.
10113         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10114         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10116 2002-01-02  Bruno Haible  <bruno@clisp.org>
10118         * intl/plural.y: Fix %expect count.
10120 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10122         * elf/Makefile (routines, shared-only-routines): Add
10123         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10124         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10125         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10126         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10127         Optimize if .eh_frame section contains no FDEs.
10128         (__register_frame, __deregister_frame_info_bases,
10129         __deregister_frame): Likewise.
10130         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10131         DW_CFA_restore handling.
10133 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10135         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10137         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10138         for x < 0.25 and restore original range reduction method.
10139         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10141 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10143         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10144         (_IO_file_close_mmap): New function.
10145         (_IO_file_jumps_mmap): New variable.
10146         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10147         trying to convert rest of byte buffer.
10148         (_IO_wfile_underflow_mmap): New function.
10149         (_IO_wfile_jumps_mmap): New variable.
10150         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10151         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10152         (_IO_new_fopen): Call __fopen_internal.
10153         * libio/iofopen64.c: Just call __fopen_internal.
10154         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10155         successfully.
10156         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10157         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10158         _IO_file_close_mmap.
10160         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10161         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10163         * stdio-common/Makefile (tests): Add tst-rndseek.
10164         * stdio-common/tst-rndseek.c: New file.
10166 2002-01-05  Roland McGrath  <roland@frob.com>
10168         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10169         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10170         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10171         * sysdeps/mach/hurd/configure: Regenerated.
10173 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10175         * elf/elf.h: Add more TLS definitions.
10177 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10179         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10181 2002-01-02  Roland McGrath  <roland@frob.com>
10183         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10184         __sigisemptyset.  Don't use MASK uninitialized.
10186         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10187         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10188         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10189         __sigdelset, __sigaddset, __sigorset.
10191         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10192         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10194         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10195         _hurd_ports is null.
10197         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10198         for old CMU and new OSF Mach interface flavors.
10199         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10200         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10202         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10204         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10205         Pass extra arguments to task_create for OSF variant.
10206         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10208         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10209         conditional on [HAVE_AUX_VECTOR].
10211         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10212         mach_msg_timeout_t as type of final argument.
10214         * hurd/privports.c (__get_privileged_ports):
10215         Change host_priv_t to mach_port_t in argument type.
10216         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10217         Update decls.
10219         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10220         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10221         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10222         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10223         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10224         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10226 2002-01-01  Roland McGrath  <roland@frob.com>
10228         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10230 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10232         * include/stdlib.h: Define inlines for the _l variants of the strto*
10233         functions.
10235 2002-01-01  Roland McGrath  <roland@frob.com>
10237         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10239         * mach/Machrules (MIG): Set CPP as well as CC.
10241 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10243         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10244         locale to parse /proc/loadavg [PR libc/2760].
10246 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10248         * elf/dl-conflict.c: Include sys/param.h.
10249         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10250         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10251         warning.
10252         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10253         literals to avoid warnings.
10255 2001-12-31  Andreas Jaeger  <aj@suse.de>
10257         * configure.in: Don't check for gsed since we do not use it anywhere.
10259 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10261         * io/fts.c: Update from BSD to fix memory leaks.
10263 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10265         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10266         * elf/chroot_canon.c: Likewise.
10267         * elf/dl-object.c: Likewise.
10268         * iconv/iconv_charmap.c: Likewise.
10269         * iconv/iconv_prog.c: Likewise.
10270         * libio/iogetdelim.c: Likewise.
10271         * locale/lc-time.c: Likewise.
10272         * stdlib/canonicalize.c: Likewise.
10273         * sunrpc/svc.c: Likewise.
10274         * sysdeps/generic/glob.c: Likewise.
10276 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10278         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10279         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10280         remove high order bit from the program counter.
10281         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10283 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10285         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10286         unnecessary code and add missing reloc types.
10287         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10288         case for reloc type R_390_NONE.
10290 2001-12-28  Andreas Jaeger  <aj@suse.de>
10292         * io/bug-ftw3.c: Include string.h for prototypes.
10294         * crypt/md5test.c (main): Remove unused variable.
10296         * dlfcn/modstatic.c: Add prototype to avoid warning.
10298 2001-12-26  Roland McGrath  <roland@frob.com>
10300         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10301         check only (SS->pending & MASK) for the signal to return.
10302         From Jeroen Dekkers <jeroen@dekkers.cx>.
10304 2001-12-22  Roland McGrath  <roland@frob.com>
10306         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10307         Use preprocessor #if conditionals instead of `if' to avoid
10308         warnings about divide by zero in dead code.
10310         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10311         _hurd_port_init, and __hurd_self_sigstate.
10313         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10315 2001-12-21  Andreas Jaeger  <aj@suse.de>
10317         * elf/dblloadmod1.c: Add prototype to avoid warning.
10318         * elf/dblloadmod2.c: Likewise.
10319         * elf/dblloadmod3.c: Likewise.
10320         * elf/reldepmod5.c: Likewise.
10321         * elf/reldepmod6.c: Likewise.
10323         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10324         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10325         used on all architectures.
10327         * sunrpc/svc_tcp.c: Add noreturn attribute for
10328         svctcp_rendezvous_abort.
10329         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10331         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10332         to avoid warning.
10334 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10336         * manual/llio.texi (aio_fsync): Fix a typo.
10337         Patch by Tammy Fox <tfox@redhat.com>.
10339 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10341         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10342         stack bias from child stack pointer before passing it to clone syscall.
10344 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10346         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10347         _SC_TZNAME_MAX.
10348         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10349         Reported by Thorsten Kukuk <kukuk@suse.de>.
10351         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10352         add some casts.
10354         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10356 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10358         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10359         conforming: return EBADF if file descriptor is invalid and EINVAL
10360         if file descriptor is no valid tty.
10361         * login/tst-grantpt.c: New file.
10362         * login/Makefile (tests): Add tst-grantpt.
10364 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10366         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10367         different than implemented in last patch.
10368         * io/bug-ftw3.c: Adjust test for changed handling of
10369         inaccessibility of toplevel dir.
10371 2001-12-16  Roland McGrath  <roland@frob.com>
10373         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10374         * grp/initgroups.c (internal_getgrouplist): Likewise.
10376         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10377         `default:' to silence new GCC warning.
10378         Rewrite cast of lvalue to silence new GCC warning.
10380         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10382         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10383         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10385 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10387         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10388         Patch by Stephen R. van den Berg.
10390         * crypt/md5.h: Define md5_uintptr.
10392 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10394         * libio/tst_swprintf.c (main): Add test for string argument with
10395         zero precision.
10396         * stdio-common/Makefile (tests): Add tst-sprintf.
10397         * stdio-common/tst-sprintf.c: New file.
10399 2001-12-13  Andreas Schwab  <schwab@suse.de>
10401         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10402         zero precision with wide character string format.
10404 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10406         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10407         but have a user supplied buffer, return the empty buffer, not NULL.
10409 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10411         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10412         Patch by Eric Sharkey <sharkey@netrics.com>.
10414         * crypt/md5test.c (main): Add test for multiple calls to
10415         __md5_process_bytes to itererate over input string.
10417 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10419         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10420         from __nis_findfastest.  Take timeout value from parameter.
10421         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10422         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10423         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10425 2001-12-12  Andreas Jaeger  <aj@suse.de>
10427         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10428         combreloc test so that it works in this case.
10430         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10432 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10434         * sysdeps/sh/Makefile: New file.
10435         * sysdeps/sh/_mcount.S: New file.
10436         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10437         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10439 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10441         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10442         limitation [PR libc/2564].
10444 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10446         * elf/Makefile (dl-routines): Add conflict.
10447         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10448         (ld.so): Add _begin local symbol.
10449         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10450         Define.
10451         * elf/dl-deps.c (_dl_build_local_scope): New function.
10452         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10453         of all libraries.
10454         * elf/do-rel.h (VALIDX): Define.
10455         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10456         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10457         can be skipped.
10458         * elf/dl-conflict.c: New file.
10459         * elf/dl-lookup.c (_dl_debug_bindings): New function.
10460         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
10461         non-NULL.
10462         (_dl_lookup_symbol_skip): Likewise.
10463         (_dl_lookup_versioned_symbol): Likewise.
10464         (_dl_lookup_versioned_symbol_skip): Likewise.
10465         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10466         define to ElfW(Rel).
10467         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10468         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10469         ranges.
10470         Don't adjust address dynamic tags if l_addr is 0.
10471         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10472         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10473         (VALIDX, ADDRIDX): Define.
10474         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10475         (dl_main): Print library list for LD_TRACE_PRELINKING.
10476         If prelinking information can be used, skip relocating libraries and
10477         call _dl_resolve_conflicts instead.
10478         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10479         * elf/dl-load.c (_dl_map_object): Don't create fake libs
10480         if LD_TRACE_PRELINKING.
10481         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10482         + DT_ADDRNUM.
10483         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10484         (DL_DEBUG_PRELINK): Define.
10485         (_dl_resolve_conflicts): Add prototype.
10487         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10488         .plt for prelinked libraries where prelinking info cannot be used.
10489         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10490         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10491         * sysdeps/arm/bits/link.h: New file.
10492         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10493         content of .got[1].
10494         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10495         (ELF_MACHINE_PLT_REL): Define.
10496         (elf_machine_rela, elf_machine_rela_relative): New functions.
10497         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10498         of adjusting it if prelinked and prelinking cannot be used.
10499         * sysdeps/i386/bits/link.h: New file.
10500         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10501         content of .got[1].
10502         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10503         (ELF_MACHINE_PLT_REL): Define.
10504         (elf_machine_rela, elf_machine_rela_relative): New functions.
10505         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10506         of adjusting it if prelinked and prelinking cannot be used.
10507         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10508         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
10509         to find out map for R_PPC_JMP_SLOT relocs.
10510         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10511         (OPCODE_BA): Define.
10512         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10513         libraries where prelinking info cannot be used.
10514         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10515         (elf_machine_fixup_plt): Call sparc_fixup_plt.
10516         (elf_machine_rela): Set value to 0 if relocating conflicts.
10517         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10518         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10519         (sparc64_fixup_plt): Fix a typo.
10520         (elf_machine_rela): Set value to 0 if relocating conflicts.
10521         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10522         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10523         libraries where prelinking info cannot be used.
10524         * sysdeps/sh/bits/link.h: New file.
10525         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10526         content of .got[1].
10527         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10528         of adjusting it if prelinked and prelinking cannot be used.
10529         * sysdeps/s390/s390-32/bits/link.h: New file.
10530         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10531         Save original content of .got[1].
10532         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10533         of adjusting it if prelinked and prelinking cannot be used.
10534         * sysdeps/s390/s390-64/bits/link.h: New file.
10535         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10536         Save original content of .got[1].
10537         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10538         of adjusting it if prelinked and prelinking cannot be used.
10539         * sysdeps/x86_64/bits/link.h: New file.
10540         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10541         Save original content of .got[1].
10542         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10543         of adjusting it if prelinked and prelinking cannot be used.
10545 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10547         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10548         where appropriate instead of numbers.  Little optimizations.
10550 2001-12-10  Roland McGrath  <roland@frob.com>
10552         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10553         set it.
10555         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10556         set to GLIBC_2.2.5, not GLIBC_2.2.4.
10558         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10559         Fix conditionals so this is set by default for stdio and not for libio.
10560         * sysdeps/mach/hurd/configure: Regenerated.
10562 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
10564         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10566 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
10568         * io/Makefile (tests): Add bug-ftw3.
10569         * io/bug-ftw3.c: New file.
10571         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10572         matches and GLOB_NOCHECK is set.
10573         * posix/globtest.sh: Correct expected result for NOCHECK test.
10575         * po/ca.po: Update from translation team.
10577 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
10579         Implement transliteration of characters in strings of the locale
10580         definitions.
10581         * locale/programs/linereader.c: Adjust for additional parameter to
10582         lr_token.
10583         (get_string): If character <Uxxxx> is not found try to transliterate
10584         it.
10585         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10586         lr_token.  Add const to charmap parameter of all functions.
10587         (find_translit, find_translit2): New functions.
10588         * locale/programs/charmap.c: Adjust for additional parameter to
10589         lr_token.
10590         * locale/programs/repertoire.c: Likewise.
10591         * locale/programs/linereader.h: Likewise.
10592         * locale/programs/ld-address.c: Likewise.  Add const to charmap
10593         parameter of all functions.
10594         * locale/programs/ld-collate.c: Likewise.
10595         * locale/programs/ld-identification.c: Likewise.
10596         * locale/programs/ld-measurement.c: Likewise.
10597         * locale/programs/ld-messages.c: Likewise.
10598         * locale/programs/ld-monetary.c: Likewise.
10599         * locale/programs/ld-name.c: Likewise.
10600         * locale/programs/ld-numeric.c: Likewise.
10601         * locale/programs/ld-paper.c: Likewise.
10602         * locale/programs/ld-paper.c: Likewise.
10603         * locale/programs/ld-telephone.c: Likewise.
10604         * locale/programs/ld-time.c: Likewise.
10605         * locale/programs/locfile.c: Likewise.
10606         * locale/programs/localedef.c: Likewise.
10607         * locale/programs/localedef.h: Likewise.
10608         * locale/programs/locfile.h: Likewise.  Add declaration for
10609         find_translit.
10610         * locale/programs/simple-hash.c: Add const to first parameter of
10611         find_entry, iterate_table, and lookup.
10612         * locale/programs/simple-hash.h: Likewise.
10613         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
10614         instead.
10615         * include/locale.h: Define __LC_LAST.
10616         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10618 2001-12-07  Geoff Keating  <geoffk@redhat.com>
10620         * sysdeps/powerpc/Dist: Update for recent FP changes.
10621         * sysdeps/powerpc/fpu/Dist: Likewise.
10623 2001-12-07  Andreas Schwab  <schwab@suse.de>
10625         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10627 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10629         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10630         save/restore functions here.
10631         (libm-support): Don't define these functions here.
10632         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10633         functions here.
10634         * sysdeps/powerpc/fe_nomask.c: Move to...
10635         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10636         * sysdeps/powerpc/fprrest.S: Move to...
10637         * sysdeps/powerpc/fpu/fprrest.S: ... here.
10638         * sysdeps/powerpc/fprsave.S: Move to...
10639         * sysdeps/powerpc/fpu/fprsave.S: ... here.
10641 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10643         * sysdeps/unix/sysv/linux/opensock.c: New file.
10645 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10647         * config.make.in (with-fp): Define from configure.
10648         * configure.in: Substitute with_fp.
10649         * configure: Regenerate.
10650         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10651         specified, and don't change FPU environment.
10653 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10655         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10656         * assert/assert.c: Check result of __asprintf call and don't use
10657         string if it failed.
10658         * assert/assert-perr.c: Likewise.
10659         * inet/rcmd.c: Likewise.
10660         * locale/programs/localedef.c (main): Check result of
10661         construct_output_path and exit if it failed.
10662         (construct_output_path): Check result of asprintf and mkdir calls and
10663         fail if they failed.
10664         * posix/getopt.c: Check result of __asprintf calls and fail if
10665         they failed.
10666         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10668 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10670         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10671         patch.
10672         * sysdeps/generic/strncase.c: Likewise.
10673         * string/tester.c: Add tests for strcasecmp and strncasecmp.
10675 2001-12-05  Geoff Keating  <geoffk@redhat.com>
10677         * scripts/cpp: Test the exit status from 'type', not 'awk'.
10679         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10680         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10681         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10682         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10683         * sysdeps/powerpc/fclrexcpt.c: Move to...
10684         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10685         * sysdeps/powerpc/fpu_control.h: Move to...
10686         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10688 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10690         * iconvdata/ibm1129.h: Remove duplicate mappings.
10691         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
10692         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10693         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10695         * timezone/zic.c: Fix handling of turnaround times.
10696         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10698 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
10700         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10701         overflow problem.
10703 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10705         * posix/regex.c: For use outside glibc defined bounded pointer
10706         macros here.  Patch by Jim Meyering <jim@meyering.net>.
10708         * iconvdata/Makefile (modules): Add TCVN5712-1.
10709         * iconvdata/TESTS: Add TCVN5712-1.
10710         * iconvdata/gconv-modules: Likewise.
10711         * iconvdata/tcvn5712-1.c: New file.
10712         * iconvdata/testdata/TCVN-5712: New file.
10713         * iconvdata/testdata/TCVN-5712..UTF8: New file.
10715 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
10717         * iconvdata/cp1258.c: Optimize conversion from UCS4.
10719 2001-12-02  Roland McGrath  <roland@frob.com>
10721         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10723         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10724         Reported by Jeff Bailey <jbailey@nisa.net>.
10726         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10727         Reported by Jeff Bailey <jbailey@nisa.net>.
10729         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10730         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10731         Reported by Jeff Bailey <jbailey@nisa.net>.
10733 2001-12-01  Roland McGrath  <roland@frob.com>
10735         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10736         missing backslash in test arguments.
10737         * sysdeps/mach/hurd/configure: Regenerated.
10739 2001-11-26  Roland McGrath  <roland@frob.com>
10741         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10742         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10744 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
10746         * iconvdata/Makefile (modules): Add ARMSCII-8.
10747         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10748         * iconvdata/armscii-8.c: New file.
10750 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
10752         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10753         don't match, fix {{a,b},c} globbing, clean up.
10754         Patch by Flavio Veloso <flaviovs@magnux.com>.
10755         * posix/globtest.sh: Add new tests.
10757 2001-11-29  Andreas Jaeger  <aj@suse.de>
10759         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10760         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10762         * sysdeps/generic/abort.c: Include libioP.h for
10763         _IO_flush_all_lockp prototype.
10765 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
10767         * posix/regex.h: Define __restrict_arr correctly.
10769 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10771         * iconvdata/ibm1163.c: New file.
10772         * iconvdata/ibm1163.h: New file.
10773         * iconvdata/ibm1164.c: New file.
10774         * iconvdata/ibm1164.h: New file.
10775         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10776         * iconvdata/Makefile: Likewise.
10777         * iconvdata/testdata/IBM1163: New file.
10778         * iconvdata/testdata/IBM1163..UTF8: New file.
10779         * iconvdata/testdata/IBM1164: New file.
10780         * iconvdata/testdata/IBM1164..UTF8: New file.
10781         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10783         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
10784         * iconvdata/ibm1124.h: Likewise.
10785         * iconvdata/ibm1132.h: Likewise.
10786         * iconvdata/ibm1133.h: Likewise.
10787         * iconvdata/ibm1160.h: Likewise.
10788         * iconvdata/ibm1161.h: Likewise.
10789         * iconvdata/ibm1162.h: Likewise.
10790         * iconvdata/ibm856.h: Likewise.
10791         * iconvdata/ibm922.h: Likewise.
10792         * iconvdata/ibm930.h: Likewise.
10793         * iconvdata/ibm932.h: Likewise.
10794         * iconvdata/ibm933.h: Likewise.
10795         * iconvdata/ibm935.h: Likewise.
10796         * iconvdata/ibm937.h: Likewise.
10797         * iconvdata/ibm939.h: Likewise.
10798         * iconvdata/ibm943.h: Likewise.
10799         * iconvdata/ibm930.c: Pretty printing.
10800         * iconvdata/ibm937.c: Avoid access accross array boundary.
10802         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10803         the current locale's codeset.
10804         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10805         empty input string.
10806         * iconv/iconv_prog.c: Pass empty strings as default value for to-
10807         and from-charset.  Don't determine locale's charset here.
10809         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
10810         as the old _IO_flush_all but lock only if parameter is nonzero.
10811         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10812         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10813         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10814         if libio is used [PR libc/2575].
10816 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
10818         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10819         __signbitl): Only define for ISO C99.
10821 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10823         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10824         herrnop to NETDB_INTERNAL if we run out of buffer space.
10826 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10828         * nss/nss_files/files-XXX.c (internal_getent): Correct input
10829         overflow test for platforms with signed char.
10830         Reported by Andrew Haley <aph@cambridge.redhat.com>.
10832 2001-11-28  Bruno Haible  <bruno@clisp.org>
10834         * locale/programs/simple-hash.c (lookup_2): Remove function.
10835         (insert_entry_2): Call lookup instead of lookup_2.
10837 2001-03-04  Bruno Haible  <bruno@clisp.org>
10839         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10841 2001-10-31  Bruno Haible  <bruno@clisp.org>
10843         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10845 2001-03-21  Bruno Haible  <bruno@clisp.org>
10847         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10848         chokes on empty macro arguments.
10849         * intl/plural.y: Add #pragma for alloca on AIX 3.
10851 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10853         * intl/dcigettext.c (guess_category_value): Only implement for
10854         glibc.  Otherwise rely on function _nl_locale_name which isn't
10855         present in the glibc sources.
10857 2001-09-24  Bruno Haible  <bruno@clisp.org>
10859         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
10860         transliteration when building on a glibc system but outside glibc.
10862 2001-09-22  Bruno Haible  <bruno@clisp.org>
10864         * intl/plural-eval.c: New file, extracted from dcigettext.c.
10865         * intl/dcigettext.c (plural_eval): Remove function, moved to
10866         intl/plural-eval.c.
10867         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
10868         Include plural-eval.c.
10870 2001-09-22  Bruno Haible  <bruno@clisp.org>
10872         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
10873         don't start with a digit; nplurals must be positive.
10875 2001-09-02  Bruno Haible  <bruno@clisp.org>
10877         * intl/plural-exp.h: New file, extracted from gettextP.h.
10878         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
10879         * intl/gettextP.h (struct expression, struct parse_args,
10880         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
10881         * intl/loadmsgcat.c: Include plural-exp.h.
10882         (PLURAL_PARSE): Move macro to plural-exp.h.
10883         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
10884         plural-exp.c.
10885         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
10886         EXTRACT_PLURAL_EXPRESSION.
10887         (_nl_unload_domain): Update.
10888         * intl/dcigettext.c: Include plural-exp.h.
10889         * intl/plural.y: Include plural-exp.h, not gettextP.h.
10890         (FREE_EXPRESSION): Move macro to plural-exp.h.
10891         * intl/Makefile (routines): Add plural-exp.
10892         (distribute): Add plural-exp.h.
10894 2001-07-28  Bruno Haible  <bruno@clisp.org>
10896         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
10897         isdigit, tolower argument to 'unsigned char'.
10898         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
10899         'unsigned char'.
10900         * intl/localealias.c (read_alias_file): Cast isspace argument to
10901         'unsigned char'.
10903 2001-10-20  Bruno Haible  <bruno@clisp.org>
10905         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
10906         anyway.)
10907         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
10908         with the variable 'index' in plural_lookup.
10909         * intl/l10nflist.c (strchr): Likewise.
10910         * intl/localealias.c (strchr): Likewise.
10912         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
10913         * intl/bindtextdom.c: Likewise.
10914         * intl/dcigettext.c: Likewise.
10915         * intl/dgettext.c: Likewise.
10916         * intl/dngettext.c: Likewise.
10917         * intl/explodename.c: Likewise.
10918         * intl/finddomain.c: Likewise.
10919         * intl/gettext.c: Likewise.
10920         * intl/l10nflist.c: Likewise.
10921         * intl/loadmsgcat.c: Likewise.
10922         * intl/localealias.c: Likewise.
10923         * intl/ngettext.c: Likewise.
10924         * intl/textdomain.c: Likewise.
10925         * intl/gettext.h: Assume <limits.h> exists.
10927 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10929         * stdio-common/Makefile (tests): Add scanf11.
10930         * stdio-common/scanf11.c: New file.
10932 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
10934         * version.h (RELEASE): Define as development.
10935         (VERSION): Set to 2.2.90.
10937 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10939         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
10940         * nis/nss_nis/nis-grp.c: Likewise.
10941         * nis/nss_nisplus/nisplus-grp.c: Likewise.
10943         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
10944         * nis/nss_nis/nis-pwd.c: Likewise.
10945         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
10947         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
10948         * nis/nss_nisplus/nisplus-parser.c: Likewise.
10949         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10951         * nscd/grpcache.c: Use strtoul instead of atol.
10952         * nscd/pwdcache.c: Likewise.
10953         * nss/getent.c: Likewise.
10955 2001-11-27  Paul Eggert  <eggert@twinsun.com>
10957         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10958         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10960 2001-11-19  Bruno Haible  <bruno@clisp.org>
10962         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
10963         90%.
10964         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
10965         improves the quality of the hash function, especially for short
10966         strings.
10968 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
10970         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
10971         are found call conv_error and not input_error [PR libc/2669].
10973         * math/bits/mathcalls.h: Mark ceil and floor as const.
10974         Reported by David Mosberger.
10976 2001-11-21  Jim Meyering  <meyering@lucent.com>
10978         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
10979         Define to be __-prefixed.
10980         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
10982 2001-11-26  Andreas Jaeger  <aj@suse.de>
10984         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
10985         avoid warning.
10987 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
10989         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
10990         initialization.
10992         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
10993         unused variables.  Fix threshold for returning 1.0.
10995         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
10996         argument.
10998         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
10999         remove unused variables.
11001         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11003         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11004         include local math header files.
11006 2001-11-22  Andreas Jaeger  <aj@suse.de>
11008         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11009         avoid warning.
11011 2001-11-21  Andreas Jaeger  <aj@suse.de>
11013         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11015         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11016         sys/debugreg.h
11018 2001-11-15  Andreas Jaeger  <aj@suse.de>
11020         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11021         compilers that support it.
11023         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11024         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11025         * stdlib/stdlib.h: Likewise.
11027 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11029         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11030         statement with gotos.
11031         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11033 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11035         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11037 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11039         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11041 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11042             H.J. Lu  <hjl@gnu.org>
11044         * Versions.def (libc): Add GCC_3.0.
11045         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11046         if gcc supports this flag.
11047         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11048         (gcc3): Allow glibc to be compiled with gcc 3.x.
11049         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11050         * config.make.in (static-libgcc, unwind-find-fde): Add.
11051         * Makerules (build-shlib-helper, build-module-helper): Use it.
11052         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11053         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11054         necessary.
11055         (_fini): Call __deregister_frame_info_bases if
11056         __register_frame_info_bases was used to register.
11057         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11058         for GLIBC_2.0.
11059         (__register_frame_info_bases, __register_frame_info_table_bases,
11060         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11061         * elf/Makefile (routines): Add unwind-dw2-fde.
11062         (shared-only-routines): Add unwind-dw2-fde.
11063         * sysdeps/alpha/gccframe.h: New file.
11064         * sysdeps/arm/gccframe.h: New file.
11065         * sysdeps/generic/framestate.c: New file.
11066         * sysdeps/generic/dwarf2.h: New file.
11067         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11068         * sysdeps/generic/unwind-dw2-fde.c: New file.
11069         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11070         * sysdeps/generic/unwind-dw2-fde.h: New file.
11071         * sysdeps/generic/unwind-dw2.c: New file.
11072         * sysdeps/generic/unwind-pe.h: New file.
11073         * sysdeps/generic/unwind.h: New file.
11074         * sysdeps/hppa/gccframe.h: New file.
11075         * sysdeps/i386/gccframe.h: New file.
11076         * sysdeps/m68k/gccframe.h: New file.
11077         * sysdeps/mips/gccframe.h: New file.
11078         * sysdeps/powerpc/gccframe.h: New file.
11079         * sysdeps/s390/gccframe.h: New file.
11080         * sysdeps/sh/gccframe.h: New file.
11081         * sysdeps/sparc/gccframe.h: New file.
11082         * sysdeps/vax/gccframe.h: New file.
11083         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11084         Set on all architectures except ia64.
11085         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11086         for i386.
11087         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11088         __deregister_frame_info): Move to elf/Versions.
11089         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11090         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11091         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11092         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11093         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11094         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11095         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11096         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11097         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11098         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11099         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11100         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11101         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11102         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11103         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11104         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11105         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11106         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11108 2001-11-15  Jeff Law  <law@redhat.com>
11110         * posix/regex.c (uintptr_t): Do not provide a definition if the
11111         system provided one.
11113 2001-11-13  Roland McGrath  <roland@frob.com>
11115         * stdio-common/tmpfile.c: Moved to ...
11116         * sysdeps/generic/tmpfile.c: ... here.
11117         * sysdeps/mach/hurd/tmpfile.c: New file.
11119         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11120         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11121         (fopenport): Define as weak alias.
11123         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11124         * libio/libioP.h: ... to here.
11126 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11128         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11129         program header twice.  Construct list with the needed information.
11131 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11133         * po/ca.po: Update from translation team.
11135         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11136         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11137         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11138         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11140 2001-11-10  Andreas Jaeger  <aj@suse.de>
11142         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11143         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11144         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11146 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11148         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11149         correctly.
11150         * elf/dl-load.c (is_dst): New function.
11151         (_dl_dst_count): Use is_dst to check for DST variable.
11152         (_dl_dst_substitute): Likewise.
11154 2001-11-09  Roland McGrath  <roland@frob.com>
11156         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11157         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11158         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11159         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11160         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11161         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11162         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11163         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11164         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11165         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11166         * sysdeps/mach/hurd/powerpc/Dist: New file.
11168         * hurd/privports.c (__get_privileged_ports):
11169         Only contact the proc server if necessary for this call.
11170         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11171         Check error return for mach_port_mod_refs.
11173 2001-11-09  Andreas Schwab  <schwab@suse.de>
11175         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11177 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11179         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11180         object is always the last in the list.
11181         (_dl_map_object_from_fd): Delete code to remove from object list
11182         when DF_1_NOOPEN is seen.  This is done in lose.
11184 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11186         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11188 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11190         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11191         HWCAP_CHECK macro code.
11193         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11194         Now returns MAP_FAILED on error.
11195         * elf/rtld.c: Adjust caller.
11196         * sysdeps/generic/dl-cache.c: Likewise.
11197         * sysdeps/generic/ldsodefs.h: Adjust description.
11199         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11200         (_dl_check_map_versions): Likewise.
11202 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11204         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11205         _dl_signal_error directly, always use lose.  Set fd to -1 after
11206         file is closed.
11207         (lose): Don't call close if fd == -1.
11209 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11211         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11212          Also fix typo @code {mbsinit} to @code{mbsinit}.
11214 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11216         * elf/dl-profile.c: Replace state variable with simple flag named
11217         running.  Remove commented-out code.
11219         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11220         (_dl_init_paths): Likewise.
11221         (_dl_map_object_from_fd): Likewise.
11222         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11224 2001-11-06  Roland McGrath  <roland@frob.com>
11226         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11227         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11229         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11230         sysdeps/powerpc/elf/sysdep.h.
11231         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11233 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11235         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11236         speed.
11237         (process_envvars): Some more optimizations.
11238         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11240         * elf/elf.h: Add dynamic tag definitions for prelinking.
11242         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11243         Rewrite code to remove environment varables for SUID binaries.
11244         Small optimization in LD_PROFILE handling.
11245         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11246         changes.
11247         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11249         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11251         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11252         strings.  Change type of second parameter.
11253         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11254         for last change.
11256         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11258 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11260         * manual/string.texi: Fix typos.
11261         * manual/examples/argp-ex2.c: Likewise.
11263 2001-11-05  Roland McGrath  <roland@frob.com>
11265         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11266         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11267         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11268         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11269         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11270         here, put under [__ELF__].
11272 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11274         * manual/charset.texi: Extensive editing work.
11275         * manual/nss.texi: Likewise.
11276         Changes by Dennis Grace <dgrace@us.ibm.com>.
11278 2001-11-04  Roland McGrath  <roland@frob.com>
11280         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11281         parameter to dir_mkfile.
11283 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11285         * string/bits/string2.h (__strndup): If n is smaller than len, set
11286         len to n + 1.
11287         * string/tester.c (test_strndup): New function.
11288         (main): Call it.
11290 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11292         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11294         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11295         * scripts/cpp: New file.
11297         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11298         for rtld_search_dirs content.  Minor optimizations.
11300 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11302         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11303         avoiding unnecessary duplication.
11305 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11307         * elf/dl-load.c (_dl_map_object): If library was found using
11308         LD_LIBRARY_PATH, don't try RUNPATH list.
11310 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11312         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11313         Correct second argument of register_dump call.
11314         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11315         Likewise.
11317 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11319         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11320         modules.
11321         * iconvdata/TESTS: Likewise.
11322         * iconvdata/gconv-modules: Likewise.
11323         * iconvdata/ibm1132.c: New file.
11324         * iconvdata/ibm1132.h: New file.
11325         * iconvdata/ibm1133.c: New file.
11326         * iconvdata/ibm1133.h: New file.
11327         * iconvdata/ibm1162.c: New file.
11328         * iconvdata/ibm1162.h: New file.
11329         * iconvdata/testdata/IBM1132: New file.
11330         * iconvdata/testdata/IBM1132..UTF8: New file.
11331         * iconvdata/testdata/IBM1133: New file.
11332         * iconvdata/testdata/IBM1133..UTF8: New file.
11333         * iconvdata/testdata/IBM1162: New file.
11334         * iconvdata/testdata/IBM1162..UTF8: New file.
11335         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11337         * string/string.h: Fix typo in comment.
11338         * wcsmbs/wchar.h: Likewise.
11340 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11342         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11343         const in type of longopts parameter.
11345 2001-10-29  Andreas Jaeger  <aj@suse.de>
11347         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11349 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11351         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11352         output, clarify `#' behaviour on 0.
11353         (Floating-Point Conversions): Clarify that %g only uses %e when
11354         the exponent would be greater than 1.
11356 2001-10-28  Roland McGrath  <roland@frob.com>
11358         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11359         * sysdeps/mach/powerpc/machine-sp.h: New file.
11360         * sysdeps/mach/powerpc/sysdep.h: New file.
11361         * sysdeps/mach/powerpc/thread_state.h: New file.
11363         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11364         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11365         expect to need the same thing on every platform.
11367         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11368         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11370         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11371         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11372         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11373         Move all these assembly-related definitions to ...
11374         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11376         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11377         by Peter Bruin <pjbruin@dds.nl>.
11379         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11380         packing results for a `poll' call.
11382 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11384         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11385         correctly.
11386         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11387         bracket expression.
11389         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11390         nrules value.
11391         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11393 2001-10-24  H.J. Lu  <hjl@gnu.org>
11395         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11396         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11397         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11399 2001-10-21  Jim Meyering  <meyering@lucent.com>
11401         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11402         this code would end up calling gettext even in packages built
11403         with --disable-nls.
11404         * posix/getopt.c (_): Likewise.
11405         * posix/regex.c (_): Likewise.
11407 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11409         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11410         lookup not ip6.int.
11411         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11412         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11414 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11416         * misc/sys/cdefs.h (__attribute_used__): Define.
11417         * elf/rtld.c (_dl_start): Add __attribute_used__.
11418         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11420 2001-10-25  Andreas Schwab  <schwab@suse.de>
11422         * stdlib/a64l.c: Expect least significant digit first.
11423         * stdlib/l64a.c: Produce least significant digit first.
11424         * stdlib/Makefile (tests): Add test-a64l.
11425         * stdlib/test-a64l.c: New file.
11426         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11428 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11430         * po/sk.po: Update from translation team.
11432 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11434         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11436 2001-10-18  Andreas Schwab  <schwab@suse.de>
11438         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11439         next whole number.
11440         (print_function_ulps): Likewise.
11441         (print_complex_function_ulps): Likewise.
11442         (print_max_error): Likewise.
11443         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11445 2001-10-16  Andreas Schwab  <schwab@suse.de>
11447         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11448         implementation.
11450         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11451         BSD_SETJMP or BSD__SETJMP is defined, resp.
11452         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11453         a tail call to __sigsetjmp that would require extending the
11454         caller's frame.
11455         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11456         * sysdeps/m68k/bsd-setjmp.S: Deleted.
11457         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11458         Reported by Jes Sorensen <jes@trained-monkey.org>.
11460 2001-10-16  Andreas Jaeger  <aj@suse.de>
11462         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11463         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
11464         close PR libc/2589.
11466 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
11468         * po/ca.po: New file.  Contributed by the translation team.
11470 2001-10-15  Ralf Baechle  <ralf@gnu.org>
11472         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11473         a varargs prototype.  Remove dependency from kernel header files.
11475         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11476         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11478 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11480         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11481         to generate hexadecimal identifier.
11482         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11484 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
11486         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11488 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11490         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11491         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11492         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11494         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11495         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11496         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11497         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11498         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11499         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11501         * timezone/africa: Update from tzdata2001d.
11502         * timezone/asia: Likewise.
11503         * timezone/australasia: Likewise.
11504         * timezone/backward: Likewise.
11505         * timezone/europe: Likewise.
11506         * timezone/leapseconds: Likewise.
11507         * timezone/northamerica: Likewise.
11508         * timezone/southamerica: Likewise.
11509         * timezone/zone.tab: Likewise.
11511 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11513         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11514         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11516 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
11518         * elf/elf.h (PT_TLS): New definition.
11520 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
11522         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11523         bits/errno.h
11525 2001-10-07  Roland McGrath  <roland@frob.com>
11527         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11529 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
11531         * elf/elf.h: Add more ELFOSABI_* constants.
11533 2001-10-04  Ben Collins  <bcollins@debian.org>
11535         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11536         decleration of __need_wchar_t.
11538 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
11540         * string/bits/string2.h (__strsep_g): Add prototype.
11541         (__strsep): Use it.
11542         * string/Versions (__strsep): Remove.
11543         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11545 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
11547         * manua/llio.texi: Clarify file references added by mmap.
11548         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11550 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
11552         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11553         Add sc_loadrs and sc_rbs_bas to match current kernel.
11555 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11557         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11559         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11561 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11563         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11564         object has been bumped because of relocation dependency, avoid
11565         duplicates in l_scope.
11566         (show_scope): Fix typos.
11567         * elf/Makefile: Add rules to build and run reldep6.
11568         * elf/reldep6.c: New file.
11569         * elf/reldep6mod0.c: New file.
11570         * elf/reldep6mod1.c: New file.
11571         * elf/reldep6mod2.c: New file.
11572         * elf/reldep6mod3.c: New file.
11573         * elf/reldep6mod4.c: New file.
11575 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
11577         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11578         sparc64_fixup_plt.
11579         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
11580         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11581         for non-lazy binding. Fix .plt[32768+] handling.
11582         (elf_machine_plt_value): Don't add addend.
11583         (elf_machine_rela): Call sparc64_fixup_plt instead of
11584         elf_machine_fixup_plt.
11585         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11586         dynamic linker at 0xfffff800XXXXXXXX.
11588         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11590 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
11592         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11594 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
11596         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11597         declare __cmsg_data field if its size would be bigger than 0.
11598         (CMSG_DATA): Adjust accordingly.
11599         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11600         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11601         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11602         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11603         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11604         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11605         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11607 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
11609         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11610         * iconvdata/testdata/IBM1160: New file.
11611         * iconvdata/testdata/IBM1160..UTF8: New file.
11612         * iconvdata/testdata/IBM1161: New file.
11613         * iconvdata/testdata/IBM1161..UTF8: New file.
11614         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11616 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11618         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11619         UL_SETFSIZE computations better.
11621         * rt/Makefile: Remove use of filter for librt again.
11623         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11624         UL_SETFSIZE computations better.
11626         * string/Versions: Export __strsep for GLIBC_2.2.5.
11627         * string/bits/string2.h: Define all __STRING_INLINE functions if
11628         _FORCE_INLINES is defined.
11629         Use int instead of char of parameter types.
11630         (__strsep): Don't use __strsep_g.  Don't define it.
11631         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11632         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11633         __strcpy_small.
11634         (__stpcpy_a_small): Renamed from __stpcpy_small.
11635         (__strcspn_c1): Don't define if _FORCE_INLINES.
11636         (__strspn_c1): Likewise.
11638 2001-09-22  Ben Collins  <bcollins@debian.org>
11640         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11641         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
11642         * sysdeps/ia64/bits/sigaction.h: Likewise.
11643         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11645 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
11647         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11649 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
11651         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11653 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11655         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11657 2001-09-20  H.J. Lu  <hjl@gnu.org>
11659         * include/dlfcn.h (__RTLD_SPROF): New definiton.
11660         * elf/dl-open.c (dl_open_worker): Return immediately after loading
11661         for __RTLD_SPROF.
11662         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11663         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11665 2001-09-20  H.J. Lu  <hjl@gnu.org>
11667         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11668         don't add 1.
11670 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11672         * nss/getent.c: Accept -s parameter to overwrite rules in
11673         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
11675         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11676         with as many ".0" as necessary to form a complete address
11677         inet_network understands.
11679         * nss/getent.c: Various cleanups.  Use simpler and fewer function
11680         calls.
11682 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11684         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11685         _JMPBUF_UNWINDS.
11686         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11688 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11690         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11691         IBM1161.
11692         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11693         * iconvdata/ibm1160.c: New file.
11694         * iconvdata/ibm1160.h: New file.
11695         * iconvdata/ibm1161.c: New file.
11696         * iconvdata/ibm1161.h: New file.
11697         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11699 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
11701         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11702         difference between base address and first PT_LOAD's virtual address,
11703         not the base address.
11705 2001-09-11  Tom Rix  <trix@redhat.com>
11707         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
11708         ifdef for __getopt_clean_environment.
11709         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11711 2001-09-22  Andreas Jaeger  <aj@suse.de>
11713         * elf/reldep4.c (main): Add proper prototype to fix warning.
11715         * elf/reldep5.c (main): Remove unused variable.
11717         * math/math_private.h: Add prototypes.
11719 2001-09-21  Andreas Jaeger  <aj@suse.de>
11721         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11722         * sysdeps/x86_64/Dist: New file.
11723         * sysdeps/x86_64/soft-fp/Dist: New file.
11725         * sysdeps/gnu/Dist: Remove eval.c.
11727 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
11729         * malloc/memusage.c (realloc): Don't count already allocated
11730         memory in the sums.
11731         (me): Always use dlsym() to find the real implementations.
11733         * malloc/memusage.sh: Make -n option actually do something.
11735 2001-09-20  Andreas Jaeger  <aj@suse.de>
11737         * elf/elf.h (R_390_NUM): Correct value.
11739         * Versions.def: Add missing versions 2.2.3 for libthread_db and
11740         libpthread.
11742         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11743         for x86-64, install x86-64 into */lib64.
11745         * shlib-versions: Add x86-64.
11747         * elf/elf.h: Add x86-64 relocations.
11749 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
11751         * po/fr.po: Update from translation team.
11753 2001-09-19  Andreas Jaeger  <aj@suse.de>
11755         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11756         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11757         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11758         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11759         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11760         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11761         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11762         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11763         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11764         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11765         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11766         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11767         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11768         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11769         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11770         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11771         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11772         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11773         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11774         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11775         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11776         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11777         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11778         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11779         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11780         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11781         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11782         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11783         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11784         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11785         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11786         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11787         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11788         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11789         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11790         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11791         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11792         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11793         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11794         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11795         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11796         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11797         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11798         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11799         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11800         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11801         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11802         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11803         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11804         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11805         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11806         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11807         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11808         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11809         * sysdeps/unix/x86_64/sysdep.S: New file.
11810         * sysdeps/unix/x86_64/sysdep.h: New file.
11811         * sysdeps/x86_64/Implies: New file.
11812         * sysdeps/x86_64/Makefile: New file.
11813         * sysdeps/x86_64/Versions: New file.
11814         * sysdeps/x86_64/__longjmp.S: New file.
11815         * sysdeps/x86_64/abort-instr.h: New file.
11816         * sysdeps/x86_64/atomicity.h: New file.
11817         * sysdeps/x86_64/bits/endian.h: New file.
11818         * sysdeps/x86_64/bits/setjmp.h: New file.
11819         * sysdeps/x86_64/bits/string.h: New file.
11820         * sysdeps/x86_64/bp-asm.h: New file.
11821         * sysdeps/x86_64/bsd-_setjmp.S: New file.
11822         * sysdeps/x86_64/bsd-setjmp.S: New file.
11823         * sysdeps/x86_64/dl-machine.h: New file.
11824         * sysdeps/x86_64/elf/initfini.c: New file.
11825         * sysdeps/x86_64/elf/start.S: New file.
11826         * sysdeps/x86_64/ffs.c: New file.
11827         * sysdeps/x86_64/ffsll.c: New file.
11828         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11829         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11830         * sysdeps/x86_64/fpu/e_acosl.c: New file.
11831         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11832         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11833         * sysdeps/x86_64/fpu/e_expl.c: New file.
11834         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11835         * sysdeps/x86_64/fpu/e_log10l.S: New file.
11836         * sysdeps/x86_64/fpu/e_log2l.S: New file.
11837         * sysdeps/x86_64/fpu/e_logl.S: New file.
11838         * sysdeps/x86_64/fpu/e_powl.S: New file.
11839         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11840         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11841         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11842         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11843         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11844         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11845         * sysdeps/x86_64/fpu/fegetenv.c: New file.
11846         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11847         * sysdeps/x86_64/fpu/fegetround.c: New file.
11848         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11849         * sysdeps/x86_64/fpu/fesetenv.c: New file.
11850         * sysdeps/x86_64/fpu/fesetround.c: New file.
11851         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
11852         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
11853         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
11854         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
11855         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
11856         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
11857         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
11858         * sysdeps/x86_64/fpu/s_atanl.c: New file.
11859         * sysdeps/x86_64/fpu/s_cosl.S: New file.
11860         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
11861         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
11862         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
11863         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
11864         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
11865         * sysdeps/x86_64/fpu/s_logbl.c: New file.
11866         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
11867         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
11868         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
11869         * sysdeps/x86_64/fpu/s_rintl.c: New file.
11870         * sysdeps/x86_64/fpu/s_significandl.c: New file.
11871         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
11872         * sysdeps/x86_64/fpu/s_sinl.S: New file.
11873         * sysdeps/x86_64/fpu/s_tanl.S: New file.
11874         * sysdeps/x86_64/gmp-mparam.h: New file.
11875         * sysdeps/x86_64/hp-timing.c: New file.
11876         * sysdeps/x86_64/hp-timing.h: New file.
11877         * sysdeps/x86_64/htonl.S: New file.
11878         * sysdeps/x86_64/memusage.h: New file.
11879         * sysdeps/x86_64/setjmp.S: New file.
11880         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
11881         * sysdeps/x86_64/stackinfo.h: New file.
11882         * sysdeps/x86_64/sysdep.h: New file.
11883         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
11885         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
11886         L Moshier.
11888 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11890         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
11891         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
11893 2001-09-18  Andreas Schwab  <schwab@suse.de>
11895         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
11896         list, now that l_scope is a pointer.
11898         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
11899         scope list.
11901 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
11903         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
11904         (elf_machine_rela_relative): Add a missing declaration.
11906 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
11908         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
11909         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
11910         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
11911         ldd-rewrite scripts.
11913 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11915         * elf/ldd.bash.in: Update copyright message.
11917 2001-09-17  H.J. Lu  <hjl@gnu.org>
11919         * hurd/hurdmalloc.c (bcopy): Removed.
11920         (realloc): Replace bcopy with memcpy.
11921         * hurd/path-lookup.c (file_name_path_scan): Likewise.
11922         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
11923         * sunrpc/rpcinfo.c (pmapdump): Likewise.
11925         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
11926         (gethostbyaddr): Likewise.
11927         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
11929 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11931         * sysdeps/gnu/eval.c: Removed.
11933 2001-09-18  Andreas Jaeger  <aj@suse.de>
11935         * sysdeps/i386/fpu/s_logbl.S: Move to ...
11936         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
11938         * sysdeps/i386/fpu/s_rintl.S: Move to ...
11939         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
11941         * sysdeps/i386/fpu/s_significandl.S: Move to ...
11942         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
11944 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
11946         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11947         nrules value.
11949 2001-09-14  H.J. Lu  <hjl@gnu.org>
11951         * sysdeps/mips/fpu/libm-test-ulps: Updated.
11953 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
11955         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
11956         Patch by Florian La Roche <laroche@redhat.com>.
11958         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
11960         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
11961         ETHER_CRC_LEN.
11963 2001-09-14  Andreas Schwab  <schwab@suse.de>
11965         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
11966         Sumner <bls@sgi.com>.
11967         * posix/execlp.c: Likewise.
11969 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
11971         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
11972         is already found earlier in the search scope.
11974 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
11976         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
11977         filter.
11979 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
11981         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
11983 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
11985         * config.h.in: Enforce optimization to be used.
11986         * Makeconfig (preprocess-versions): Define ASSEMBLER.
11987         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
11988         * posix/Makefile (annexc-CFLAGS): Define to -O.
11989         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
11991 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
11993         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
11994         Patch by Stephan Kulow.
11996 2001-09-08  Ben Collins  <bcollins@debian.org>
11998         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
11999         usage of RESOLVE() (r_type, not reloc->r_type).
12001 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12003         * elf/dl-object.c: Avoid allocating extra memory block for name.
12004         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12005         allocated separately.
12006         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12008 2001-09-08  H.J. Lu  <hjl@gnu.org>
12010         * po/zh_TW.po: Fix a typo.
12012 2001-09-07  Tom Rix  <trix@redhat.com>
12014         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12016 2001-08-26  Tom Rix  <trix@redhat.com>
12018         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12019         command line options.
12020         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12021         * sysdeps/unix/sysv/aix/start.c: Removed.
12022         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12023         * sysdeps/unix/sysv/aix/init-first.c: New file.
12024         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12026 2001-09-08  Ben Collins  <bcollins@debian.org>
12028         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12029         * sysdeps/generic/dl-machine.h: Likewise.
12030         * sysdeps/hppa/dl-fptr.c: Likewise.
12031         * sysdeps/ia64/dl-fptr.c: Likewise.
12032         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12033         * sysdeps/mips/dl-machine.h: Likewise.
12034         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12035         * sysdeps/powerpc/dl-machine.c: Likewise.
12037 2001-09-07  Ben Collins  <bcollins@debian.org>
12039         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12041         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12043 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12045         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12046         dependencies if necessary.
12048         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12049         loaded directly) determine length if l_initfini list by iterating
12050         over its elements.  Minor optimizations.
12051         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12052         for dependency objects.
12053         If object was already loaded check whether any of the dependencies
12054         is already on the relocation dependency list.  If yes, remove the
12055         latter.  Minor optimizations.
12056         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12057         maps here.  Search l_initfini list only if the object was loaded
12058         directly and not only as a dependency.
12059         (_dl_lookup_symbol): Add relocation dependency also if object
12060         is not in global scope.  Remove test for self-reference here.
12061         (_dl_lookup_versioned_symbol): Likewise.
12062         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12063         element of first name record.
12064         * elf/loadtest.c: Add some more test to recognize early if an object
12065         wasn't unloaded.
12066         * elf/Makefile: Add rules to build and run reldep5.
12067         * elf/reldep5.c: New file.
12068         * elf/reldepmod5.c: New file.
12069         * elf/reldepmod6.c: New file.
12071         * elf/reldep2.c: Fix typo.
12073 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12075         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12076         elements.  Change l_scope to be a pointer only.
12077         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12078         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12079         here add searchlist of newly open file to the dependency's scope.
12080         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12081         only searchlist from its scope.  Free own scope array if necessary.
12082         * elf/Makefile (tests): Add dblload and dblunload now.
12084 2001-09-06  Andreas Jaeger  <aj@suse.de>
12086         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12087         Stephen L Moshier.
12089 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12091         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12092         they both fail.
12093         * elf/dblload.c: New file.
12094         * elf/dblloadmod1.c: New file.
12095         * elf/dblloadmod2.c: New file.
12096         * elf/dblloadmod3.c: New file.
12097         * elf/dblunload.c: New file.
12099 2001-09-04  Richard Henderson  <rth@redhat.com>
12101         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12102         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12104 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12106         Correct very misleading message for error in failed runtime relocation.
12107         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12108         place of the error.
12109         (_dl_signal_cerror): Likewise.
12110         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12111         * elf/dl-close.c: Likewise.
12112         * elf/dl-deps.c: Likewise.
12113         * elf/dl-load.c: Likewise.
12114         * elf/dl-lookup.c: Likewise.
12115         * elf/dl-open.c: Likewise.
12116         * elf/dl-reloc.c: Likewise.
12117         * elf/dl-sym.c: Likewise.
12118         * elf/dl-version.c: Likewise.
12119         * sysdeps/generic/dl-sysdep.c: Likewise.
12121 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12123         * iconv/strtab.c (strtabinit): Initialize null Strent.
12124         (newstring): Move len == 0 handling...
12125         (strtabadd): ...here.
12126         If len == 1, return null Strent.
12127         When inserting a suffix of an existing string, check if
12128         it is not equal to some suffix already recorded.
12129         Copy left and right members over if adding longer string.
12131 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12133         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12135         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12136         (__syscall_gethostname): Add prototype.
12138 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12140         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12142 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12144         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12146 2001-08-27  Roland McGrath  <roland@frob.com>
12148         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12149         short, copy that much into NAME anyway before returning error.
12151 2001-09-01  Richard Henderson  <rth@redhat.com>
12153         * sysdeps/alpha/elf/Dist: Remove file.
12154         * sysdeps/alpha/elf/Makefile: Remove file.
12155         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12156         * sysdeps/alpha/elf/crtend.S: Remove file.
12157         * sysdeps/alpha/elf/initfini.c: New file.
12159 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12161         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12162         * iconv/tst-iconv3.c: Likewise.
12164 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12166         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12168 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12170         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12171         export it.
12172         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12173         * iconv/iconv_prog.c (insert_cache): New function.
12174         (print_known_names): If cache is used call insert_cache to use the
12175         information from the cache [PR libc/2509].
12177 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12179         * time/strptime.c (strptime_internal): Recognize 'l' format and
12180         handle it like 'I' for symmetry with strftime.
12182 2001-08-31  Richard Henderson  <rth@redhat.com>
12184         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12185         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12186         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12187         (print_statistics): Make scalar unsigned long long.
12188         * sysdeps/alpha/hp-timing.h: New file.
12190 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12192         * stdio-common/perror.c (perror): Save errno early, pass it
12193         down to perror_internal.
12194         (perror_internal): Add errnum argument.
12196 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12198         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12199         Don't add old memory content for R_ALPHA_REFQUAD.
12201 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12203         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12204         memory correctly.
12206         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12207         instead of open, __close instead of close, __getpagesize instead
12208         of getpagesize.
12210         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12211         instead of strnlen.
12212         * include/string.h (strndupa): Redefine here to use __strnlen
12213         instead of strnlen.
12214         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12216         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12217         connected).
12219 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12221         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12222         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12223         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12224         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12225         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12226         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12227         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12229 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12231         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12233 2001-08-30  Andreas Jaeger  <aj@suse.de>
12235         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12236         contributed Stephen L Moshier.
12238 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12240         * sunrpc/etc.rpc (sgi_fam): Add.
12242 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12244         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12246 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12248         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12249         first is from a previous call.
12250         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12252 2001-08-29  Andreas Schwab  <schwab@suse.de>
12254         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12256 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12258         * config.make.in (INSTALL_SCRIPT): Define.
12259         * Makeconfig (INSTALL_SCRIPT): Define.
12260         * Makerules (do-install-script): New macro to install scripts using
12261         INSTALL_SCRIPT.
12262         (install-bin-script): New rule to install scripts with
12263         do-install-script.
12264         (install-bin-script-nosubdir): New rule.
12265         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12266         (distinfo-vars): Add $(install-bin-script).
12267         * Rules (others): Likewise.
12268         * Makefile (glibcbug): Install with install-bin-script.
12269         * debug/Makefile (xtrace): Likewise.
12270         (catchsegv): Likewise.
12271         * elf/Makefile (ldd): Likewise.
12272         * malloc/Makefile (mtrace): Likewise.
12273         * timezone/Makefile (tzselect): Likewise.
12275 2001-08-29  H.J. Lu  <hjl@gnu.org>
12277         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12278         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12279         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12281 2001-08-29  Andreas Schwab  <schwab@suse.de>
12283         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12285 2001-08-28  H.J. Lu  <hjl@gnu.org>
12287         * Makeconfig (combreloc-LDFLAGS): New variable.
12288         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12289         * config.make.in (have-z-combreloc): New variable.
12290         * configure.in: Substitute libc_cv_z_combreloc.
12292 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12294         * po/sv.po: Update from translation team.
12295         * po/fr.po: Likewise.
12296         * po/da.po: Likewise.
12298 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12300         * Makerules: Fix a typo: MD% -> MD5.
12302 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12304         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12305         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12307 2001-08-28  Andreas Jaeger  <aj@suse.de>
12309         * manual/libc-texinfo.sh: Add entry about free manuals.
12311         * manual/contrib.texi (Contributors): Fix cross reference.
12313         * manual/libc.texinfo (Copying): Include freemanuals.
12315         * manual/Makefile (appendices): Add freemanuals.
12317         * manual/freemanuals.texi: New file.
12318         Patch by Brian Youmans <3diff@gnu.org>.
12320         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12321         smaller table.
12323         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12324         table on separate page.
12325         Patch by Brian Youmans <3diff@gnu.org>.
12327 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12329         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12330         the connection went down after we first used it try to connect
12331         again and resend the message before printing to the console.
12332         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12334 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12336         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12337         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12338         bit set.
12340 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12342         * iconv/strtab.c (searchstring): Use correct length for comparison.
12343         (strtabadd): Account total size correct if new string has old string as
12344         substring.
12346 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12348         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12350 2001-08-27  Andreas Jaeger  <aj@suse.de>
12352         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12354         * math/libm-test.inc (j0_test): Add extra tests.
12355         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12356         not x, in Hankel approximation.
12357         Patches by Stephen L Moshier.
12359 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12361         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12362         link_map.
12364         * configure.in: Fix test for .rela.dyn section.
12366         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12368 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12370         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12371         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12372         Pass type_class to _dl_lookup_*.
12373         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12374         Pass around just type_class instead of noexec, noplt pair.
12375         (_dl_lookup_versioned_symbol): Likewise.
12376         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12377         noexec, noplt pair.
12378         (_dl_lookup_versioned_symbol_skip): Likewise.
12379         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12380         * elf/do-lookup.h (do_lookup): Likewise.
12381         * include/link.h (struct link_map): Replace noexec and noplt fields
12382         in l_lookup_cache with type_class field.
12383         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12384         ELF_RTYPE_CLASS_COPY): Define.
12385         Adjust prototypes for _dl_lookup_symbol and
12386         _dl_lookup_versioned_symbol.
12387         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12388         elf_machine_lookup_noexec_p): Remove.
12389         (elf_machine_type_class): Define.
12390         * sysdeps/arm/dl-machine.h: Likewise.
12391         * sysdeps/hppa/dl-machine.h: Likewise.
12392         * sysdeps/cris/dl-machine.h: Likewise.
12393         * sysdeps/i386/dl-machine.h: Likewise.
12394         * sysdeps/ia64/dl-machine.h: Likewise.
12395         * sysdeps/m68k/dl-machine.h: Likewise.
12396         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12397         * sysdeps/mips/dl-machine.h: Likewise.
12398         * sysdeps/powerpc/dl-machine.h: Likewise.
12399         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12400         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12401         * sysdeps/sh/dl-machine.h: Likewise.
12402         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12403         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12405 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12407         * manual/message.texi (Advanced gettext functions): Change
12408         description of plural forms for Slovak.
12409         Reported by Marcel Telka <marcel@telka.sk>.
12411         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12412         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12414 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12416         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12417         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12419 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12421         * include/link.h (struct link_map): Add l_lookup_cache element.
12422         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12423         (RESOLVE_MAP): Likewise.
12424         (_dl_relocate_object): Remove cache initialization.
12425         * elf/dl-lookup.c: Rip out cache handling code.
12426         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12427         declarations.
12429         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12430         remove some __builtin_expect.
12431         (_dl_lookup_versioned_symbol): Likewise.
12433         * config.h.in: Add HAVE_Z_COMBRELOC.
12434         * configure.in: Add test for -z combreloc.
12436         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12437         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12438         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12439         case to almost no code.
12441 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12443         * po/tr.po: Update from translation team.
12445 2001-08-24  Andreas Jaeger  <aj@suse.de>
12447         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12448         make clean works.
12450 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12452         * elf/rtld.c (print_statistics): Printf % after percent values.
12453         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12455         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12456         don't have to compute the hash value and initialize current_value.
12457         Move reference_name variable to where it is needed.
12458         (_dl_lookup_versioned_symbol): Likewise.
12460 2001-08-24  Roland McGrath  <roland@frob.com>
12462         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12463         Just test that strerror returns non-null for a few errno codes.
12465 2001-08-23  Roland McGrath  <roland@frob.com>
12467         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12468         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12470         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12472         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12473         __mach_reply_port.
12475 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12477         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12478         returns NULL.
12480         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12481         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12482         doesn't do it.
12483         * elf/rtld.c: Include <sys/param.h>.
12484         * elf/dl-reloc.c: Likewise.
12486 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12488         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12489         empty to prevent junk from being generated.
12490         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12492 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12494         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12495         records.  Rename endrel to relative, initialize it to r, and use it
12496         in elf_machine_rel_relative calls.  Point r after relative relocs.
12498 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12500         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12501         of R_386_NONE.
12503 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12505         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12506         necessary.  Undefine newly defined macros at the end.
12507         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12508         Rename from elf_machine_rel_relative.
12509         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12510         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12511         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12512         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12513         Likewise.
12514         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12515         Likewise.
12516         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12517         Fix argument types.
12518         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12519         Fix argument types.
12520         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12521         Likewise.  Fix argument types.
12522         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12523         Likewise.  Fix argument types.
12524         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12525         Fix argument types.
12526         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12527         ElfW(Rel) in argument.
12528         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12529         function.
12531 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
12533         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12535 2001-08-24  Andreas Jaeger  <aj@suse.de>
12537         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12538         Stephen L Moshier <moshier@mediaone.net>.
12540 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12542         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12543         first if RELCOUNT is set.
12545         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12546         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12547         elf_machine_rel_relative.
12548         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12549         Minor optimizations.
12550         * sysdeps/arm/dl-machine.h: Likewise.
12551         * sysdeps/cris/dl-machine.h: Likewise.
12552         * sysdeps/hppa/dl-machine.h: Likewise.
12553         * sysdeps/i386/dl-machine.h: Likewise.
12554         * sysdeps/ia64/dl-machine.h: Likewise.
12555         * sysdeps/m68k/dl-machine.h: Likewise.
12556         * sysdeps/mips/dl-machine.h: Likewise.
12557         * sysdeps/powerpc/dl-machine.h: Likewise.
12558         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12559         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12560         * sysdeps/sh/dl-machine.h: Likewise.
12561         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12562         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12564 2001-08-23  Roland McGrath  <roland@frob.com>
12566         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12568         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12569         sysdeps/mach version.  Implement counting ("recursive") mutexes
12570         on top of cthreads mutexes.
12571         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12573         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12574         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12575         (__libc_cleanup_region_start, __libc_cleanup_region_end,
12576         __libc_clean_end): Define these to call the cleanup function after
12577         normal exit when they're supposed to.
12579         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12580         Take new first arg DOIT, a boolean saying whether to really install
12581         any cleanup handler.
12582         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12583         (__libc_cleanup_end): Likewise.
12584         * sysdeps/generic/bits/libc-lock.h: Same changes.
12585         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12586         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12587         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12588         Likewise.
12589         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12590         * sysdeps/generic/bits/stdio-lock.h
12591         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12593 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12595         * elf/ldconfig.c (search_dir): Remove stale symlinks.
12597 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12599         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12600         functions.
12601         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12602         lookups in cache.
12603         (_dl_lookup_versioned_symbol): Likewise.
12604         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12605         relocation lookup.
12606         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12607         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12608         (lookup_cache, lookup_cache_versioned): Add declarations.
12610 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12612         * stdlib/tst-random.c (main): Swap parameters in fail call.
12613         Patch by Pete Bevin <pete@petebevin.com>.
12615 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12617         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12619 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12621         * malloc/obstack.c: Indent preprocessor directives.
12622         Patch by Jim Meyering <meyering@ascend.com>.
12624         * po/ja.po: Update from translation team.
12626 2001-08-23  Roland McGrath  <roland@frob.com>
12628         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12630         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12631         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12633 2001-08-22  Roland McGrath  <roland@frob.com>
12635         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12636         __libc_lock_define_recursive.
12637         * elf/dl-open.c: Don't declare it here any more.
12638         * elf/dl-close.c: Likewise.
12639         * elf/dl-lookup.c: Likewise.
12640         * elf/dl-iteratephdr.c: Likewise.
12641         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12642         __libc_lock_unlock_recursive.
12643         * elf/dl-close.c (_dl_close): Likewise
12644         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12645         * elf/dl-open.c (_dl_open): Likewise
12647         * sysdeps/generic/bits/libc-lock.h
12648         (__libc_lock_define_recursive): New macro.
12649         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12650         (_IO_lock_lock): Use __libc_lock_lock_recursive.
12651         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12653         * conform/conformtest.pl (checknamespace): Sort the output list.
12655         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12656         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12657         definitions conditional on [__USE_XOPEN].
12659         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12660         these unconditionally, not only use [__USE_BSD], so as to match
12661         the sysdeps/unix/sysv/linux files.
12663 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12665         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12666         avoid warnings.
12668         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12669         DL_LOOKUP_ADDRESS.
12671 2001-08-22  Roland McGrath  <roland@frob.com>
12673         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12674         conditionalization of sa_handler/sa_sigaction member types to
12675         match the sysdeps/unix/sysv/linux file.
12677 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12679         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12680         symbol sizes a bit better.
12682         * sysdeps/ia64/strncpy.S: Complete rewrite.
12683         Contributed by Jakub Jelinek <jakub@redhat.com>.
12685         * string/stratcliff.c (main): Add strncpy test.
12687 2001-08-22  Roland McGrath  <roland@frob.com>
12689         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12690         and don't declare unsetenv or _environ directly.
12691         (unsetenv): Return int, not void.  Use __environ instead of _environ.
12693 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12695         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12696         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12697         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12698         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12699         test for cmsg struct size.
12701 2001-04-23  Paul Eggert  <eggert@twinsun.com>
12703         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12704         Rename __argc to ___argc in prototypes to avoid compatibility
12705         problems with systems that reserve the identifier "__argc".
12706         Similarly for __argv.
12708 2001-08-21  Roland McGrath  <roland@frob.com>
12710         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12712         * mach/Makefile (tests): Removed.
12713         * mach/hello.c: File removed.
12715 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12717         * po/sv.po: Update from translation team.
12719         * stdio-common/vfscanf.c: Fix handling of %l[].
12720         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12722         * libio/Makefile (tests): Add tst-sscanf.
12723         * libio/tst-sscanf.c: New file.
12725         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12726         * malloc/mtrace.c (tr_where): dli_sname always points to a
12727         non-empty string if != NULL.
12728         Reported by Tim Janik <timj@gtk.org>.
12730 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
12732         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12733         buf.  Free resources on failure.
12734         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12735         (makefd_xprt): Likewise.
12736         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12737         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12738         * sunrpc/auth_unix.c (authunix_create): Likewise.
12740 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
12742         * string/strnlen.c: Remove.
12743         * sysdeps/generic/strnlen.c: New file.
12744         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12746 2001-08-21  Roland McGrath  <roland@frob.com>
12748         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12749         as a macro, not an extern inline function.
12751         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12752         * Versions.def (libc): Add GLIBC_2.2.5 set.
12753         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12754         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12756 2001-08-20  Roland McGrath  <roland@frob.com>
12758         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12759         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12761 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12763         * string/bits/string2.h: Remove strnlen optimization here.
12764         * sysdeps/i386/i486/bits/string.h: Add it here.
12766 2001-08-21  Wolfram Gloger  <wg@malloc.de>
12768         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12770 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12772         * po/gl.po: Update from translation team.
12774 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12776         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12777         * misc/err.c (convert_and_print): Likewise.
12779         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12780         function calls.
12782 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12784         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12785         change of the gregset_t type.
12786         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12788 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12790         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12792 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12794         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12796         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
12798 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
12800         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12801         before calling the cthreads initialization code.
12803 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12805         * argp/argp-help.c: Fix two problems introduced in last change.
12807         * include/dirent.h: Include <dirstream.h> first.
12809 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
12811         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12813         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12814         * sunrpc/xdr_rec.c: Likewise.
12815         * sunrpc/xdr_mem.c: Likewise.
12816         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12817         * sunrpc/rpc_cmsg.c: Likewise.
12818         * sunrpc/getrpcport.c (getrpcport): Likewise.
12819         * sunrpc/clnt_simp.c (callrpc): Likewise.
12820         * sunrpc/clnt_gen.c (clnt_create): Likewise.
12821         * string/envz.c: Likewise.
12823         * po/ko.po: Update from translation team.
12825         * argp/argp-help.c: Handle wide oriented stderr stream.
12827 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
12829         * sysdeps/generic/strtol.c: Little optimizations.  Add some
12830         __builtin_expect.
12832         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12834         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12835         * wcsmbs/wcwidth.c (wcwdith): Likewise.
12836         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12838         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12840         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12842         * time/time.h (struct timespec): Use __time_t for tv_sec element.
12844         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
12845         wchar_t for function declarations and defintions.
12847         * misc/sys/select.h: Define __need_time_t before including <time.h>.
12848         Define suseconds_t if it hasn't happened yet.
12850         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
12852         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
12854         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
12855         <stddef.h>.
12857         * conform/data/stddef.h-data: Remove wint_t.
12859         * conform/conformtest.pl: Change namespace test to take #undef
12860         lines into account.
12862         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
12864         * conform/data/sys/socket.h-data: Add sockatmark.
12866 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12868         * io/fts.c: Update from recent BSD source.
12870 2001-08-17  Roland McGrath  <roland@frob.com>
12872         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
12873         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
12874         Likewise.
12876 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12878         * locale/duplocale.c (__duplocale): Also initialize the special
12879         __ctype_* elements.
12881         * conform/data/netdb.h-data: Adjust gai_strerror return type.
12883 2001-08-17  Andreas Jaeger  <aj@suse.de>
12885         * misc/getpass.c: Include wchar.h for prototypes.
12886         * malloc/obstack.c: Likewise.
12888 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12890         * sunrpc/svc_simple.c (universal): Use __write instead of write.
12892         * wcsmbs/wcscoll.c: Also define __wcscoll.
12893         * include/wchar.h: Declare __wcscoll.
12895         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
12896         * libio/vwprintf.c: Likewise.
12897         * libio/wprintf.c: Likewise.
12899         * iconv/gconv_cache.c: Use __munmap instead of munmap.
12901 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
12903         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
12904         instead of mbrtowc.
12905         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
12906         wcslen, and __wcscoll instead of wcscoll.
12908         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
12910         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
12911         __getuid instead of getuid.
12913         * stdio-common/perror.c (perror): Use __close instead of close.
12914         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
12915         * libio/freopen.c (freopen): Likewise.
12916         * libio/freopen64.c (freopen64): Likewise.
12918         * libio/tst-ungetwc2.c (main): Define str const.
12920         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
12921         * libio/fwprintf.c: Also define __fwprintf.
12922         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
12923         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
12924         * assert/assert-perr.c: Likewise.
12925         * assert/assert.c: Likewise.
12926         * gmon/gmon.c: Likewise.
12927         * inet/rcmd.c: Likewise.
12928         * malloc/obstack.c: Likewise.
12929         * misc/err.c: Likewise.
12930         * misc/error.c: Likewise.
12931         * misc/getpass.c: Likewise.
12932         * posix/getopt.c: Likewise.
12933         * resolv/res_hconf.c: Likewise.
12934         * stdio-common/perror.c: Likewise.
12935         * stdio-common/psignal.c: Likewise.
12936         * stdlib/fmtmsg.c: Likewise.
12937         * sunrpc/auth_unix.c: Likewise.
12938         * sunrpc/clnt_perr.c: Likewise.
12939         * sunrpc/clnt_tcp.c: Likewise.
12940         * sunrpc/clnt_udp.c: Likewise.
12941         * sunrpc/clnt_unix.c: Likewise.
12942         * sunrpc/svc_simple.c: Likewise.
12943         * sunrpc/svc_tcp.c: Likewise.
12944         * sunrpc/svc_udp.c: Likewise.
12945         * sunrpc/svc_unix.c: Likewise.
12946         * sunrpc/xdr.c: Likewise.
12947         * sunrpc/xdr_array.c: Likewise.
12948         * sunrpc/xdr_rec.c: Likewise.
12949         * sunrpc/xdr_ref.c: Likewise.
12950         * sysdeps/generic/wordexp.c: Likewise.
12952         * po/it.po: Update from translation team.
12954         * misc/err.c: Handle wide oriented stderr stream.
12956 2001-08-14  Tom Rix  <trix@redhat.com>
12958         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
12959         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
12961 2001-08-13  Tom Rix  <trix@redhat.com>
12963         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
12964         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
12965         and __intptr_t.
12967 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12969         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
12970         Store the access registers to the ucontext structure.
12971         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
12972         Likewise.
12974         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
12975         Load the access registers from the ucontext structure.
12976         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
12977         Likewise.
12979         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
12980         offsets to the new ucontext layout.
12981         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
12983         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
12984         of the ucontext structure.
12985         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12987 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
12989         * misc/error.c (error): Handle wide oriented stderr stream correctly.
12990         (error_at_line): Likewise.
12992         * stdio-common/perror.c (perror): Implement according to standard.
12993         The stream orientation must not be changed if the stream was not
12994         oriented before the call.
12995         * stdio-common/Makefile (tests): Add tst-perror.
12996         * stdio-common/tst-perror.c: New file.
12999 See ChangeLog.12 for earlier changes.