1 2002-09-18 Ulrich Drepper <drepper@redhat.com>
3 * version.h (VERSION): Bump to 2.2.94.
5 * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
6 * sysdeps/powerpc/powerpc32/fpu/Dist: ...here. New file.
7 * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
8 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
10 * sysdeps/i386/Makefile: Remove obsolete db2 rules.
12 * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
14 * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
16 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
18 2002-09-18 Roland McGrath <roland@redhat.com>
20 * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
21 the __ctype_* compat symbols, so the relocs generated bind to the
22 right versioned global symbol in the shared object.
24 * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
25 from the value taken from the DT_VERSYM table.
26 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
27 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
28 (RESOLVE_GOTSYM): Likewise.
30 * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
32 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
33 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
34 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
35 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
36 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
37 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
38 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
39 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
41 2002-09-18 Ulrich Drepper <drepper@redhat.com>
43 * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
45 * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
46 define sigaction and __sigaction as wrappers around
47 __libc_sigaction which rejects changing SIGCANCEL.
48 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
50 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
53 * signal/allocrtsig.c: Move to...
54 * sysdeps/generic/allocrtsig.c: ...here. New file.
56 2002-09-17 Jakub Jelinek <jakub@redhat.com>
58 * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
60 * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
61 R_386_TLS_LE): Define.
62 (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
64 * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
65 ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
66 (elf_machine_rel): Handle R_386_TLS_TPOFF.
67 (elf_machine_rela): Likewise.
68 Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
70 2002-09-17 Roland McGrath <roland@redhat.com>
72 * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
73 file-specific variable override so it compiles properly when using
76 2002-09-17 Steven Munroe <sjmunroe@us.ibm.com>
78 Ported to PowerPC64 running Linux.
79 * sysdeps/powerpc/powerpc64/Dist: New file.
80 * sysdeps/powerpc/powerpc64/Implies: New file.
81 * sysdeps/powerpc/powerpc64/Makefile: New file.
82 * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
83 * sysdeps/powerpc/powerpc64/atomicity.h: New file.
84 * sysdeps/powerpc/powerpc64/backtrace.c: New file.
85 * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
86 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
87 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
88 * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
89 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
90 * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
91 * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
92 * sysdeps/powerpc/powerpc64/memset.S: New file.
93 * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
94 * sysdeps/powerpc/powerpc64/register-dump.h: New file.
95 * sysdeps/powerpc/powerpc64/setjmp.S: New file.
96 * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
97 * sysdeps/powerpc/powerpc64/strchr.S: New file.
98 * sysdeps/powerpc/powerpc64/strcmp.S: New file.
99 * sysdeps/powerpc/powerpc64/strcpy.S: New file.
100 * sysdeps/powerpc/powerpc64/strlen.S: New file.
101 * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
102 * sysdeps/powerpc/powerpc64/elf/start.S: New file.
103 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
104 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
105 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
107 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
110 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
111 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
113 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
114 (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
115 various gcc versions. Dot names required for powerpc64.
116 [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
117 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
118 C_SYMBOL_DOT_NAME(alias).
119 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
120 original strong_alias macro.
121 [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
122 C_SYMBOL_DOT_NAME(alias).
123 [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
124 [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
126 Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
127 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro. Generate
128 .global C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
129 (hidden_def): Append hidden_dot_def1 macro to definition.
130 (hidden_ver): Append hidden_dot_def1 macro to definition.
131 (hidden_data_def): New macro. Same as original hidden_def macro.
132 (hidden_data_ver): New macro. Same as original hidden_ver macro.
133 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro. Generate
134 .weakext C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
135 (hidden_weak): Append hidden_dot_weak1 macro to definition.
136 (hidden_data_weak): New macro. Same as original hidden_weak macro.
137 [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
138 Otherwise defined as __GI_name.
139 (libc_hidden_data_def): New macro. Use hidden_data_def.
140 (libc_hidden_data_weak): New macro. Use hidden_data_weak.
141 (libc_hidden_data_ver): New macro. Use hidden_data_ver.
142 (rtld_hidden_data_def): New macro. Use hidden_data_def.
143 (rtld_hidden_data_weak): New macro. Use hidden_data_weak.
144 (rtld_hidden_data_ver): New macro. Use hidden_data_ver.
145 (libm_hidden_data_def): New macro. Use hidden_data_def.
146 (libm_hidden_data_weak): New macro. Use hidden_data_weak.
147 (libm_hidden_data_ver): New macro. Use hidden_data_ver.
148 * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
150 2002-09-17 Ulrich Drepper <drepper@redhat.com>
152 * include/libc-symbols.h: Change *hidden_proto macros to accept
153 option parameters and pass those to the attribute definition.
154 * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
156 * include/unistd.h: Declare __libc_pause.
158 * include/sys/socket.h: Declare __libc_send, __libc_recv,
159 __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
161 * include/unistd.h: Declare __libc_fork.
163 2002-09-17 Roland McGrath <roland@redhat.com>
165 * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
166 (passwd2des): Define it as an alias.
167 (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
169 2002-09-12 Bruno Haible <bruno@clisp.org>
171 * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
172 * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
174 * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
175 * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
177 2002-09-05 Steven Munroe <sjmunroe@us.ibm.com>
179 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
180 (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
181 __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
182 PowerPC64 does not have separate 64-bit syscalls.
184 2002-09-16 Roland McGrath <roland@redhat.com>
186 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
188 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
191 * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
193 * include/unistd.h: Uncomment libc_hidden_proto for _exit.
194 * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
195 * sysdeps/generic/_exit.c: Likewise.
197 2002-09-12 Jakub Jelinek <jakub@redhat.com>
199 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
201 * elf/rtld.c (struct dl_start_final_info): New.
202 (_dl_start_final): Change second argument to struct
203 dl_start_final_info *. Set start_time from info.
204 (_dl_start): Remove bootstrap_map variable, add info.
205 Define bootstrap_map as macro. If not DONT_USE_BOOTSTRAP_MAP,
206 store HP_TIMING_NOW result into info.start_time.
208 2002-09-16 Andreas Jaeger <aj@suse.de>
210 * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
212 * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
214 2002-09-15 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
216 * sysdeps/powerpc/abort-instr.h: New file.
218 2002-09-14 Ulrich Drepper <drepper@redhat.com>
220 * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
223 * test-skeleton.c (main): Provide more information in case waitpid
226 * include/unistd.h: Declare __exit_thread.
227 * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
228 Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
229 * sysdeps/unix/sysv/linux/exit-thread.S: New file.
230 * sysdeps/unix/sysv/linux/_exit.c: New file.
231 * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
232 * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
235 * configure.in: Add dl_iterate_phdr to test using -nostdlib.
237 2002-09-12 Jakub Jelinek <jakub@redhat.com>
239 * sysdeps/i386/dl-machine.h (elf_machine_rel)
240 (case R_386_TLS_DTPMOD32): Don't use addend.
241 [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
242 (elf_machine_rela): Add support for TLS relocs.
244 2002-09-14 Roland McGrath <roland@redhat.com>
246 * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
248 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
250 * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
251 specific asm macros for multiple percision integer math.
253 2002-06-04 Steven Munroe <sjmunroe@us.ibm.com>
255 * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
256 * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
257 Remove per-machine conditionals for FLAG_* cases.
258 * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
259 * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
262 2002-09-10 Alan Modra <amodra@bigpond.net.au>
264 * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
266 (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
267 lowest address for profiling in __monstartup call.
268 * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
270 2002-09-14 Roland McGrath <roland@redhat.com>
272 * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
273 instead of __NR_pread.
274 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
275 * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
276 instead of __NR_pwrite.
277 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
279 2002-09-13 Roland McGrath <roland@redhat.com>
281 * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
283 2002-09-13 Andreas Jaeger <aj@suse.de>
285 * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
286 syscall. Patch by Guido Guenther <agx@sigxcpu.org>.
288 2002-09-12 Ulrich Drepper <drepper@redhat.com>
290 * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
292 2002-09-10 Ulrich Drepper <drepper@redhat.com>
294 * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
297 2002-09-12 Roland McGrath <roland@redhat.com>
299 * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
300 (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
303 * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
304 executable if needed, in case it's actually a shared object.
306 2002-09-11 Roland McGrath <roland@redhat.com>
308 * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
309 l_map_start to adjust l_tls_initimage.
311 * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
312 when using h_errno and it's not set to NETDB_INTERNAL.
313 * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
315 * Makefile ($(common-objpfx)testrun.sh): New target.
316 (others): Depend on it.
317 (postclean-generated): Append it.
319 * nss/bug-erange.c: New file.
320 * nss/Makefile (tests): Add it.
322 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
323 instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
325 * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
326 strncmp, keeps the code smaller for a non-performance-critical case.
328 * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
329 no longer wrongly matches arbitrary prefixes of NAME.
330 Reported by Jakub Jelinek <jakub@redhat.com>.
332 2002-09-11 Jakub Jelinek <jakub@redhat.com>
334 * posix/bug-regex11.c (tests): New array.
335 (main): Rewritten to run more different tests.
337 2002-09-10 Roland McGrath <roland@redhat.com>
339 * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
340 (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
341 Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
343 * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
344 well so we don't get it declared by include/math.h's hidden_proto.
345 Then do hidden_proto for __isnanf locally so hidden_def works right.
347 * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
348 a cast to turn nl_langinfo return value into an integer.
350 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
352 * posix/regexec.c (build_trtable): Fix the destination of
353 newline to prevent wrong states from overwriting.
354 Append break statements to optimization.
356 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
358 * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
359 (build_range_exp): Add castings to strlen invocations.
360 (build_collating_symbol): Restore the type of characters from "char"
361 to "unsigned char", and supplement castings.
362 (build_collating_symbol): Likewise.
363 (build_equiv_class): Likewise.
364 (build_charclass): Likewise.
365 (seek_collating_symbol_entry): Likewise.
366 (parse_bracket_exp): Likewise.
367 (build_word_op): Supplement a casting.
368 * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
369 (re_string_allocate): Fix castings.
370 (re_string_construct): Likewise.
371 (re_string_construct_common): Likewise.
372 (re_string_realloc_buffers): Likewise.
373 (build_wcs_buffer): Likewise.
374 (build_wcs_upper_buffer): Likewise.
375 (re_string_skip_chars): Likewise.
376 (re_string_reconstruct): Likewise.
377 * posix/regex_internal.h: Restore the type of characters in
378 re_string_t and bracket_elem_t from "char" to "unsigned char".
379 (re_string_elem_size_at): Fix castings.
380 * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
381 (transit_state_bkref_loop): Restore the type of characters from
382 "char" to "unsigned char", and append a cast to "char*" pointer in
384 (check_node_accept_bytes): Likewise.
385 (find_collation_sequence_value): Likewise.
387 2002-09-10 Hartvig Ekner <hartvige@mips.com>
389 * sysdeps/mips/memcpy.S: New file.
390 * sysdeps/mips/memset.S: New file.
391 * sysdeps/mips/fpu/e_sqrt.c: New file.
392 * sysdeps/mips/fpu/e_sqrtf.c: New file.
394 * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
395 functional before. Also removed all SHLIB_COMPAT stuff.
396 * fpu/fegetenv.c: Likewise.
397 * fpu/fesetenv.c:: Likewise.
398 * fpu/feupdateenv.c: Likewise.
399 * fpu/fgetexcptflg.c: Likewise.
400 * fpu/fraiseexcpt.c: Likewise.
402 * sysdeps/mips/fpu/fsetexcptflg.c: New file.
404 2002-09-09 Jakub Jelinek <jakub@redhat.com>
406 * include/math.h (__finite_internal, __finitef_internal,
407 __finitel_internal, __isinf_internal, __isnan_internal): Remove.
409 (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
410 __isinfl, __isnanl): Add hidden_proto.
411 (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
413 * math/Makefile (libm-calls): Add s_isinf and s_isnan.
414 * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
416 * stdio-common/printf_size.c (printf_size): Likewise.
417 * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
418 * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
419 * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
420 * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
421 * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
422 * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
423 (__finite): Add hidden_def.
424 * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
425 (__finitef): Add hidden_def.
426 * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
427 (__finitel): Add hidden_def.
428 * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF. Add
430 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
431 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
433 * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
434 * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF. Add
436 * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
437 (__isinfl): Remove INTDEF.
438 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF. Add
440 (__isnanl): Remove INTDEF.
441 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
443 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
444 instead of sin and cos.
445 * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
447 * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
448 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
449 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
451 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
453 * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
454 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
455 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
457 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
459 * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
461 * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
462 * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
463 * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
465 * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
466 __finitel_internal): Remove aliases.
467 (__finite, __finitef, __finitel): Add hidden_def.
468 * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
469 __isnanl_internal): Remove aliases.
470 (__isnan, __isnanf, __isnanl): Add hidden_def.
471 * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
472 __isinfl_internal): Remove aliases.
473 (__isinf, __isinff, __isinfl): Add hidden_def.
474 * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
475 __fpclassifyl): Add libm_hidden_def.
476 * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
477 * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF. Add hidden_def.
478 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
479 (hidden_defx): Define and use.
480 * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
482 * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
483 * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
484 * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
486 (__isnan, __isnanf): Add hidden_def.
487 * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
488 (__finitel): Add libm_hidden_def.
489 * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
491 * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
492 * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
493 * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
494 * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
495 * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
496 * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
497 * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
498 * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
499 * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
500 * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
501 * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
502 * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
503 * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
504 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
505 * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
506 * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
507 * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
508 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
509 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
510 * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
511 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
512 * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
513 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
514 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
515 * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
516 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
517 * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
519 2002-09-09 Steven Munroe <sjmunroe@us.ibm.com>
521 * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
523 2002-09-09 Jakub Jelinek <jakub@redhat.com>
525 * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
526 LD_DEBUG=statistics or LD_TRACE_PRELINKING.
528 2002-09-09 Ulrich Drepper <drepper@redhat.com>
530 * string/stratcliff.c: Some more strncpy tests.
531 Patch by Daniel Jacobowitz <drow@mvista.com>.
533 2002-09-08 Roland McGrath <roland@redhat.com>
535 * resolv/resolv.h: Include <sys/types.h> for u_long even in
536 the [__need_res_state] case.
537 Reported by Bruno Haible <bruno@clisp.org>.
539 2002-09-04 Bruno Haible <bruno@clisp.org>
541 * sysdeps/generic/bits/ustat.h: Comment fix.
542 * io/sys/sendfile.h: Comment fix.
543 * sysdeps/posix/pread.c: Comment fix.
544 * sysdeps/posix/pread64.c: Comment fix.
545 * sysdeps/posix/pwrite.c: Comment fix.
546 * sysdeps/posix/pwrite64.c: Comment fix.
548 2002-09-06 Roland McGrath <roland@redhat.com>
550 * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
551 to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
552 (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
553 (_UTSNAME_MACHINE_LENGTH): Likewise.
554 (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
556 2002-09-06 Ulrich Drepper <drepper@redhat.com>
558 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
559 test for filesystem type name of mount points.
561 * include/errno.h: Use errno definition with __thread for now only
564 * test-skeleton.c (main): Improve error message for unexpected
567 2002-09-05 Roland McGrath <roland@redhat.com>
569 * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
570 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
572 2002-09-05 Jakub Jelinek <jakub@redhat.com>
574 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
577 2002-09-04 Bruno Haible <bruno@clisp.org>
579 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
580 sigset_get_old_mask): Turn into inline functions.
581 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
582 sigset_get_old_mask): Likewise.
583 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
584 sigset_get_old_mask): Likewise.
585 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
588 * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
590 * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
592 (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
593 _sys_nerr_internal instead of _sys_nerr.
595 * nscd/connections.c (handle_request): Declare CALLER inside #if.
597 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
599 * sysdeps/powerpc/__longjmp.S: Moved to...
600 * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
601 * sysdeps/powerpc/add_n.S: Moved to...
602 * sysdeps/powerpc/powerpc32/add_n.S: ...here.
603 * sysdeps/powerpc/addmul_1.S: Moved to...
604 * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
605 * sysdeps/powerpc/atomicity.h: Moved to...
606 * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
607 * sysdeps/powerpc/backtrace.c: Moved to...
608 * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
609 * sysdeps/powerpc/bp-asm.h: Moved to...
610 * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
611 * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
612 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
613 * sysdeps/powerpc/bsd-setjmp.S: Moved to...
614 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
615 * sysdeps/powerpc/dl-machine.c: Moved to...
616 * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
617 * sysdeps/powerpc/dl-machine.h: Moved to...
618 * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
619 * sysdeps/powerpc/dl-start.S: Moved to...
620 * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
621 * sysdeps/powerpc/gprrest0.S: Moved to...
622 * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
623 * sysdeps/powerpc/gprrest1.S: Moved to...
624 * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
625 * sysdeps/powerpc/gprsave0.S: Moved to...
626 * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
627 * sysdeps/powerpc/gprsave1.S: Moved to...
628 * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
629 * sysdeps/powerpc/lshift.S: Moved to...
630 * sysdeps/powerpc/powerpc32/lshift.S: ...here.
631 * sysdeps/powerpc/memset.S: Moved to...
632 * sysdeps/powerpc/powerpc32/memset.S: ...here.
633 * sysdeps/powerpc/mul_1.S: Moved to...
634 * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
635 * sysdeps/powerpc/ppc-mcount.S: Moved to...
636 * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
637 * sysdeps/powerpc/register-dump.h: Moved to...
638 * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
639 * sysdeps/powerpc/rshift.S: Moved to...
640 * sysdeps/powerpc/powerpc32/rshift.S: ...here.
641 * sysdeps/powerpc/setjmp.S: Moved to...
642 * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
643 * sysdeps/powerpc/stpcpy.S: Moved to...
644 * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
645 * sysdeps/powerpc/strchr.S: Moved to...
646 * sysdeps/powerpc/powerpc32/strchr.S: ...here.
647 * sysdeps/powerpc/strcmp.S: Moved to...
648 * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
649 * sysdeps/powerpc/strcpy.S: Moved to...
650 * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
651 * sysdeps/powerpc/strlen.S: Moved to...
652 * sysdeps/powerpc/powerpc32/strlen.S: ...here.
653 * sysdeps/powerpc/sub_n.S: Moved to...
654 * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
655 * sysdeps/powerpc/submul_1.S: Moved to...
656 * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
657 * sysdeps/powerpc/elf/bzero.S: Moved to...
658 * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
659 * sysdeps/powerpc/elf/start.S: Moved to...
660 * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
661 * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
662 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
663 * sysdeps/powerpc/fpu/fprrest.S: Moved to...
664 * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
665 * sysdeps/powerpc/fpu/fprsave.S: Moved to...
666 * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
667 * sysdeps/powerpc/fpu/setjmp.S: Moved to...
668 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
669 * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
670 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
671 * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
672 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
673 * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
674 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
675 * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
676 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
677 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
678 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
679 * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
680 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
681 * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
682 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
683 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
684 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
685 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
686 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
687 Support PowerPC64. Separate powerpc into powerpc/powerpc32 and
690 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
692 * FAQ.in: Add powerpc64 to supported targets list. Also state the
693 minimum gcc version is 3.2
694 * README: Add powerpc64 to supported targets list.
695 * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
696 Add powerpc64 and machine=powerpc/powerpc64.
697 (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
698 * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
699 * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
700 gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
701 * sysdeps/powerpc/powerpc32/Dist: New file.
702 * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
703 * sysdeps/powerpc/powerpc32/Implies: New file.
704 * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
705 ($(with-fp) = no): Move test to powerpc32/Makefile.
706 ($(subdir) = misc): Move to powerpc32/Makefile.
707 ($(build-shared) = yes): Move to powerpc32/Makefile.
708 ($(subdir) = csu): Move to powerpc32/Makefile.
709 (sysdep-rtld-routines): Remove dl-start. Moved these bits to ...
710 * sysdeps/powerpc/powerpc32/Makefile: New file.
711 * sysdeps/powerpc/Versions: Remove libgcc functions.
712 * sysdeps/powerpc/powerpc32/Versions: New file.
713 * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
714 * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
715 * sysdeps/unix/sysv/linux/configure.in (powerpc*):
716 Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
717 libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
718 ($machine): Add powerpc/powerpc64 to if ... | for
719 libc_cv_slibdir=/libc64.
720 (powerpc*): Set ldd_rewrite_script.
721 * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
722 * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
723 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
725 * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
726 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
727 functions. Remove GLIBC_2.2 functions except getrlimit and
728 setrlimit. Moved them to ...
729 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
731 2002-09-04 Ulrich Drepper <drepper@redhat.com>
733 * libio/tst-atime.c: Include <errno.h>.
734 (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
736 2002-09-03 Isamu Hasegawa <isamu@yamato.ibm.com>
738 * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
739 warnings of some compilers.
740 (build_collating_symbol): Change the type of characters from
741 "unsigned char" to "char", and append a cast to "char*" pointer in
743 (build_collating_symbol): Likewise.
744 (build_equiv_class): Likewise.
745 (build_charclass): Likewise.
746 (re_compile_pattern): Remove incorrect cast.
747 (re_compile_fastmap_iter): Change the type of characters from
748 "unsigned char" to "char", and append a cast to "char*" pointer
750 (parse_bracket_exp): Likewise.
751 * posix/regex_internal.c (re_string_construct_common): Likewise.
752 (re_string_allocate): Likewise.
753 (re_string_construct): Likewise.
754 (re_string_realloc_buffers): Likewise.
755 (build_wcs_buffer): Likewise.
756 (re_string_reconstruct): Likewise.
757 * posix/regex_internal.h: Change the type of characters in
758 re_string_t and bracket_elem_t from "unsigned char" to "char".
759 * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
760 warnings of some compilers.
761 (transit_state_bkref_loop): Change the type of characters from
762 "unsigned char" to "char", and append a cast to "char*" pointer in
764 (check_node_accept_bytes): Likewise.
765 (find_collation_sequence_value): Likewise.
767 2002-09-04 Roland McGrath <roland@redhat.com>
769 * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
770 from 1024 to 65536, to avoid buffer overrun.
772 2002-09-03 Gerhard Tonn <ton@de.ibm.com>
774 * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
776 2002-09-04 Ulrich Drepper <drepper@redhat.com>
778 * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
781 2002-09-04 Jakub Jelinek <jakub@redhat.com>
783 * posix/bug-regex11.c: New test.
784 * posix/Makefile (tests): Add bug-regex11.
786 2002-09-03 Jakub Jelinek <jakub@redhat.com>
788 * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
791 2002-09-02 Roland McGrath <roland@redhat.com>
793 * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
794 __pthread_initialize_minimal and __libc_check_standard_fds to
795 match the generic version.
797 * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
798 warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
800 * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
801 warnings on platorms where char is unsigned.
803 2002-09-02 Ulrich Drepper <drepper@redhat.com>
805 * version.h (VERSION): Bump to 2.2.93.
807 * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
809 2002-09-02 Jakub Jelinek <jakub@redhat.com>
811 * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
814 2002-09-02 Jack Howarth <howarth@bromo.msbb.uc.edu>
816 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
818 2002-09-02 Jakub Jelinek <jakub@redhat.com>
820 * locale/localeinfo.h (struct locale_data): Add private.ctype.
821 * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
822 __wcsmbs_to_wc, update_conversion_ptrs): Removed.
823 (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
824 (__wcsmbs_load_conv): Remove const from argument.
825 (_nl_cleanup_ctype): New proto.
826 (get_gconv_fcts): New function.
827 * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
828 (__wcsmbs_to_wc): Rename back to...
830 (__wcsmbs_gconv_fcts): Rename to...
831 (__wcsmbs_gconv_fcts_c): ... this. Make const. Use to_wc.
833 (__libc_setlocale_lock): New extern.
834 (__wcsmbs_load_conv): Remove const from argument.
835 Initialize new_category->private.ctype instead of a global
837 (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
838 update_function_ptrs. No locking is necessary.
839 (_nl_cleanup_ctype): New function.
840 * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
841 update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
842 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
843 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
844 * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
845 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
846 * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
847 * wcsmbs/wctob.c (wctob): Likewise.
848 * stdlib/mblen.c (mblen): Likewise.
849 * stdlib/mbtowc.c (mbtowc): Likewise.
850 * stdlib/wctomb.c (wctomb): Likewise.
851 * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
852 Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
853 * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
856 2002-09-02 Roland McGrath <roland@frob.com>
858 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
860 2002-09-01 Roland McGrath <roland@redhat.com>
862 * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
863 Variable declarations removed.
864 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
865 these functions to replace them.
866 (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
867 functions plus an indirection rather than the old global variables.
868 * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
870 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
872 * ctype/ctype-info.c: Revert last reversion back the other way.
873 Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
874 Define real function versions of include/ctype.h inlines here.
875 * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
876 __ctype_tolower_loc, __ctype_toupper_loc.
877 * locale/lc-ctype.c: Revert last reversion back the other way.
878 (_nl_postload_ctype): If current thread uses the global locale,
880 * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
881 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
882 CTYPE_TOLOWER, CTYPE_TOUPPER.
884 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
885 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
886 from __libc_tsd_threadvar_location.
887 (__libc_tsd_set, __libc_tsd_get): Update uses.
889 2002-09-01 Ulrich Drepper <drepper@redhat.com>
891 * ctype/ctype.h: Undo the patch before the last one. Put back the
892 macro definitions for the standard functions to access the
893 classification and mapping arrays.
894 * include/ctype.h: Partly revert last patch. Move the macro
895 definitions for the exported functions back to the public header.
896 #undef all the macros defined here before redefining.
897 * ctype/ctype-info.c: Revert last patch.
898 * locale/lc-ctype.c: Revert last patch.
900 * ctype/Makefile (routines): Add isctype.
901 * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
902 * ctype/ctype.h: Add declaration of isctype.
903 * include/ctype.h: Declare __isctype.
904 * ctype/isctype.c: New file.
906 2002-09-01 Roland McGrath <roland@redhat.com>
908 * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
909 TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
911 * include/getopt.h: Include <features.h> before <posix/getopt.h>.
913 * locale/findlocale.c (_nl_remove_locale): Don't search in
914 _nl_locale_file_list if DATA->alloc is ld_archive.
915 Use _nl_unload_locale to do the rest of the work.
917 * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
918 of new structure to UNDELETABLE.
920 * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
921 iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
922 towlower, towupper): Macros removed.
923 * ctype/ctype.h (__tobody): Put parens around macro argument.
924 (__isctype): Macro removed.
925 (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
926 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
927 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
928 tolower, toupper): Macros and inlines removed.
929 * include/ctype.h [! NOT_IN_libc]
930 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
931 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
932 tolower, toupper): Define here instead, using _NL_CURRENT.
933 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
935 * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
936 * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
937 Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
938 (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
939 (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
940 * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
941 conditional on SHLIB_COMPAT. Don't set removed variables at all.
942 * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
943 * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
944 * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
945 (ISSORTMASK): Update use.
946 * intl/localealias.c [__GNUC__]: #undef alloca before #define.
947 * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
948 (_nss_files_getENTNAME_r): Likewise.
949 * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
952 * Makerules (all-nonlib): Renamed from all-tests.
953 Include $(others) here too.
954 * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
955 CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
956 CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
957 CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
958 CPPFLAGS-charmap-dir): Variables removed. Instead, catch all
959 the program modules via cppflags-iterator.mk.
960 * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
961 Instead, catch all rpcgen-objs via cppflags-iterator.mk.
963 2002-08-31 Roland McGrath <roland@redhat.com>
965 * posix/tst-getconf.sh: If no third arg, work with static linking.
967 * locale/categories.def (LC_TIME): No more _nl_postload_time.
969 * locale/setlocale.c (_nl_category_postload): Use weak refs only under
970 [_NL_CURRENT_INDIRECT].
972 2002-08-31 Ulrich Drepper <drepper@redhat.com>
974 * time/tst-ftime_l.c (main): Also test strftime with uselocale.
976 2002-08-31 Roland McGrath <roland@redhat.com>
978 * locale/newlocale.c (__newlocale): Don't use strdup for names.
979 Instead, make the single allocation of the structure larger to hold
981 * locale/duplocale.c (__duplocale): Don't strdup names individually.
982 Instead, calculate size for a single allocation and copy into it.
983 * locale/freelocale.c (__freelocale): Don't free names individually.
985 * locale/newlocale.c (__newlocale): Don't leak old data or names.
987 * locale/xlocale.h (__locale_struct): Move __names member last,
988 for binary compatibility.
990 * locale/duplocale.c (__duplocale): Free names from the right array.
992 * locale/uselocale.c (__uselocale): Return previous locale when
995 * locale/newlocale.c: Commit changes from 2002-08-30
996 batch where I failed to commit this file:
997 (__newlocale): Fill in __names array.
999 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1001 * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1002 errlist-compat.c if versioning==yes.
1004 2002-08-31 Andreas Jaeger <aj@suse.de>
1006 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1007 external functions with hidden attribute.
1008 (elf_machine_rela): Optimize.
1010 * sysdeps/x86_64/memset.S: New file.
1011 * sysdeps/x86_64/bzero.S: New file.
1012 * sysdeps/x86_64/stpcpy.S: New file.
1013 * sysdeps/x86_64/strcat.S: New file.
1014 * sysdeps/x86_64/strchr.S: New file.
1015 * sysdeps/x86_64/strcpy.S: New file.
1016 * sysdeps/x86_64/strcspn.S: New file.
1017 * sysdeps/x86_64/strlen.S: New file.
1018 * sysdeps/x86_64/strpbrk.S: New file.
1019 * sysdeps/x86_64/strspn.S: New file.
1020 * sysdeps/x86_64/strcmp.S: New file.
1021 * sysdeps/x86_64/strtok_r.S: New file.
1022 * sysdeps/x86_64/strtok.S: New file.
1023 * sysdeps/x86_64/memcpy.S: New file.
1024 * sysdeps/x86_64/mempcpy.S: New file.
1026 * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1028 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1030 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1032 * stdio-common/Makefile (generated): Add errlist-compat.c.
1034 * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1036 * locale/localeinfo.h: Pretty printing.
1038 * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1039 form_number handling.
1041 2002-08-31 Andreas Jaeger <aj@suse.de>
1043 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1046 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1049 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1051 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1053 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1054 registers used for passing args.
1056 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1057 all needed registers.
1059 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1062 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1065 2002-08-30 Ulrich Drepper <drepper@redhat.com>
1067 * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1068 always_inline attribute.
1070 2002-08-30 Roland McGrath <roland@redhat.com>
1072 * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1073 presume it's the stub and bail without error.
1075 * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1076 neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1078 * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1080 * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1081 macros replace the i686 versions for 64-bit mode.
1083 * locale/duplocale.c: Include <string.h>.
1085 * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1086 [_LIBC] (category_to_name): Don't define the function. Instead
1087 define a macro using _nl_category_names.
1089 * locale/xlocale.h (struct __locale_struct): New member `__names'.
1090 * locale/xlocale.c (_nl_C_locobj): Update initializer.
1091 * locale/global-locale.c (_nl_global_locale): Likewise.
1092 * locale/duplocale.c (__duplocale): strdup __names elements.
1093 * locale/freelocale.c (__freelocale): Free __names elements.
1094 * locale/localename.c (_nl_current_names): Variable removed.
1095 (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1096 * locale/localeinfo.h (_nl_current_names): Removed decl.
1097 * locale/setlocale.c: Use _nl_global_locale->__names in place of
1098 _nl_current_names throughout.
1100 * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1102 * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1103 and sys_nerr in the output file.
1105 * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1106 * scripts/cpp: Just use the environment variable.
1108 * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1109 * libio/tst-mmap-offend.c (do_test): Likewise.
1110 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1111 * libio/tst-mmap-eofsync.c (do_test): Likewise.
1112 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1114 * locale/localename.c: If the current locale is the global locale, use
1115 _nl_current_names; otherwise use the locale object.
1117 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1119 * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1120 'm' to enable mmap I/O.
1121 * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2. The
1122 former wasn't used (anymore?).
1123 (_IO_FLAGS2_MMAP): New define.
1124 * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1125 * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1126 _IO_FLAGS2_MMAP bit is set.
1127 * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1128 Enable mmap-using mode only if 'm' was set.
1130 2002-08-29 Roland McGrath <roland@frob.com>
1132 * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1134 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1135 Change argument type from int to intptr_t.
1137 * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1138 initializer on [! _HURD_THREADVAR_H] (bad kludge).
1139 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1140 _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1141 * hurd/hurdsig.c (_hurdsig_init): Likewise. Zero other slots.
1143 * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1145 * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1147 * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1149 * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1150 * assert/assert-perr.c: Add libc_hidden_def.
1151 * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1153 * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1155 * sysdeps/gnu/Versions: File removed. Moved all #errlist-compat
1156 sys_errlist stuff to ...
1157 * sysdeps/unix/sysv/linux/Versions: ... here.
1159 * mach/mach.h: Include <features.h>.
1161 2002-08-29 Roland McGrath <roland@redhat.com>
1163 * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1164 * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1165 define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1167 * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1169 * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1170 (norm_add_slashes): alloca -> __alloca
1172 2002-08-29 Jakub Jelinek <jakub@redhat.com>
1174 * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1175 string_malloced, it is unlikely to be set.
1176 Only call free with non-NULL workspace.
1177 * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1178 -mcpu=ultrasparc, not only tune for it.
1179 (ASFLAGS*): Set unconditionally.
1181 * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1182 ElfW(Addr). Don't mask upper 32-bits and lower 12 bits off from
1183 p_vaddr/p_offset when computing LOADADDR.
1185 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1187 * version.h (VERSION): Bump to 2.2.92.
1189 * time/Makefile (tst-ftime_l-ENV): New variable.
1191 * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1193 * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1194 <U017A>, <U017D> and <U0179>. Add missing mappings.
1195 Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1197 * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1198 Define ARCINDEX. Bump MAXARCS to 1 << 20.
1199 (struct tostruct): Use ACRINDEX as type for link field.
1200 (statuc gmonparam): Likewise for froms.
1201 * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1203 (write_call_graph): Use correct type for from_index and to_index.
1204 * gmon/mcount.c: Use correct types for frompcindex and toindex
1206 Patches by Dan Kegel <dank@kegel.com>.
1208 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1211 * time/strptime.c (ISSPACE): New #define. Use isspace or
1212 __isspace_l. Replace calls to isspace.
1213 (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1215 2002-08-29 Roland McGrath <roland@redhat.com>
1217 * string/tst-strxfrm.c: Remove __ from function names.
1219 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1221 * include/wchar.h: Declare __mbsrtowcs_l.
1222 * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1223 * wcsmbs/mbsrtowcs.c: Add support for compilation with
1224 USE_IN_EXTENDED_LOCALE_MODEL.
1225 * wcsmbs/mbsrtowcs_l: New file.
1226 * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc. Don't
1227 define as static. Change all uses.
1228 (__wcsmbs_getfct): Renamed from getfct. Don't define as static.
1230 * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1231 * time/strftime.c: When translating for the extended locale model
1232 use the _l functions.
1233 * time/Makefile (tests): Add tst-ftime_l.
1234 * time/tst-ftime_l.c: New file.
1236 2002-08-28 Roland McGrath <roland@redhat.com>
1238 * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1239 * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1240 from _nl_find_locale ok if for _nl_C_name.
1242 * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1243 iterator to refer to each category's _nl_current_LC_FOO symbol, so
1244 we know they are all linked in.
1246 * NEWS: Added 2.2.6 text from 2.2 branch version.
1248 * time/strptime.c (strptime_internal): Remove spurious const.
1250 * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1251 _nl_select_era_entry): Moved to ...
1252 * time/era.c: ... here, new file.
1253 (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1254 Add internal_function to definitions. Take an additional argument
1255 giving the `struct locale_data *' to use.
1256 * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1257 _nl_parse_alt_digit): Moved to ...
1258 * time/alt_digit.c: ... here, new file.
1259 * time/lc-time-cleanup.c: New file.
1260 * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1261 * locale/localeinfo.h (_nl_postload_time): Remove decl.
1262 (_nl_cleanup_time): Declare it.
1263 (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1264 (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1265 * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1266 * time/strftime.c: Pass locale data to helper functions.
1267 * time/strptime.c: Likewise.
1269 * locale/localeinfo.h (struct locale_data): New member `private'
1270 * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1271 (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1272 * locale/C-collate.c: Update initializer.
1273 * locale/C-identification.c: Likewise.
1274 * locale/C-measurement.c: Likewise.
1275 * locale/C-telephone.c: Likewise.
1276 * locale/C-address.c: Likewise.
1277 * locale/C-name.c: Likewise.
1278 * locale/C-paper.c: Likewise.
1279 * locale/C-time.c: Likewise.
1280 * locale/C-numeric.c: Likewise.
1281 * locale/C-monetary.c: Likewise.
1282 * locale/C-messages.c : Likewise.
1283 * locale/C-ctype.c: Likewise.
1285 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1288 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1290 * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1291 (_rtld_global): Use it.
1293 * sysdeps/gnu/Dist: Remove errlist-compat.c.
1294 * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1295 object directory. Pass all Versions files to the awk script.
1296 * sysdeps/gnu/errlist-compat.c: Removed.
1297 * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1298 first Versions file in the search path which has them.
1299 Allow multiple errlist symbol versions to have the same count of
1301 * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1302 of "errlist-compat.c".
1303 * sysdeps/gnu/errlist.c: Regenerated.
1304 * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1305 comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1306 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1307 (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1308 * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1309 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1310 * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1311 * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1312 ECANCELLED if not defined by kernel headers.
1313 * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1314 already defined by kernel headers.
1315 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1316 * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1317 aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1319 * Versions.def (GLIBC_2.3) [librt]: Add.
1321 * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1323 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1325 * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1326 missing comma to .type directive.
1328 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1330 * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1332 * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1334 (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1336 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1338 * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1339 check to close_and_out close. Replace return NULL statements where
1340 fd might be >= 0 with goto close_and_out. Close the file descriptor
1341 when it is no longer needed.
1343 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1345 * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1347 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1348 * sysdeps/arm/dl-machine.h: Likewise.
1349 * sysdeps/cris/dl-machine.h: Likewise.
1350 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1351 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1353 2002-08-28 Roland McGrath <roland@redhat.com>
1355 * Makeconfig (default_cflags): Revert unintended change.
1357 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1359 * version.h (VERSION): Bump to 2.2.91.
1361 * configure.in: Disable TLS support by default for now.
1363 * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1365 * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1368 * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1370 * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1371 fprintf/fwprintf calls.
1373 2002-08-28 Roland McGrath <roland@redhat.com>
1375 * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1376 to use $(filter ...) instead. Same bug fixed in aix conditionals.
1378 * locale/setlocale.c: Declare postload functions weak.
1380 * elf/tst-tls1-static.c: New file.
1381 * elf/tst-tls2-static.c: New file.
1382 * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1384 Make uselocale support static linking.
1385 * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1386 This file again just defines _nl_C_locobj.
1387 (_nl_C_locobj): Use a categories.def iterator in the initializer.
1388 * locale/global-locale.c: New file. Define _nl_global_locale here,
1389 using all weak references in the initializer.
1390 * locale/Makefile (aux): Add global-locale.
1391 * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1392 these unconditional, along with the tsd decl.
1393 [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1394 Define it under these conditions.
1395 [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1396 Don't declare _nl_current. Declare _nl_current_LC_FOO as
1397 `extern __thread struct locale_data *const *'.
1398 [NL_CURRENT_INDIRECT]
1399 (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1400 [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten. Define
1401 the thread variable _nl_current_LC_FOO and also a special absolute
1402 symbol _nl_current_LC_FOO_used.
1403 * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1404 Set each _nl_current_LC_FOO symbol to point into the new locale,
1405 using weak references to test if _nl_current_LC_FOO_used was linked in.
1406 * locale/setlocale.c [! SHARED]: Replace this conditional ...
1407 [NL_CURRENT_INDIRECT]: ... with this one.
1408 (_nl_current, _nl_C): Variables removed.
1409 [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1410 weak references to _nl_current_LC_FOO_used.
1411 [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1412 (free_category): New function, broken out of ...
1413 (free_mem): ... here. Call that.
1414 (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1417 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1418 PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1419 it is already absolute.
1421 * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1422 [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1423 [$(build-static) = yes] (tests-static): New variable.
1424 ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1426 2002-08-26 Christoph Hellwig <hch@lst.de>
1428 * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1429 formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1431 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1433 * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1435 * sysdeps/s390/Dist: Add bits/link.h.
1437 * sysdeps/sh/Dist: New file.
1439 * sysdeps/ia64/Dist: Add ia64libgcc.S.
1441 * sysdeps/wordsize-32/Dist: New file.
1443 * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1444 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1445 * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1447 * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1450 * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1453 * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1455 * sysdeps/unix/bsd/sun/Dist: New file.
1457 * sysdeps/unix/bsd/osf/Dist: New file.
1459 * sysdeps/unix/bsd/hp/Dist: New file.
1461 * sysdeps/unix/arm/Dist: New file.
1463 * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1465 * sysdeps/mach/hurd/Dist: Add set-init.c.
1467 * sysdeps/i386/Dist: Add bits/link.h.
1469 * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1471 * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1473 * locale/Makefile (distribute): Add hashval.h.
1475 * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1477 * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1479 * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1480 __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1481 __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1482 * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1484 * libio/stdio.h: Likewise.
1485 * locale/locale.h: Likewise.
1486 * math/math.h: Likewise.
1487 * math/bits/mathcalls.h: Likewise.
1488 * setjmp/setjmp.h: Likewise.
1489 * signal/signal.h: Likewise.
1490 * stdlib/stdlib.h: Likewise.
1491 * string/string.h: Likewise.
1492 * time/time.h: Likewise.
1493 * wcsmbs/wchar.h: Likewise.
1494 * wctype/wctype.h: Likewise.
1496 2002-08-28 Roland McGrath <roland@redhat.com>
1498 * locale/tst-C-locale.c (run_test): Remove __ from function names.
1500 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1501 Roland McGrath <roland@redhat.com>
1503 * locale/hashval.h (compute_hashval): Use prototype defn.
1504 (hashval_t): New macro, defined to unsigned long int
1505 if not already defined.
1506 (compute_hashval): Return hashval_t instead of unsigned long int.
1507 * locale/loadarchive.c (hashval_t): New macro.
1508 * locale/programs/locarchive.c: Include hashval.h directly instead
1510 (compute_hashval, hashval_t): Define these macros first.
1511 (insert_name): Use archive_hashval instead of compute_hashval.
1512 (add_locale, delete_locales_from_archive): Likewise.
1514 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1516 * locale/programs/locarchive.c (insert_name): Suppress warnings about
1517 hash collisions if be_quiet.
1519 2002-08-27 Roland McGrath <roland@redhat.com>
1521 * locale/locale.h (__newlocale, __duplocale, __freelocale,
1522 __uselocale): Don't declare these any more.
1523 * include/locale.h (__uselocale): Declare here instead, using __typeof.
1525 * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1526 and treat it as an EOF return.
1527 * sysdeps/unix/readdir_r.c: Likewise.
1529 * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1530 From Alexandre Oliva <aoliva@redhat.com>.
1531 * sysdeps/gnu/errlist-compat.c: Regenerated.
1533 2002-08-27 Brian Youmans <3diff@gnu.org>
1535 * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1536 wording at request of copyright holder Stephen Moshier.
1537 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1538 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1539 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1540 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1541 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1542 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1543 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1544 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1545 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1546 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1547 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1548 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1549 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1550 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1552 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1554 * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1555 * ctype/ctype-extn.c (isblank_l): Add weak alias.
1556 * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1557 * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1558 * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1559 * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1560 * wctype/iswctype_l.c (iswctype_l): Likewise.
1562 2002-08-27 Roland McGrath <roland@redhat.com>
1564 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1566 * ctype/ctype.h (__exctype_l): Don't declare __ name.
1567 * stdlib/stdlib.h: Don't declare __*_l names.
1568 * include/stdlib.h: Declare them here instead.
1569 * include/string.h: Don't declare __*_l names.
1570 * string/string.h: Declare them here instead.
1571 * time/time.h: Don't declare __*_l names.
1572 * include/time.h: Declare them here instead.
1573 * wcsmbs/wchar.h: Don't declare __*_l names.
1574 * include/wchar.h: Declare them here instead.
1575 * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1576 Don't declare __*_l names.
1577 * include/wctype.h: Declare them here instead.
1578 * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1579 * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1580 * locale/langinfo.h: Don't declare __nl_langinfo_l.
1581 * include/langinfo.h: Declare it here with __typeof.
1583 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1584 instead, taking an extra __locale_t argument.
1585 * time/Makefile (routines): Add strptime_l.
1586 * time/time.h (__strptime_l, strptime_l): Declare them.
1587 * time/strptime_l.c: New file.
1589 * time/time.h (__strftime_l, strftime_l): Declare them.
1590 * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1591 * time/strftime_l.c: New file.
1592 * time/wcsftime_l.c: New file.
1593 * time/Makefile (routines): Add strftime_l, wcsftime_l.
1594 * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1595 strftime_l, wcsftime_l.
1596 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1597 or __wcsftime_l instead, taking an extra __locale_t argument.
1599 * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1600 (libc: GLIBC_2.3): ... here.
1602 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1604 * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1606 * Makefile (distribute): Add LICENSES.
1608 * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1611 * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1613 * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1615 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1617 * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1619 * sysdeps/mach/hurd/alpha/Dist: New file.
1621 * sysdeps/arm/Dist: Add bits/link.h.
1623 * sunrpc/Makefile: Distribute thrsvc.
1625 * stdio-common/Makefile: Remove more left-overs from old stdio.
1627 * include/linewrap.h: Removed.
1629 * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1631 * intl/Makefile (distribute): Add plural-eval.c.
1633 2002-08-27 Roland McGrath <roland@redhat.com>
1635 * manual/sysinfo.texi (Mount Information): Correct file name to macro
1636 assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1637 Say mtab is in either /var/run or /etc.
1639 2002-08-26 Roland McGrath <roland@redhat.com>
1641 * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1642 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1644 * sysdeps/gnu/Versions: New file.
1645 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1646 _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1647 * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1648 ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1649 * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1650 and _sys_nerr_internal instead of anything else. Make it include
1651 "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1652 Make it emit some asm magic if [EMIT_ERR_MAX].
1653 * sysdeps/gnu/errlist.c: Regenerated.
1654 * sysdeps/gnu/errlist-compat.awk: New file.
1655 * sysdeps/gnu/errlist-compat.c: New file (generated).
1656 * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1657 (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1658 (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1659 (SYS_ERRLIST, SYS_NERR): Macros removed.
1660 (sys_nerr, _sys_nerr): Remove these weak aliases.
1661 * sysdeps/unix/sysv/linux/errlist.c: File removed.
1662 * sysdeps/unix/sysv/linux/errlist.h: File removed.
1663 * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1665 * include/libc-symbols.h (declare_symbol): New macro.
1666 * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1667 * configure.in: New check to define it.
1668 * configure: Regenerated.
1670 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1672 * stdio-common/Makefile (headers): Remove bits/stdio_lim.h. This
1673 file isn't distributed. Add special rules to install bits/stdio_lim.h.
1675 * Make-dist: Remove traces of old stdio.
1676 * Makeconfig: Likewise.
1678 * locale/Makefile (localedef-aux): New variable. Only md5
1679 assigned to it. These files are not ddistributed in this directory.
1681 * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1682 * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1683 * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1685 * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1687 * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1688 set h_errno to NO_RECOVERY [PR libc/4360].
1690 2002-08-26 Ulrich Drepper <drepper@redhat.com>
1692 * libio/Makefile (tests): Add bug-fopena+.
1693 * libio/bug-fopena+.c: New file.
1694 * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1695 file for _IO_IS_APPENDING if file isn't opened for reading, too.
1697 * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1699 * locale/xlocale.c: Fix the last change. The variable still has
1701 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1702 (__libc_tsd_set): Add _data prefix to variable name.
1704 2002-08-26 Roland McGrath <roland@redhat.com>
1706 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1707 macro with inline function.
1708 (sigset_get_old_mask): Likewise.
1709 * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1710 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1711 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1712 * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1713 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1714 (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1716 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1717 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1719 2002-07-06 Bruno Haible <bruno@clisp.org>
1721 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1722 sigset_get_old_mask): Make it work with larger sigset_t.
1723 * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1724 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1725 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1727 2002-08-26 Roland McGrath <roland@redhat.com>
1729 * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1730 * manual/filesys.texi (File Times): Document lutimes and futimes.
1731 * misc/Makefile (routines): Add them.
1732 * misc/Versions (libc: GLIBC_2.3): Likewise.
1733 * sysdeps/generic/lutimes.c: New file.
1734 * sysdeps/generic/futimes.c: New file.
1735 * sysdeps/mach/hurd/lutimes.c: New file.
1736 * sysdeps/mach/hurd/futimes.c: New file.
1738 * manual/filesys.texi (File Times): Add explicit note about null
1739 pointer argument to utimes.
1741 2002-08-26 Roland McGrath <roland@frob.com>
1743 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1744 (__ifreq): Add a cast. Remove an unused variable.
1746 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1747 _HURD_THREADVAR_LOCALE.
1749 2002-08-26 Jakub Jelinek <jakub@redhat.com>
1751 * posix/regexec.c (re_search_stub): Return correct match length
1753 * posix/bug-regex10.c: New test.
1754 * posix/Makefile (tests): Add bug-regex10.
1756 2002-08-26 Brian Youmans <3diff@gnu.org>
1758 * COPYING.LIB: Replaced with fresh copy from
1759 ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1760 suggested copying permission notice now says version 2.1 instead
1763 * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1765 * crypt/crypt_util.c: Likewise.
1766 * crypt/ufc.c: Likewise.
1767 * elf/dl-conflict.c: Likewise.
1768 * elf/dl-iteratephdr.c: Likewise.
1769 * iconv/iconvconfig.h: Likewise.
1770 * malloc/arena.c: Likewise.
1771 * malloc/hooks.c: Likewise.
1772 * malloc/malloc.c: Likewise.
1773 * posix/glob/Makefile.ami: Likewise.
1774 * posix/glob/Makefile.in: Likewise.
1775 * stdlib/gmp-impl.h: Likewise.
1776 * stdlib/gmp.h: Likewise.
1777 * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1778 * sysdeps/generic/strnlen.c: Likewise.
1779 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1780 * sysdeps/mach/hurd/recvmsg.c: Likewise.
1781 * sysdeps/mach/hurd/sendmsg.c: Likewise.
1782 * sysdeps/mach/hurd/spawni.c: Likewise.
1783 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1784 * sysdeps/mach/powerpc/sysdep.h: Likewise.
1785 * sysdeps/mach/powerpc/thread_state.h: Likewise.
1786 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1787 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1788 * sysdeps/x86_64/gmp-mparam.h: Likewise.
1790 * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1791 Lesser GPL copying permission notice from 2 to 2.1.
1792 * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1793 * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1794 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1795 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1796 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1797 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1798 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1799 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1800 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1801 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1802 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1803 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1804 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1805 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1806 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1807 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1808 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1809 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1810 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1811 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1812 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1813 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1814 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1815 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1816 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1817 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1818 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1819 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1820 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1821 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1822 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1823 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1824 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1825 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1826 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1827 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1828 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1829 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1830 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1831 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1832 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1833 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1834 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1835 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1836 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1837 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1838 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1839 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1840 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1841 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1842 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1843 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1844 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1845 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1846 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1848 * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1849 Moshier and Lesser GPL copying permission notice, per license from
1851 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1852 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1853 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1854 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1855 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1856 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1857 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1858 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1859 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1860 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1861 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1862 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1863 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1864 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1866 * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
1867 notice, per license from copyright holder Stephen Moshier.
1868 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1869 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1870 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1871 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1872 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1873 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1874 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1875 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1876 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1878 2002-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1880 * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
1881 (shared-only-routines): Likewise.
1883 2002-08-26 Roland McGrath <roland@redhat.com>
1885 * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
1886 name of "", store a null pointer instead.
1888 * configure.in (elf): Set to yes for freebsd*, netbsd*.
1889 * configure: Regenerated.
1891 * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
1892 Initialize this instead of __libc_tsd_LOCALE_data.
1894 * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
1895 ptsname_r to EINVAL.
1897 * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
1899 * rt/Makefile: Revert last change, it was inappropriate to presume aio
1900 implementations depend on pthreads.
1901 * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
1902 * rt/tst-aio64.c (do_test): Likewise.
1903 * rt/tst-aio2.c (do_test): Likewise.
1904 * rt/tst-aio3.c (do_test): Likewise.
1905 * rt/tst-aio4.c (do_test): Likewise.
1906 * rt/tst-aio5.c (do_test): Likewise.
1907 * rt/tst-aio6.c (do_test): Likewise.
1908 * rt/tst-aio7.c (do_test): Likewise.
1910 * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
1911 void so as to avoid compiler warnings.
1913 * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
1914 _IO_wide_data_FD, which is never used here.
1917 [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
1918 * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
1919 * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
1921 * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
1922 * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
1924 * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
1925 (closelog): Likewise.
1927 2002-07-06 Bruno Haible <bruno@clisp.org>
1929 * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
1931 * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
1932 * sysdeps/unix/alpha/pipe.S: ... here.
1933 * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
1935 * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
1937 * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
1938 * sysdeps/unix/i386/fork.S: Likewise.
1939 * sysdeps/unix/i386/pipe.S: Likewise.
1940 * sysdeps/unix/i386/wait.S: Likewise.
1942 * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
1943 * sysdeps/unix/arm/fork.S: Likewise.
1945 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
1947 (DO_CALL): Swap argument order.
1948 * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
1950 (DO_CALL): Swap argument order.
1951 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
1953 (DO_CALL): Swap argument order.
1954 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
1956 (DO_CALL): Swap argument order.
1957 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
1959 (DO_CALL): Swap argument order.
1960 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
1962 (DO_CALL): Swap argument order.
1963 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
1965 (DO_CALL): Swap argument order.
1967 * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
1968 (L): Define right for ELF.
1969 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
1970 Now defined in sysdeps/i386/sysdep.h.
1972 * sysdeps/posix/readv.c: Ansify function definition.
1973 * sysdeps/posix/writev.c: Likewise.
1975 * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
1976 have the same size. Avoid direct cast from size_t to off_t.
1978 * login/tst-utmp.c (simulate_login): Don't leave garbage after the
1979 nul byte in entry[n].ut_user.
1980 (simulate_logout): Likewise.
1982 * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
1983 _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
1984 existence of corresponding members of 'struct utmp'.
1985 * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
1988 * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
1989 allocate a buffer of at least BUFSIZ bytes, not just of
1990 sizeof (struct dirent).
1992 * sysdeps/generic/glob.c: Include <limits.h>.
1993 (NAME_MAX): Define a fallback.
1994 (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
1996 * posix/tst-dir.c: Include <stddef.h>, for offsetof.
1997 (main): Allocate enough room for a 'struct dirent64' on the stack.
1998 * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2001 * sysdeps/unix/sysv/linux/init-first.c: Don't include
2004 * inet/htontest.c: Include <sys/types.h>.
2006 * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2008 * include/sys/sysctl.h: Comment fix.
2010 * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2012 * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2014 * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2016 * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2017 (__getpeername): New alias.
2018 (__getsockname): New alias.
2019 (__socket): New alias.
2021 * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2023 * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2024 (__fcntl_internal): New alias.
2025 (__profil): New alias.
2027 2002-08-26 Ulrich Drepper <drepper@redhat.com>
2029 * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2030 entry was for getaddr* lookup or not. Add only matching cache
2031 entry. Change all callers [PR libc/4317].
2033 * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2034 finding the read position [PR libc/4265].
2035 * libio/Makefile (tests): Add bug-rewind2.
2036 * libio/bug-rewind2.c: New file.
2038 * libio/bug-rewind.c: Fix creation of temp file.
2040 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2042 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2043 neither SUCCESS nor TRYAGAIN [PR libc/4259].
2044 * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2045 to ENOENT if no entry is found.
2046 * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2048 * nis/nss_compat/compat-initgroups.c: Likewise.
2049 * nis/nss_compat/compat-pwd.c: Likewise.
2050 * nis/nss_compat/compat-spwd.c: Likewise.
2051 * nis/nss_nis/nis-alias.c: Likewise.
2052 * nis/nss_nis/nis-ethers.c: Likewise.
2053 * nis/nss_nis/nis-grp.c: Likewise.
2054 * nis/nss_nis/nis-hosts.c: Likewise.
2055 * nis/nss_nis/nis-initgroups.c: Likewise.
2056 * nis/nss_nis/nis-netgrp.c: Likewise.
2057 * nis/nss_nis/nis-network.c: Likewise.
2058 * nis/nss_nis/nis-proto.c: Likewise.
2059 * nis/nss_nis/nis-publickey.c: Likewise.
2060 * nis/nss_nis/nis-pwd.c: Likewise.
2061 * nis/nss_nis/nis-rpc.c: Likewise.
2062 * nis/nss_nis/nis-service.c: Likewise.
2063 * nis/nss_nis/nis-spwd.c: Likewise.
2064 * resolv/nss_dns/dns-host.c: Likewise.
2065 * resolv/nss_dns/dns-network.c: Likewise.
2066 * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2067 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2068 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2069 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2070 * nis/nss_nisplus/nisplus-network.c: Likewise.
2071 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2072 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2073 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2074 * nis/nss_nisplus/nisplus-service.c: Likewise.
2075 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2076 * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2077 * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2078 * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2079 * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2081 * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2082 declaring __restore and __restore_rt as hidden (if possible).
2084 2002-08-25 Roland McGrath <roland@redhat.com>
2086 * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2088 * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2089 (getutent_r_file, internal_getut_r): Updated all callers.
2090 (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2092 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2094 * locale/programs/locale.c: Don't print aliases for non-existing
2095 locales for 'locale -a'.
2096 Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2098 2002-07-19 H.J. Lu <hjl@gnu.org>
2100 * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2102 2002-07-16 H.J. Lu <hjl@gnu.org>
2104 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2106 * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2108 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2110 * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2111 not moved ahead of the fputs call.
2112 * elf/tst-tlsmod2.c (in_dso): Likewise.
2113 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2114 * elf/tst-tlsmod4.c (in_dso): Likewise.
2116 2002-08-25 Andreas Schwab <schwab@suse.de>
2118 * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2120 2002-08-25 Roland McGrath <roland@redhat.com>
2122 * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2123 resetting handler, to avoid the possibility of a spurious SIGALRM
2124 delivered to the user's handler.
2125 Reported by Amit D. Chaudhary <amitc@brocade.com>,
2127 * misc/Makefile (CFLAGS-init-misc.c): Variable removed. It served to
2128 set -fkeep-inline-functions, which is not needed for the current file.
2130 * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2131 (_dl_setup_hash): Add attribute_hidden.
2132 (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2133 (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2134 (_dl_new_object, _dl_map_object_deps): Likewise.
2135 (_dl_map_object_deps_internal): Remove decl.
2136 * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2138 * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2139 && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2140 && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2141 (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2142 instead relying on the compiler to produce only GOTOFF variable refs.
2144 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2146 * elf/dl-load.c: Fix typo in comment. Add a few more __builtin_expect.
2148 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2149 inline to avoid defining it in every file which includes this header.
2151 * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2152 defining DONT_USE_BOOTSTRAP_MAP.
2154 * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2155 * libio/tst-mmap-setvbuf.c (main): Likewise.
2156 * libio/tst-widetext.c (main): Likewise.
2158 * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2160 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2161 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2163 * sysdeps/i386/elf/configure.in: Unconditionally define
2164 PI_STATIC_AND_HIDDEN.
2165 * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2166 PI_STATIC_AND_HIDDEN is defined as well.
2167 * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2169 2002-08-24 Ulrich Drepper <drepper@redhat.com>
2171 * sysdeps/ia64/bzero.S: Define __bzero as well.
2173 * locale/programs/charmap.c (charmap_new_char): Don't use
2174 ULONG_MAX as maximum UCS4 value.
2176 * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2178 * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2180 * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2181 * malloc/malloc.c (mALLINFo): Likewise.
2183 * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2185 * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2186 examining result of _IO_do_flush call.
2188 * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2189 Use prec not spec when sizing buffers.
2191 * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2192 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2193 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2194 * stdio-common/vfscanf.c (inchar): Likewise.
2195 * misc/efgcvt_r.c (fcvt_r): Likewise.
2196 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2197 * elf/readlib.c (process_file): Likewise.
2198 * elf/sprof.c (load_profdata): Likewise.
2199 * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2200 * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2201 * locale/programs/charmap.c (charmap_read): Likewise.
2202 * libio/fileops.c: Likewise.
2203 * libio/fmemopen.c: Likewise.
2204 * stdlib/strtod.c: Likewise.
2205 * elf/dl-load.c: Likewise.
2206 * iconv/iconvconfig.c: Likewise.
2207 * iconv/iconv_prog.c (process_block): Likewise.
2208 * elf/rtld.c (dl_main): Likewise.
2210 * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2211 macro to calm down the compiler.
2213 * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2215 * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2217 * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2218 placement of errno definition.
2219 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2220 * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2221 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2222 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2223 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2225 * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2226 from 1024 to 65536, to avoid buffer overrun.
2228 2002-08-16 Paul Eggert <eggert@twinsun.com>
2230 * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2231 from 1024 to 65536, to avoid buffer overrun.
2232 * resolv/res_query.c (MAXPACKET): Likewise.
2234 2002-08-24 Andreas Jaeger <aj@suse.de>
2236 * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2238 2002-08-23 Ulrich Drepper <drepper@redhat.com>
2240 * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2243 * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2244 Patch by Simon Gee <simong@agile.tv>.
2246 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2247 Prefer reading /proc/stat since it is more uniform across
2250 * manual/texinfo.tex: Update to latest official version.
2252 * sysvipc/sys/shm.h: Remove SHMLBA definition.
2253 * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2254 * sysdeps/gnu/bits/shm.h: Likewise.
2255 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2256 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2257 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2258 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2259 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2260 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2261 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2262 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2263 since this is what the kernel says.
2265 * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2266 since ssize_t is needed as well. Replace const with __const.
2268 2002-08-23 Roland McGrath <roland@redhat.com>
2270 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2271 __malloc_hook, __realloc_hook, __memalign_hook,
2272 __after_morecore_hook): Variable definitions moved to ...
2273 * malloc/malloc.c: ... here, so as to be before all references.
2275 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2276 global variable reference in an unused asm parameter, to ensure the
2277 compiler has set up the GOT register before we use it.
2279 * malloc/hooks.c: Move variable definitions ahead of uses.
2280 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2281 initializers that make reference to variables they define.
2283 2002-08-23 Andreas Jaeger <aj@suse.de>
2285 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2286 alloca, free, qsort.
2288 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2290 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2291 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2293 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2295 * sysdeps/generic/fgetxattr.c: New file.
2296 * sysdeps/generic/flistxattr.c: New file.
2297 * sysdeps/generic/fremovexattr.c: New file.
2298 * sysdeps/generic/fsetxattr.c: New file.
2299 * sysdeps/generic/getxattr.c: New file.
2300 * sysdeps/generic/listxattr.c: New file.
2301 * sysdeps/generic/lgetxattr.c: New file.
2302 * sysdeps/generic/llistxattr.c: New file.
2303 * sysdeps/generic/lremovexattr.c: New file.
2304 * sysdeps/generic/lsetxattr.c: New file.
2305 * sysdeps/generic/removexattr.c: New file.
2306 * sysdeps/generic/setxattr.c: New file.
2307 * misc/Makefile (headers): Add sys/xattr.h.
2308 (routines): Add *xattr calls.
2309 * misc/Versions: Add *xattr calls with version 2.3.
2310 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2311 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2312 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2313 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2314 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2315 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2316 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2317 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2319 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
2321 * sysdeps/powerpc/elf/libc-start.c
2322 (__cache_line_size): Declare.
2323 (__aux_init_cache): New function.
2324 (__libc_start_main): Change type of `auxvec' parameter to
2325 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
2327 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2328 (__cache_line_size): Declare.
2329 (__aux_init_cache): New function.
2330 (DL_PLATFORM_INIT): Define.
2331 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2332 value to select the correct stride for dcbz.
2334 2002-08-22 Andreas Jaeger <aj@suse.de>
2336 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2339 2002-08-22 Roland McGrath <roland@redhat.com>
2341 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2342 position indicated by locrectab against file bounds before rounding to
2343 page size. In mapping loop, always set TO before breaking out of
2344 contiguous range coalescing loop.
2346 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2347 (or MAP_COPY if available) instead of MAP_SHARED.
2349 * scripts/firstversions.awk: When encountering a version newer than
2350 the specified earliest version, be sure to emit the specified earliest
2351 version first if any renaming of an older version to that has been.
2353 2002-08-21 Roland McGrath <roland@redhat.com>
2355 * configure.in: Make GCC version check require 3.[2-9]* and no others.
2356 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2357 (Configuring and compiling): Don't mention older GCC versions any more.
2358 * INSTALL: Regenerated.
2360 * manual/install.texi (Configuring and compiling, Installation,
2361 Running make install, Linux): Linux -> GNU/Linux where appropriate.
2363 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2364 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2365 and with noinline otherwise. Remove hack alloca use to prevent
2366 inlining, we can ask for it explicitly nowadays.
2368 * dlfcn/bug-dlsym1.c: New file.
2369 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2370 * dlfcn/Makefile (distribute): Add them.
2371 (tests): Add bug-dlsym1 here.
2372 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2373 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2374 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2376 2002-08-21 Ulrich Drepper <drepper@redhat.com>
2378 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
2379 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2381 (_dl_start): Don't use local bootstrap_map variable if
2382 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
2383 pass bootstrap_map to _dl_start_final in this case either. Don't
2384 pass start_time to _dl_start_final ever.
2385 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2387 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2388 This cripples the scope lists necessary to search for symbols in
2389 dependencies which are not in the global scope.
2391 * include/setjmp.h (__libc_longjmp): Add declaration.
2393 2002-08-21 Andreas Jaeger <aj@suse.de>
2395 * sysdeps/x86_64/_mcount.S: Fix assembler.
2397 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2398 with biarch support.
2400 2002-08-21 Andreas Jaeger <aj@suse.de>
2402 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2404 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2406 * sysdeps/x86_64/machine-gmon.h: New file.
2407 * sysdeps/x86_64/_mcount.S: New file.
2409 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2411 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
2412 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2413 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2414 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2415 to TL_INIT_TP. Otherwise pass 1.
2416 * include/link.h (struct link_map): Add l_tls_tp_initialized.
2417 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2419 2002-08-15 Jakub Jelinek <jakub@redhat.com>
2421 * locale/programs/localedef.c (add_to_readlist): Error about
2422 circular dependencies only if the locale in question hasn't
2424 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2425 CTYPE_LOCALE to load_locale.
2426 * locale/programs/locfile.c (locfile_read): Don't include
2427 unneeded but available locales in locale_mask.
2429 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2430 print any messages about enlarging archive.
2432 2002-08-20 Brian Youmans <3diff@gnu.org>
2434 * manual/contrib.texi: Removed licenses, added acknowledgements
2435 for contributions by Intel, IBM, Craig Metz.
2436 * LICENSES: New file, contains the text of all non-FSF licenses in the
2437 distribution that require putting the notice in the accompanying
2439 * README.template, README: Mention LICENSES.
2441 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2442 new one modelled on the modern BSD license, per recent letter
2443 of permission from CMU.
2444 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2446 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2447 from IBM to FSF, per the recent Software Letter. Changed the
2448 distribution terms from GPL to LGPL.
2450 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2451 copying permission notice (Lesser GPL), per recent IBM Software Letter.
2452 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2453 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2454 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2455 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2456 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2457 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2458 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2459 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2461 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2462 from IBM to FSF, per the recent Software Letter. Corrected the
2463 text of the copying permission notice to say Lesser GPL instead
2464 of GPL in warranty disclaimer paragraph.
2465 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2466 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2467 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2468 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2469 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2470 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2471 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2472 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2473 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2474 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2475 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2476 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2477 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2478 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2479 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2480 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2481 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2482 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2483 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2484 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2485 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2487 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2488 permission notice to say Lesser GPL instead of GPL in warranty
2489 disclaimer paragraph.
2490 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2491 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2492 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2493 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2494 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2495 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2496 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2497 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2498 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2499 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2500 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2501 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2502 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2503 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2504 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2505 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2506 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2507 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2508 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2509 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2510 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2511 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2512 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2514 2002-08-20 Roland McGrath <roland@redhat.com>
2516 Fix ABI compatibility with libc compiled with old tools on powerpc.
2517 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2518 and Jack Howarth <howarth@bromo.med.uc.edu>.
2519 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2520 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2521 pass -DHAVE_DOT_HIDDEN for these files.
2522 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2524 * sysdeps/powerpc/divdi3.c: New file.
2525 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2526 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2528 2002-08-20 Jakub Jelinek <jakub@redhat.com>
2530 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2531 partially overlapping mappings. Remove unneeded (char *) casts.
2532 Never allow duplication of ranges in mapped areas.
2534 2002-08-20 Roland McGrath <roland@redhat.com>
2536 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2537 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
2539 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2541 * include/unistd.h: Don't hide _exit.
2543 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2544 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2545 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2546 argument 1 to TLS_INIT_TP.
2547 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2549 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2551 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2552 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2553 memory allocation to...
2554 (allocate_dtv): ...here. New function.
2555 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
2556 call allocate_dtv instead of _dl_allocate_tls_storage.
2557 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
2558 (_dl_get_tls_static_info): New function.
2559 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2560 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
2562 2002-08-19 Ulrich Drepper <drepper@redhat.com>
2564 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2565 immediately if result == NULL.
2567 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2569 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2571 2002-08-18 Roland McGrath <roland@frob.com>
2573 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2574 instead of __file_name_split.
2575 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2577 * sysdeps/mach/hurd/dl-sysdep.c
2578 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2579 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2581 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2583 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2584 in change before last: MAX -> MIN.
2586 2002-08-15 Roland McGrath <roland@redhat.com>
2588 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2589 if seek would go past it.
2590 (mmap_remap_check): If file position is at or past EOF after check,
2591 leave read pointers at EOF and don't seek.
2593 * libio/tst-mmap-offend.c: New file.
2594 * libio/Makefile (tests): Add it.
2596 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2597 the name as passed, rather than the name in the archive dictionary.
2599 2002-08-15 Ulrich Drepper <drepper@redhat.com>
2601 * csu/Makefile: Define elide-routines.os not static-only-routines.
2603 * include/sched.h (__clone): Add varargs at the end.
2605 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2607 (TLS_INIT_HELPER): If defined, use it.
2608 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2610 2002-08-15 Roland McGrath <roland@redhat.com>
2612 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2613 on L->l_prev; it can happen under rtld --verify too.
2615 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2616 header separately, just map an initial window of 2MB from the file
2617 and remap if that is not large enough to cover the whole header.
2619 2002-08-15 Andreas Jaeger <aj@suse.de>
2621 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2623 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2624 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2625 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2626 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2627 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2628 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2629 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2630 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2631 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2632 Patch by Andreas Gruenbacher <agruen@suse.de>.
2634 * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2636 2002-08-14 Roland McGrath <roland@redhat.com>
2638 * locale/locarchive.h (struct locale_category_data): Give this name to
2639 the type of locale_data_t's elements.
2640 * locale/programs/locarchive.c (cmpcategorysize): New static function.
2641 (add_locale): Use that to sort the categories by size and put all
2642 those that fit into two pages into the LC_ALL block, instead of
2643 hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2644 (show_archive_content): Detect categories inside LC_ALL block
2645 directly, instead of hard-coding.
2646 (oldlocrecentcmp): Compare just on file locations used.
2648 2002-08-14 Jakub Jelinek <jakub@redhat.com>
2650 * locale/programs/locarchive.c (struct oldlocrecent): New type.
2651 (oldlocrecentcmp): New function.
2652 (enlarge_archive): Re-add locales in the order they were added
2654 (add_locale): Put all the small locale files together, if the small
2655 locale file block would occupy less pages if page size aligned, align
2657 (show_archive_content): Adjust for locale archives optimized for speed.
2659 2002-08-14 Roland McGrath <roland@frob.com>
2661 * configure.in: Use "MISSING" as not-found value for MIG.
2662 * sysdeps/mach/configure.in: Fatal if mig not found.
2663 * configure, sysdeps/mach/configure: Regenerated.
2665 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2667 * locale/loadarchive.c (archfname): Add missing slash.
2669 * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2670 * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2672 2002-08-12 Roland McGrath <roland@redhat.com>
2674 * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2675 * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2676 * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2677 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2678 * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2679 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2680 * sysdeps/generic/waitpid.c: Likewise.
2682 * include/net/if.h: New file. Use libc_hidden_proto
2683 for if_nametoindex and if_indextoname.
2684 * sysdeps/generic/if_index.c: Add libc_hidden_def.
2685 * sysdeps/mach/hurd/if_index.c: Likewise.
2686 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2688 * include/grp.h (setgroups): Add libc_hidden_proto.
2689 * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2690 * sysdeps/mach/hurd/setgroups.c: Likewise.
2691 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2692 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2694 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2696 * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2697 * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2698 * sysdeps/generic/setegid.c (setegid): Likewise.
2699 * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2700 * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2701 * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2702 * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2703 * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2704 * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2705 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2706 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2707 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2708 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2709 * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2710 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2711 Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2713 * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2714 __lxstat_internal, __lxstat64_internal): Remove.
2715 (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2717 * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2718 Remove INTDEF where present, remove #undef at the beginning.
2719 * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2720 * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2721 * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2722 * sysdeps/generic/xstat.c (__xstat): Likewise.
2723 * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2724 * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2725 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2726 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2727 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2728 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2729 * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2730 * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2731 * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2732 * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2733 * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2734 * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2735 * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2736 * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2737 * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2738 * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2739 * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2740 * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2741 * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2742 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2743 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2744 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2745 * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2746 * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2747 * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2748 * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2749 * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2750 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2751 * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2752 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2753 * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2754 * sysdeps/unix/xstat.c (__xstat): Likewise.
2756 * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2757 * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2758 * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2759 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2760 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2761 * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2762 * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2764 * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2765 * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2766 * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2767 * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2768 * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2769 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2770 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2771 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2773 * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2774 * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2775 * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2776 * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2777 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2778 * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2779 * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2780 * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2782 * include/string.h (strcoll): Add libc_hidden_proto.
2783 * string/strcoll.c (strcoll): Add libc_hidden_def.
2785 * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2787 2002-08-11 Philip Blundell <philb@gnu.org>
2789 * sysdeps/arm/Makefile: New file.
2791 2002-08-08 Jakub Jelinek <jakub@redhat.com>
2793 * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2794 by another '|', end of regex or enclosing ')', clear branch.
2795 * posix/bug-regex9.c: New test.
2796 * posix/Makefile (tests): Add bug-regex9.
2798 2002-08-12 Roland McGrath <roland@redhat.com>
2800 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2801 start count condition, use TOTAL instead of variable that was never
2802 set. Fix outer loop termination condition to TOTAL >= after update.
2804 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2805 dl_tls_static_align and dl_tls_static_nelem.
2807 2002-08-11 Roland McGrath <roland@redhat.com>
2809 * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2810 of the TLS macros, otherwise the compiler might not have initialized
2811 the PIC register yet when we use the PLT via asm.
2812 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2813 * elf/tst-tlsmod2.c (in_dso): Likewise.
2815 * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2817 * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2818 Evaluate argument exactly once. Remove __volatile__ from asm's.
2820 * include/unistd.h: Use libc_hidden_proto for getdomainname
2822 * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2823 * sysdeps/mach/hurd/getdomain.c: Likewise.
2824 * sysdeps/unix/getlogin_r.c: Likewise.
2825 * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2826 * sysdeps/generic/getlogin_r.c: Likewise.
2828 * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2829 * sunrpc/rtime.c: Add libc_hidden_def.
2831 * include/string.h: Use libc_hidden_proto for basename.
2832 * string/basename.c [_LIBC]: Add libc_hidden_def.
2834 * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2836 * locale/loadarchive.c: munmap -> __munmap throughout.
2838 * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2839 * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2840 * sysdeps/generic/gai_strerror.c: Likewise.
2842 * include/sys/errno.h: New file.
2844 * include/signal.h: No libc_hidden_proto for raise,
2845 __libc_current_sigrtmin, __libc_current_sigrtmax.
2846 These need to be overridden by linuxthreads.
2847 * sysdeps/posix/raise.c: Reverted.
2848 * sysdeps/generic/raise.c: Reverted.
2849 * signal/allocrtsig.c: Reverted.
2851 * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
2853 2002-08-10 Roland McGrath <roland@redhat.com>
2855 * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2856 * locale/localeinfo.h: Declare it.
2857 * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2858 current locale if it's not in the file list.
2859 Call _nl_archive_subfreeres.
2861 2002-08-10 Andreas Jaeger <aj@suse.de>
2863 * sysdeps/i386/strchr.S: Add comment.
2865 2002-08-10 Roland McGrath <roland@redhat.com>
2867 * include/wchar.h (putwc): Use libc_hidden_proto.
2868 * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
2869 sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
2870 * stdio-common/dprintf.c: Add libc_hidden_def.
2871 * stdio-common/fprintf.c: Likewise.
2872 * stdio-common/sprintf.c: Likewise.
2873 * stdio-common/sscanf.c: Likewise.
2874 * libio/iofwrite.c: Likewise.
2875 * libio/memstream.c: Likewise.
2876 * libio/putwc.c: Likewise.
2877 * stdio-common/perror.c: Likewise.
2878 * sysdeps/posix/remove.c: Likewise.
2879 * sysdeps/generic/remove.c: Likewise.
2880 * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h".
2881 * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
2883 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2885 * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2886 towlower, towupper): Add prototypes here too. Add libc_hidden_proto.
2887 * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2888 towlower, towupper): Add libc_hidden_weak.
2890 * include/bits/dlfcn.h: New file.
2891 * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
2893 * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
2894 * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
2895 * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
2896 * include/pwd.h (_nss_files_parse_pwent): Likewise.
2897 * include/shadow.h (_nss_files_parse_spent): Likewise.
2898 * include/netdb.h (_nss_files_parse_protoent,
2899 _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
2900 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
2901 (LINE_PARSER): Use it.
2902 * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
2903 * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
2905 * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
2908 * manual/debug.texi (%MENU%): Remove trailing dot.
2909 Reported by <hayastan132@hotmail.com>.
2911 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
2914 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
2917 2002-08-09 Roland McGrath <roland@redhat.com>
2919 * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
2920 name to find codeset name (if any) and normalize it. If the
2921 normalized name differs, look up only that in the archive.
2922 * locale/programs/locarchive.c (add_locale_to_archive): If the name
2923 contains a codeset, normalize the codeset store only the normalized
2924 name in the archive. If not, add an alias containing the locale's
2925 normalized codeset name. Apply codeset name normalization when
2926 matching entries in the alias file.
2928 * locale/programs/locarchive.c (delete_locales_from_archive): Don't
2929 decrement HEAD->namehash_used here.
2930 (add_locale): Only need to insert name string when name_offset != 0.
2932 * locale/programs/localedef.c (options): Add -A/--alias-file.
2933 (alias_file): New variable.
2934 (parse_opt): Grok -A, set that.
2935 * locale/programs/localedef.h: Declare it.
2937 * locale/locarchive.h (struct locrecent): Add `refs' member.
2938 * locale/programs/locarchive.c (insert_name): New function, broken out
2940 (add_locale_to_archive): ... here. Call that.
2941 (add_alias): New function.
2942 (add_locale): New static function, add_locale_to_archive renamed.
2943 (add_locale_to_archive): Call that and use add_alias to add an alias
2944 for the name with codeset if the given name lacks it.
2945 (enlarge_archive): Call add_locale instead of add_locale_to_archive.
2947 * locale/Makefile (routines): Add loadarchive.
2948 * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
2949 (_nl_load_locale_from_archive): New function.
2950 * locale/localeinfo.h: Declare it.
2951 * locale/findlocale.c (_nl_find_locale): If using default locale path,
2952 try _nl_load_locale_from_archive first.
2954 * locale/loadlocale.c (_nl_intern_locale_data): New function,
2955 broken out of _nl_load_locale.
2956 (_nl_load_locale): Call that.
2957 * locale/localeinfo.h: Declare it.
2958 (struct locale_data): Replace member `mmaped' with `alloc', an enum.
2959 (struct locale_data): Remove unused member `options'.
2960 * locale/findlocale.c (_nl_remove_locale): Update uses.
2961 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2962 * locale/C-collate.c: Update initializer.
2963 * locale/C-identification.c: Likewise.
2964 * locale/C-measurement.c: Likewise.
2965 * locale/C-telephone.c: Likewise.
2966 * locale/C-address.c: Likewise.
2967 * locale/C-name.c: Likewise.
2968 * locale/C-paper.c: Likewise.
2969 * locale/C-time.c: Likewise.
2970 * locale/C-numeric.c: Likewise.
2971 * locale/C-monetary.c: Likewise.
2972 * locale/C-messages.c : Likewise.
2973 * locale/C-ctype.c: Likewise.
2975 * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
2976 use CHAR_BIT instead of BITSPERBYTE.
2978 * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
2979 _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
2980 * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
2981 (_nl_remove_locale): Likewise.
2982 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2984 * locale/findlocale.c (_nl_default_locale_path): New variable.
2985 (_nl_find_locale): If LOCALE_PATH is null, default to that.
2986 * locale/localeinfo.h: Declare it.
2987 * locale/setlocale.c (setlocale): Use _nl_default_locale_path
2988 in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale.
2989 * locale/newlocale.c (__newlocale): Likewise.
2991 * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
2992 * inet/rexec.c (rexec_af): Add libc_hidden_def.
2993 * sysdeps/generic/morecore.c: Likewise.
2994 * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
2995 (__libc_current_sigrtmax): Likewise.
2997 2002-08-08 Roland McGrath <roland@redhat.com>
2999 * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3000 * catgets/open_catalog.c (__open_catalog): Likewise.
3002 * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3003 from typo INITIAL_NUM_NANES.
3004 (create_archive): Update use.
3006 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3008 * sysdeps/unix/sysv/linux/sigwait.c: New file.
3010 2002-08-08 Roland McGrath <roland@frob.com>
3012 * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3014 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3016 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3017 else and undefine after including wcstol_l.c.
3018 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3020 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3022 * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3024 2002-08-08 Alexandre Oliva <aoliva@redhat.com>
3026 * configure.in: Make the test for broken_alias_attribute stricter.
3028 2002-05-24 Robert Love <rml@tech9.net>
3030 * posix/Makefile (routines): Add sched_getaffinity and
3032 * posix/sched.h: Add declarations for sched_getaffinity and
3034 * sysdeps/generic/sched_getaffinity.c: New file.
3035 * sysdeps/generic/sched_setaffinity.c: New file.
3036 * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3039 2002-08-06 Andreas Schwab <schwab@suse.de>
3041 * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3043 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3045 * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3048 * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3049 It is known to be defined.
3051 * include/string.h: Define index and rindex only if _ISOMAC is not
3054 * elf/rtld.c: Include <errno.h>.
3055 * sysdeps/generic/libc-tls.c: Likewise.
3057 2002-08-07 Roland McGrath <roland@redhat.com>
3059 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3061 (precsize_aton): Likewise.
3063 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3064 the static symbols added in the last change (doofus is me).
3066 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3067 loop to notice missing categories in a composite name.
3069 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3070 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3071 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3072 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3074 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3076 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3078 2002-08-07 Roland McGrath <roland@redhat.com>
3080 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3081 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3082 Reported by Jakub Jelinek <jakub@redhat.com>.
3084 2002-08-07 Jakub Jelinek <jakub@redhat.com>
3086 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3089 2002-08-06 Roland McGrath <roland@redhat.com>
3091 * include/getopt.h: Put private decls inside [_GETOPT_H].
3092 Use libc_hidden_proto for getopt_long, getopt_long_only.
3093 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3094 Add libc_hidden_def.
3096 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3097 Define as a macro for __dl_iterate_phdr.
3099 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3100 made static. Add __ name as a strong alias.
3101 (internal_endnetgrent): Likewise.
3102 (internal_getnetgrent_r): Likewise.
3104 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3106 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3107 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3108 all *_l functions with no __ prefix.
3109 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3110 * ctype/ctype_l.c: Likewise.
3111 * locale/nl_langinfo.c: Likewise.
3112 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3113 * stdlib/stdlib.h [__USE_GNU]: Likewise.
3114 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3115 * wctype/wctype.h [__USE_GNU]: Likewise.
3116 * string/strcoll_l.c (strcoll_l): Define as weak alias.
3117 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3118 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3119 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3120 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3121 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3122 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3123 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3124 (__wcscasecmp_l): Add libc_hidden_def.
3125 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3126 (__wcsncasecmp_l): Add libc_hidden_def.
3127 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3128 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3129 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3130 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3131 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3132 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3133 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3134 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3135 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3136 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3137 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3138 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3139 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3140 * wctype/wctype_l.c (wctype_l) Define as weak alias.
3142 2002-08-05 Roland McGrath <roland@redhat.com>
3144 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3145 netname2user, host2netname, user2netname, key_gendes.
3146 * sunrpc/netname.c: Add libc_hidden_def.
3147 * sunrpc/key_call.c: Likewise.
3149 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3151 * inet/getnameinfo.c: Add libc_hidden_def.
3152 * sysdeps/generic/getaddrinfo.c: Likewise.
3153 * sysdeps/posix/getaddrinfo.c: Likewise.
3155 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3156 * wcsmbs/wmemchr.c: Add libc_hidden_def.
3157 * wcsmbs/wmemset.c: Add libc_hidden_def.
3159 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3160 (index, rindex): Define as macros for strchr, strrchr.
3162 * string/envz.c (envz_strip): index -> strchr
3164 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3165 * sunrpc/rpc_prot.c: Add libc_hidden_def.
3167 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3168 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3170 * include/stdlib.h: Use libc_hidden_proto for wctomb.
3171 * stdlib/wctomb.c: Add libc_hidden_def.
3173 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3174 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3175 * resolv/herror.c: Likewise.
3176 * inet/rcmd.c: Add libc_hidden_def.
3177 * inet/ruserpass.c: Likewise.
3178 * inet/getnetgrent_r.c: Likewise.
3180 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3181 svc_unregister, remove *_internal decls. Use libc_hidden_proto
3182 for svcerr_auth, svcerr_noprog, svcerr_progvers.
3183 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3185 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3186 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3188 * sysdeps/posix/system.c (do_system): New function, guts broken out of
3190 (__libc_system): Call it, putting just the line == NULL test here.
3192 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3193 variables work right.
3195 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3196 * elf/dl-close.c (_dl_close): Likewise.
3198 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3199 in6addr_any, in6addr_loopback. Remove decls for
3200 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3201 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3202 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3203 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3204 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3205 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3206 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3208 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3210 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3212 * inet/ether_aton_r.c: Add libc_hidden_def.
3213 * inet/ether_ntoa_r.c: Likewise.
3215 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3217 * sunrpc/svc.c: Add libc_hidden_def.
3218 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3219 pmap_set, pmap_unset.
3220 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3221 * sunrpc/pm_getport.c: Likewise.
3222 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3223 * sunrpc/publickey.c: Add libc_hidden_def.
3225 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3227 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
3228 the other memset call in this function.
3230 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3231 at correct index. Clear BSS region now that memalign is used.
3233 2002-08-05 Roland McGrath <roland@redhat.com>
3235 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3236 * sysdeps/generic/uname.c: Add libc_hidden_def.
3237 * sysdeps/mach/hurd/uname.c: Likewise.
3239 2002-08-05 Jakub Jelinek <jakub@redhat.com>
3241 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3242 wcspbrk): Add libc_hidden_proto.
3243 * time/strftime.c (my_strftime): Add libc_hidden_def.
3244 (strftime): Remove libc_hidden_def.
3245 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3246 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3247 * wcsmbs/wcsspn.c (wcsspn): Likewise.
3248 * wcsmbs/wcscmp.c (wcscmp): Likewise.
3249 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3250 * wcsmbs/wcscoll.c (wcscoll): Likewise.
3252 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3253 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3254 __rpc_thread_createerr): Add libc_hidden_proto.
3255 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3256 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3257 __rpc_thread_createerr): Add libc_hidden_def.
3259 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3260 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3261 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3262 clnt_perror, clnt_sperror): Add libc_hidden_def.
3263 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3265 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3267 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3268 * sunrpc/des_soft.c (des_setparity): Likewise.
3270 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3271 Add libc_hidden_proto.
3272 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3273 Add libc_hidden_def.
3275 2002-08-05 Roland McGrath <roland@redhat.com>
3277 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3278 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3279 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3280 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3281 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3282 old data, abandoning the original memory allocated by rtld at startup,
3283 instead of calling realloc normally.
3285 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3287 * po/fr.po: Update from translation team.
3289 2002-08-04 Roland McGrath <roland@redhat.com>
3291 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3292 then generate a dummy module under the given name, obeying the
3293 normal rules for the "caller" field.
3295 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3296 actually iterate over the elements. Fix typo p_type -> p_vaddr.
3298 * include/pthread.h: Don't declare __pthread_initialize_minimal as
3299 weak here; we declare it weak or strong in the one place we use it.
3300 * sysdeps/generic/libc-start.c: ... which is here.
3301 Don't make the decl weak if [USE_TLS], since static programs need TLS
3302 setup even when single-threaded.
3304 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3306 * elf/Makefile (test-srcs): Add $(modules-names) to it.
3307 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3308 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3309 all these variables.
3311 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3313 * include/stdio.h: Don't define macro magic to redirect function
3314 calls if _ISOMAC is defined.
3316 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3319 2002-08-04 Roland McGrath <roland@redhat.com>
3321 * stdlib/lrand48_r.c: Add libc_hidden_def.
3323 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3324 TCB with __libc_memalign instead of mmap.
3325 (_dl_deallocate_tls): Free it with free instead of munmap.
3327 * Makerules (cpp-srcs-left): When setting this to run
3328 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3329 words. Combine the two loops into one on the concatenated list,
3330 including those as well as $(test-srcs).
3332 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3333 since we align here with optimally minimal waste anyway.
3334 (malloc): Just call that.
3336 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3339 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3340 to compute memory location for l_tls_initimage.
3341 * elf/rtld.c (_dl_start): Likewise.
3342 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3344 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3345 because the .d file is generated in the non-shared case and
3346 so fails to catch them otherwise.
3348 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3349 split out of _dl_allocate_tls.
3350 (_dl_allocate_tls_init): Likewise.
3351 (_dl_allocate_tls): Call those.
3352 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3353 * elf/rtld.c (dl_main): Call them separately instead of calling
3354 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
3355 is finished, so that the initializer data has been relocated before we
3356 copy it into the main thread's TLS block.
3358 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3359 loop conditions, prevented the last used module from being initialized.
3361 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3363 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3364 if glob resp. globfree are not macros.
3365 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3366 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3367 Add libc_hidden_ver.
3368 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3370 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3371 instead of libc_hidden_weak.
3372 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3373 libc_hidden_ver instead of libc_hidden_def.
3374 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3375 libc_hidden_ver instead of libc_hidden_def.
3376 (wcstoll, wcstoq): Remove libc_hidden_weak.
3377 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3379 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3381 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3383 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3386 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3388 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
3389 to access _sys_siglist.
3390 * string/strsignal.c: Likewise.
3391 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3392 * sysdeps/gnu/siglist.c: Likewise.
3393 * sysdeps/unix/siglist.c: Likewise.
3394 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3396 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3398 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3400 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3402 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3404 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3405 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3406 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3408 * include/time.h: Add libc_hidden_proto for __gmtime_r.
3409 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3411 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3412 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3413 and __gconv_get_cache respectively.
3414 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3415 defined static. Change all users.
3416 (__gconv_get_cache): New function.
3417 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3418 (__gconv_get_alias_db): New function.
3419 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3420 (__conv_modules_db): Likewise.
3421 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3422 and __gconv_get_alias_db.
3423 * iconv/iconv_prog.c: Use the new functions instead of accessing the
3426 * include/stdlib.h: Add prototype and libc_hidden_proto for
3428 * sysdeps/generic/morecore.c: Include <stdlib.h>.
3430 * malloc/obstack.c: Remove fputs macro.
3432 * malloc/mtrace.c: Remove fopen macro.
3434 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3436 * manual/debug.texi: Fix spelling to programmatically.
3437 Reported by <hayastan132@hotmail.com>.
3439 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3441 * include/libio.h: Add libc_hidden_proto for __uflow.
3442 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3443 fgetpos to _IO_* names.
3444 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3445 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3446 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3447 putwc_unlocked, vswscanf.
3448 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3449 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3450 * libio/fseek.c: Likewise.
3451 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
3453 * libio/genops.c (__uflow): Add libc_hidden_def.
3454 * libio/iofflush_u.c (fflush_unlocked): Likewise.
3455 * libio/iofgets_u.c (fgets_unlocked): Likewise.
3456 * libio/iofputs_u.c (fputs_unlocked): Likewise.
3457 * libio/iofputws_u.c (fputws_unlocked): Likewise.
3458 * libio/iofread_u.c (fread_unlocked): Likewise.
3459 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3460 * libio/iovswscanf.c (vswscanf): Likewise.
3461 * libio/putwc_u.c (putwc_unlocked): Likewise.
3462 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3463 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3464 * malloc/mtrace.c: Likewise.
3466 * sunrpc/clnt_perr.c: Remove fputs macro.
3467 * sunrpc/svc_simple.c: Likewise.
3468 * sunrpc/svc_tcp.c: Likewise.
3469 * sunrpc/svc_udp.c: Likewise.
3470 * sunrpc/xdr_rec.c: Likewise.
3471 * sunrpc/xdr_ref.c: Likewise.
3473 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3474 iconv_prog, linereader, and charmap-dir.
3475 * locale/Makefile: Likewise for locale and charmap-dir.
3476 * malloc/Makefile: Likewise for memusagestat.
3477 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3478 * sunrpc/Makefile: Likewise for rpc_main.
3479 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3480 * timezone/Makefile: Likewise for zic.
3482 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3484 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3485 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3486 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3487 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3490 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3492 * libio/genops.c (__underflow): Add libc_hidden_def.
3493 * libio/wgenops.c (__wuflow): Likewise.
3494 (__wunderflow): Likewise.
3496 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3497 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3499 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3500 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3502 * include/string.h: Add libc_hidden_proto for __strverscmp.
3503 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3505 * include/unistd.h: Add libc_hidden_proto for __sysconf.
3506 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3507 * sysdeps/posix/sysconf.c: Likewise.
3508 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3509 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3511 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3512 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3513 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3514 __iswxdigit_l, __towlower_l, __towupper_l.
3515 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3516 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3518 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3519 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3520 * sysdeps/mach/hurd/xmknod.c: Likewise.
3521 * sysdeps/unix/xmknod.c: Likewise.
3522 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3523 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3524 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3526 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3528 2002-08-03 Roland McGrath <roland@redhat.com>
3530 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3532 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3533 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3534 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3535 * sysdeps/mach/hurd/setpriority.c: Likewise.
3536 * sysdeps/mach/hurd/getpriority.c: Likewise.
3537 * sysdeps/generic/setpriority.c: Likewise.
3538 * sysdeps/generic/getpriority.c: Likewise.
3540 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3541 * malloc/mcheck.c: Add libc_hidden_def.
3543 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3544 * misc/hsearch_r.c: Add libc_hidden_def.
3546 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3547 * posix/fnmatch.c: Add libc_hidden_weak.
3549 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3550 execl, execle, execlp, execvp, getpid, getsid.
3551 * sysdeps/generic/alarm.c: Add libc_hidden_def.
3552 * sysdeps/unix/alarm.c: Likewise.
3553 * posix/confstr.c: Likewise.
3554 * posix/execvp.c: Likewise.
3555 * posix/execlp.c: Likewise.
3556 * posix/execle.c: Likewise.
3557 * posix/execl.c: Likewise.
3558 * sysdeps/generic/getsid.c: Likewise.
3559 * sysdeps/mach/hurd/getsid.c: Likewise.
3560 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3561 * sysdeps/mach/hurd/getpid.c: Likewise.
3563 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3564 qecvt_r, qfcvt_r, lrand48_r.
3565 * misc/efgcvt_r.c: Add libc_hidden_def.
3567 * include/wordexp.h: Use libc_hidden_proto for wordfree.
3568 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3570 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3571 * locale/nl_langinfo.c: Add libc_hidden_def.
3573 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3574 * sysdeps/generic/glob.c: Add libc_hidden_def.
3575 * sysdeps/generic/glob64.c: Likewise.
3576 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3578 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3580 * elf/Makefile (CFLAGS-vismod2.c): New variable.
3582 * locale/setlocale.c (_nl_current_names): Variable moved ...
3583 * locale/localename.c (_nl_current_names): ... here, new file.
3584 Make it global, with attribute_hidden.
3585 * locale/localeinfo.h: Declare it.
3586 * locale/Makefile (aux): Add localename.
3587 * locale/localename.c (__current_locale_name): New function.
3588 * include/locale.h (__current_locale_name): Declare it.
3589 * intl/dcigettext.c (guess_category_value): Use that instead of
3592 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3593 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3594 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3595 * locale/newlocale.c: Add alias to __ name.
3596 * locale/duplocale.c: Likewise.
3597 * locale/freelocale.c: Likewise.
3598 * locale/uselocale.c: New file.
3599 * locale/Makefile (routines): Add it.
3600 * locale/Versions (libc: GLIBC_2.3): New set.
3601 Add newlocale, duplocale, freelocale, uselocale.
3602 (libc: GLIBC_PRIVATE): Add __uselocale.
3604 * locale/localeinfo.h [SHARED]
3605 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3606 (_NL_CURRENT_DATA): Define using that.
3607 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3608 (_NL_CURRENT_DEFINE): Define to empty.
3609 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3610 conditionalized on this.
3611 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3612 taking initializer of _nl_C_locobj.
3613 [SHARED] (_nl_global_locale): New variable, using that initializer.
3614 (_nl_C_locobj): Use new macro for initialzier.
3615 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3616 [! SHARED] (CATEGORY_USED): New macro.
3617 [SHARED] (CATEGORY_USED, _nl_C): New macros.
3618 (setdata, setlocale): Use that macro instead of examining _nl_current.
3619 (setdata): Set the slot in _nl_global_locale.
3620 Conditionalize setting of _nl_current on [! SHARED].
3621 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3622 declaration as an extern.
3623 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3625 * include/locale.h: Use libc_hidden_proto for setlocale.
3626 * locale/setlocale.c: Add libc_hidden_def.
3628 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3630 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3631 * misc/hsearch_r.c: Add libc_hidden_def.
3632 * misc/lsearch.c: Likewise.
3634 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3636 * misc/getttyent.c: Add libc_hidden_def.
3638 * include/mcheck.h: Use libc_hidden_proto for mcheck.
3639 * malloc/mcheck.c: Add libc_hidden_def.
3641 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3642 * include/argz.h: Use libc_hidden_proto for argz_delete.
3643 * string/argz-delete.c: Add libc_hidden_def.
3644 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
3646 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3647 HIDDEN_JUMPTARGET for _exit.
3648 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3649 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3650 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3651 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3653 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3654 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3655 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3656 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3658 * include/stdlib.h: Use libc_hidden_proto for abort,
3659 __strtof_internal, __strtod_internal, __strtold_internal,
3660 __strtol_internal, __strtoll_internal, __strtoul_internal,
3661 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3662 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3663 __strtoul_l_internal, __strtoull_l_internal.
3664 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3665 __wcstod_internal, __wcstold_internal, __wcstol_internal,
3666 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3667 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3668 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3670 * sysdeps/generic/abort.c: Add libc_hidden_def.
3671 * stdlib/strtod.c: Likewise.
3672 * sysdeps/generic/strtol.c: Likewise.
3673 * sysdeps/wordsize-64/strtol.c: Likewise.
3674 * sysdeps/wordsize-64/wcstol.c: Likewise.
3675 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3677 * include/stdlib.h: Use libc_hidden_proto for qsort.
3678 * stdlib/msort.c: Add libc_hidden_def.
3680 * include/utime.h: Use libc_hidden_proto for utime.
3681 * sysdeps/generic/utime.c: Add libc_hidden_def.
3682 * sysdeps/unix/utime.c: Likewise.
3684 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3685 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3686 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3687 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3688 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3690 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3691 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3692 and __libc_current_sigrtmax.
3693 * signal/sigismem.c: Add libc_hidden_def.
3694 * signal/sigfillset.c: Likewise.
3695 * signal/sigempty.c: Likewise.
3696 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3697 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3698 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3699 * sysdeps/posix/raise.c: Likewise.
3700 * sysdeps/generic/raise.c: Likewise.
3702 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3704 * include/string.h: Use libc_hidden_proto for __stpcpy.
3705 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3706 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3707 * sysdeps/generic/stpcpy.c: Likewise.
3708 * sysdeps/i386/stpcpy.S: Likewise.
3709 * sysdeps/i386/i586/stpcpy.S: Likewise.
3710 * sysdeps/powerpc/stpcpy.S: Likewise.
3711 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3712 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3714 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3715 __strncasecmp_l, __strdup, __strndup, __strerror_r.
3716 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3718 * string/strdup.c (__strdup): Likewise.
3719 * string/strndup.c (__strndup): Likewise.
3720 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3721 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3723 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3725 * include/libio.h: New file.
3726 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3727 * libio/iolibio.h: #include <libio.h>, not "libio.h".
3728 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3729 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3730 * sysdeps/unix/common/syscalls.list: Likewise.
3731 * sysdeps/unix/inet/syscalls.list: Likewise.
3732 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3733 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3734 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3735 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3736 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3737 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3738 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3739 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3740 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3741 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3742 * sysdeps/unix/syscalls.list: Likewise.
3744 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3745 Ulrich Drepper <drepper@redhat.com>
3747 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3748 the arguments is big enough to cause an overflow.
3750 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3752 * assert/assert.c: Use hidden_def not INTDEF.
3754 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3756 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3759 2002-08-03 Roland McGrath <roland@redhat.com>
3761 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3762 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3764 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3765 * misc/syslog.c: Add libc_hidden_def.
3766 * misc/err.c: Likewise.
3767 * stdlib/exit.c: Likewise.
3768 * stdlib/bsearch.c: Likewise.
3769 * sysdeps/generic/getenv.c: Likewise.
3771 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3773 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3774 libc_hidden_weak for every system call symbol defined.
3776 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3777 timelocal, localtime, strftime.
3778 * time/asctime.c: Add libc_hidden_def.
3779 * time/mktime.c: Likewise.
3780 * time/localtime.c: Likewise.
3781 * time/strftime.c: Likewise.
3782 * time/strptime.c: Likewise.
3783 * sysdeps/generic/time.c: Likewise.
3784 * sysdeps/unix/time.c: Likewise.
3785 * sysdeps/unix/sysv/i386/time.S: Likewise.
3786 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3788 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3789 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3790 * resolv/inet_ntop.c: Likewise.
3791 * resolv/inet_pton.c: Likewise.
3792 * inet/inet_mkadr.c: Add libc_hidden_def.
3793 * inet/inet_netof.c: Likewise.
3794 * resolv/inet_addr.c: Likewise.
3796 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3797 clauses from conditionals for now. Will have to be fixed later
3798 for older compilers.
3800 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3802 2002-08-02 Ulrich Drepper <drepper@redhat.com>
3804 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3805 broken alias attribute handling.
3806 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3808 2002-08-02 Roland McGrath <roland@frob.com>
3810 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3811 since it sets the variables we use in a -D switch.
3813 2002-08-02 Roland McGrath <roland@redhat.com>
3815 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3816 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3817 matches long int, not int.
3819 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3820 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3821 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3822 * wctype/wctrans.c (wctrans): Likewise.
3823 * wctype/wctype.c (__wctype): Likewise.
3824 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3826 2002-08-02 Ulrich Drepper <drepper@redhat.com>
3828 * assert/assert.c (__assert_fail): Fix typo in comment.
3830 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3831 * sunrpc/rpc_thread.c: Define it without static.
3832 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3834 2002-08-02 Jakub Jelinek <jakub@redhat.com>
3836 * assert/assert.c (__assert_fail): Remove undef.
3837 Replace INTDEF with libc_hidden_def.
3838 * assert/__assert.c (__assert): Remove INTUSE.
3839 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3841 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3842 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3843 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3844 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3845 libm_hiden_ver): Define.
3846 * include/assert.h (__assert_fail_internal): Remove.
3847 (__assert_fail): Add prototype. Add hidden_proto.
3848 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3850 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3851 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
3852 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3853 Add libc_hidden_proto.
3854 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3855 __fcntl): Add libc_hidden_proto. Remove macros.
3856 (__open_internal, __fcntl_internal): Remove.
3857 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3858 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3859 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3861 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3863 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
3864 Add libc_hidden_def.
3865 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
3866 * sysdeps/generic/open.c (__open): Remove undef.
3867 Add libc_hidden_def. Remove INTDEF.
3868 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
3869 Add libc_hidden_def.
3870 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
3871 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
3872 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
3873 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3874 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
3875 (__libc_fcntl): Add libc_hidden_def.
3876 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
3877 (__open): Remove INTDEF2. Add libc_hidden_weak.
3878 (__libc_open): Add libc_hidden_def.
3879 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
3880 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
3881 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3882 Add libc_hidden_def.
3883 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
3884 Add libc_hidden_def.
3885 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
3887 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
3888 (__libc_fcntl): Add libc_hidden_def.
3889 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
3890 __getpgid_internal, __chown_internal): Remove.
3891 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
3892 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
3894 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
3895 __getpid_internal, __open_internal, __write_internal): Remove.
3896 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
3897 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
3898 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
3899 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
3900 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
3901 Replace INTDEF with libc_hidden_def.
3902 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
3903 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
3904 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
3905 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
3906 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
3907 Add libc_hidden_proto.
3908 * include/sys/poll.h (__poll): Add libc_hidden_proto.
3909 * include/sys/select.h (__select): Likewise.
3910 * include/sys/socket.h (__send): Likewise.
3911 * include/sys/statfs.h (__statfs): Likewise.
3912 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
3913 __getpid, __getpgid, __setpgid, __close, __read, __write,
3914 __getpagesize, __sbrk): Likewise.
3915 (__chown_internal, __dup2_internal, __getpid_internal,
3916 __getpgid_internal, __close_internal, __write_internal,
3917 __getpagesize_internal): Remove.
3918 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
3920 * include/printf.h (__printf_fp): Add libc_hidden_proto.
3921 * include/sched.h (__sched_setscheduler): Likewise.
3922 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
3923 * include/stdlib.h (__secure_getenv): Likewise.
3924 * include/signal.h (__sigaction, __sigsuspend): Likewise.
3925 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
3926 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
3927 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
3928 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
3929 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
3930 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
3931 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
3932 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
3933 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
3934 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
3935 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
3936 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
3937 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
3938 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
3939 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
3940 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3941 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3942 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3943 * libio/genops.c (__overflow): Add libc_hidden_def.
3944 * libio/iovdprintf.c: Remove libio.h include.
3945 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
3946 libc_hidden_weak): Define to nothing if not defined.
3947 (__overflow, __woverflow): Add libc_hidden_proto.
3948 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
3949 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
3950 (DB_LOOKUP_FCT): Add libc_hidden_proto.
3951 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
3952 (DB_LOOKUP_FCT): Add libc_hidden_proto.
3953 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
3954 and libc_hidden_def.
3955 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
3956 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
3957 (__getpgid): Add libc_hidden_proto.
3958 (__bsd_getpgrp): Remove INTUSE.
3959 * resolv/res_init.c (__res_ninit, __res_randomid): Add
3961 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
3962 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
3963 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
3964 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
3965 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
3966 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
3967 __rpc_thread_createerr): Add libc_hidden_def.
3968 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
3970 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
3971 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
3972 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
3973 * sysdeps/generic/chown.c (__chown): Likewise.
3974 * sysdeps/generic/close.c (__close): Likewise.
3975 * sysdeps/generic/dup2.c (__dup2): Likewise.
3976 * sysdeps/generic/pipe.c (__pipe): Likewise.
3977 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
3978 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
3979 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
3980 * sysdeps/generic/read.c (__libc_read): Likewise.
3981 (__read): Add libc_hidden_weak.
3982 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
3983 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
3984 * sysdeps/generic/select.c (__select): Likewise.
3985 * sysdeps/generic/send.c (__send): Likewise.
3986 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
3987 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
3988 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
3989 * sysdeps/generic/statfs.c (__statfs): Likewise.
3990 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
3991 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
3992 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
3993 Remove undef and INTDEF.
3994 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
3995 * sysdeps/generic/getpid.c (__getpid): Likewise.
3996 * sysdeps/generic/write.c (__libc_write): Likewise.
3997 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
3998 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
3999 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4000 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4001 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
4002 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4003 Remove undef and INTDEF.
4004 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4005 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4006 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4007 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4008 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4009 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4010 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4011 (__pipe): Add libc_hidden_def.
4012 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4014 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4015 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4016 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4017 (__read): Add libc_hidden_weak.
4018 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4019 (__libc_pwrite64): Add libc_hidden_def.
4020 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4021 * sysdeps/mach/hurd/select.c (__select): Likewise.
4022 * sysdeps/mach/hurd/send.c (__send): Likewise.
4023 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4024 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4025 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4026 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4027 * sysdeps/posix/dup2.c: Likewise.
4028 Remove undef and INTDEF.
4029 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4030 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4031 (__pwrite64): Add libc_hidden_weak.
4032 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4033 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4034 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4035 * sysdeps/standalone/close.c (__close): Likewise.
4036 * sysdeps/standalone/write.c (__libc_write): Likewise.
4037 (__write): Add libc_hidden_weak.
4038 * sysdeps/standalone/read.c (__read): Likewise.
4039 (__libc_read): Add libc_hidden_def.
4040 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4041 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4042 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4043 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4044 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4045 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4046 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4047 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4048 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4049 __GI___sigaction): Add.
4050 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4051 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4052 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4053 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4054 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4055 __GI___setpgid): Add.
4056 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4057 Remove undef and INTDEF.
4058 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4059 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4060 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4061 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4062 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4063 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4064 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4065 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4066 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4067 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4068 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4069 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4070 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4071 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4072 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4073 __GI___statfs, __GI___send): Add.
4074 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4075 libc_hidden_ver resp. libc_hidden_def.
4076 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4078 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4079 Likewise. Remove undef and INTDEF.
4080 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4081 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4082 __GI___statfs, __GI___send): Add.
4083 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4085 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4087 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4088 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4089 libc_hidden_ver resp. libc_hidden_def.
4090 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4092 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4093 Add libc_hidden_weak.
4094 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4095 Add libc_hidden_def.
4096 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4097 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4099 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4100 resp. libc_hidden_def.
4101 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4103 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
4105 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4106 Likewise. Remove undef.
4107 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4109 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4110 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4112 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4114 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4115 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4116 Likewise. Remove undef and INTDEF.
4117 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4119 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4121 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4123 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4124 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4125 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4127 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4128 Add libc_hidden_def.
4129 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4130 __GI___statfs): Add.
4131 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4133 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4134 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4135 Remove undef and INTDEF.
4136 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4137 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4139 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4140 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4142 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4144 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4145 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4146 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4148 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4149 libc_hidden_def. Remove undef and INTDEF.
4150 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4151 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4153 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4154 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4155 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4156 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4157 Remove undef and INTDEF.
4158 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4159 broken visibility attribute handling.
4160 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4162 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4164 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4165 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4167 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4170 2002-06-29 Todd Fries <todd@openbsd.org>
4172 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4174 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4176 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4178 2002-07-30 Roland McGrath <roland@redhat.com>
4180 * resolv/resolv.h (_res): Define macro unconditionally.
4181 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4182 * include/resolv.h: ... here.
4183 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4184 as a __thread variable.
4185 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4186 a __thread variable instead of a global.
4187 * resolv/res_data.c [_LIBC]: Don't #undef _res.
4189 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4192 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4194 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4195 decls of memset and memcpy.
4197 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4198 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4200 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4202 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4203 (__libc_tsd_define): Define using __thread.
4205 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4206 (__rpc_thread_variables): Use __libc_tsd_get.
4207 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4208 __rpc_thread_variables, which might allocate what we're about to free.
4210 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4211 thread-local variable.
4212 * resolv/netdb.h (h_errno): Define macro unconditionally.
4213 [_LIBC] (__set_h_errno): Macro moved to ...
4214 * include/netdb.h: ... here.
4215 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4216 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4217 [! _LIBC_REENTRANT]: #undef h_errno here.
4219 * include/errno.h: Protect from multiple inclusion.
4221 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4222 before defining them, since Linux's <linux/posix_types.h> might have
4225 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4227 * malloc/malloc.c (public_cALLOc): Check for overflow on
4229 * sunrpc/xdr_array.c (xdr_array): Likewise.
4230 * sunrpc/rpc/types.h (mem_free): Add comment.
4231 Patch by Solar Designer <solar@openwall.com>.
4233 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4235 * sysdeps/unix/sysv/linux/kernel-features.h
4236 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4238 2002-08-01 Roland McGrath <roland@redhat.com>
4240 * libio/fileops.c (_IO_file_sync_mmap): New function.
4241 (_IO_file_jumps_mmap): Use it.
4242 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
4243 repeat the stat check and resize the mapped buffer as necessary.
4245 2002-07-31 Roland McGrath <roland@redhat.com>
4247 * libio/fileops.c (decide_maybe_mmap): New static function.
4248 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4249 mmap the file contents. Then switch the jump tables to the mmap
4250 tables if it worked, or the vanilla file tables if not.
4251 (_IO_file_underflow_maybe_mmap): New function.
4252 (_IO_file_seekoff_maybe_mmap): New function.
4253 (_IO_file_xsgetn_maybe_mmap): New function.
4254 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4255 * libio/libioP.h: Declare those.
4256 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4257 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4258 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4259 If the stream is read-only, set its jump tables to those new ones.
4260 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4261 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4262 We need the tables set before _IO_file_attach.
4264 * libio/tst-mmap-eofsync.c: New file.
4265 * libio/tst-mmap-fflushsync.c: New file.
4266 * libio/bug-mmap-fflush.c: New file.
4267 * libio/tst-mmap2-eofsync.c: New file.
4268 * libio/Makefile (tests): Add them.
4270 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4271 _IO_file_underflow_mmap fails, it already set the appropriate bit.
4273 2002-07-31 Jeff Bailey <jbailey@gnu.org>
4275 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4276 Declarations moved to <bits/sys_errlist.h>. Include that file.
4277 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4278 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
4279 declare sys_errlist and sys_nerr.
4280 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
4281 provide declarations.
4283 2002-07-31 Roland McGrath <roland@redhat.com>
4285 * elf/rtld.c (dl_main): Fix typo in error message.
4287 2002-07-31 Roland McGrath <roland@frob.com>
4289 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4290 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
4291 sysdeps/mach/hurd/dl-sysdep.c change.
4293 2002-07-28 Ulrich Drepper <drepper@redhat.com>
4295 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4296 -r`/build/include for kernel headers.
4298 * po/fi.po: New file.
4300 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
4302 * configure.in (static_nss): Set to `yes' if --disable-shared.
4304 2002-07-23 Bruno Haible <bruno@clisp.org>
4306 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4309 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4311 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4312 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4315 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4317 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4320 2002-07-21 Bruno Haible <bruno@clisp.org>
4322 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4323 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4324 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4325 trans_sysdep_tab_offset.
4326 (struct sysdep_segment): New type.
4327 (struct sysdep_string): New type.
4328 (SEGMENTS_END): New macro.
4329 * intl/gettextP.h (struct sysdep_string_desc): New type.
4330 (struct loaded_domain): New fields malloced, n_sysdep_strings,
4331 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4332 orig_tab, trans_tab, hash_tab to const pointers because they point
4333 into read-only memory.
4334 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4335 (PRI*): Define fallback values.
4336 (get_sysdep_segment_value): New function.
4337 (_nl_load_domain): Distinguish major and minor revision parts. Add
4338 support for minor revision 1 with system dependent strings.
4339 (_nl_unload_domain): Also free the 'malloced' field.
4340 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4341 now done in loadmsgcat.c. Add support for system dependent strings.
4343 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4345 * posix/bug-regex7.c: New file.
4346 * posix/bug-regex8.c: New file.
4347 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4349 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4351 * posix/bug-regex4.c (main): Fix typos.
4352 * posix/bug-regex6.c (main): Likewise.
4354 2002-07-27 Ulrich Drepper <drepper@redhat.com>
4356 * posix/bug-regex6.c (main): Fix warnings.
4358 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4360 * iconv/iconv_prog.c (main): Improve error message for the cases
4361 where -t and/or -f parameter are missing.
4363 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
4365 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4366 (re_search): Likewise.
4367 (re_match_2): Likewise.
4368 (re_search_2): Likewise.
4369 (re_search_stub): New function.
4370 (re_search_2_stub): New function.
4371 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4373 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
4375 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4376 (re_string_eoi): Use STOP instead of LEN.
4377 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4378 (re_string_construct): Likewise.
4379 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4380 * posix/regexec.c (re_search_internal): Add a new argument STOP
4381 so that it can handle the argument STOP of re_search_2 and re_match_2
4383 (regexec): Adapt to new I/F of re_search_internal.
4384 (re_search_stub): Likewise.
4386 2002-07-25 Ulrich Drepper <drepper@redhat.com>
4388 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4390 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4392 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4393 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4396 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4397 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4398 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4399 alias for adjtimex syscall.
4401 * elf/dl-minimal.c: Define __assert_fail_internal.
4402 * assert/assert.c: Likewise.
4403 * include/assert.h: Define __assert_file macro if !SHARED and not
4406 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4408 * locale/Makefile: Likewise.
4409 * nscd/Makefile: Likewise.
4410 * catgets/Makefile: Likewise.
4412 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4414 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4415 compute current position.
4417 * stdio-common/tst-fseek.c (main): Improve error messages.
4419 * libio/tst-freopen.c (main): Remove unused variable.
4421 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4422 succesful seek call. Simplify error checking.
4424 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4426 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4427 * sysdeps/ia64/fpu/libm_support.h: Likewise.
4429 2002-07-19 Roland McGrath <roland@frob.com>
4431 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4432 __libc_enable_secure is set.
4434 2002-07-24 Roland McGrath <roland@frob.com>
4436 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4437 This implementation supports only IPv4.
4438 * inet/ifaddrs.h: New file.
4439 * sysdeps/generic/ifaddrs.c: New file.
4440 * sysdeps/gnu/ifaddrs.c: New file.
4441 * inet/test-ifaddrs.c: New file.
4442 * inet/Makefile (routines): Add ifaddrs.
4443 (headers): Add ifaddrs.h here.
4444 (tests): Add test-ifaddrs.
4445 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4447 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4448 socket call to get an AF_INET socket, instead of using __opensock.
4449 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4451 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4452 if not -1 use it instead of calling __opensock.
4453 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4454 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4455 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4457 * sysdeps/mach/hurd/ifreq.h: New file.
4458 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4459 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4460 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4462 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4463 which gets moved around. Calculate size of mmap'd buffer instead.
4465 2002-07-24 Philip Blundell <philb@gnu.org>
4467 * sysdeps/unix/arm/brk.S: Improve schedule.
4468 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4469 efficient instruction.
4470 (__socket): Optimize return sequence.
4472 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4474 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4475 sockets on old kernels.
4477 2002-07-22 Philip Blundell <philb@gnu.org>
4479 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4480 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
4483 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4485 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4486 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4488 * locale/programs/locarchive.c (add_locale_to_archive): Correct
4489 test to detect duplicate locales.
4491 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4492 position would be before beginning of file.
4493 (_IO_file_seekoff_mmap): Likewise.
4494 * libio/Makefile (tests): Add bug-fseek.
4495 * libio/bug-fseek.c: New file.
4497 * intl/explodename.c: Remove support for CEN-style locale variables.
4498 It was never used and shouldn't be since it's not portable.
4499 * intl/finddomain.c: Likewise.
4500 * intl/l10nflist.c: Likewise.
4501 * intl/loadinfo.h: Likewise.
4502 * locale/findlocale.c: Likewise.
4504 2002-07-24 Roland McGrath <roland@frob.com>
4506 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4507 position, calculate it to take into account an active pushback buffer.
4509 * libio/Makefile (tests): Add bug-ungetc.
4510 * libio/bug-ungetc.c: New file.
4512 2002-07-23 Ulrich Drepper <drepper@redhat.com>
4514 * sysdeps/generic/libc-tls.c: New file.
4515 * csu/Makefile (routines): Add libc-tls.
4516 (static-only-routines): Add libc-tls.
4517 * elf/dl-support.c (_dl_phdr): New variable.
4518 (_dl_phnum): New variable.
4519 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4520 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4521 for !SHARED. First look through auxiliary vector. If TLS always
4522 call __pthread_initialize_minimal.
4524 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4525 in mmap call is never zero.
4527 2002-07-23 Andreas Jaeger <aj@suse.de>
4529 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4530 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4532 2002-07-22 Ulrich Drepper <drepper@redhat.com>
4534 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4535 creation and removal of the temp file.
4537 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
4539 * test-skeleton.c (create_temp_file): New function.
4541 2002-07-22 Andreas Jaeger <aj@suse.de>
4543 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4546 2002-07-21 Roland McGrath <roland@frob.com>
4548 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4549 put -I../include before -I../stdlib so we get the right errno.h et al.
4550 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4551 (CFLAGS-wcstof.c): Likewise.
4552 (CFLAGS-wcstold.c): Likewise.
4553 (CFLAGS-wcstod_l.c): Likewise.
4554 (CFLAGS-wcstof_l.c): Likewise.
4555 (CFLAGS-wcstold_l.c): Likewise.
4557 2002-07-19 Roland McGrath <roland@frob.com>
4559 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4561 2002-07-20 Ulrich Drepper <drepper@redhat.com>
4563 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4564 __ASSUME_AT_XID is defined.
4565 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4567 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4568 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4570 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4571 (CFLAGS-wcstof.c): Likewise.
4572 (CFLAGS-wcstold.c): Likewise.
4573 (CFLAGS-wcstod_l.c): Likewise.
4574 (CFLAGS-wcstof_l.c): Likewise.
4575 (CFLAGS-wcstold_l.c): Likewise.
4577 2002-07-18 Jakub Jelinek <jakub@redhat.com>
4579 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4580 __priority_which_t): Always typedef to int for C++.
4582 2002-07-19 Ulrich Drepper <drepper@redhat.com>
4584 * configure.in: Add test for __thread support in compiler.
4585 * config.h.in: Add HAVE___THREAD.
4586 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4587 * include/sys/errno.h: Moved to...
4588 * stdlib/sys/errno.h: ...here. New file.
4589 * stdlib/errno.h: New file. Moved from...
4590 * include/errno.h: ...here. Changed into an internal header defining
4591 libc-local things like __set_errno.
4592 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4594 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
4595 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
4597 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4599 (_dl_start_final): ...here. Add code to initialize tls elements from
4601 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4602 if USE_TLS && HAVE___THREAD.
4603 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4604 * sysdeps/mach/hurd/bits/errno.h: Likewise.
4605 * sysdeps/standalone/arm/bits/errno.h: Likewise.
4606 * sysdeps/standalone/bits/errno.h: Likewise.
4607 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4608 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4609 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4610 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4611 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4612 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4613 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4614 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4615 use GL(dl_rtld_map), use map parameter.
4616 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4617 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4618 USE_TLS && HAVE___THREAD.
4619 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4620 definitions. If USE_TLS && HAVE___THREAD store errooor value using
4622 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4624 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4625 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4626 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4627 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4628 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4629 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4631 2002-07-17 Ulrich Drepper <drepper@redhat.com>
4633 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4634 MS_INVALIDATE values.
4636 2002-07-17 Andreas Schwab <schwab@suse.de>
4637 Ulrich Drepper <drepper@redhat.com>
4639 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4640 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4641 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4642 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4644 2002-07-01 H.J. Lu <hjl@gnu.org>
4646 * elf/circleload1.c (load_dso): Call "circlemod1" and check
4649 * elf/circlemod1.c (circlemod1): Return int.
4650 * elf/circlemod2.c (circlemod2): Likewise.
4651 * elf/circlemod2a.c (circlemod2): Likewise.
4652 * elf/circlemod3.c (circlemod3): Likewise.
4653 (circlemod3a): A new function.
4655 2002-07-16 Ulrich Drepper <drepper@redhat.com>
4657 * catgets/tst-catgets.c (main): Don't expect results for
4658 untranslated messages.
4660 * glibcbug.in: Fix little typo. Remove STDIO.
4662 * config.h.in: Fail if __FAST_MATH__ is defined.
4663 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4664 (CPPFLAGS-test-idouble.c): Likewise.
4665 (CPPFLAGS-test-ildouble.c): Likewise.
4667 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4669 * intl/tst-gettext.sh: Pass -f option to msgfmt.
4670 * intl/tst-gettext.c: Correctly handle untranslated messages in
4673 * po/de.po: Update from translation team.
4675 2002-07-02 H.J. Lu <hjl@gnu.org>
4677 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
4679 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4681 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4684 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4686 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4687 TLS fail if USE_TLS is not defined.
4689 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4690 and adjust state for seek position. [PR libc/4070]
4691 * libio/Makefile (tests): Add bug-rewind.
4692 * libio/bug-rewind.c: New file.
4694 2002-07-12 Philip Blundell <philb@gnu.org>
4696 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4697 (__backtrace): Use it.
4698 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
4700 2002-07-12 Philip Blundell <philb@gnu.org>
4702 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4703 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
4704 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4705 (elf_machine_rela): Remove unused variable.
4707 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4708 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4711 2002-07-12 Ulrich Drepper <drepper@redhat.com>
4713 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4715 2002-07-14 Andreas Jaeger <aj@suse.de>
4717 * sysdeps/x86_64/bits/link.h: Add biarch support.
4719 2002-07-13 Andreas Jaeger <aj@suse.de>
4721 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4722 Use correct indices.
4723 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4725 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4727 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4728 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4729 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4730 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4731 * sysdeps/s390/s390-32/bits/link.h: Remove.
4732 * sysdeps/s390/s390-64/bits/link.h: Remove.
4733 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4734 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4735 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4736 * sysdeps/s390/bits/wordsize.h: New file.
4737 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4739 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4740 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4741 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4742 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4743 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4744 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4745 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4746 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4747 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4748 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4749 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4750 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4752 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4753 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4754 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4755 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4756 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4757 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4758 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4760 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4761 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4763 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4764 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4765 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4767 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4768 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4769 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4770 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4771 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4772 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4773 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4774 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4776 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4777 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4778 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4780 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4781 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4783 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4785 * Versions.def (libc): Add GLIBC_2.3.
4786 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4787 * stdlib/canonicalize.c: Add compatibility version for realpath
4788 and make new code available in GLIBC_2.3.
4790 2002-07-06 Bruno Haible <bruno@clisp.org>
4792 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4794 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4796 * resolv/res_hconf.c (_res_hconf_init): Move code into new
4797 function do_init. Use __libc_once.
4798 (do_init): New function.
4800 * iconvdata/iso8859-11.h: Removed.
4801 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4802 (distribute): Remove iso8859-11.h.
4803 * iconvdata/tst-tables.sh: Add ISO-8859-11.
4805 * stdio-common/vfscanf.c (inchar): Restore errno from previous
4806 underflow operation if c == (W)EOF.
4808 2002-07-03 Jakub Jelinek <jakub@redhat.com>
4810 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4811 non-zero, adjust exponent.
4812 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4813 Remove NO_LONG_DOUBLE aliases.
4814 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4815 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4816 (__log1pl): Raise divide by zero and invalid exceptions when needed.
4817 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4819 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4820 Fix BITS_PER_MP_LIMB 32 extraction.
4821 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4822 exceptions for qNaNs.
4823 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4824 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4825 Raise exceptions when needed. Don't recurse unnecessarily.
4826 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4827 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4828 exceptions for qNaNs.
4829 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4830 to fix *quo return value sign.
4831 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4833 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4835 2002-07-01 Jakub Jelinek <jakub@redhat.com>
4837 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4838 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4841 2002-07-10 Ulrich Drepper <drepper@redhat.com>
4843 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4846 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4847 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
4849 * Versions.def (libthread_db): Add GLIBC_2.3.
4851 2002-07-09 Jakub Jelinek <jakub@redhat.com>
4853 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4854 new stream if possible.
4855 * libio/freopen64.c (freopen64): Likewise.
4856 * libio/Makefile (tests): Add tst-freopen.
4857 * libio/tst-freopen.c: New file.
4859 2002-07-03 Jakub Jelinek <jakub@redhat.com>
4861 * libio/stdio.h (obstack_printf): Add format attribute.
4862 (obstack_vprintf): Likewise.
4864 2002-07-04 Jakub Jelinek <jakub@redhat.com>
4866 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
4867 resp. 16 bytes on 32-bit resp. 64-bit platforms.
4868 (re_charset_t, re_string_t): Reorder structure members for 64-bit
4871 2002-07-04 Jakub Jelinek <jakub@redhat.com>
4873 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
4874 (init_dfa): ...here.
4876 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
4878 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
4879 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
4880 nodes in parse trees.
4881 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
4882 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
4883 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
4884 nodes which can epsilon transit.
4885 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
4886 to IS_EPSILON_NODE macro.
4887 * posix/regexec.c (update_regs): New function to update registers
4888 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
4889 (proceed_next_node): Use the entities of the nodes to determine
4890 whether the node can transit to.
4891 (set_regs): Use update_regs function to update registers.
4893 2002-07-03 Jakub Jelinek <jakub@redhat.com>
4895 * posix/bug-regex4.c (main): Remove duplicate setlocale.
4896 * posix/bug-regex6.c: New file.
4897 * posix/Makefile (tests): Add bug-regex6.
4898 (bug-regex6-ENV): Set LOCPATH.
4900 2002-07-10 Ulrich Drepper <drepper@redhat.com>
4902 * Versions.def [libpthread]: Add GLIBC_2.2.6.
4903 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
4905 2002-07-06 Bruno Haible <bruno@clisp.org>
4907 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
4909 2002-07-06 Bruno Haible <bruno@clisp.org>
4911 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
4914 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
4916 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
4918 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
4920 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
4922 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
4923 * sysdeps/generic/bits/ustat.h: Likewise.
4925 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
4927 2002-07-08 Andreas Jaeger <aj@suse.de>
4929 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
4931 2002-07-08 Andreas Jaeger <aj@suse.de>
4933 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
4935 2002-07-06 Andreas Jaeger <aj@suse.de>
4937 * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
4938 * sysdeps/x86_64/fpu/s_copysign.S: New file.
4939 * sysdeps/x86_64/fpu/s_copysignf.S: New file.
4940 * sysdeps/x86_64/fpu/s_copysignl.S: New file.
4941 * sysdeps/x86_64/fpu/s_finitel.S: New file.
4942 * sysdeps/x86_64/fpu/s_fmax.S: New file.
4943 * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
4944 * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
4945 * sysdeps/x86_64/fpu/s_fmin.S: New file.
4946 * sysdeps/x86_64/fpu/s_fminf.S: New file.
4947 * sysdeps/x86_64/fpu/s_fminl.S: New file.
4949 2002-06-05 Brian Youmans <3diff@gnu.org>
4951 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
4952 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
4953 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
4954 * sysdeps/ia64/fpu/e_asin.S: Likewise.
4955 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
4956 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
4957 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
4958 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
4959 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
4960 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
4961 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
4962 * sysdeps/ia64/fpu/e_exp.S: Likewise.
4963 * sysdeps/ia64/fpu/e_expf.S: Likewise.
4964 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
4965 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
4966 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
4967 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
4968 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
4969 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
4970 * sysdeps/ia64/fpu/e_log.S: Likewise.
4971 * sysdeps/ia64/fpu/e_logf.S: Likewise.
4972 * sysdeps/ia64/fpu/e_pow.S: Likewise.
4973 * sysdeps/ia64/fpu/e_powf.S: Likewise.
4974 * sysdeps/ia64/fpu/e_powl.S: Likewise.
4975 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
4976 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
4977 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
4978 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
4979 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
4980 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
4981 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
4982 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
4983 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
4984 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
4985 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
4986 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
4987 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
4988 * sysdeps/ia64/fpu/libm_error.c: Likewise.
4989 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
4990 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
4991 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
4992 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
4993 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
4994 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
4995 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
4996 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
4997 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
4998 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
4999 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5000 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5001 * sysdeps/ia64/fpu/s_logb.S: Likewise.
5002 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5003 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5004 * sysdeps/ia64/fpu/s_modf.S: Likewise.
5005 * sysdeps/ia64/fpu/s_modff.S: Likewise.
5006 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5007 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5008 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5009 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5010 * sysdeps/ia64/fpu/s_rint.S: Likewise.
5011 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5012 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5013 * sysdeps/ia64/fpu/s_round.S: Likewise.
5014 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5015 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5016 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5017 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5018 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5019 * sysdeps/ia64/fpu/s_significand.S: Likewise.
5020 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5021 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5022 * sysdeps/ia64/fpu/s_tan.S: Likewise.
5023 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5024 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5025 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5026 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5027 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5028 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5029 reflect IBM donation of math library to FSF
5030 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5031 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5032 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5033 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5034 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5035 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5036 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5037 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5038 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5039 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5040 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5041 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5042 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5043 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5044 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5045 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5046 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5047 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5048 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5049 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5050 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5051 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5052 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5053 * sysdeps/vax/__longjmp.c: Likewise.
5054 * sysdeps/vax/setjmp.c: Likewise.
5055 * libio/filedoalloc.c: Fixed BSD copying permission notice to
5056 remove advertising clause
5057 * sysdeps/vax/htonl.s: Likewise.
5058 * sysdeps/vax/htons.s: Likewise.
5059 * libio/wfiledoalloc.c: Likewise.
5060 * stdlib/random.c: Likewise.
5061 * stdlib/random_r.c: Likewise.
5062 * sysdeps/mach/sys/reboot.h: Likewise.
5063 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5064 * sysdeps/posix/getaddrinfo.c: Likewise.
5065 * sunrpc/des_impl.c: Updated license permission notice to Lesser
5066 GPL and corrected pointer to point to the correct license.
5068 2002-07-04 Andreas Jaeger <aj@suse.de>
5070 * scripts/config.guess: New upstream version.
5071 * scripts/config.sub: Likewise.
5073 2002-07-02 Andreas Schwab <schwab@suse.de>
5075 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5076 in parallel to bumping up the buffer pointer.
5078 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5080 * math/libm-test.inc (acos_test): Add missing L suffix for
5082 (cpow_test): Likewise.
5083 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5084 error for acos (0.0625).
5086 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5088 * locale/iso-639.def: Add entry for Ganda.
5089 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5091 (address_finish): Handle entries with two letter ISO 639 code.
5093 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5094 directory if it existed before.
5095 * iconv/iconvconfig.c: Implement --prefix option.
5097 * math/libm-test.inc (cexp_test): Add missing L suffix for
5098 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
5099 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5102 2002-05-29 H.J. Lu <hjl@gnu.org>
5104 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5107 2002-05-28 H.J. Lu <hjl@gnu.org>
5109 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5110 are not dlopened on the dependency list of a dlopened object.
5112 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5114 * elf/dl-lookup.c (add_dependency): It is not necessary to add
5115 dependencies if they are created between objects which are created
5116 while processing RTLD_NOW for objects loaded as part of the same
5119 2002-06-14 H.J. Lu <hjl@gnu.org>
5121 * elf/Makefile (tests): Add circleload1.
5122 (modules-names): Add circlemod1, circlemod2, circlemod3,
5123 circlemod1a, circlemod2a and circlemod3a.
5124 ($(objpfx)circleload1): New target.
5125 ($(objpfx)circleload1.out): Likewise.
5126 ($(objpfx)circlemod1.so): Likewise.
5127 ($(objpfx)circlemod2.so): Likewise.
5128 ($(objpfx)circlemod1a.so): Likewise.
5129 ($(objpfx)circlemod2a.so): Likewise.
5130 * elf/circleload1.c: New file.
5131 * elf/circlemod1.c: New file.
5132 * elf/circlemod1a.c: New file.
5133 * elf/circlemod2.c: New file.
5134 * elf/circlemod2a.c: New file.
5135 * elf/circlemod3.c: New file.
5136 * elf/circlemod3a.c: New file.
5138 2002-06-18 Amos Waterland <apw@us.ibm.com>
5140 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5142 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5143 add check for fd not open for writing.
5145 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5146 completed element(s) and do not suspend thread if so. Patch
5147 heavily modified by drepper.
5149 * rt/tst-aio7.c: New file. Regression test for problems which the
5150 above three changes fix.
5151 * rt/Makefile (tests): Add tst-aio7.
5153 2002-06-29 Ulrich Drepper <drepper@redhat.com>
5155 * rt/tst-aio6.c: Fix comment.
5157 * catgets/gencat.c (read_input_file): Handle more than one slash
5158 at end of line correctly [PR libc/3926].
5159 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5161 * catgets/sample.SJIS: Add test case for above bug.
5162 * catgets/test-gencat.c: Adjust test code.
5163 * catgets/test-gencat.sh: Adjust expected results.
5165 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5166 to skip relative relocations.
5167 Patch by Geoff Keating <geoffk@redhat.com>.
5169 2002-05-26 Bruno Haible <bruno@clisp.org>
5171 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5172 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5173 All callers changed.
5174 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5175 STANDARD_FROM_LOOP_ERR_HANDLER.
5176 (utf8_internal_loop): Likewise.
5177 (ucs2_internal_loop): Likewise.
5178 (internal_ucs2_loop): Perform error handling like in
5179 STANDARD_FROM_LOOP_ERR_HANDLER.
5180 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5181 in STANDARD_FROM_LOOP_ERR_HANDLER.
5182 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5184 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5185 in STANDARD_FROM_LOOP_ERR_HANDLER.
5186 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5188 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5189 in STANDARD_FROM_LOOP_ERR_HANDLER.
5190 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5192 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5193 STANDARD_FROM_LOOP_ERR_HANDLER.
5194 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5195 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5196 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5197 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5198 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5199 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5200 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5201 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5202 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5203 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5204 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5205 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5206 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5207 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5208 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5209 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5210 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5211 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5212 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5213 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5214 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5215 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5216 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5217 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5218 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5219 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5220 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5221 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5222 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
5223 an error, still set result = __GCONV_ILLEGAL_INPUT.
5224 (BODY for TO_LOOP): Likewise.
5225 * iconvdata/ibm930.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/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5229 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5231 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5232 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5233 STANDARD_FROM_LOOP_ERR_HANDLER.
5234 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5235 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5236 STANDARD_FROM_LOOP_ERR_HANDLER.
5237 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5238 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5239 STANDARD_FROM_LOOP_ERR_HANDLER.
5240 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5241 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5242 STANDARD_FROM_LOOP_ERR_HANDLER.
5243 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5244 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5245 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5247 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5248 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5249 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5250 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5252 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5254 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5255 labels in assembler instructions.
5257 2002-06-25 Ulrich Drepper <drepper@redhat.com>
5259 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5260 not enough content is available.
5261 * libio/tst-eof.c: New file.
5262 * libio/Makefile (tests): Add tst-eof.
5264 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5266 * libio/tst-atime.c: New file.
5267 * libio/Makefile (tests): Add tst-atime.
5269 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5270 handling of overly long words.
5272 2002-06-25 Andreas Jaeger <aj@suse.de>
5274 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5275 to not use 32-bit pc relative relocations.
5276 (elf_machine_dynamic): Likewise.
5278 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5280 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5281 (__GETDENTS): Check for failed getdents64 syscall.
5282 * dirent/Makefile (tests): Add bug-readdir1.
5283 * dirent/bug-readdir1.c: New file.
5285 2002-06-17 Jakub Jelinek <jakub@redhat.com>
5287 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5289 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5290 code. Print TLS modid and offset for modules containing PT_TLS
5293 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5295 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5296 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5297 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5298 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5300 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5302 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5303 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5304 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5305 * nss/getXXent_r.c (NEW, NEW1): Define.
5306 (NEW (REENTRANT_GETNAME)): Strong alias to
5307 INTERNAL (REENTRANT_GETNAME).
5308 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5310 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5312 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5313 (_IO_file_jumps_mmap): Use it.
5314 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5315 * libio/libioP.h: Remove _IO_wdefault_setbuf and
5316 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
5318 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5319 (_IO_wfile_jumps_mmap): Don't use it anymore.
5320 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5321 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5322 _IO_wdefault_setbuf.
5323 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5324 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5325 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5327 2002-06-05 Jakub Jelinek <jakub@redhat.com>
5329 * libio/Makefile (tests): Add tst-mmap-setvbuf.
5330 * libio/tst-mmap-setvbuf.c: New test.
5332 2002-06-21 Andreas Jaeger <aj@suse.de>
5334 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5336 2002-06-18 Jakub Jelinek <jakub@redhat.com>
5338 * include/unistd.h (__fork_internal): Remove.
5339 (__fork): Don't define to __fork_internal.
5340 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5341 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5342 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5343 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5344 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5346 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5348 * po/hr.po: New file.
5350 2002-06-11 Wolfram Gloger <wg@malloc.de>
5352 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5353 Reported by Michael Meissner <meissner@redhat.com>.
5355 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5357 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5358 Patch by Hans Boehm <hans_boehm@hp.com>.
5360 2002-06-20 Andreas Jaeger <aj@suse.de>
5362 * math/libm-test.inc: Use exact values as input parameters,
5363 compute output parameters with 36 digits for 128-bit long doubles.
5364 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5365 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5366 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5368 2002-06-13 Stephen L Moshier <steve@moshier.net>
5370 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5371 argument or result is subnormal.
5373 2002-06-19 Ulrich Drepper <drepper@redhat.com>
5375 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5377 * sysdeps/i386/fpu/s_remquof.S: Likewise.
5378 * sysdeps/i386/fpu/s_remquol.S: Likewise.
5380 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5382 2002-06-17 David Mosberger <davidm@hpl.hp.com>
5384 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5385 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5386 Reported by Peter A. Buhr.
5388 2002-06-15 Roland McGrath <roland@frob.com>
5390 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5393 * sysdeps/mach/hurd/getcwd.c
5394 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5396 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5397 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5399 * sysdeps/alpha/divrem.h: Use local label instead of global one for
5400 jump to local subroutine.
5402 2002-06-14 Roland McGrath <roland@frob.com>
5404 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5405 * sysdeps/mach/hurd/Makeconfig: ... here.
5407 2002-06-13 Andreas Schwab <schwab@suse.de>
5409 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5410 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5411 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5413 2002-06-13 Roland McGrath <roland@frob.com>
5415 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5416 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5417 Use intptr_t instead of int for argc in stack layout.
5418 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5419 (_dl_init_first): Likewise.
5420 (_hurd_stack_setup): Likewise.
5421 (init1): Add a cast.
5422 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5424 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5425 argument to pfinet_siocgifconf RPC.
5427 2002-06-13 Andreas Schwab <schwab@suse.de>
5429 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5432 2002-06-12 Roland McGrath <roland@frob.com>
5434 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5436 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5437 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5439 2002-06-11 Roland McGrath <roland@frob.com>
5441 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5442 file on [!RTLD_STAT64].
5443 * sysdeps/mach/hurd/fxstat64.c: Likewise.
5445 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5446 (__fdopen): Use INTUSE.
5447 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5449 * stdio-common/tmpfile64.c: File removed.
5450 * sysdeps/generic/tmpfile64.c: New file.
5451 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5452 if not already defined.
5453 (tmpfile): Use it in place of __GT_FILE.
5455 * include/unistd.h: Declare __chown_internal.
5457 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5458 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5460 2002-06-09 Roland McGrath <roland@frob.com>
5462 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5463 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5464 value of HURD_INTERFACE_VERSION >= 20020609.
5465 * sysdeps/mach/hurd/configure: Regenerated.
5466 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5467 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5468 convert a struct stat64 into a struct stat and return 0 or -1
5469 with errno set to EOVERFLOW.
5470 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5471 for struct statfs64 to struct statfs.
5472 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5473 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5474 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5475 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5476 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5477 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5478 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5479 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5480 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5481 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5482 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5483 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5484 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5485 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5486 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5487 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5488 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5489 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5490 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5491 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5492 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5493 Use struct stat64 for io_stat argument.
5494 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5495 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5497 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5498 * hurd/fd-write.c (_hurd_fd_write): Likewise.
5499 * hurd/hurd/fd.h: Update decls.
5500 * sysdeps/mach/hurd/getcwd.c
5501 (_hurd_canonicalize_directory_name_internal): Use ino64_t
5502 and struct dirent64.
5503 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5504 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5505 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5506 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5508 2002-06-08 Roland McGrath <roland@frob.com>
5510 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5511 instead of unsigned long int for __allocation and __size members.
5513 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5515 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5516 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5517 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5518 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5520 2002-06-07 Roland McGrath <roland@frob.com>
5522 * sysdeps/mach/hurd/bits/environments.h: File removed.
5524 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5526 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5527 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5528 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5529 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5530 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5531 (sendfile64): Likewise.
5532 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5533 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5534 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5536 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5538 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5541 2002-06-04 Bruno Haible <bruno@clisp.org>
5543 * sysdeps/cris/stackinfo.h: New file.
5545 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5546 to an integer type before performing bit operations on it.
5548 2002-06-05 Roland McGrath <roland@frob.com>
5550 * sysdeps/generic/sendfile.c: Include <errno.h>.
5551 * sysdeps/generic/sendfile64.c: Likewise.
5553 * io/Makefile (routines): Add sendfile and sendfile64.
5554 (headers): Add sys/sendfile.h to the list.
5555 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5556 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5557 * io/sys/sendfile.h: ... here.
5558 * sysdeps/generic/sendfile.c: New file.
5559 * sysdeps/generic/sendfile64.c: New file.
5561 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5562 Move sendfile, sendfile64 to ...
5563 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5564 * sysdeps/mach/hurd/sendfile.c: New file.
5565 * sysdeps/mach/hurd/sendfile64.c: New file.
5567 * sysdeps/mach/nanosleep.c: New file.
5569 2002-06-04 Roland McGrath <roland@frob.com>
5571 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
5572 * sysdeps/alpha/elf/configure: New file (generated).
5574 2002-06-02 Roland McGrath <roland@frob.com>
5576 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5578 2002-06-01 Roland McGrath <roland@frob.com>
5580 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5581 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5583 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5585 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5587 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5588 Remove nstimes setting.
5589 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5590 * resolv/res_send.c (res_nsend): Don't close unconditionally if
5591 there is mix of IPv6 and IPv4 nameservers.
5592 Use nsmap array to find free slots and preserve nameserver ordering.
5595 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5597 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5598 use this header with LFS.
5600 * po/sk.po: Update from translation team.
5602 2002-05-28 Andreas Schwab <schwab@suse.de>
5604 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5605 message when finding object of wrong class.
5607 2002-05-28 Jakub Jelinek <jakub@redhat.com>
5609 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5610 Patch by <radu@netsoft.ro>.
5612 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5614 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5616 * sysdeps/unix/sysv/linux/readahead.c: New file.
5617 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5618 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5619 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5620 Add sendfile64 alias to sendfile syscall.
5621 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5622 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5623 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5624 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5627 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5628 special section for PIC register loading.
5629 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5631 * config.h.in: Define HAVE_HIDDEN.
5632 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5634 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5636 2002-05-28 Roland McGrath <roland@frob.com>
5638 * sysdeps/mach/alpha/setfpucw.c: New file.
5640 2002-05-26 Roland McGrath <roland@frob.com>
5642 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5643 Use integer_t instead of int for IOC_VOID case.
5645 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
5647 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5649 2002-05-26 Bruno Haible <bruno@clisp.org>
5651 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5652 end of the ISO-8859-7 from idx table.
5654 2002-05-27 Ulrich Drepper <drepper@redhat.com>
5656 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5658 2002-05-24 David S. Miller <davem@redhat.com>
5660 * string/bits/string2.h (memset): Do not try to optimize when
5661 not _STRING_ARCH_unaligned if GCC will do the right thing.
5663 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
5665 * posix/regex.c: Define `inline' as a macro into nothing for the
5666 compilers which lack the keyword.
5667 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5668 for the compatibility of gawk.
5669 * posix/regcomp.c: Add fake implementation of isblank() for the
5670 environments which lack the function.
5671 Don't use free_charset() in case of non-i18n envs.
5672 (build_range_exp): Don't use i18n related code in case of non-i18n
5674 (build_collating_symbol): Likewise.
5675 (build_equiv_class): Likewise.
5676 (build_charclass): Likewise.
5677 (re_compile_fastmap_iter): Likewise.
5678 (parse_bracket_exp): Likewise.
5679 (build_word_op): Likewise.
5680 (regfree): Don't use free_charset() in case of non-i18n envs.
5681 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5682 re_token_type_t in case of non-i18n envs.
5683 Don't define re_charset_t in case of non-i18n envs.
5684 Change the type of wcs of re_string_t from wchar_t to wint_t,
5685 since we store also WEOF.
5686 * posix/regex_internal.c: (re_string_realloc_buffers): Change
5687 the type of wcs of re_string_t from wchar_t to wint_t.
5688 (re_string_reconstruct): Likewise.
5689 (create_ci_newstate): Don't use i18n related code in case of
5691 (create_cd_newstate): Likewise.
5693 2002-05-24 Ulrich Drepper <drepper@redhat.com>
5695 * iconv/loop.c: Fix typo.
5697 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5699 * inet/ether_line.c (ether_line): Fix a typo causing only
5700 lower 4 bits of each ethernet address byte being assigned.
5701 Don't modify what line points to.
5702 * inet/tst-ether_aton.c (main): Add ether_line tests.
5704 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
5706 * manual/filesys.texi: Don't make readlink example leak memory
5707 when readlink fails.
5709 2002-05-20 Ulrich Drepper <drepper@redhat.com>
5711 * iconv/loop.c: Fix condition for defining unaligned loop. Add
5712 some more security checks.
5714 2002-05-17 David S. Miller <davem@redhat.com>
5716 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5718 2002-05-16 David S. Miller <davem@redhat.com>
5720 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5721 (elf_machine_dynamic): Use it to force PIC register to be loaded.
5722 (elf_machine_load_address): Likewise.
5723 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5725 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5726 is unaligned, do not forget to fully initialize %g1 magic value.
5728 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5729 register definitions and provide 32-bit variants of structures
5730 during 64-bit builds.
5732 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5733 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5734 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5735 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5736 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5737 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5738 Do not clear implicit one bit here, it must be done post-rounding.
5739 Only pad to the left using left shift if value uses less than the
5740 available fractional bits.
5742 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5744 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5745 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5746 (shared-only-routines): Likewise.
5747 * sysdeps/powerpc/libgcc-compat.c: New file.
5748 * sysdeps/wordsize-32/cmpdi2.c: Removed.
5749 * sysdeps/wordsize-32/fixdfdi.c: Removed.
5750 * sysdeps/wordsize-32/fixsfdi.c: Removed.
5751 * sysdeps/wordsize-32/shdi3.c: Removed.
5753 2002-05-16 Bruno Haible <bruno@clisp.org>
5755 * MakeTAGS (libc.pot): Don't sort the output.
5756 * po/header.pot: Update to match xgettext 0.11 output.
5758 2002-05-16 Bruno Haible <bruno@clisp.org>
5760 * MakeTAGS (subdirs): Remove duplicates.
5762 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5764 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5765 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
5768 2002-05-19 Andreas Jaeger <aj@suse.de>
5770 * sysdeps/unix/sysv/linux/configure.in: Warn against an
5771 installation in /usr/local.
5773 2002-05-16 Bruno Haible <bruno@clisp.org>
5775 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5776 string as argument of #error.
5778 2002-05-15 Ulrich Drepper <drepper@redhat.com>
5780 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5781 don't define static. Remove old __realpath function. TC1 of
5782 POSIX 2001 will allow the second parameter to be NULL.
5783 * stdlib/test-canon.c: Comment out test for NULL as second
5784 parameter of realpath.
5786 * time/offtime.c (__offtime): Set errno if overflow is detected.
5788 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5789 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5792 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5795 2002-05-15 Roland McGrath <roland@frob.com>
5797 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5799 2002-05-12 Bruno Haible <bruno@clisp.org>
5801 * iconvdata/testdata/EUC-JISX0213: New file.
5802 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5803 * iconvdata/testdata/SHIFT_JISX0213: New file.
5804 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5805 * iconvdata/testdata/ISO-2022-JP-3: New file.
5806 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5807 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5808 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5809 contains comments indicating precomposed characters.
5811 2002-04-21 Bruno Haible <bruno@clisp.org>
5813 * iconvdata/iso-2022-jp-3.c: New file.
5814 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5815 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5816 (LDFLAGS-ISO-2022-JP-3.so): New variable.
5817 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5818 (distribute): Add iso-2022-jp-3.c.
5820 2002-05-12 Bruno Haible <bruno@clisp.org>
5822 * iconvdata/tst-table-to.c (main): Restore handling of
5823 transliterations, broken by last patch.
5825 2002-05-12 Bruno Haible <bruno@clisp.org>
5827 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5829 2002-05-12 Bruno Haible <bruno@clisp.org>
5831 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5832 when there is not enough room in the output buffer.
5833 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5835 2002-04-20 Bruno Haible <bruno@clisp.org>
5837 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5839 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5840 Also make this macro work if FROM_DIRECTION evaluates to 0.
5841 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5842 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5843 of consume_incomplete.
5844 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5845 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5847 * iconvdata/cp1258.c: Likewise.
5848 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5849 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5851 * iconvdata/ibm933.c: Likewise.
5852 * iconvdata/ibm935.c: Likewise.
5853 * iconvdata/ibm937.c: Likewise.
5854 * iconvdata/ibm939.c: Likewise.
5855 * iconvdata/iso-2022-cn.c: Define
5856 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5857 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5858 * iconvdata/iso-2022-cn-ext.c: Likewise.
5859 * iconvdata/iso-2022-jp.c: Define
5860 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5861 {MIN,MAX}_NEEDED_{FROM,TO}.
5862 * iconvdata/tcvn5712-1.c: Define
5863 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5864 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
5865 * iconvdata/euc-jisx0213.c: Define
5866 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5867 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
5868 * iconvdata/shift_jisx0213.c: Likewise.
5870 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5872 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
5873 shdi3, fixdfdi, fixsfdi in csu dir.
5874 (shared-only-routines): Likewise.
5875 * sysdeps/wordsize-32/cmpdi2.c: New file.
5876 * sysdeps/wordsize-32/shdi3.c: New file.
5877 * sysdeps/wordsize-32/fixdfdi.c: New file.
5878 * sysdeps/wordsize-32/fixsfdi.c: New file.
5879 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
5880 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
5881 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
5883 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
5884 Only use va_arg if the argument will be used [PR libc/3259].
5886 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
5888 * catgets/catgets.c (catopen): Free buffer if internal catalog
5891 2002-05-14 Ulrich Drepper <drepper@redhat.com>
5893 * debug/xtrace.sh: Make more robust. For realtime tracking use
5894 non-buffering methods.
5895 * debug/pcprofiledump.c: Implement -u option.
5896 Patch by Roger Luethi <rl@hellgate.ch>.
5898 2002-05-11 Jakub Jelinek <jakub@redhat.com>
5900 * include/netinet/in.h (bindresvport_internal): Add prototype.
5901 * include/rpc/auth.h (authunix_create_internal,
5902 authunix_create_default_internal, authnone_create_internal,
5903 authdes_pk_create_internal): Add prototypes.
5904 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
5905 clntudp_create_internal, clntudp_bufcreate_internal,
5906 clntunix_create_internal): Add prototypes.
5907 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
5908 svc_getreq_internal, svc_getreq_common_internal,
5909 svc_getreqset_internal, svc_getreq_poll_internal,
5910 svc_register_internal, svc_unregister_internal,
5911 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
5912 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
5913 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
5914 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
5915 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
5916 * inet/rcmd.c (rcmd_af): Use __listen.
5917 (rresvport_af): Use __bind.
5918 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
5919 authunix_create, authunix_create_default, authnone_create,
5920 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
5921 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
5922 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
5923 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
5924 _authenticate, add INTDEF after such function definitions.
5925 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
5926 __setsockopt, __getsockname instead of non-__ variants.
5927 * sunrpc/pmap_rmt.c: Likewise.
5928 * sunrpc/rtime.c: Likewise.
5929 * sunrpc/svc_udp.c: Likewise.
5930 * sunrpc/clnt_unix.c: Likewise.
5931 * sunrpc/svc_unix.c: Likewise.
5932 * sunrpc/bindrsvprt.c: Likewise.
5933 * sunrpc/svc_tcp.c: Likewise.
5934 * sunrpc/auth_none.c: Likewise.
5935 * sunrpc/clnt_raw.c: Likewise.
5936 * sunrpc/clnt_tcp.c: Likewise.
5937 * sunrpc/auth_unix.c: Likewise.
5938 * sunrpc/key_call.c: Likewise.
5939 * sunrpc/clnt_gen.c: Likewise.
5940 * sunrpc/pm_getmaps.c: Likewise.
5941 * sunrpc/clnt_simp.c: Likewise.
5942 * sunrpc/pmap_clnt.c: Likewise.
5943 * sunrpc/svc_run.c: Likewise.
5944 * sunrpc/svc.c: Likewise.
5945 * sunrpc/svc_simple.c: Likewise.
5946 * sunrpc/pm_getport.c: Likewise.
5947 * sunrpc/auth_des.c: Likewise.
5948 * sunrpc/svc_auth.c: Likewise.
5949 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
5950 __register_frame_info_table_bases, __deregister_frame_info_bases):
5952 (__register_frame_info_bases_internal,
5953 __register_frame_info_table_bases_internal,
5954 __deregister_frame_info_bases_internal): Add prototypes.
5955 (__register_frame_info, __register_frame): Use INTUSE in call to
5956 __register_frame_info_bases.
5957 (__register_frame_info_table): Similarly.
5958 (__deregister_frame_info, __deregister_frame): Similarly.
5959 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
5960 sendto as weak alias.
5961 * sysdeps/mach/hurd/sendto.c: Likewise.
5962 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
5963 recvfrom as weak alias.
5964 * sysdeps/mach/hurd/recvfrom.c: Likewise.
5965 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
5966 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
5967 recvmsg as weak alias.
5968 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
5969 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
5970 sendmsg as weak alias.
5971 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
5972 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
5973 setsockopt, add setsockopt as weak alias.
5974 * sysdeps/mach/hurd/setsockopt.c: Likewise.
5975 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
5977 * sysdeps/mach/hurd/bind.c: Likewise.
5978 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
5980 * sysdeps/mach/hurd/listen.c: Likewise.
5981 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
5982 getsockname, add getsockname as weak alias.
5983 * sysdeps/mach/hurd/getsockname.c: Likewise.
5984 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
5985 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
5986 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
5987 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
5988 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
5989 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
5991 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5992 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5993 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5994 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5995 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
5996 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
5997 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
5998 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
5999 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6000 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6001 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6002 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6004 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6006 * locale/programs/localedef.h (show_archive_content): Add verbose
6008 * locale/programs/localedef.c (main): Adjust caller.
6009 * locale/programs/locarchive.c (struct nameent, struct dataent): New
6011 (nameentcmp, dataentcmp): New functions.
6013 (show_archive_content): Print verbose listing with --list-archive -v.
6015 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6017 * locale/programs/locarchive.c (open_archive): Take extra argument
6018 readonly. If true open file with O_RDONLY and don't create the
6019 archive if it doesn't exist.
6021 (close_archive): Don't do anything if fd element is -1.
6022 * locale/programs/localedef.h (open_archive): Adjust prototype.
6023 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6026 * malloc/malloc.c (__posix_memalign): Correct check for size of
6027 alignment value [PR libc/3444].
6029 * include/stdio.h: Remove references to old stdio implementation.
6031 * libio/Makefile (bug-ungetwc2-ENV): Define.
6033 2002-05-13 Roland McGrath <roland@frob.com>
6035 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6037 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6039 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
6041 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6042 Allocate three, not two, more than LEN when appending '/.'.
6043 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
6044 if NAME ends with '/.' if it is shorter than 2 chars.
6046 2002-05-12 Roland McGrath <roland@frob.com>
6048 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6049 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6051 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6052 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6054 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6056 * sysdeps/ia64/Makefile: Remove extra endif.
6057 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6059 2002-05-10 Andreas Schwab <schwab@suse.de>
6061 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6063 2002-05-09 Andreas Jaeger <aj@suse.de>
6065 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6066 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6067 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6069 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6070 * sysdeps/wordsize-64/glob.c: ...here.
6071 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6072 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6073 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6075 2002-05-08 Roland McGrath <roland@frob.com>
6077 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6078 O_NOTRANS flag in "." lookup.
6080 2002-05-05 Ulrich Drepper <drepper@redhat.com>
6082 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6084 2002-05-04 Ulrich Drepper <drepper@redhat.com>
6086 * locale/duplocale.c (__duplocale): Update special members only
6087 when allocation succeeded.
6089 2002-05-03 Roland McGrath <roland@frob.com>
6091 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6092 we can only build libc.so.0.3(GLIBC_2.2.6) now.
6094 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6096 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6097 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6098 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6099 * sysdeps/ia64/ia64libgcc.S: New file.
6101 2002-05-02 Ulrich Drepper <drepper@redhat.com>
6103 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6105 * malloc/memusage.c: Distinguish anonymous mmap.
6107 2002-05-01 Roland McGrath <roland@frob.com>
6109 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6110 and use INTDEF on it.
6111 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6113 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6115 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6117 2002-05-01 Ulrich Drepper <drepper@redhat.com>
6119 * malloc/memusage.c: Add support for tracking mmap & friends.
6120 * malloc/memusage.sh: Implement -m/--mmap option.
6122 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6124 * locale/programs/locarchive.c (create_archive): Add archivefname
6125 argument, create fname from it.
6126 (enlarge_archive): Honour output_prefix.
6127 (open_archive): Likewise.
6129 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6131 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6132 too many stpcpy macros.
6134 2002-04-26 Bruno Haible <bruno@clisp.org>
6136 * locale/programs/ld-collate.c (collate_read): Cast first argument
6139 2002-04-26 Bruno Haible <bruno@clisp.org>
6141 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6142 __dcngettext_internal): New declarations.
6143 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6144 attribute declarations.
6146 2002-04-30 Roland McGrath <roland@frob.com>
6148 Removed old GNU stdio implementation; GNU libio is now the only option.
6149 * configure.in: Removed --enable-libio option and @stdio@ subst var.
6150 Define USE_IN_LIBIO unconditionally.
6151 * configure: Regenerated.
6152 * Makeconfig (stdio): Set to libio by default.
6153 * config.make.in (stdio): Variable removed.
6154 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6155 * sysdeps/unix/sysv/linux/configure: Regenerated.
6156 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6157 * sysdeps/mach/hurd/configure: Regenerated.
6158 * stdio/.cvsignore: File removed.
6159 * stdio/Makefile: File removed.
6160 * stdio/Versions: File removed.
6161 * stdio/__fbufsize.c: File removed.
6162 * stdio/__flbf.c: File removed.
6163 * stdio/__fpending.c: File removed.
6164 * stdio/__fpurge.c: File removed.
6165 * stdio/__freadable.c: File removed.
6166 * stdio/__freading.c: File removed.
6167 * stdio/__fsetlocking.c: File removed.
6168 * stdio/__fwritable.c: File removed.
6169 * stdio/__fwriting.c: File removed.
6170 * stdio/clearerr.c: File removed.
6171 * stdio/fclose.c: File removed.
6172 * stdio/fcloseall.c: File removed.
6173 * stdio/feof.c: File removed.
6174 * stdio/ferror.c: File removed.
6175 * stdio/fflush.c: File removed.
6176 * stdio/fgetc.c: File removed.
6177 * stdio/fgetpos.c: File removed.
6178 * stdio/fgets.c: File removed.
6179 * stdio/fileno.c: File removed.
6180 * stdio/fmemopen.c: File removed.
6181 * stdio/fopen.c: File removed.
6182 * stdio/fopncook.c: File removed.
6183 * stdio/fputc.c: File removed.
6184 * stdio/fputs.c: File removed.
6185 * stdio/fread.c: File removed.
6186 * stdio/freopen.c: File removed.
6187 * stdio/fseek.c: File removed.
6188 * stdio/fsetpos.c: File removed.
6189 * stdio/ftell.c: File removed.
6190 * stdio/fwrite.c: File removed.
6191 * stdio/getc.c: File removed.
6192 * stdio/getchar.c: File removed.
6193 * stdio/getdelim.c: File removed.
6194 * stdio/gets.c: File removed.
6195 * stdio/glue.c: File removed.
6196 * stdio/internals.c: File removed.
6197 * stdio/linewrap.c: File removed.
6198 * stdio/linewrap.h: File removed.
6199 * stdio/memstream.c: File removed.
6200 * stdio/newstream.c: File removed.
6201 * stdio/obstream.c: File removed.
6202 * stdio/putc.c: File removed.
6203 * stdio/putchar.c: File removed.
6204 * stdio/puts.c: File removed.
6205 * stdio/rewind.c: File removed.
6206 * stdio/setbuf.c: File removed.
6207 * stdio/setbuffer.c: File removed.
6208 * stdio/setlinebuf.c: File removed.
6209 * stdio/setvbuf.c: File removed.
6210 * stdio/stdio.h: File removed.
6211 * stdio/ungetc.c: File removed.
6212 * stdio/vasprintf.c: File removed.
6213 * stdio/vscanf.c: File removed.
6214 * stdio/vsnprintf.c: File removed.
6215 * stdio/vsprintf.c: File removed.
6216 * stdio/vsscanf.c: File removed.
6217 * sysdeps/generic/defs.c: File removed.
6218 * sysdeps/generic/fdopen.c: File removed.
6219 * sysdeps/generic/pipestream.c: File removed.
6220 * sysdeps/generic/stdio_init.c: File removed.
6221 * sysdeps/generic/sysd-stdio.c: File removed.
6222 * sysdeps/generic/vdprintf.c: File removed.
6223 * sysdeps/mach/hurd/defs.c: File removed.
6224 * sysdeps/mach/hurd/fdopen.c: File removed.
6225 * sysdeps/mach/hurd/pipestream.c: File removed.
6226 * sysdeps/mach/hurd/stdio_init.c: File removed.
6227 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6228 * sysdeps/mach/hurd/vdprintf.c: File removed.
6229 * sysdeps/posix/defs.c: File removed.
6230 * sysdeps/posix/fdopen.c: File removed.
6231 * sysdeps/posix/pipestream.c: File removed.
6232 * sysdeps/posix/stdio_init.c: File removed.
6233 * sysdeps/posix/vdprintf.c: File removed.
6234 * sysdeps/unix/pipestream.c: File removed.
6235 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6236 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6237 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6239 2002-04-29 Roland McGrath <roland@frob.com>
6241 * include/libc-symbols.h (link_warning): Use `unused' attribute.
6243 2002-04-28 Ulrich Drepper <drepper@redhat.com>
6245 * sysdeps/generic/tls.h: Describe what must be defined.
6247 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6248 glob_in_dir [PR libc/3385].
6249 * posix/globtest.sh: Add test case.
6251 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6254 2002-04-27 Ulrich Drepper <drepper@redhat.com>
6256 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6257 _internal symbol handling.
6258 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6260 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6262 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6263 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6265 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
6267 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6268 not _LIBC and RE_ENABLE_I18N.
6269 (build_range_exp): Implement for not _LIBC.
6270 (build_collating_symbol): Likewise.
6271 (parse_bracket_exp): Unify redundant error handlings.
6272 Don't erase mbcset for non matching list in multibyte envs.
6273 (build_word_op): Add '_' to matching list for \w operator.
6274 * posix/regex_internal.c (re_string_construct): Invoke
6275 build_upper_buffer in case of not RE_ENABLE_I18N.
6276 (re_string_reconstruct): Don't touch cur_state in case of not
6278 * posix/regex_internal.h (attribute_hidden): New macro in case of
6280 (re_charset_t): Define range_starts/ends in case of not _LIBC.
6281 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6283 (transit_state_mb): Likewise.
6284 (check_node_accept_bytes): Implement the code evaluating range
6285 expression in case of not _LIBC.
6286 (find_collation_sequence_value): Hide in case of not _LIBC.
6288 2002-04-26 Jakub Jelinek <jakub@redhat.com>
6290 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6292 (__old_semctl, __new_semctl): Only use va_arg if the argument will
6295 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6297 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6299 * sysdeps/ia64/strncpy.S: Fix recovery code.
6300 Patch by David Mosberger <davidm@hpl.hp.com>.
6302 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6304 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6307 2002-04-14 Bruno Haible <bruno@clisp.org>
6309 * posix/regex.c (re_max_failures): Add back symbol for binary
6312 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
6314 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6315 of buffer building functions.
6316 * posix/regex_internal.c (re_string_allocate): New function.
6317 (re_string_realloc_buffers): New function.
6318 (re_string_skip_chars): New function.
6319 (re_string_reconstruct): New function.
6320 (re_string_construct): Adapt it to new interface of buffer building
6322 (re_string_construct_common): Likewise.
6323 (build_wcs_buffer): Likewise.
6324 (build_wcs_upper_buffer): Likewise.
6325 (build_upper_buffer): Likewise.
6326 (re_string_translate_buffer): Likewise.
6327 (re_string_context_at): Adapt it to variable length buffers.
6328 * posix/regex_internal.h (re_string_t): Add new fields to handle
6329 variable length buffers.
6330 (re_match_context_t): Likewise.
6331 * posix/regexec.c (re_search_internal): Adapt it to new interface
6332 of re_string_t and re_match_context_t.
6333 (acquire_init_state_context): Likewise.
6334 (check_matching): Likewise.
6335 (check_halt_state_context): Likewise.
6336 (proceed_next_node): Likewise.
6337 (set_regs): Likewise.
6338 (sift_states_backward): Likewise.
6339 (clean_state_log_if_need): Likewise.
6340 (sift_states_iter_mb): Likewise.
6341 (sift_states_iter_bkref): Likewise.
6342 (add_epsilon_backreference): Likewise.
6343 (transit_state): Likewise.
6344 (transit_state_sb): Likewise.
6345 (transit_state_mb): Likewise.
6346 (transit_state_bkref): Likewise.
6347 (transit_state_bkref_loop): Likewise.
6348 (check_node_accept): Likewise.
6349 (match_ctx_init): Likewise.
6350 (extend_buffers): New function.
6352 2002-04-21 Bruno Haible <bruno@clisp.org>
6354 * iconvdata/tst-table.sh: For the second check, use the truncated
6355 GB18030 charmap table, like for the first check.
6357 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6359 * elf/dl-load.c (open_verify): Correct __lseek parameters.
6360 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6362 2002-04-23 H.J. Lu <hjl@gnu.org>
6364 * include/math.h (isfinite): Fix a typo.
6366 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6368 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6369 which is created by the test suite.
6371 2002-04-20 Bruno Haible <bruno@clisp.org>
6373 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6374 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6376 2002-04-20 Bruno Haible <bruno@clisp.org>
6378 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6379 to avoid gcc warning.
6381 2002-04-20 Bruno Haible <bruno@clisp.org>
6383 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6384 of data->__statep->__count.
6386 2002-04-20 Bruno Haible <bruno@clisp.org>
6388 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6390 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6392 2002-04-24 Roland McGrath <roland@frob.com>
6394 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6395 use END macro instead of our own .end directive.
6396 Use `callsys' insn mnemonic instead of `call_pal'.
6398 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6400 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6401 macro; we need this for Hurd.
6403 Log entry was missing for 2002/03/24 commit of rev 1.8,
6404 goes with 2002-03-17 changes.
6405 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6406 (sysdep_routines): Append ioperm here.
6407 (sysdep_headers): Append sys/io.h here.
6409 2002-04-23 Roland McGrath <roland@frob.com>
6411 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6412 * sysdeps/mach/hurd/sendto.c: Likewise.
6413 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6414 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6415 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6417 2002-04-22 Roland McGrath <roland@frob.com>
6419 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6420 failure from i386_io_perm_* RPCs to ENOSYS.
6422 2002-04-22 Andreas Jaeger <aj@suse.de>
6424 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6426 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6428 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6429 register instead of destroying %rbx.
6431 2002-04-21 Ulrich Drepper <drepper@redhat.com>
6433 * string/string.h: Declare strerror_r also for XPG6.
6435 2002-04-19 Roland McGrath <roland@frob.com>
6437 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6439 2002-04-20 Ulrich Drepper <drepper@redhat.com>
6441 * Makefile: Add handling of xtests and xcheck targets.
6442 * MakeTAGS: Likewise.
6443 * Makeconfig: Likewise.
6444 * Makerules: Likewise.
6446 * manual/Makefile: Likewise.
6447 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6448 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
6450 2002-04-11 Zack Weinberg <zack@codesourcery.com>
6452 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6454 * sunrpc/auth_none.c: Include bits/libc-lock.h.
6455 Delete #ifdef _RPC_THREAD_SAFE_ block.
6456 (authnone_private): Make a struct, not a pointer to struct.
6457 (authnone_private_guard): New once-control variable.
6458 (authnone_create_once): New function, split out of
6459 authnone_create. No need to allocate memory.
6460 (authnone_create): Just call authnone_create_once via
6461 __libc_once, then return &authnone_private->no_client.
6462 (authnone_marshal): Access private data via CLIENT argument,
6463 not authnone_private pointer.
6464 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6465 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6468 2002-04-12 H.J. Lu <hjl@gnu.org>
6470 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6472 2002-04-18 Bruno Haible <bruno@clisp.org>
6474 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6475 FROM_DIRECTION): Make the FROM direction stateless.
6476 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6477 FROM_DIRECTION): Likewise.
6479 2002-04-15 Bruno Haible <bruno@clisp.org>
6481 * iconvdata/JISX0213.TXT: New file.
6482 * iconvdata/jisx0213.h: New file.
6483 * iconvdata/jisx0213.c: New file.
6484 * iconvdata/euc-jisx0213.c: New file.
6485 * iconvdata/shift_jisx0213.c: New file.
6486 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6487 * iconvdata/EUC-JISX0213.precomposed: New file.
6488 * iconvdata/SHIFT_JISX0213.precomposed: New file.
6489 * iconvdata/SHIFT_JISX0213.irreversible: New file.
6490 * iconvdata/tst-table-to.c (main): Make it work for encodings for
6491 which the "to" direction is stateful.
6492 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6493 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6495 (libJISX0213-routines): New variable.
6496 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6497 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6498 (LDFLAGS-libJISX0213.so): New variable.
6499 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6500 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6501 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6503 2002-04-15 Bruno Haible <bruno@clisp.org>
6505 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6506 uint32_t. Update to Unicode 3.2.
6507 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6508 (BODY for TO_LOOP): Handle the ASCII range specially.
6509 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6510 * iconvdata/testdata/BIG5HKSCS: Remove a character.
6511 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6513 2002-04-15 Bruno Haible <bruno@clisp.org>
6515 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6516 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6518 2002-04-15 Bruno Haible <bruno@clisp.org>
6520 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6521 (ucs4_to_cns11643): Update.
6522 * iconvdata/cns11643.c: Update to Unicode 3.2.
6523 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6524 __cns11643_from_ucs4p2_tab): Regenerated.
6525 (__cns11643_from_ucs4p2c_tab): New array.
6526 * iconvdata/cvs11643l1.c: Update comments.
6527 * iconvdata/EUC-TW.irreversible: Remove two entries.
6529 2002-04-15 Bruno Haible <bruno@clisp.org>
6531 * locale/C-translit.h.in: Update to Unicode 3.2.
6532 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6533 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6535 2002-04-15 Bruno Haible <bruno@clisp.org>
6537 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6538 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6540 2002-04-15 Bruno Haible <bruno@clisp.org>
6542 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6543 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6544 always one byte, not 0 bytes in some cases and 2 bytes in others.
6546 * iconvdata/tst-table-from.c (main): Correct the usage message.
6548 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6550 * posix/regcomp.c (parse_expression): Fix incorrect error code.
6551 (parse_dup_op): Fix error handling like "a{}".
6552 (parse_bracket_exp): Add error handling.
6553 (fetch_number): Add error handling for "a{<very_large_number>}".
6555 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6557 * posix/regcomp.c (parse_bracket_symbol): Add error handling
6558 in case that the symbol name is too long.
6559 (build_charclass): Handle [:lower:]/[:uppper:] correctly
6560 in case of REG_ICASE.
6562 2002-04-19 Andreas Jaeger <aj@suse.de>
6564 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6565 <hartvige@mips.com>.
6567 2002-04-15 H.J. Lu <hjl@gnu.org>
6569 * include/math.h (__finitel_internal): Declare only if
6570 __NO_LONG_DOUBLE_MATH is not defined.
6571 (__isinfl_internal): Likewise.
6572 (__isnanl_internal): Likewise.
6574 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6575 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6576 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6577 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6578 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6579 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6580 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6582 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6585 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6586 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6588 2002-04-15 Bruno Haible <bruno@clisp.org>
6590 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6591 (BODY for TO_LOOP): Likewise.
6592 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6593 * iconvdata/tst-table.sh: Add support for encodings which contain
6594 precomposed Unicode characters, known to the iconv converter in both
6595 directions but not listed in the charmap.
6596 * iconvdata/IBM856.irreversible: New file.
6597 * iconvdata/IBM922.irreversible: New file.
6598 * iconvdata/IBM1132.irreversible: New file.
6599 * iconvdata/IBM1133.irreversible: New file.
6600 * iconvdata/IBM1160.irreversible: New file.
6601 * iconvdata/IBM1161.irreversible: New file.
6602 * iconvdata/IBM1163.irreversible: New file.
6603 * iconvdata/IBM1164.irreversible: New file.
6604 * iconvdata/ARMSCII-8.irreversible: New file.
6605 * iconvdata/TCVN5712-1.precomposed: New file.
6606 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6607 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6608 ARMSCII-8, TCVN5712-1.
6609 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6610 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6611 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6612 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6614 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6616 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
6617 for EVENING69. Include offsets in TZ environment variable.
6619 2002-04-18 Ulrich Drepper <drepper@redhat.com>
6621 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6622 avoid compiler warnings.
6624 * locale/programs/localedef.c (main): Always call
6625 construct_output_path.
6627 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6629 * locale/programs/locfile.c (to_archive): New variable. To collect
6630 data which has to be added to the locale archive.
6631 (write_all_categories): Take new third parameter with locale name.
6632 Unless no_archive flag set add new locale data to the archive
6633 (write_locale_data): Unless no-archive flag set store generated data
6634 in to_archive data structure instead of generation output file.
6635 Add new parameter with locale category index.
6636 * locale/programs/locfile.h: Add new parameters in declaractions of
6637 write_all_categories and write_locale_data.
6638 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6639 --add-to-archive, and --delete-from-archive options. Pass extra
6640 parameter to write_all_categories.
6641 * locale/programs/localedef.h: Add prototypes for functions in
6643 * locale/locarchive.h: New file.
6644 * locale/programs/locarchive.c: New file.
6645 * locale/Makefile (distribute): Add programs/locarchive.c and
6647 (localedef-modules): Add md5 and locarchive.
6648 Add vpath to crypt subdir for md5.c.
6650 * locale/programs/ld-address.c: Pass locale category ID as new second
6651 parameter to write_locale_data.
6652 * locale/programs/ld-collate.c: Likewise.
6653 * locale/programs/ld-ctype.c: Likewise.
6654 * locale/programs/ld-identification.c: Likewise.
6655 * locale/programs/ld-measurement.c: Likewise.
6656 * locale/programs/ld-messages.c: Likewise.
6657 * locale/programs/ld-monetary.c: Likewise.
6658 * locale/programs/ld-name.c: Likewise.
6659 * locale/programs/ld-numeric.c: Likewise.
6660 * locale/programs/ld-paper.c: Likewise.
6661 * locale/programs/ld-telephone.c: Likewise.
6662 * locale/programs/ld-time.c: Likewise.
6664 * locale/simple-hash.c: Move compute_hashval function from here...
6665 * locale/hashval.h: ...to here. New file.
6666 * locale/simple-hash.h: Add prototype for compute_hashval.
6668 * include/libintl.h: Minor cleanups.
6670 2002-04-16 Ulrich Drepper <drepper@redhat.com>
6672 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6674 2002-04-15 Ulrich Drepper <drepper@redhat.com>
6676 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
6678 2002-04-14 Bruno Haible <bruno@clisp.org>
6680 * locale/programs/charmap.c (charmap_read): Don't access result if
6683 2002-02-17 Andreas Schwab <schwab@suse.de>
6685 * elf/reldep7.c: New file.
6686 * elf/reldep7mod1.c: New file.
6687 * elf/reldep7mod2.c: New file.
6688 * elf/Makefile: Add rules to build and run reldep7.
6690 2002-04-14 Jakub Jelinek <jakub@redhat.com>
6692 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6693 the end of the function. Pass original flags to recursive call if
6694 add_dependency failed.
6695 (_dl_lookup_versioned_symbol): Likewise.
6697 2002-04-13 Jakub Jelinek <jakub@redhat.com>
6699 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6700 early, but check whether it overflowed afterwards.
6701 * time/tst-mktime.c (main): Add new tests.
6703 2002-04-14 Ulrich Drepper <drepper@redhat.com>
6705 * debug/xtrace.sh: Fix program name in help message.
6706 Patch by Roger Luethi <rl@hellgate.ch>.
6708 * include/sys/stat.h: Add prototypes for __lxstat_internal and
6709 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
6711 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6712 * sysdeps/mach/hurd/lxstat.c: Likewise.
6713 * sysdeps/unix/common/lxstat.c: Likewise.
6714 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6715 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6716 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6717 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6718 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6719 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6720 * sysdeps/mach/hurd/lxstat64.c: Likewise.
6721 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6722 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6724 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6725 prototypes. Add __mbrlen and __mbrtowc macros.
6726 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6727 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6729 * include/unistd.h: Add prototype for __write_internal and add
6730 __libc_write macro is SHARED.
6731 * sysdeps/generic/write.c: Use INTDEF for __write.
6732 * sysdeps/mach/hurd/write.c: Likewise.
6733 * sysdeps/unix/sysv/aix/write.c: Likewise.
6734 * sysdeps/unix/syscalls.list: Add __libc_write alias.
6736 * assert/assert.c: Replace STR_N_SIZE with something usable in
6738 * assert/assert-perr.c: Likewise.
6740 * include/sys/socket.h: Declare __libc_sa_len_internal and define
6741 SA_LEN macro to use it if not NOT_IN_libc.
6742 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6744 * include/fcntl.h: Declare __open_internal and define __open and
6745 __libc_open macros if not NOT_IN_libc.
6746 * sysdeps/generic/open.c: Use INTDEF for __open.
6747 * sysdeps/mach/hurd/open.c: Likewise.
6748 * sysdeps/unix/sysv/aix/open.c: Likewise.
6749 * sysdeps/unix/syscalls.list: Add __open_internal alias.
6751 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6754 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6755 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6756 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6757 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6759 * include/wctype.h: Declare __iswalpha_l_internal,
6760 __iswdigit_l_internal, __iswspace_l_internal,
6761 __iswxdigit_l_internal, and __iswctype_internal. Define
6762 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6763 __iswxdigit_l macros if not NOT_IN_libc.
6764 * wctype/iswctype.c: Use INTDEF for __iswctype.
6765 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6767 * include/math.h: Declare __isinf_internal, __isinfl_internal,
6768 __isnan_internal, and __isnanl_internal.
6769 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6770 __isnan, and __isnanl.
6771 * stdio-common/printf_size.c: Likewise.
6772 * sysdeps/generic/printf_fphex.c: Likewise.
6773 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6774 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6775 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6776 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6777 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6778 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6779 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6780 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6781 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6782 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6783 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6784 * sysdeps/m68k/s_isinfl.c: Likewise.
6785 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6786 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6788 * include/sys/time.h: Declare __gettimeofday_internal and define
6789 __gettimeofday macro if not NOT_IN_libc.
6790 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6791 * sysdeps/mach/gettimeofday.c: Likewise.
6792 * sysdeps/posix/gettimeofday.c: Likewise.
6793 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6794 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6795 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6796 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6798 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6799 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6800 Remove __lstat and __fstat inline functions.
6801 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6802 * sysdeps/mach/hurd/fxstat.c: Likewise.
6803 * sysdeps/unix/fxstat.c: Likewise.
6804 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6805 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6806 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6807 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6808 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6809 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6810 * sysdeps/mach/hurd/fxstat64.c: Likewise.
6811 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6812 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6814 * include/unistd.h: Declare __getpid_internal and define
6815 __getpid macro if not NOT_IN_libc.
6816 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6817 * sysdeps/generic/getpid.c: Likewise.
6818 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6819 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6821 * include/unistd.h: Declare __getpgid_internal and define
6822 __getpgid macro if not NOT_IN_libc.
6823 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6824 * sysdeps/mach/hurd/getpgid.c: Likewise.
6825 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6826 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6827 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6828 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6830 * include/unistd.h: Declare __getpagesize_internal and define
6831 __getpagesize macro if not NOT_IN_libc.
6832 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6834 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6835 * sysdeps/mach/getpagesize.c: Likewise.
6836 * sysdeps/posix/getpagesize.c: Likewise.
6837 * sysdeps/unix/getpagesize.c: Likewise.
6838 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6839 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6840 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6841 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6843 2002-04-13 Andreas Jaeger <aj@suse.de>
6845 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6846 as clobber to reduce register pressure.
6847 (__strpbrk_cg): Likewise.
6848 (__mempcpy_by4): Likewise.
6849 (__strstr_cg): Likewise.
6850 Add prototype for __memrchr.
6852 2002-04-13 Andreas Schwab <schwab@suse.de>
6854 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6855 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6856 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6858 2002-04-13 Ulrich Drepper <drepper@redhat.com>
6860 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
6861 check whether the caller prefers getting the most recent version of
6862 a symbol of the earliest version.
6863 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
6864 _dl_do_lookup to also take the new parameter and pass it on.
6865 Change 'explicit' parameter of _dl_lookup_symbol and
6866 _dl_lookup_versioned_symbol to flags. Adjust tests.
6867 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6868 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
6869 _dl_lookup_versioned_symbol.
6870 * elf/dl-reloc.c: Likewise.
6871 * elf/dl-runtime.c: Likewise.
6872 * elf/dl-sym.c: Likewise.
6873 * sysdeps/mips/dl-machine.h: Likewise.
6875 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6877 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
6879 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
6881 2002-04-10 Andreas Jaeger <aj@suse.de>
6883 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6885 * include/argz.h: Remove extra char from last patch.
6887 2002-04-09 Ulrich Drepper <drepper@redhat.com>
6889 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
6890 * sysdeps/unix/sysv/aix/chown.c: Likewise.
6891 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
6892 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
6893 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6894 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
6896 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6898 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
6899 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
6900 * intl/ngettext.c: Likewise.
6902 * include/sys/socket.h: Declare __connect_internal and define
6903 __connect macro if not NOT_IN_libc.
6904 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
6905 * sysdeps/unix/sysv/aix/connect.c: Likewise.
6906 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
6908 * include/unistd.h: Declare __close_internal and define __close macro
6910 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
6911 WJUMP3): Add extra parenthesis to avoid expanding element names with
6912 macors like __close.
6913 * sysdeps/unix/syscalls.list: Add __close_internal alias.
6915 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
6917 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
6918 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
6919 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
6921 * include/unistd.h: Declare __fork_internal and define __fork macro
6923 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
6924 * sysdeps/unix/sysv/aix/fork.c: Likewise.
6925 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
6927 * include/stdio_ext.h: Declare __fsetlocking_internal and define
6928 __fsetlocking macro to use it if not NOT_IN_libc.
6929 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
6931 * libio/__fbufsize.c: Correct copyright.
6932 * libio/__flbf.c: Likewise.
6933 * libio/__fpending.c: Likewise.
6934 * libio/__fpurge.c: Likewise.
6935 * libio/__freadable.c: Likewise.
6936 * libio/__freading.c: Likewise.
6937 * libio/__fsetlocking.c: Likewise.
6938 * libio/__fwritable.c: Likewise.
6939 * libio/__fwriting.c: Likewise.
6941 * include/stdio.h: Declare __asprintf_internal and define __asprintf
6942 macro to use it if not NOT_IN_libc.
6943 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
6945 * include/mntent.h: Declare __setmntent_internal,
6946 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
6947 __getmntent_r, and __endmntent macros to use these functions if not
6949 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
6952 * include/math.h: Declare __finite_internal, __finitef_internal, and
6953 __finitel_internal. Redefine isfinite macro if in libc or libm using
6955 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
6956 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
6957 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
6958 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
6959 * sysdeps/i386/fpu/s_finitef.S: Likewise.
6960 * sysdeps/i386/fpu/s_finitel.S: Likewise.
6961 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6962 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6963 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6964 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
6966 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
6967 to use this function if not NOT_IN_libc.
6968 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
6969 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
6970 * sysdeps/mach/hurd/fcntl.c: Likewise.
6971 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6972 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6974 * include/argz.h: Declare __argz_count_internal and
6975 __argz_stringify_internal.
6976 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
6978 * string/argz-count.c: Use INTDEF for __argz_count.
6979 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
6981 * include/stdlib.h: Declare __cxa_atexit_internal and define
6982 __cxa_atexit macro if not NOT_IN_libc.
6983 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
6984 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
6986 * assert/assert.c: Use INTDEF for __assert_fail.
6987 * assert/__assert.c: Use INTUSE for call to __assert_fail.
6988 * include/assert.h: Declare __assert_fail_internal.
6990 * extra-lib.mk: Mark assignment to lib with override.
6992 2002-04-08 Ulrich Drepper <drepper@redhat.com>
6994 * Makerules: Use cppflags-iterator.mk to add defines for all test
6997 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
6999 * elf/elf.h: Define R_SH_TLS_xxx macros.
7000 * elf/rtld.c: Remove an extra parenthesis.
7001 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7003 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7004 * sysdeps/sh/dl-lookupcfg.h: New file.
7005 * sysdeps/sh/dl-tls.h: New file.
7006 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7007 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7008 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7009 R_SH_TLS_TPOFF32 relocations.
7011 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7013 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7015 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7016 * include/stdlib.h: Likewise.
7018 2002-04-08 Jakub Jelinek <jakub@redhat.com>
7020 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7021 instead of _RTLD_LOCAL.
7022 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7023 * include/unistd.h: Likewise.
7024 * sysdeps/generic/ldsodefs.h: Likewise.
7026 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7027 if in libc or ld.so.
7029 2002-04-08 Andreas Jaeger <aj@suse.de>
7031 * elf/cache.c (print_entry): Support x86-64.
7033 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7035 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7036 with one accessing the locale data structures directly.
7037 * stdio-common/printf-prs.c: Include localeinfo.h for new
7038 MB_CUR_MAX definition.
7040 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7041 is the name of the source file without extension.
7042 * Makefile (distribute): Add cppflags-iterator.mk.
7043 * cppflags-iterator.mk: New file.
7044 * extra-lib.mk: For the sources of the library run
7045 cppflags-iterator.mk.
7047 * include/libintl.h: Declare __dcgettext_internal and
7048 _libc_intl_domainname_internal. Define __dcgettext using these
7049 two symbols if used in libc itself.
7050 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7051 _libc_intl_domainname_internal.
7052 * argp/argp-parse.c: Likewise.
7053 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7054 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7055 * intl/gettext.c: Likewise.
7056 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7058 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7060 * posix/regex_internal.c (gettext): Likewise.
7062 2002-04-08 Andreas Jaeger <aj@suse.de>
7064 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7066 * sysdeps/x86_64/fpu/s_llrint.S: New file.
7067 * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7068 * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7069 * sysdeps/x86_64/fpu/s_lrint.S: New file.
7070 * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7071 * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7073 2002-04-08 Roland McGrath <roland@frob.com>
7075 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7076 widening __hurd_fail value.
7078 2002-04-07 Roland McGrath <roland@frob.com>
7080 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7081 <mach/machine/alpha_instruction.h>.
7082 (_hurd_setup_sighandler): Take proper arguments for current decls.
7083 Update code to use _hurdsig_catch_fault.
7084 Use `callsys' instruction instead of `call_pal'.
7085 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7087 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7088 (ALIGN, at, AT, fp): New macros.
7090 2002-04-06 Roland McGrath <roland@frob.com>
7092 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7094 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7095 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7097 * sysdeps/mach/hurd/bind.c: Use prototype definition.
7098 * sysdeps/mach/hurd/connect.c: Likewise.
7099 * sysdeps/mach/hurd/getsockopt.c: Likewise.
7100 * sysdeps/mach/hurd/setsockopt.c: Likewise.
7102 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7105 * hurd/catch-exc.c: Use integer_t instead of int.
7106 * hurd/hurdfault.c: Likewise.
7108 * sysdeps/mach/hurd/alpha/exc2signal.c
7109 (_hurd_exception2signal): Rewritten.
7110 * sysdeps/mach/hurd/alpha/longjmp-ts.c
7111 (_hurd_longjmp_thread_state): Rewritten.
7113 2002-04-07 Ulrich Drepper <drepper@redhat.com>
7115 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7116 DB_LOOKUP_FCT prototype.
7117 * nss/getXXent_r.c: Likewise.
7118 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7119 * inet/getaliasname_r.c: Likewise.
7120 * inet/getnetbyad_r.c: Likewise.
7121 * inet/getnetbynm_r.c: Likewise.
7122 * inet/getnetent_r.c: Likewise.
7123 * inet/getproto_r.c: Likewise.
7124 * inet/getprtent_r.c: Likewise.
7125 * inet/getprtname_r.c: Likewise.
7126 * inet/getrpcbyname_r.c: Likewise.
7127 * inet/getrpcbynumber_r.c: Likewise.
7128 * inet/getrpcent_r.c: Likewise.
7129 * inet/getservent_r.c: Likewise.
7130 * inet/getsrvbynm_r.c: Likewise.
7131 * inet/getsrvbypt_r.c: Likewise.
7132 * shadow/getspent_r.c: Likewise.
7133 * shadow/getspnam_r.c: Likewise.
7135 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7137 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7138 Use i686-friendly PIC code.
7139 * sysdeps/i386/elf/setjmp.S: Likewise.
7141 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7143 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7145 * elf/Versions: Remove it here.
7147 2002-04-06 Ulrich Drepper <drepper@redhat.com>
7149 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7150 direction. Reported by H . J . Lu <hjl@lucon.org>.
7152 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7154 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7155 test just before the test runs.
7156 * intl/tst-translit.sh: Likewise.
7157 * intl/tst-codeset.sh: Likewise.
7159 * timezone/zic.c: Update from tzcode2002c.
7160 * timezone/asia: Update from tzdata2002c.
7161 * timezone/backward: Likewise.
7162 * timezone/europe: Likewise.
7163 * timezone/northamerica: Likewise.
7164 * timezone/northamerica: Likewise.
7165 * timezone/northamerica: Likewise.
7166 * timezone/southamerica: Likewise.
7167 * timezone/zone.tab: Likewise.
7169 2002-03-23 Jakub Jelinek <jakub@redhat.com>
7171 * sysdeps/generic/brk.c (__curbrk): Declare.
7172 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7173 * sysdeps/generic/dl-sbrk.c: Likewise.
7174 * sysdeps/unix/arm/dl-brk.S: New file.
7175 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7176 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7177 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7178 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7179 * sysdeps/unix/i386/dl-brk.S: New file.
7180 * sysdeps/unix/mips/dl-brk.S: New file.
7181 * sysdeps/unix/sparc/dl-brk.S: New file.
7182 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7183 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7184 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7185 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7187 2002-04-03 Andreas Schwab <schwab@suse.de>
7189 * Makefile (headers): Add gnu/lib-names.h here instead of
7191 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7193 (install-headers): Add dependency on install-headers-nosubdir.
7194 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7195 instead of install-others.
7196 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7199 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7201 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7202 Reported by Sam Roberts <sroberts@uniserve.com>.
7204 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7206 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7207 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7208 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7209 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7211 2002-04-03 David Mosberger <davidm@hpl.hp.com>
7213 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7214 (RTLD_START): Ditto.
7215 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7216 dependency violation.
7218 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7220 * time/mktime.c (__mktime_internal): Move check for year < 70 below
7221 all variable declarations.
7223 2002-04-04 Andreas Schwab <schwab@suse.de>
7225 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7227 2002-04-04 Andreas Jaeger <aj@suse.de>
7229 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7230 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7232 * sysdeps/x86_64/fpu/s_fabs.c: New file.
7233 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7234 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7236 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7238 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7240 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7241 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7243 * configure.in: Handle all mips entries the same.
7245 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7246 * sysdeps/mips/mips3/*: Likewise.
7247 * sysdeps/mips/p40/bits/endian.h: Likewise.
7249 2002-04-04 Ulrich Drepper <drepper@redhat.com>
7251 * misc/dirname.c (dirname): Ignore trailing slashes at end of
7252 non-null result [PR libc/2600].
7254 * misc/tst-dirname.c: Add more tests.
7256 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7258 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7259 define a code_set_name provide one based on the filename.
7261 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7263 2001-12-28 Andreas Jaeger <aj@suse.de>
7265 * time/mktime.c (__mktime_internal): Check for year < 70
7268 2002-04-03 Andreas Jaeger <aj@suse.de>
7270 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7272 Reported by Andi Kleen <ak@suse.de>.
7274 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7276 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7277 * sysdeps/generic/w_lgammaf.c: Likewise.
7278 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7280 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7281 Adjust for new output format of the backtrace functions.
7283 * misc/syslog.c (vsyslog): Only use cleanup handler if
7284 _LIBC_REENTRANT is defined [PR libc/2924].
7286 * libio/Makefile (tests): Add bug-ungetwc2.
7287 * libio/bug-ungetwc2.c: New file.
7289 * manual/install.texi: Typographical and grammatical cleanup.
7290 Patch by Dennis Grace <dgrace@us.ibm.com>.
7292 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7293 parameter if mtflag. Patch by <jeongyun@innovay.com>.
7295 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
7296 always "&". Adjust callers.
7297 Add "_" prefix to several generated definitions.
7298 Patch by paul@serice.net [PR libc/3158].
7300 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7302 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7303 size of _dl_arm_cap_flags.
7304 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7306 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7309 2002-03-22 H.J. Lu <hjl@gnu.org>
7311 * scripts/firstversions.awk: Check the first version.
7313 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7315 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7316 dependencies must be stable to work correctly.
7317 Reported by martin.lubich@datacon.at.
7319 * libio/bug-ungetwc1.c: New file.
7320 * libio/Makefile (tests): Add bug-ungetwc1.
7322 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7323 if stream was last used for writing.
7325 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7326 number [PR libc/3111].
7328 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7330 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7332 2002-04-02 Jakub Jelinek <jakub@redhat.com>
7334 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7335 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7336 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7337 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7338 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7340 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7342 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7345 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7347 * sysdeps/i386/fpu/s_fabs.S: New file.
7348 * sysdeps/i386/fpu/s_fabsf.S: New file.
7349 * sysdeps/i386/fpu/s_fabsl.S: New file.
7350 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7351 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7352 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7354 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7356 * rt/tst-shm.c (do_test): Add one more test for size of shared
7359 2002-03-29 Wolfram Gloger <wg@malloc.de>
7361 * malloc/malloc.c: Add short description and prototypes for
7362 malloc_get_state, malloc_set_state and posix_memalign, for
7363 consistency and to avoid warnings with -Wstrict-prototypes.
7364 Reported by Andreas Jaeger <aj@suse.de>.
7366 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7368 * po/gl.po: Update from translation team.
7370 2002-03-31 Roland McGrath <roland@frob.com>
7372 * hurd/hurdselect.c (_hurd_select): Fix
7373 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7374 Use a union rather than casts to compare mach_msg_type_t as int.
7376 2002-03-25 Roland McGrath <roland@frob.com>
7378 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7379 check off the end of NAME when it's shorter than 2 chars.
7380 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7382 2002-03-17 Roland McGrath <roland@frob.com>
7384 * sysdeps/mach/hurd/i386/sys/io.h: New file.
7385 * sysdeps/mach/hurd/i386/ioperm.c: New file.
7386 * sysdeps/mach/hurd/i386/Dist: Add them.
7387 * sysdeps/mach/hurd/i386/Versions
7388 (libc: GLIBC_2.2.6): New set, add ioperm.
7389 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7390 (mach_interface_list): Check for mach_i386.defs.
7391 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7392 * sysdeps/mach/configure: Regenerated.
7394 2002-03-22 Ulrich Drepper <drepper@redhat.com>
7396 * po/fr.po: Update from translation team.
7398 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
7400 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7401 getpriority from syscalls list.
7403 2002-03-28 Andreas Jaeger <aj@suse.de>
7405 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7406 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7407 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7408 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7410 2002-03-27 Andreas Jaeger <aj@suse.de>
7412 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7413 sigcontext): Follow further kernel change.
7415 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7418 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7419 Change for struct sigcontext change.
7421 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7422 Follow changes in struct sigcontext.
7424 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7425 sysycall, use wrapper instead.
7427 2002-03-26 Andreas Jaeger <aj@suse.de>
7429 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7430 read and write accesses as detailed as possible.
7431 (__memcpy_by2): Likewise.
7432 (__memcpy_g): Likewise.
7433 (memmove): Likewise.
7435 (__memset_ccn_by4): Likewise.
7436 (__memset_ccn_by2): Likewise.
7437 (__memset_gcn_by4): Likewise.
7438 (__memset_gcn_by2): Likewise.
7440 (__memrchr): Likewise.
7441 (rawmemchr): Likewise.
7442 (__strlen_g): Likewise.
7443 (__strcpy_g): Likewise.
7444 (__mempcpy_by4): Likewise.
7445 (__mempcpy_by2): Likewise.
7446 (__mempcpy_byn): Likewise.
7447 (__stpcpy_g): Likewise.
7448 (__strncpy_by4): Likewise.
7449 (__strncpy_by2): Likewise.
7450 (__strncpy_byn): Likewise.
7451 (__strncpy_gg): Likewise.
7452 (__strcat_c): Likewise.
7453 (__strcat_g): Likewise.
7454 (__strncat_g): Likewise.
7455 (__strcmp_gg): Likewise.
7456 (__strncmp_g): Likewise.
7457 (__strchr_c): Likewise.
7458 (__strchr_g): Likewise.
7459 (__strchrnul_c): Likewise.
7460 (__strchrnul_g): Likewise.
7461 (__strrchr_c): Likewise.
7462 (__strrchr_g): Likewise.
7463 (__strrchr_c): Likewise.
7464 (__strrchr_g): Likewise.
7465 (__strcspn_c1): Likewise.
7466 (__strcspn_cg): Likewise.
7467 (__strcspn_g): Likewise.
7468 (__strcspn_g): Likewise.
7469 (__strspn_c1): Likewise.
7470 (__strspn_cg): Likewise.
7471 (__strspn_g): Likewise.
7472 (__strspn_g): Likewise.
7473 (__strpbrk_cg): Likewise.
7474 (__strpbrk_g): Likewise.
7475 (__strstr_cg): Likewise.
7476 (__strstr_g): Likewise.
7478 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
7479 Michal Ludvig <mludvig@suse.cz>.
7481 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7482 compatibilty, adjust for kernel changes.
7484 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7485 sigcontext): Adjust for kernel changes.
7487 2002-03-25 Andreas Jaeger <aj@suse.de>
7489 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7491 Reported by Artur Zaprzala <zybi@talex.com.pl>.
7493 2002-03-24 Andreas Jaeger <aj@suse.de>
7495 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7497 * stdio-common/tst-fdopen.c (main): Remove unused variable.
7499 * iconv/tst-iconv3.c (main): Use correct printf strings.
7501 2002-03-18 Roland McGrath <roland@frob.com>
7503 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7504 (CMGROUP_MAX): New macro.
7506 2002-03-23 Roland McGrath <roland@frob.com>
7508 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7509 * sysdeps/posix/shm_unlink.c: Likewise.
7511 2002-03-22 Roland McGrath <roland@frob.com>
7513 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7514 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7515 under --enable-libio.
7516 * sysdeps/mach/hurd/configure: Regenerated.
7518 2002-03-23 Roland McGrath <roland@frob.com>
7520 * sysdeps/mach/hurd/i386/Makefile
7521 (sysdep_routines, shared-only-routines): Don't add framestate,
7522 reverting 2001-10-02 change.
7523 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7524 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7525 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7526 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7527 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7528 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7529 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7530 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7531 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7532 Do it here instead, only if [$(unwind-find-fde) = yes].
7534 2002-03-23 Andreas Jaeger <aj@suse.de>
7536 * signal/signal.h: Fix typo. Patch by Steve Kemp
7537 <skx@tardis.ed.ac.uk>.
7539 2002-03-22 Andreas Jaeger <aj@suse.de>
7541 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7544 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7545 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7546 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7547 user_fpregs_struct): Rename fwd.
7549 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7550 Follow sigcontext changes.
7552 2002-03-22 Andreas Jaeger <aj@suse.de>
7554 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
7555 changes for NaNs on MIPS.
7556 Patch by Hartvig Ekner <hartvige@mips.com>.
7558 2002-03-21 Ulrich Drepper <drepper@redhat.com>
7560 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7561 Use realloc if too large.
7562 (addgrbyid): Likewise.
7563 * nscd/hstcache.c (addhstbyname): Likewise.
7564 (addhstbyaddr): Likewise.
7565 (addhstbynamev6): Likewise.
7566 (addhstbyaddrv6): Likewise.
7567 * nscd/pwdcache.c (addpwbyname): Likewise.
7568 (addpwbyuid): Likewise.
7570 2002-03-21 Andreas Jaeger <aj@suse.de>
7572 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7573 _fpstate): Add separate struct for x86-64.
7575 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7576 user_fpregs_struct): Change member names to follow kernel.
7578 2002-03-20 Ulrich Drepper <drepper@redhat.com>
7580 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7581 Correctly close the UDP connection right away [PR libc/3120].
7583 2002-03-20 Andreas Jaeger <aj@suse.de>
7585 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7586 user_fpregs_struct): Fix for changed kernel struct.
7587 (struct user_regs_struct): Likewise.
7588 (struct user): Likewise.
7589 Add 32-bit x86 compatibility.
7591 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7593 2002-03-19 Andreas Jaeger <aj@suse.de>
7595 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7597 2002-03-18 Andreas Jaeger <aj@suse.de>
7599 * iconvdata/Makefile: Only run tests when shared libs are
7602 2002-03-17 Andreas Jaeger <aj@suse.de>
7604 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7606 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7608 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7611 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7612 (CAUSE_SHIFT): New macro.
7613 Patch by Hartvig Ekner <hartvige@mips.com>.
7615 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7616 * sysdeps/generic/unwind-pe.h: Likewise.
7618 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7621 * libio/stdio.c (AL2): Define variant when visibility attribute is
7624 * include/libc-symbols.h (_INTVARDEF): Define variant when
7625 visibility attribute is not supported.
7627 2002-03-16 Ulrich Drepper <drepper@redhat.com>
7629 * po/fr.po: Update from translation team.
7631 2002-02-25 Bruno Haible <bruno@clisp.org>
7633 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7635 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7637 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7638 buffers if _IO_file_attach failed.
7640 * libio/fileops.c (_IO_file_open): Close file descriptor if
7641 _IO_SEEKOFF call failed.
7643 2002-03-15 H.J. Lu <hjl@gnu.org>
7644 Ulrich Drepper <drepper@redhat.com>
7646 * configure.in: Check for availability of
7647 init_array/fini_array/preinit_array handling in binutils.
7648 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7649 * config.make.in (have-initfini-array): New variable.
7651 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7653 * stdio-common/tst-printf.c (main): Comment out one test which
7654 checked the compiler's ability to fold floating-point constants
7655 but not really printf.
7656 (rfg3): Make s const.
7657 * stdio-common/tst-printf.sh: Adjust for removed test.
7659 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7660 internal function. Adjust for internal_function calling convention.
7661 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7662 as internal_function.
7664 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7667 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7668 declaration and definition.
7669 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7671 * nss/getXXent_r.c: Likewise.
7672 * nss/nsswitch.h (db_lookup_function): Add internal_function to
7675 * include/time.h: Declare __localtime_r as hidden.
7677 * include/aliases.h: Declare __getaliasent_r as hidden.
7678 * include/grp.h: Declare __getgrent_r as hidden.
7679 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7680 __getservent_r, and __getprotoent_r as hidden.
7681 * include/pwd.h: Declare __getpwent_r as hidden.
7682 * include/shadow.h: Declare __getspent_r as hidden.
7683 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7685 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7686 and __gconv_transliterate as hidden.
7687 Add internal_function to __gconv_get_path declaration.
7688 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7689 definition. Add attribute_hidden to __gconv_read_conf definition.
7691 2002-03-14 Ulrich Drepper <drepper@redhat.com>
7693 * elf/rtld.c: Declare _environ as hidden.
7694 * sysdeps/generic/dl-environ.c: Likewise.
7695 * sysdeps/generic/dl-sysdep.c: Likewise.
7697 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7698 _dl_mcount_internal as hidden.
7700 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7701 * sysdeps/generic/dl-brk.c: New file.
7702 * sysdeps/generic/dl-sbrk.c: New file.
7703 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7704 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7706 * elf/dl-minimal.c (malloc): Declare _end as hidden.
7707 (__errno_location): New function. Declare errno as hidden.
7708 * elf/rtld.c (_dl_argc): Define as hidden.
7709 (_dl_skip_args): Define as hidden.
7710 (_begin, _end): Declare as hidden.
7711 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7712 * sysdeps/generic/entry.h (_start): Declare as hidden.
7713 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7714 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7715 _dl_runtime_resolve and _dl_runtime_profile as hidden.
7716 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7718 2002-03-14 Roland McGrath <roland@frob.com>
7720 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7722 * Makeconfig (%.v.i, %.v): New implicit rules.
7723 (preprocess-versions): Variable removed.
7724 ($(common-objpfx)shlib-versions.v.i): New target giving just the
7725 shlib-versions input files as dependencies.
7726 ($(common-objpfx)soversions.i): Depend on that instead of the input
7727 files. Use it as input instead of using a pipeline.
7728 (postclean-generated): Append soversions.i, shlib-versions.v, and
7729 shlib-versions.v.i here.
7730 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7731 the Versions.def input files as dependencies.
7732 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7733 ($(common-objpfx)Versions.all): Depend on that instead of the input
7734 files. Use it as input instead of using a pipeline.
7735 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7736 (postclean-generated): Append those .v and .v.i files here.
7738 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7740 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7741 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7744 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7746 * sysdeps/generic/mp_clz_tab.c: New file.
7747 * sysdeps/i386/mp_clz_tab.c: New file.
7748 * sysdeps/hppa/mp_clz_tab.c: New file.
7749 * sysdeps/powerpc/mp_clz_tab.c: New file.
7750 * stdlib/Makefile (aux): Revert last patch.
7751 * math/Makefile (gmp-objs): Likewise.
7753 2002-03-13 Paul Eggert <eggert@twinsun.com>
7755 * time/strftime.c: Comment fixes for references to obsolescent
7756 standards, In most cases the simplest fix is to remove the
7757 confusing comments. Cross-referencing all the standards properly
7758 is a bit of a pain, and it should be enough to put that info in
7759 the documentation as I did in my recent time.texi patch.
7761 2002-03-13 Paul Eggert <eggert@twinsun.com>
7763 * manual/time.texi (Formatting Calendar Time):
7764 ISO C99 also specifies the E and O modifiers.
7765 %P is a GNU extension, and is not in ISO C99.
7766 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7767 %T is also in ISO C99.
7768 The RFC 822 example is not valid in arbitrary locales.
7769 Reword the POSIX.2 wording slightly, to make it a bit clearer
7770 that POSIX.2 formats are also supported by later POSIX versions.
7771 If a format was introduced in ISO C99 it is also required by
7774 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7776 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7777 _sys_nerr_internal with INTVARDEF2.
7778 * include/libc-symbols.h (INTVARDEF2): New macro.
7779 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7780 (_sys_nerr_internal): Library.
7782 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7783 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7785 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7787 2002-03-13 Wolfram Gloger <wg@malloc.de>
7789 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7791 2002-03-02 Andreas Schwab <schwab@suse.de>
7793 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7794 'h' flag and positional arg.
7795 * stdio-common/tst-printf.c (rfg3): New function to test
7796 positional arguments.
7797 (main): Fix some warnings.
7799 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7801 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7802 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7804 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7806 * grp/initgroups.c (__nss_group_data): Declare as hidden.
7808 * include/locale.h (_nl_C_locobj): Declare as hidden.
7810 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7811 * time/strptime.c (_nl_C_LC_TIME): Likewise.
7813 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7815 * include/sys/gmon.h: Declare _gmonparam as hidden.
7817 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7818 (__ctype32_wctrans): Likewise.
7819 (__ctype32_width): Likewise.
7821 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7824 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7826 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
7827 hidden. Change all users of these variables.
7829 * posix/regex_internal.h (__re_error_msgid): Renamed from
7830 re_error_msgid. Declare as hidden.
7831 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
7834 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7835 (__printf_function_table): Likewise.
7836 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7838 (__printf_function_table): Likewise.
7840 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7841 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7843 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7844 * nss/nsswitch.c: Declare _nss_*_database as hidden.
7846 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7847 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7849 2002-03-12 Ulrich Drepper <drepper@redhat.com>
7851 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7852 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7853 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7854 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7855 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7856 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7857 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7858 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7859 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7860 _nl_C_LC_CTYPE_width: Declare as hidden.
7861 * include/locale.h: Declare _nl_locale_file_list.
7862 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
7863 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
7864 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
7865 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
7866 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
7867 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
7868 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
7869 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
7870 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
7871 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
7872 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
7873 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
7874 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7875 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7876 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7877 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7878 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7879 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7880 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7881 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
7882 _nl_C_LC_CTYPE_width, and as hidden.
7883 * locale/findlocale.c: Declare _nl_C as hidden.
7884 * locale/newlocale.c: Likewise.
7885 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
7886 _nl_locale_file_list.
7887 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
7888 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
7889 Define _nl_C_locobj as hidden.
7891 * malloc/mtrace.c (_mtrace_file): Define as hidden.
7892 (_mtrace_line): Likewise.
7894 * include/time.h: Declare __mon_yday as hidden.
7895 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
7897 * libio/libioP.h: Declare __libio_codecvt as hidden.
7898 * libio/fileops.c: Declare __libio_translit as hidden.
7899 * libio/iofwide.c: Define __libio_translit as hidden.
7901 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
7902 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
7903 * login/getutline_r.c: Likewise.
7904 * login/utmpname.c: Likewise.
7906 * login/utmp-private.h: Declare __libc_utmp_file_functions,
7907 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
7908 __libc_utmp_file_name as hidden.
7910 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
7911 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
7912 * locale/freelocale.c: Likewise.
7913 * locale/lc-time.c: Likewise.
7915 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
7916 (__libc_ptyname2): Likewise.
7917 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
7919 (__libc_ptyname2): Likewise.
7921 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
7922 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
7923 * sysdeps/generic/init-first.c: Likewise.
7924 * sysdeps/i386/init-first.c: Likewise.
7925 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7926 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7927 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7928 * sysdeps/sh/init-first.c: Likewise.
7929 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7930 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7932 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
7933 (_itowa_upper_digits): Likewise.
7935 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
7936 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
7939 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
7940 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
7941 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
7942 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
7944 * gmon/gmon.c (__bb_head): Define as hidden.
7945 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
7947 * argp/argp-parse.c (_argp_hang): Define as static.
7949 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
7950 handling in latest compilers.
7952 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
7954 * libio/fileops.c (_IO_file_jumps): Likewise.
7955 * libio/stdfiles.c (_IO_list_all): Likewise.
7956 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
7958 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
7960 * include/malloc.h: Add __libc_malloc_initialized declaration
7961 here. Mark variable hidden.
7962 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
7964 * elf/dl-open.c (__libc_argc): Declare as hidden.
7965 (__libc_argv): Likewise.
7966 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
7967 (__libc_argv): Likewise.
7968 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
7969 __libc_argv as hidden.
7970 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7971 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7972 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7973 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7975 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
7976 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
7977 * stdlib/erand48.c: Likewise.
7978 * stdlib/jrand48.c: Likewise.
7979 * stdlib/lcong48.c: Likewise.
7980 * stdlib/lrand48.c: Likewise.
7981 * stdlib/mrand48.c: Likewise.
7982 * stdlib/nrand48.c: Likewise.
7983 * stdlib/seed48.c: Likewise.
7984 * stdlib/srand48.c: Likewise.
7986 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
7987 (_itoa_lower_digits_internal): New declaration.
7988 (_itoa_upper_digits_internal): New declaration.
7989 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
7990 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
7991 (_itoa_upper_digits_internal): New declaration.
7992 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
7994 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
7995 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
7997 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
7998 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8000 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8001 (_itowa_lower_digits): Likewise.
8002 (_itowa_upper_digits): Likewise.
8003 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8004 (_itowa_upper_digits): Likewise.
8006 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8007 not already defined.
8008 (GERMANIC_PLURAL): Declare as hidden.
8010 * posix/getopt.c (__getopt_initialized): Declare as hidden.
8011 (attribute_hidden): Define as empty macro if not already defined.
8013 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8014 (__gconv_max_path_elem_len): Likewise.
8015 (__gconv_path_envvar): Likewise.
8017 * math/Makefile (gmp-objs): Remove mp_clz_tab.
8018 * stdlib/Makefile (aux): Remove mp_clz_tab.
8019 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
8021 * stdlib/exit.h (__exit_funcs): Declare as hidden.
8023 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8025 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8026 _nl_category_names, _nl_category_name_sizes, _nl_current,
8027 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8029 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8030 (_nl_current_default_domain): Likewise
8031 (_nl_state_lock): Likewise.
8032 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8033 (_nl_current_default_domain): Likewise
8034 (_nl_state_lock): Likewise.
8035 * intl/bindtextdom.c (_nl_state_lock): Likewise.
8037 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8038 (_fpioconst_pow10): Likewise.
8040 * include/time.h (_tmbuf): Add attribute_hidden.
8042 * time/tzset.c (tzstring_list): Define as static.
8044 * include/time.h: Add attribute_hidden to __tzname_cur_max and
8045 __use_tzfile declaration.
8047 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8048 and __wcsmbs_last_locale declaration.
8050 2002-02-25 Paul Eggert <eggert@twinsun.com>
8052 * timezone/Makefile (tzbases): Move systemv from here...
8053 (tzlinks): to here, since the entries in systemv were all changed
8054 from Zone to Link lines in tz-2001a. Bug reported (and patch
8055 tested) by Peter Breitenlohner.
8057 2002-03-07 Jakub Jelinek <jakub@redhat.com>
8059 * time/tst-posixtz.c (tests): Add new tests.
8060 (main): Test whether tzset() sets daylight properly.
8062 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8064 * time/tzset.c (tz_compute): Move __daylight, __tzname and
8065 __tzname_cur_max setting...
8066 (tzset_internal): ...here.
8068 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8070 * time/tzset.c (compute_change): Don't return any value.
8071 (tz_compute): Likewise. Don't handle southern hemisphere here.
8072 (__tz_convert): But here.
8074 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8076 * manual/examples/mkfsock.c: Include <string.h> as well.
8077 Patch by Alain De Carolis <alaind@wseurope.com>.
8079 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
8081 * posix/regexec.c (re_match): Fix incorrect register sizes.
8082 (re_search): Likewise.
8084 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8086 * posix/regcomp.c (regfree): Remove a disused condition.
8087 * posix/regex_internal.c (re_acquire_state): Likewise.
8088 (re_acquire_state_context): Likewise.
8089 (register_state): Remove a redundant malloc invocation.
8090 * posix/regex_internal.h: (re_state_table_entry): Simplify
8093 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8095 * posix/regcomp.c (regcomp): Add __builtin_expect to error
8096 handling conditions.
8097 (regerror): Likewise.
8098 (regfree): Likewise.
8099 (re_compile_internal): Likewise.
8100 (init_dfa): Likewise.
8101 (init_word_char): Likewise.
8102 (create_initial_state): Likewise.
8103 (analyze): Likewise.
8104 (analyze_tree): Likewise.
8105 (duplicate_node): Likewise.
8106 (calc_eclosure): Likewise.
8107 (calc_eclosure_iter): Likewise.
8109 (parse_reg_exp): Likewise.
8110 (parse_branch): Likewise.
8111 (parse_expression): Likewise.
8112 (parse_subexp): Likewise.
8113 (parse_dup_op): Likewise.
8114 (parse_bracket_exp): Likewise.
8115 (build_equiv_class): Likewise.
8116 (build_charclass): Likewise.
8117 (build_word_op): Likewise.
8118 (fetch_number): Likewise.
8119 (create_tree): Likewise.
8120 (duplicate_tree): Likewise.
8121 * posix/regex.c (BE): New macro.
8122 * posix/regexec.c (re_match): Add __builtin_expect to error
8123 handling conditions.
8124 (re_match_2): Likewise.
8125 (re_search): Likewise.
8126 (re_search_internal): Likewise.
8127 (check_matching): Likewise.
8128 (proceed_next_node): Likewise.
8129 (set_regs): Likewise.
8130 (sift_states_backward): Likewise.
8131 (add_epsilon_backreference): Likewise.
8132 (transit_state): Likewise.
8133 (transit_state_sb): Likewise.
8134 (transit_state_mb): Likewise.
8135 (transit_state_bkref): Likewise.
8136 (transit_state_bkref_loop): Likewise.
8137 (build_trtable): Likewise.
8138 (group_nodes_into_DFAstates): Likewise.
8139 (match_ctx_init): Likewise.
8140 (match_ctx_add_entry): Likewise.
8141 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8142 to error handling conditions.
8143 (re_string_construct_toupper): Likewise.
8144 (build_wcs_buffer): Likewise.
8145 (build_wcs_upper_buffer): Likewise.
8146 (build_upper_buffer): Likewise.
8147 (re_string_translate_buffer): Likewise.
8148 (re_node_set_alloc): Likewise.
8149 (re_node_set_init_1): Likewise.
8150 (re_node_set_init_2): Likewise.
8151 (re_node_set_init_copy): Likewise.
8152 (re_node_set_intersect): Likewise.
8153 (re_node_set_init_union): Likewise.
8154 (re_node_set_merge): Likewise.
8155 (re_node_set_insert): Likewise.
8156 (re_dfa_add_node): Likewise.
8157 (re_acquire_state): Likewise.
8158 (re_acquire_state_context): Likewise.
8159 (create_new_state_common): Likewise.
8160 (register_state): Likewise.
8161 (create_ci_new_state): Likewise.
8162 (create_cd_new_state): Likewise.
8163 (re_string_context_at): Remove redundant condition.
8165 2002-01-16 Roger Sayle <roger@eyesopen.com>
8167 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8169 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8171 2002-03-11 Jakub Jelinek <jakub@redhat.com>
8173 * sysdeps/i386/elf/configure.in: Fix comment.
8175 * sysdeps/sparc/sparc64/configure.in: New file.
8176 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8177 if .dynamic comes before .got.
8178 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8180 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8181 HP_TIMING_ACCUM): Fix typos.
8183 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8185 * string/strfry.c: Add some more randomness to the seed.
8186 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8188 * po/es.po: Update from translation team.
8189 * po/fr.po: Likewise.
8191 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8193 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8194 when determining type of format.
8195 Patch by James Antill <james@anqd.org> [PR libc/2787].
8197 2002-03-04 Jakub Jelinek <jakub@redhat.com>
8199 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8201 2002-03-11 Roland McGrath <roland@frob.com>
8203 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8205 * Versions.def (libc): Add GLIBC_2.2.6.
8206 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8207 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8208 __errno_location instead of __hurd_errno_location, and don't inline it.
8209 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8210 * hurd/errno.c: New file.
8211 * hurd/Makefile (routines): Add errno.
8213 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8215 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8216 ridiculously large widths and precisions [PR libc/3026].
8218 2002-03-11 Andreas Jaeger <aj@suse.de>
8220 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8222 Patch by Susanne Oberhauser <froh@SuSE.de>.
8224 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8226 * inet/rexec.c (ahostbuf): Define as static.
8228 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8229 (__ctype32_wctrans): Likewise.
8230 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8231 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8232 (__ctype32_wctrans): Likewise.
8233 (__ctype32_width): Likewise.
8235 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8236 They were never exported anyway.
8238 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8239 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
8241 * include/sys/gmon.h: Declare _gmonparam.
8243 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8244 symbols for getdents64. They were never exported.
8246 2002-03-09 Roland McGrath <roland@frob.com>
8248 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8249 Reported by Jon Arney <jarney1@cox.net>.
8251 2002-02-23 Roland McGrath <roland@frob.com>
8253 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8255 (__hurd_errno_location): Function removed.
8257 2002-03-06 Andreas Jaeger <aj@suse.de>
8259 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8262 2002-03-04 Andreas Jaeger <aj@suse.de>
8264 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8266 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8269 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8271 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8273 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8275 * sysdeps/x86_64/bits/setjmp.h: New file.
8277 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8279 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8281 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8283 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8284 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8286 2002-02-28 Bo Thorsen <bo@suse.de>
8288 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8291 2002-03-03 Andreas Jaeger <aj@suse.de>
8293 * sysdeps/x86_64/bits/wordsize.h: New file.
8295 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8296 * elf/tst-tlsmod1.c: Likewise.
8298 * posix/regcomp.c: Get regex.h from include dir for internal
8301 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8302 to libc-internal.h and include it.
8303 * include/libc-internal.h: Add __init_misc.
8305 * misc/init-misc.c: Include libc-internal.h for prototypes.
8307 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8309 * misc/error.c [_LIBC]: Include libioP.h for prototype of
8312 2002-03-03 Ulrich Drepper <drepper@redhat.com>
8314 * posix/regcomp.c: Compatibility changes to allow using the code
8317 2002-02-28 Hartvig Ekner <hartvige@mips.com>
8319 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8322 2002-03-02 Ulrich Drepper <drepper@redhat.com>
8324 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8325 of .str elements in the returned data structure.
8327 * elf/elf.h: Add Alpha TLS bits.
8329 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8331 * sysdeps/unix/sysv/linux/nice.c: New file.
8333 2002-03-01 Ulrich Drepper <drepper@redhat.com>
8335 * elf/Makefile (dl-routines): Add dl-origin.
8336 (elide-routines.os): Add dl-origin.
8337 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8338 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8340 * include/libc-symbols.c: Define attribute_hidden depending on
8341 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
8343 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8344 * elf/dl-load.c: Likewise.
8345 * elf/rtld.c: Likewise.
8346 * include/unistd.h: Declare __libc_enable_secure_internal.
8347 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8348 Use INTUSE with __libc_enable_secure.
8349 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8351 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8352 * elf/dl-error.c: Likewise,
8353 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8355 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8356 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8357 function definition. Use INTDEF with _dl_get_origin.
8358 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8360 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8361 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
8363 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8364 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8365 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8367 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8368 * elf/dl-deps.c: Likewise.
8369 * elf/dl-error.c: Likewise.
8370 * elf/dl-fini.c: Likewise.
8371 * elf/dl-init.c: Likewise.
8372 * elf/dl-load.c: Likewise.
8373 * elf/dl-lookup.c: Likewise.
8374 * elf/dl-reloc.c: Likewise.
8375 * elf/dl-version.c: Likewise.
8376 * elf/do-lookup.h: Likewise.
8377 * sysdeps/arm/dl-machine.h: Likewise.
8378 * sysdeps/cris/dl-machine.h: Likewise.
8379 * sysdeps/hppa/dl-machine.h: Likewise.
8380 * sysdeps/i386/dl-machine.h: Likewise.
8381 * sysdeps/m68k/dl-machine.h: Likewise.
8382 * sysdeps/powerpc/dl-machine.h: Likewise.
8383 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8384 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8385 * sysdeps/sh/dl-machine.h: Likewise.
8386 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8387 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8388 * sysdeps/x86_64/dl-machine.h: Likewise.
8389 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
8390 _dl_argv[0]. Use INTUSE with _dl_argv.
8391 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8392 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8394 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8396 * elf/rtld.c (_rtld_global): Remove .protected.
8397 (_rtld_local): Strong alias to _rtld_global.
8398 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8400 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8401 _rtld_local instead of _rtld_global.
8402 (_rtld_local): Add hidden extern, possibly in .sdata section.
8403 * configure.in: Add tests for visibility attribute and .sdata.
8404 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8405 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8406 * sysdeps/arm/dl-machine.h: Likewise.
8407 * sysdeps/generic/ldsodefs.h: Likewise.
8408 * sysdeps/hppa/dl-machine.h: Likewise.
8409 * sysdeps/cris/dl-machine.h: Likewise.
8410 * sysdeps/i386/dl-machine.h: Likewise.
8411 * sysdeps/ia64/dl-machine.h: Likewise.
8412 * sysdeps/m68k/dl-machine.h: Likewise.
8413 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8414 * sysdeps/mips/dl-machine.h: Likewise.
8415 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8416 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8417 * sysdeps/sh/dl-machine.h: Likewise.
8418 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8419 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8420 * sysdeps/x86_64/dl-machine.h: Likewise.
8422 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8424 * login/login.c (login): Always initialize ut_line field
8427 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8429 * sysdeps/i386/Makefile (sysdep_routines): Add
8431 (shared-only-routines): Likewise.
8432 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8433 (shared-only-routines): Likewise.
8434 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8435 (shared-only-routines): Likewise.
8436 * sysdeps/wordsize-32/divdi3.c: New file.
8438 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8440 * locale/iso-4217.def: Remove obsolete currencies for countries
8443 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
8445 * posix/regcomp.c (regcomp): Remove a redundant condition.
8446 (init_word_char): Add a check on malloc failure.
8447 (create_initial_state): Likewise.
8448 (duplicate_node): Likewise.
8449 (calc_eclosure): Likewise.
8450 (calc_eclosure_iter): Likewise.
8451 (parse_expression): Likewise.
8452 (parse_bracket_exp): Remove unnecessary malloc invocations.
8453 (build_equiv_class): Likewise.
8454 (build_charclass): Likewise.
8455 * posix/regex_internal.c (re_node_set_intersect): Add a check
8457 (re_node_set_add_intersect): Likewise.
8458 (re_node_set_merge): Likewise.
8459 (re_acquire_state): Likewise.
8460 (re_acquire_state_context): Likewise.
8461 (create_newstate_common): Likewise.
8462 (register_state): Likewise.
8463 (create_ci_newstate): Likewise.
8464 (create_cd_newstate): Likewise.
8465 * posix/regex_internal.h: Fix prototypes of re_acquire_state
8466 and re_acquire_state_context.
8467 * posix/regexec.c (regexec): Suit it to the error handling of
8469 (re_match): Likewise.
8470 (re_search): Likewise.
8471 (re_search_internal): Add a check on malloc failure.
8472 (acquire_init_state_context): Likewise.
8473 (check_matching): Likewise.
8474 (proceed_next_node): Likewise.
8475 (set_regs): Likewise.
8476 (sift_states_backward): Likewise.
8477 (sift_states_iter_bkref): Likewise.
8478 (add_epsilon_backreference): Likewise.
8479 (transit_state): Likewise.
8480 (transit_state_sb): Likewise.
8481 (transit_state_mb): Likewise.
8482 (transit_state_bkref_loop): Likewise.
8483 (build_trtable): Likewise.
8484 (group_nodes_into_DFAstates): Likewise.
8485 (match_ctx_init): Likewise.
8486 (match_ctx_add_entry): Likewise.
8488 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8490 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8491 l_libname if profiling is enabled [PR libc/2916].
8493 * sysdeps/ia64/dl-tls.h: New file.
8495 2002-02-27 Jakub Jelinek <jakub@redhat.com>
8497 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8498 Work around an Alpha gas bug.
8500 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8502 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8503 uses read to load the catalog.
8504 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8506 2002-02-26 Ulrich Drepper <drepper@redhat.com>
8508 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8509 regex_internal.c, and regex_internal.h.
8510 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8511 * posix/regex.c: Complete rewrite.
8512 * posix/regexec.c: New file.
8513 * posix/regcomp.c: New file.
8514 * posix/regex_internal.c: New file.
8515 * posix/regex_internal.h: New file.
8516 * posix/regex.h (RE_ICASE): New macro.
8517 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8519 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8520 ungetwc. It's a macro.
8521 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8523 Reported by Jason Merrill <jason@redhat.com>.
8525 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8527 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8528 position to fp->_offset if it is set.
8529 * stdio-common/Makefile (tests): Add tst-fdopen.
8530 * stdio-common/tst-fdopen.c: New test.
8532 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8534 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8535 * stdio-common/tst-ungetc.c (main): Add another test.
8537 2002-02-25 Ulrich Drepper <drepper@redhat.com>
8539 * assert/assert-perr.c: Use INTUSE to reference functions and variables
8540 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
8541 aliases. Add prototypes for the new aliases.
8542 * assert/assert.c: Likewise.
8543 * include/libc-symbols.h: Likewise.
8544 * include/stdio.h: Likewise.
8545 * include/netinet/in.h: Likewise.
8546 * include/rpc/auth.h: Likewise.
8547 * include/rpc/auth_unix.h: Likewise.
8548 * include/rpc/key_prot.h: Likewise.
8549 * include/rpc/pmap_prot.h: Likewise.
8550 * include/rpc/pmap_rmt.h: Likewise.
8551 * include/rpc/rpc_msg.h: Likewise.
8552 * include/rpc/xdr.h: Likewise.
8553 * inet/gethstbyad_r.c: Likewise.
8554 * inet/gethstbynm2_r.c: Likewise.
8555 * inet/gethstbynm_r.c: Likewise.
8556 * inet/gethstent_r.c: Likewise.
8557 * inet/in6_addr.c: Likewise.
8558 * libio/__fpurge.c: Likewise.
8559 * libio/filedoalloc.c: Likewise.
8560 * libio/fileops.c: Likewise.
8561 * libio/ftello.c: Likewise.
8562 * libio/ftello64.c: Likewise.
8563 * libio/genops.c: Likewise.
8564 * libio/iofclose.c: Likewise.
8565 * libio/iofdopen.c: Likewise.
8566 * libio/iofflush.c: Likewise.
8567 * libio/iofflush_u.c: Likewise.
8568 * libio/iofgetpos.c: Likewise.
8569 * libio/iofgetpos64.c: Likewise.
8570 * libio/iofgets.c: Likewise.
8571 * libio/iofgets_u.c: Likewise.
8572 * libio/iofopen.c: Likewise.
8573 * libio/iofopncook.c: Likewise.
8574 * libio/iofputs.c: Likewise.
8575 * libio/iofread.c: Likewise.
8576 * libio/iofread_u.c: Likewise.
8577 * libio/iofsetpos.c: Likewise.
8578 * libio/iofsetpos64.c: Likewise.
8579 * libio/ioftell.c: Likewise.
8580 * libio/iofwrite.c: Likewise.
8581 * libio/iogetline.c: Likewise.
8582 * libio/iogets.c: Likewise.
8583 * libio/iogetwline.c: Likewise.
8584 * libio/iolibio.h: Likewise.
8585 * libio/iopadn.c: Likewise.
8586 * libio/iopopen.c: Likewise.
8587 * libio/ioseekoff.c: Likewise.
8588 * libio/ioseekpos.c: Likewise.
8589 * libio/iosetbuffer.c: Likewise.
8590 * libio/iosetvbuf.c: Likewise.
8591 * libio/ioungetc.c: Likewise.
8592 * libio/ioungetwc.c: Likewise.
8593 * libio/iovdprintf.c: Likewise.
8594 * libio/iovsprintf.c: Likewise.
8595 * libio/iovsscanf.c: Likewise.
8596 * libio/libioP.h: Likewise.
8597 * libio/memstream.c: Likewise.
8598 * libio/obprintf.c: Likewise.
8599 * libio/oldfileops.c: Likewise.
8600 * libio/oldiofclose.c: Likewise.
8601 * libio/oldiofdopen.c: Likewise.
8602 * libio/oldiofgetpos.c: Likewise.
8603 * libio/oldiofgetpos64.c: Likewise.
8604 * libio/oldiofopen.c: Likewise.
8605 * libio/oldiofsetpos.c: Likewise.
8606 * libio/oldiofsetpos64.c: Likewise.
8607 * libio/oldiopopen.c: Likewise.
8608 * libio/oldstdfiles.c: Likewise.
8609 * libio/putc.c: Likewise.
8610 * libio/setbuf.c: Likewise.
8611 * libio/setlinebuf.c: Likewise.
8612 * libio/stdfiles.c: Likewise.
8613 * libio/stdio.c: Likewise.
8614 * libio/strops.c: Likewise.
8615 * libio/vasprintf.c: Likewise.
8616 * libio/vscanf.c: Likewise.
8617 * libio/vsnprintf.c: Likewise.
8618 * libio/vswprintf.c: Likewise.
8619 * libio/wfiledoalloc.c: Likewise.
8620 * libio/wfileops.c: Likewise.
8621 * libio/wgenops.c: Likewise.
8622 * libio/wstrops.c: Likewise.
8623 * malloc/mtrace.c: Likewise.
8624 * misc/error.c: Likewise.
8625 * misc/syslog.c: Likewise.
8626 * nss/getXXbyYY_r.c: Likewise.
8627 * nss/getXXent_r.c: Likewise.
8628 * nss/hosts-lookup.c: Likewise.
8629 * stdio-common/getw.c
8630 * stdio-common/printf-prs.c: Likewise.
8631 * stdio-common/printf_fp.c: Likewise.
8632 * stdio-common/printf_size.c: Likewise.
8633 * stdio-common/putw.c: Likewise.
8634 * stdio-common/scanf.c: Likewise.
8635 * stdio-common/sprintf.c: Likewise.
8636 * stdio-common/tmpfile64.c: Likewise.
8637 * stdio-common/vfprintf.c: Likewise.
8638 * stdio-common/vfscanf.c: Likewise.
8639 * stdlib/strfmon.c: Likewise.
8640 * sunrpc/auth_des.c: Likewise.
8641 * sunrpc/auth_none.c: Likewise.
8642 * sunrpc/auth_unix.c: Likewise.
8643 * sunrpc/authdes_prot.c: Likewise.
8644 * sunrpc/authuxprot.c: Likewise.
8645 * sunrpc/clnt_perr.c: Likewise.
8646 * sunrpc/clnt_raw.c: Likewise.
8647 * sunrpc/clnt_tcp.c: Likewise.
8648 * sunrpc/clnt_udp.c: Likewise.
8649 * sunrpc/clnt_unix.c: Likewise.
8650 * sunrpc/key_call.c: Likewise.
8651 * sunrpc/key_prot.c: Likewise.
8652 * sunrpc/openchild.c: Likewise.
8653 * sunrpc/pm_getmaps.c: Likewise.
8654 * sunrpc/pm_getport.c: Likewise.
8655 * sunrpc/pmap_clnt.c: Likewise.
8656 * sunrpc/pmap_prot.c: Likewise.
8657 * sunrpc/pmap_prot2.c: Likewise.
8658 * sunrpc/pmap_rmt.c: Likewise.
8659 * sunrpc/rpc_cmsg.c: Likewise.
8660 * sunrpc/rpc_prot.c: Likewise.
8661 * sunrpc/svc_authux.c: Likewise.
8662 * sunrpc/svc_raw.c: Likewise.
8663 * sunrpc/svc_simple.c: Likewise.
8664 * sunrpc/svc_tcp.c: Likewise.
8665 * sunrpc/svc_udp.c: Likewise.
8666 * sunrpc/svc_unix.c: Likewise.
8667 * sunrpc/xdr.c: Likewise.
8668 * sunrpc/xdr_array.c: Likewise.
8669 * sunrpc/xdr_mem.c: Likewise.
8670 * sunrpc/xdr_rec.c: Likewise.
8671 * sunrpc/xdr_ref.c: Likewise.
8672 * sunrpc/xdr_stdio.c: Likewise.
8673 * sysdeps/generic/_strerror.c: Likewise.
8674 * sysdeps/generic/printf_fphex.c: Likewise.
8675 * sysdeps/generic/tmpfile.c: Likewise.
8676 * sysdeps/gnu/errlist.awk: Likewise.
8677 * sysdeps/gnu/errlist.c: Likewise.
8679 * libio/Makefile (routines): Remove iosprint.
8680 * libio/iosprintf.c: Removed
8683 2002-02-24 Ulrich Drepper <drepper@redhat.com>
8685 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8686 non_dynamic_init and exported now.
8687 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8688 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8690 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8691 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8692 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8694 2002-02-23 Ulrich Drepper <drepper@redhat.com>
8696 * elf/dl-close.c (free_slotinfo): Check for end of list and return
8699 * locale/iso-639.def: Add language codes for Walloon.
8701 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8702 total number of relocations performed.
8704 * elf/sprof.c (load_profdata): If do_test provide information as
8705 to why loading failed.
8706 * elf/dl-profile.c (_dl_start_profile): Initialize all of
8709 * csu/set-init.c: Moved to...
8710 * sysdeps/mach/hurd/set-init.c: ...here. New file.
8711 * csu/Makefile: Don't compile set-init.
8712 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8713 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8715 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8716 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8717 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8719 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
8722 2002-02-22 Ulrich Drepper <drepper@redhat.com>
8724 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8725 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8726 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8727 (_dl_deallocate_tls): New function.
8728 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8731 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8733 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8734 * stdio-common/tst-fseek.c (main): Add test for this.
8736 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
8738 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8740 2002-02-19 Jakub Jelinek <jakub@redhat.com>
8742 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8743 pointer before dereferencing.
8745 2002-02-18 Roland McGrath <roland@frob.com>
8747 * sysdeps/mach/hurd/times.c: Fix typo in last change.
8749 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8750 Use task_policy in place of task_priority.
8752 * sysdeps/generic/bits/mman.h
8753 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8754 * sysdeps/mach/msync.c: New file.
8756 * sysdeps/mach/powerpc/syscall.S: New file.
8758 * mach/msg.c [MACH_MSG_OVERWRITE]
8759 (__mach_msg_trap, __mach_msg_overwrite): New functions.
8760 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8762 * sysdeps/mach/configure.in: Check for clock.defs to put into
8763 mach_interface_list.
8764 * sysdeps/mach/configure: Regenerated.
8766 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8767 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8768 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8769 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8770 (mach-shortcuts): Add device_read_overwrite_request,
8771 device_read_overwrite, vm_read_overwrite, thread_switch.
8773 * configure.in (base_machine): Set to $machine by default.
8774 * configure: Regenerated.
8776 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8777 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8778 * sysdeps/mach/configure: Regenerated.
8779 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8781 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8783 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8785 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8786 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8788 2002-02-17 Roland McGrath <roland@frob.com>
8790 * sysdeps/mach/hurd/times.c
8791 [NO_CREATION_TIME] (startup_time): New static variable.
8792 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8793 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8794 creation_time from task_basic_info.
8795 (__times): Use __gettimeofday instead of __host_get_time.
8797 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8798 Use untyped Mach IPC message format.
8800 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8802 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8803 _S_catch_exception_raise_state_identity,
8804 _hurdsig_fault_catch_exception_raise_state,
8805 _hurdsig_fault_catch_exception_raise_state_identity.
8807 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8809 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8810 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8812 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8813 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8815 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8816 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
8817 them as no-op macros.
8818 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8819 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8821 * sysdeps/powerpc/dl-machine.h
8822 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8824 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8825 Use untyped Mach IPC message format.
8827 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8828 Handle untyped Mach IPC message formats.
8830 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8831 Expect different argument conventions when this is defined.
8832 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8833 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8834 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8835 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8836 for OSF Mach variant.
8837 (faulted): Use mig_reply_error_t for REPLY.
8838 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8839 in __thread_set_exception_ports call.
8840 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8841 __mach_port_set_attributes in place of __mach_port_set_qlimit.
8843 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8844 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8845 on Darwin, which includes bogons.
8847 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8848 variable LOADBASE so it's not declared when it's not used.
8850 2002-02-16 Roland McGrath <roland@frob.com>
8852 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8853 to use BI.creation_time.
8855 * mach/Machrules (MIG): Add -x c to CPP value passed down.
8857 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8858 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8859 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8860 host_page_size instead of vm_statistics.
8862 * sysdeps/mach/Makefile (mach-before-compile): Don't include
8863 mach_interface.h here, since not all variants use that name.
8865 * sysdeps/mach/configure.in: Add some checks for Mach headers
8866 to ensure a sane installation.
8867 (mach_interface_list): Define this variable by checking for .defs
8868 files found in various variants.
8869 * configure.in (mach_interface_list): AC_SUBST this.
8870 * config.make.in (mach-interface-list): New substituted variable.
8871 * mach/Makefile (user-interfaces): Define this using the value
8872 of $(mach-interface-list) instead of mach, mach4.
8873 Updated other references to mach_interface to use it as well.
8875 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
8877 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
8878 mig_reply_error_t for OSF Mach variant.
8880 * mach/Makefile (routines): Remove bootprivport.
8881 * mach/bootprivport.c: File removed. It has never been used.
8883 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
8884 Grok the OSF flavor of message format.
8885 (mach_msg_destroy_port): For MAKE_SEND and
8886 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
8887 no-senders notification.
8889 2002-02-06 Roland McGrath <roland@frob.com>
8891 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
8892 to here if 2.0 compatibility enabled ...
8893 (libc: GLIBC_2.1.3): ... from here.
8895 2002-02-15 Ulrich Drepper <drepper@redhat.com>
8897 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
8899 * elf/dl-close.c (_dl_close): Likewise.
8901 2002-02-14 Ulrich Drepper <drepper@redhat.com>
8903 * elf/Makefile: Add rules to build and run tst-tls8.
8904 * elf/tst-tls8.c: New file.
8905 * elf/tst-tlsmod4.c: New file.
8907 * stdlib/test-a64l.c (tests): Add more test cases.
8909 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
8910 Reported by Walter Harms <WHarms@bfs.de>.
8912 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
8914 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
8915 definitions for struct sigcontext.
8916 Suggested by David Mosberger-Tang.
8918 2002-02-13 Ulrich Drepper <drepper@redhat.com>
8920 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
8921 for removing reference of module in slotinfo list.
8922 (_dl_close): Use remove_slotinfo.
8923 * sysdeps/generic/dl-tls.c: General pretty printing.
8924 (oom): Define only if SHARED.
8925 (_dl_next_tls_modid): Correct starting point for the case we assume
8926 there is a gap. Add missing instruction grouping (doh!). Correct
8927 tests for reaching maximum index.
8928 * elf/Makefile: Add rules to build and run tst-tls7.
8929 * elf/tst-tls7.c: New file.
8930 * elf/tst-tlsmod3.c: New file.
8932 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
8934 * elf/tst-tlsmod2.c: Likewise.
8936 * elf/dl-close.c (_dl_close): When closing an object using TLS
8937 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
8938 true. Increment dl_tls_generation only if we closed any TLS-using
8940 * elf/tst-tls6.c: New file.
8941 * elf/Makefile: Add rules to build and run tst-tls6.
8943 * po/da.po: Update from translation team.
8945 * locale/categories.def: Fix typo [PR libc/2948].
8946 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
8948 * locale/iso-4217.def: Update from official version [PR libc/2950].
8949 * glibcbug.in: Honor TMPDIR [PR libc/2951].
8950 * locale/programs/ld-collate.c (collate_finish): Bail out with a
8951 message if input is too confusion instead of using assert.
8952 (collate_read): Don't crash on unknown symbol [PR libc/2952].
8953 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
8955 * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
8956 * elf/tst-tls2.c: Likewise.
8957 * elf/tst-tls3.c: Likewise.
8959 2002-02-13 Jakub Jelinek <jakub@redhat.com>
8961 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
8963 2002-02-13 Ulrich Drepper <drepper@redhat.com>
8965 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
8966 if this is really necessary.
8968 * elf/dl-close.c (_dl_close): Implement freeing entries in the
8970 (free_mem): Free memory for the slotinfo array if possible.
8972 2002-02-12 Andreas Schwab <schwab@suse.de>
8974 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
8976 2002-02-12 Ulrich Drepper <drepper@redhat.com>
8978 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
8980 (oom): New function.
8981 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
8982 (_dl_determine_tlsoffset): Likewise.
8983 (_dl_allocate_tls): Likewise.
8984 (__TLS_GET_ADDR): Define if not already defined.
8985 (_dl_tls_symaddr): New function.
8986 (allocate_and_init): New function.
8987 (__tls_get_addr): Actually implement handling of generation counter
8988 and deferred allocation.
8989 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
8990 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8992 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
8993 Declare _dl_tls_symaddr.
8994 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
8996 * include/link.h (struct link_map): Remove l_tls_nextimage and
8998 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
8999 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9000 (_dl_vsym): Likewise.
9001 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9003 (dl_main): Allow PT_TLS be present for empty segment. Remove
9004 nextimage list handling. Instead add all modules using TLS to
9005 dl_tls_dtv_slotinfo_list.
9006 * elf/dl-open.c (dl_open_worker): After successfully loading all
9007 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9008 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9009 empty segment don't do anything. Remove handling of initimage list.
9010 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9011 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9012 * elf/dl-minimal.c: Define __libc_memalign.
9013 * elf/dl-support.c: Remove _dl_initimage_list. Add
9014 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9016 * include/stdlib.h: Declare __libc_memalign.
9018 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9019 * elf/tst-tls4.c: New file.
9020 * elf/tst-tls5.c: New file.
9021 * elf/tst-tlsmod2.c: New file.
9023 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9025 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9027 * elf/tst-tls1.c: Use test-skeleton.c.
9028 * elf/tst-tls2.c: Likewise.
9029 * elf/tst-tls3.c: Likewise.
9031 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9033 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9035 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9037 2002-02-10 Ulrich Drepper <drepper@redhat.com>
9039 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9041 * elf/tst-tls3.c: New file.
9042 * elf/tst-tlsmod1.c: New file.
9043 * elf/Makefile: Add rules to build and run tst-tls3.
9045 * sysdeps/i386/dl-machine.h: Include <tls.h>.
9046 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9049 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9051 * po/fr.po: Update from translation team.
9053 * elf/tls-macros.h: Add alternative macros for use in PIC.
9055 * elf/dl-lookup.c: Include <tls.h>.
9056 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9058 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9059 required by passing pointer to last element of the list.
9061 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9062 l_tls_initimage to a place where it actually is performed.
9064 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9065 after globfree() calls.
9067 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9068 (openaux): Pass open_mode as new last argument to _dl_map_object.
9069 (_dl_map_object_deps): Add new argument open_mode. Initialize
9070 open_mode element of args variable with it.
9071 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9072 _dl_map_object_deps.
9073 * elf/rtld.c (dl_main): Add zero as last parameter to
9074 _dl_map_object_deps call.
9075 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9076 * elf/nodlopen2.c: New file.
9077 * elf/nodlopenmod2.c: New file.
9078 * elf/Makefile: Add rules to build and run nodlopen2.
9080 * elf/tst-tls1.c: Move TLS helper macros to...
9081 * elf/tls-macros.h: ...here. New file.
9082 * elf/tst-tls2.c: New file.
9083 * elf/Makefile (tests): Add tst-tls2.
9084 (distribute): Add tls-macros.h.
9086 * po/sv.po: Update from translation team.
9088 * elf/tst-tls1.c (main): Add complete set of tests. Split
9089 architecture specific definitions from the actual test code.
9091 * po/tr.po: Update from translation team.
9093 2002-02-09 Ulrich Drepper <drepper@redhat.com>
9095 * elf/Makefile (tests): Add tst-tls1.
9096 * elf/tst-tls1.c: New file.
9098 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9099 alignment of TCB for now.
9101 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9102 initialization image for the application itself.
9104 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9105 loop to initialize TLS block.
9107 2002-02-08 Richard Henderson <rth@redhat.com>
9109 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9110 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9112 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9114 2002-02-09 Jakub Jelinek <jakub@redhat.com>
9116 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9118 2002-02-08 Ulrich Drepper <drepper@redhat.com>
9120 * po/ca.po: Update from translation team.
9121 * po/sk.po: Likewise.
9123 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9124 (dl_main): Move dtv/static TLS handling before relocation.
9125 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
9126 TLS_INIT_TP to allocate and install the dtv/static TLS block.
9127 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9128 so far uses TLS initialize GL(dl_tls_static_size) and
9129 GL(dl_tls_static_align) to account for the TCB.
9130 (_dl_allocate_tls): New function.
9131 * sysdeps/generic/ldsodefs.h (rtld_global): Add
9132 _dl_initial_dtv_malloced.
9134 * configure.in: Test for __builtin_memset more realistically.
9136 * csu/version.c (banner): If TLS support is available say so.
9138 2002-02-04 H.J. Lu <hjl@gnu.org>
9140 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9142 (__dl_runtime_resolve): Likewise.
9144 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9147 2001-11-15 H.J. Lu <hjl@gnu.org>
9149 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9150 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9152 * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9154 2002-02-07 H.J. Lu <hjl@gnu.org>
9156 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9158 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9161 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9163 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9165 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9166 ___tls_get_addr_internal.
9167 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9169 * po/ko.po: Update from translation team.
9171 2002-02-07 Jakub Jelinek <jakub@redhat.com>
9173 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9174 attribute, change __pad{1,2} type to unsigned int.
9175 (struct stat64): Remove packed attribute.
9177 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9179 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9181 2002-02-07 Andreas Schwab <schwab@suse.de>
9183 * configure.in: Fix check for -zcombreloc.
9185 2002-02-06 H.J. Lu <hjl@gnu.org>
9187 * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9188 * configure.in: Check if __builtin_memset really works.
9189 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9190 __GNUC_PREREQ (2, 96) before using __builtin_memset.
9192 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9194 * io/bug-ftw3.c (main): Don't try the test if root.
9196 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
9198 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9200 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9201 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9202 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9204 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9205 a weak alias for __clone.
9206 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9207 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9208 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9209 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9210 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9211 a weak alias for __mmap64.
9213 2002-02-05 H.J. Lu <hjl@gnu.org>
9215 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9216 (atomic_add): Likewise.
9217 (compare_and_swap): Likewise.
9218 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9220 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9222 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9224 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9225 alignment of the TCB and store total size and alignment of static
9226 TLS block in _dl_tls_static_size and _dl_tls_static_align.
9227 tls_index is a typedef.
9228 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9229 _dl_tls_static_align.
9230 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9231 * elf/dl-support.c: Define _dl_tls_static_size and
9232 _dl_tls_static_align.
9234 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9236 * configure.in: Add --without-tls option.
9237 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9238 --without-tls is given.
9240 * sysdeps/generic/dl-tls.c: Include <tls.h>.
9242 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9244 2002-02-06 Roland McGrath <roland@frob.com>
9246 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9247 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9249 * scripts/versions.awk: Improve error message for missing version.
9250 Each version inherits from the last one only if they have the same
9251 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9252 but not GLIBC_x and FOO_y.
9254 * scripts/firstversions.awk: Handle libraries that don't have each
9255 particular version named in the third column of shlib-versions.
9257 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9259 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9261 * Versions.def [ld]: Add GLIBC_2.3.
9262 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9263 * elf/Makefile (dl-routines): Add dl-tls.
9264 (distribute): Add dl-tls.h.
9265 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9266 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9267 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9268 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9269 along with the other info in the link map. Change queueing of init
9270 images for double linked list. Use _dl_next_tls_modid to compute
9272 * elf/rtld.c (_dl_start_final): Store alignment requirement
9273 along with the other info in rtld map and executable map.
9274 (dl_main): Add ld.so to the init image list if necessary. Compute
9275 final module ID with _dl_next_tls_modid.
9276 * include/link.h (struct link_map): Add l_tls_previmage and
9278 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9279 * sysdeps/i386/elf/Versions: New file.
9280 * sysdeps/generic/dl-tls.c: New file.
9281 * sysdeps/generic/dl-tls.h: New file.
9282 * sysdeps/i386/dl-tls.h: New file.
9284 2002-02-06 Roland McGrath <roland@frob.com>
9286 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9287 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9289 2002-01-05 Roland McGrath <roland@frob.com>
9291 * sysdeps/mach/configure.in: New file.
9292 * sysdeps/mach/configure: New generated file.
9294 * mach/Makefile (user-interfaces): Remove default_pager_helper.
9295 It has never been used by anything.
9297 2002-02-06 H.J. Lu <hjl@gnu.org>
9299 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9302 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9304 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9305 attribute((packed)) to counter stupid people misusing gcc options.
9306 (struct stat64): Likewise.
9308 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9310 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
9311 the variables which are used as booleans.
9313 2002-02-06 Andreas Jaeger <aj@suse.de>
9315 * include/libc-symbols.h (INTUSE): Renamed from INT.
9316 * elf/dl-deps.c: Change users.
9317 * sysdeps/generic/dl-sysdep.c: Likewise.
9318 * sysdeps/generic/dl-cache.c: Likewise.
9319 * elf/dl-reloc.c: Likewise.
9320 * elf/rtld.c: Likewise.
9321 * elf/dl-version.c: Likewise.
9322 * elf/dl-load.c: Likewise.
9323 * elf/dl-dst.h: Likewise.
9324 * elf/dl-init.c: Likewise.
9325 * elf/dl-error.c: Likewise.
9326 * elf/dl-fini.c: Likewise.
9327 * elf/dl-runtime.c: Likewise.
9328 * elf/do-lookup.h: Likewise.
9330 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9332 * stdio-common/_itowa.h: Likewise.
9334 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9336 * elf/dl-minimal.c: Define _itoa_lower_digits.
9338 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9341 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9342 loading modules with the DF_STATIC_TLS flag set.
9343 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9345 * include/link.h (struct link_map): Add l_flags field.
9346 * elf/elf.h (DF_STATIC_TLS): New definition.
9348 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9349 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
9351 * elf/rtld.c (process_dl_debug): Correct printing help message.
9352 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9355 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9356 definition and pass &errno in use of this variable.
9357 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9359 2002-02-04 Andreas Schwab <schwab@suse.de>
9361 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9362 * locale/programs/charmap-dir.c: Wrap calls that output messages
9363 with WITH_CUR_LOCALE. Include "localedef.h" first.
9364 * locale/programs/charmap.c: Likewise.
9365 * locale/programs/ld-address.c: Likewise.
9366 * locale/programs/ld-collate.c: Likewise.
9367 * locale/programs/ld-ctype.c: Likewise.
9368 * locale/programs/ld-identification.c: Likewise.
9369 * locale/programs/ld-measurement.c: Likewise.
9370 * locale/programs/ld-messages.c: Likewise.
9371 * locale/programs/ld-monetary.c: Likewise.
9372 * locale/programs/ld-name.c: Likewise.
9373 * locale/programs/ld-numeric.c: Likewise.
9374 * locale/programs/ld-paper.c: Likewise.
9375 * locale/programs/ld-telephone.c: Likewise.
9376 * locale/programs/ld-time.c: Likewise.
9377 * locale/programs/linereader.c: Likewise.
9378 * locale/programs/linereader.h: Likewise.
9379 * locale/programs/localedef.c: Likewise.
9380 * locale/programs/locfile.c: Likewise.
9381 * locale/programs/repertoire.c: Likewise.
9383 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9385 * elf/rtld.c (_dl_start_final): Determine load address to locate
9386 ehdr with GL(dl_rtld_map).l_map_start.
9388 * po/ca.po: Update from translation team.
9390 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9391 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9393 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9395 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9397 2002-02-04 Ulrich Drepper <drepper@redhat.com>
9399 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9400 * include/link.h (struct link_map): Add various members for TLS
9402 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9403 _rtld_tlsoffset, add _dl_initimage_list.
9404 * sysdeps/i386/dl-lookupcfg.h: New file.
9405 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9406 TLS relocation. When using TLS we now use RESOLVE_MAP.
9407 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9410 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9413 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9414 thread-pointer as soon as possible.
9415 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
9416 elements in rtld_global.
9417 * sysdeps/generic/tls.h: New file.
9418 * elf/Makefile (distribute): Add tls.h.
9419 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9420 relocations. Not complete yet.
9422 * resolv/resolv.h: Allow user to define __need_res_state and only
9423 define __res_start structure then.
9424 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9426 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9427 dl_cpuclock_offset initialization to _dl_start_final.
9428 (_dl_show_auxv): Avoid unnecessary sign extension.
9429 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9431 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9433 * config.h.in: Add HAVE_TLS_SUPPORT.
9434 * sysdeps/i386/elf/configure.in: New file.
9436 2002-02-03 Andreas Schwab <schwab@suse.de>
9438 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9439 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
9441 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
9443 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9444 alloca if the memory reqirements are too high.
9446 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9448 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9449 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9450 the former is available anyway and speed isn't important here.
9451 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9452 * elf/dl-version.c (match_symbol): Likewise.
9453 (_dl_check_map_versions): Likewise.
9454 * elf/rtld.c (process_envvars): Likewise.
9455 (print_statistics): Likewise.
9456 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9457 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
9458 bases. Add assert to catch uses of unimplemented features.
9459 (__strsep): Add assert to catch uses of unimplemented features.
9460 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
9461 and avoid inline optimization.
9462 * elf/rtld.c (process_envvars): Likewise.
9463 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9464 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9465 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9467 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9469 * stdio-common/_itoa.h: Minor simplifications of the code.
9470 * stdio-common/_itoa.c: Likewise.
9472 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9473 instead of _dl_printf for debugging info output.
9475 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9476 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9478 2002-02-01 H.J. Lu <hjl@gnu.org>
9480 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9481 (atomic_add): Likewise.
9482 (compare_and_swap): Return 0 only when failed to compare. Use
9485 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9488 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
9490 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9492 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9494 * elf/dl-minimal.c (__strsep): New minimal implementation.
9496 2002-02-02 Paul Eggert <eggert@twinsun.com>
9498 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9499 (__mktime_internal): If no tm_isdst is requested, prefer solutions
9500 with tm_isdst > 0 when the requested time falls within a
9501 spring-forward gap [PR libc/2894].
9503 2002-02-03 Andreas Schwab <schwab@suse.de>
9505 * stdio-common/tst-rndseek.c: Increase timeout.
9507 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9509 Change ld.so to not use functions which are exported. One cannot
9510 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
9512 * include/libc-symbols.h: Define INT and INTDEF.
9513 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9514 _dl_signal_error_internal, _dl_map_object_internal,
9515 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9516 _dl_lookup_versioned_symbol_internal,
9517 _dl_relocate_object_internal, _dl_debug_state_internal,
9518 _dl_start_profile_internal, and _dl_unload_cache_internal.
9519 * include/dlfcn.h: Declare _dl_catch_error_internal.
9520 * elf/rtld.c: Use INT for calls to any of the *_internal functions
9521 above. Add INTDEF to function definitions.
9522 * elf/dl-debug.c: Likewise.
9523 * elf/dl-deps.c: Likewise.
9524 * elf/dl-dst.h: Likewise.
9525 * elf/dl-error.c: Likewise.
9526 * elf/dl-fini.c: Likewise.
9527 * elf/dl-init.c: Likewise.
9528 * elf/dl-load.c: Likewise.
9529 * elf/dl-lookup.c: Likewise.
9530 * elf/dl-misc.c: Likewise.
9531 * elf/dl-open.c: Likewise.
9532 * elf/dl-profile.c: Likewise.
9533 * elf/dl-reloc.c: Likewise.
9534 * elf/dl-runtime.c: Likewise.
9535 * elf/dl-version.c: Likewise.
9536 * elf/do-lookup.h: Likewise.
9537 * sysdeps/generic/dl-cache.c: Likewise.
9538 * sysdeps/generic/dl-sysdep.c: Likewise.
9539 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9540 instead of _dl_init.
9541 * sysdeps/arm/dl-machine.h: Likewise.
9542 * sysdeps/cris/dl-machine.h: Likewise.
9543 * sysdeps/hppa/dl-machine.h: Likewise.
9544 * sysdeps/i386/dl-machine.h: Likewise.
9545 * sysdeps/ia64/dl-machine.h: Likewise.
9546 * sysdeps/m68k/dl-machine.h: Likewise.
9547 * sysdeps/mips/dl-machine.h: Likewise.
9548 * sysdeps/mips/mips64/dl-machine.h: Likewise.
9549 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9550 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9551 * sysdeps/sh/dl-machine.h: Likewise.
9552 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9553 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9554 * sysdeps/x86_64/dl-machine.h: Likewise.
9555 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9557 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9558 and _dl_debug_initialize.
9560 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
9562 * elf/rtld.c (dl_main): Avoid strrchr.
9563 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9564 result of readlink. Search from the back for '/'.
9566 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9567 strncpy if possible.
9569 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
9571 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
9572 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9573 strspn, and strcspn.
9574 (process_envvars): Don't use strcspn.
9576 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9577 (_dl_dst_substitute): Likewise.
9579 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9581 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9582 code which is never used when relocating ld.so itself.
9584 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9585 starting ld.so itself. Move l_addr variable initialization closer
9587 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9589 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9591 * Versions.def (libc): Add GLIBC_PRIVATE.
9592 (libdb, libnss_db, libdb1): Remove.
9593 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9594 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9595 (libpthread): Add GLIBC_PRIVATE.
9596 (libresolv): Likewise, remove GLIBC_2.1.
9597 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9598 GLIBC_2.2.3, GLIBC_2.3.
9599 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9600 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9601 _dl_sym, _dl_vsym): Likewise.
9602 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9603 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9604 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9605 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9606 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9607 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9608 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9609 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9611 (_dl_object_relocation_scope): Remove.
9612 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9613 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9614 __gconv_cache): Move to GLIBC_PRIVATE.
9615 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9616 __internal_setnetgrent): Likewise.
9617 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9618 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9619 * locale/Versions (__collate_element_hash, __collate_element_strings,
9620 __collate_symbol_classes, __collate_symbol_hash,
9621 __collate_symbol_strings, _nl_current_LC_COLLATE,
9622 _nl_current_LC_CTYPE): Likewise.
9623 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9624 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9625 (libnss_nis, libnss_nisplus): Likewise.
9626 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9627 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9628 (libnss_files): Move all symbols to GLIBC_PRIVATE.
9629 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9630 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9631 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9632 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9633 __ns_get16, __ns_samename): Likewise.
9634 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9635 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9637 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9638 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9639 __libc_connect): Likewise.
9640 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9642 * stdlib/Versions (__libc_system): Likewise.
9643 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9644 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9645 * sysdeps/ia64/fpu/Versions: Likewise.
9646 * sysdeps/ia64/Versions: Likewise.
9647 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9648 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9650 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9651 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9652 __libc_sigaction): Likewise.
9653 * termios/Versions (__libc_tcdrain): Likewise.
9655 * misc/sys/cdefs (__attribute_noinline__): Define.
9656 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9657 __attribute_noinline__.
9659 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9660 * elf/dl-xstat64.c: New file.
9661 * elf/dl-fxstat64.c: New file.
9662 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9663 don't export __fxstat64 at multiple versions.
9664 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9665 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9667 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
9669 * locale/program/ld-collate.c (collate_finish): Assign a wide
9670 char collation sequence value to multi character collating
9671 elements, and avoid over writing by non-character elements.
9673 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9675 * elf/Makefile (distribute): Add dl-procinfo.c.
9676 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9677 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9679 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9681 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9683 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9684 _rtld_global struct.
9685 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9686 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9687 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9688 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9689 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9690 _dl_fpu_control_set): Remove unused externs.
9691 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9692 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9693 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9694 related variables in _rtld_global struct.
9695 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9696 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9699 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9701 * sysdeps/generic/dl-procinfo.c: New file.
9703 2002-02-01 Andreas Schwab <schwab@suse.de>
9705 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9707 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9709 * elf/rtld.c (_dl_start): Mark as internal_function.
9710 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9712 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9713 General pretty printing.
9715 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9717 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9718 * elf/dl-reloc.c: Pretty printing.
9719 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9720 procinfo-related variables in rtld_global struct.
9721 * elf/dl-support.c: Likewise.
9722 * elf/rtld.c: Likewise.
9723 * sysdeps/i386/i686/Makefile: Likewise.
9724 * sysdeps/i386/i686/hp-timing.c: Likewise.
9725 * sysdeps/i386/i686/hp-timing.h: Likewise.
9726 * sysdeps/ia64/Makefile: Likewise.
9727 * sysdeps/ia64/hp-timing.c: Likewise.
9728 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9729 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9730 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9731 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9732 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9733 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9734 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9735 * sysdeps/x86_64/Makefile: Likewise.
9737 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9738 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9739 _dl_debug_fd to rtld_global.
9740 * elf/Versions: Likewise.
9741 * elf/dl-close.c: Likewise.
9742 * elf/dl-iteratephdr.c: Likewise.
9743 * elf/dl-lookup.c: Likewise.
9744 * elf/dl-misc.c: Likewise.
9745 * elf/dl-open.c: Likewise.
9746 * elf/dl-support.c: Likewise.
9747 * elf/do-lookup.h: Likewise.
9748 * elf/rtld.c: Likewise.
9749 * sysdeps/generic/dl-cache.c: Likewise.
9750 * sysdeps/generic/dl-sysdep.c: Likewise.
9751 * sysdeps/ia64/Versions: Likewise.
9752 * sysdeps/unix/clock_gettime.c: Likewise.
9753 * sysdeps/unix/clock_settime.c: Likewise.
9754 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9755 * sysdeps/sparc/Versions: Removed.
9756 * sysdeps/i386/i686/Versions : Removed.
9757 * sysdeps/x86_64/Versions: Removed.
9758 * configure.in: Define HAVE_PROTECTED if .protected is available.
9759 * config.h.in: Add entry for HAVE_PROTECTED.
9761 2002-01-31 Jakub Jelinek <jakub@redhat.com.
9763 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9764 code in struct _rtld_global. Export this struct, remove all
9765 exports for the signal variables.
9766 * sysdeps/arm/dl-machine: Likewise.
9767 * sysdeps/generic/dl-origin: Likewise.
9768 * sysdeps/generic/dl-sysdep: Likewise.
9769 * sysdeps/generic/dl-cache: Likewise.
9770 * sysdeps/hppa/dl-fptr: Likewise.
9771 * sysdeps/hppa/dl-machine: Likewise.
9772 * sysdeps/cris/dl-machine: Likewise.
9773 * sysdeps/i386/dl-machine: Likewise.
9774 * sysdeps/ia64/dl-machine: Likewise.
9775 * sysdeps/m68k/dl-machine: Likewise.
9776 * sysdeps/mach/hurd/dl-sysdep: Likewise.
9777 * sysdeps/mips/mips64/dl-machine: Likewise.
9778 * sysdeps/mips/dl-machine: Likewise.
9779 * sysdeps/powerpc/elf/libc-start: Likewise.
9780 * sysdeps/powerpc/dl-machine: Likewise.
9781 * sysdeps/powerpc/dl-start: Likewise.
9782 * sysdeps/sparc/sparc32/dl-machine: Likewise.
9783 * sysdeps/sparc/sparc64/dl-machine: Likewise.
9784 * sysdeps/sh/dl-machine: Likewise.
9785 * sysdeps/s390/s390-32/dl-machine: Likewise.
9786 * sysdeps/s390/s390-64/dl-machine: Likewise.
9787 * sysdeps/unix/sysv/aix/libc-start: Likewise.
9788 * sysdeps/unix/sysv/aix/start-libc: Likewise.
9789 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9790 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9791 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9792 * sysdeps/x86_64/dl-machine: Likewise.
9794 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9796 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9799 2002-01-31 Andreas Schwab <schwab@suse.de>
9801 * sysdeps/posix/readv.c: Check for ssize_t overflow.
9803 2002-01-31 Andreas Schwab <schwab@suse.de>
9805 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9806 reference to _dl_pagesize.
9808 2002-01-30 Ulrich Drepper <drepper@redhat.com>
9810 * Versions.def [ld]: Add GLIBC_2.3.
9811 * elf/dl-addr.c: Move global variables for SHARED code in struct
9812 _rtld_global. Export this struct, remove all exports for the
9814 * elf/dl-close.c: Likewise.
9815 * elf/dl-conflict.c: Likewise.
9816 * elf/dl-debug.c: Likewise.
9817 * elf/dl-deps.c: Likewise.
9818 * elf/dl-dst.h: Likewise.
9819 * elf/dl-error.c: Likewise.
9820 * elf/dl-fini.c: Likewise.
9821 * elf/dl-init.c: Likewise.
9822 * elf/dl-iteratephdr.c: Likewise.
9823 * elf/dl-libc.c: Likewise.
9824 * elf/dl-load.c: Likewise.
9825 * elf/dl-lookup.c: Likewise.
9826 * elf/dl-minimal.c: Likewise.
9827 * elf/dl-object.c: Likewise.
9828 * elf/dl-open.c: Likewise.
9829 * elf/dl-profile.c: Likewise.
9830 * elf/dl-profstub.c: Likewise.
9831 * elf/dl-reloc.c: Likewise.
9832 * elf/dl-runtime.c: Likewise.
9833 * elf/dl-support.c: Likewise.
9834 * elf/dl-sym.c: Likewise.
9835 * elf/dl-version.c: Likewise.
9836 * elf/do-lookup.h: Likewise.
9837 * elf/do-rel.h: Likewise.
9838 * elf/dynamic-link.h: Likewise.
9839 * elf/rtld.c: Likewise.
9840 * sysdeps/generic/dl-cache.c: Likewise.
9841 * sysdeps/generic/dl-sysdep.c: Likewise.
9842 * sysdeps/generic/ldsodefs.h: Likewise.
9843 * sysdeps/generic/libc-start.c: Likewise.
9844 * sysdeps/i386/dl-machine.h: Likewise.
9845 * sysdeps/ia64/dl-fptr.c: Likewise.
9846 * sysdeps/ia64/dl-machine.h: Likewise.
9847 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9848 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9849 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9850 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9851 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9852 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9853 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9854 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9856 2002-01-29 Ulrich Drepper <drepper@redhat.com>
9858 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9860 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9862 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
9864 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
9866 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
9868 2002-01-29 Ben Collins <bcollins@debian.org>
9870 * string/bits/string2.h (__mempcpy): Protect size arg for
9871 addition when using __builtin_memcpy.
9873 2002-01-29 Ulrich Drepper <drepper@redhat.com>
9875 * stdlib/Makefile (tests): Add tst-qsort.
9876 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
9878 * manual/signal.texi (Process Signal Mask): Document that
9879 pthread_sigmask, not sigprocmask, must be used in MT programs.
9880 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
9882 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
9884 * misc/Makefile (tests): Add tst-hsearch.
9885 * misc/tst-hsearch.c: New file.
9887 2002-01-18 Wolfram Gloger <wg@malloc.de>
9889 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
9890 * malloc/malloc.h: Likewise.
9891 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
9892 * malloc/arena.c: New file.
9893 * malloc/hooks.c: New file.
9894 * malloc/tst-mallocstate.c: New file.
9895 * malloc/Makefile: Add new testcase tst-mallocstate.
9896 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
9898 2002-01-28 Ulrich Drepper <drepper@redhat.com>
9900 * stdlib/msort.c: Remove last patch. The optimization violates the
9901 same rule which qsort.c had problems with.
9903 2002-01-27 Paul Eggert <eggert@twinsun.com>
9905 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
9906 to a pivot element that lies outside the array to be sorted, as
9907 ISO C99 requires that the comparison function be called only with
9908 addresses of array elements [PR libc/2880].
9910 2002-01-28 Ulrich Drepper <drepper@redhat.com>
9912 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
9913 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
9915 * timezone/asia: Update from tzdata2002b.
9916 * timezone/australasia: Likewise.
9917 * timezone/backward: Likewise.
9918 * timezone/europe: Likewise.
9919 * timezone/leapseconds: Likewise.
9920 * timezone/iso3166.tab: Likewise.
9921 * timezone/zone.tab: Likewise.
9923 2002-01-23 Richard Henderson <rth@redhat.com>
9925 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
9927 2002-01-28 Ulrich Drepper <drepper@redhat.com>
9929 * string/strxfrm.c: Allocate one more byte for rulearr and clear
9930 this element [PR libc/2855].
9932 * string/strcoll.c: Handle zero-length arguments specially
9935 2002-01-23 Jakub Jelinek <jakub@redhat.com>
9937 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
9938 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
9939 short lengths and constant src.
9940 (strcpy): Don't optimize for gcc 3.0+.
9941 (__stpcpy): For gcc 3.0+, don't use
9942 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
9943 for short string literal src.
9945 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
9947 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
9950 2001-01-22 Paul Eggert <eggert@twinsun.com>
9952 * manual/llio.texi (Linked Channels, Cleaning Streams):
9953 Make it clearer that a just-opened input stream might need cleaning.
9955 2002-01-21 H.J. Lu <hjl@gnu.org>
9957 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9958 Don't use label at end of compound statement.
9960 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
9962 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
9963 Remove test for negative integer arg; sin_pi does it correctly.
9965 2002-01-20 Ulrich Drepper <drepper@redhat.com>
9967 * nscd/Makefile (distribute): Filter out xmalloc.c.
9969 2002-01-19 Ulrich Drepper <drepper@redhat.com>
9971 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
9972 Set offset if read end wasn't the buffer end.
9973 (_IO_file_seekoff_mmap): New function.
9974 (_IO_file_xsgetn_mmap): New function.
9975 (_IO_file_jumps_mmap): Use the two new functions.
9976 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
9978 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
9979 _IO_file_underflow_mmap.
9980 * libio/iofopen.c: Don't position file descriptor at end of file.
9981 * libio/tst-widetext.c: Improve error messages.
9982 * stdio-common/tst-rndseek.c: Likewise.
9984 2002-01-18 Ulrich Drepper <drepper@redhat.com>
9986 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
9987 end of enum for !_GNU_SOURCE.
9988 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
9989 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
9990 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
9991 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
9992 values unless _GNU_SOURCE.
9994 * iconvdata/tcvn5712-1.c: Minor cleanups.
9996 2002-01-18 Andreas Schwab <schwab@suse.de>
9998 * sysdeps/unix/sysv/linux/configure.in
9999 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10001 2002-01-16 Roger Sayle <roger@eyesopen.com>
10003 * stdlib/msort.c (msort_with_tmp): Replace implementation with
10004 more efficient "Towers of Hanoi" mergesort.
10005 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10006 for generic, sizeof(int) and sizeof(long) variants respectively.
10008 2002-01-17 Ulrich Drepper <drepper@redhat.com>
10010 * manual/syslog.texi (openlog): Describe possible problems with
10012 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10014 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
10015 * nscd/connections.c (begin_drop_privileges): New function.
10016 (finish_drop_privileges): New function.
10017 (nscd_init): Call the new functions which also install all groups
10018 for the server user.
10019 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10020 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10022 2002-01-17 H.J. Lu <hjl@gnu.org>
10024 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10025 `const' from `got'.
10027 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
10029 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10030 instructions for pointer operations.
10031 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10033 2002-01-17 Andreas Jaeger <aj@suse.de>
10035 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10036 __uint128_t build-in.
10038 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10039 PowerPC, sync with 2.2 branch.
10041 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10043 * posix/getconf.c: Update copyright year.
10044 * nss/getent.c: Likewise.
10045 * nscd/nscd_nischeck.c: Likewise.
10046 * iconv/iconvconfig.c: Likewise.
10047 * iconv/iconv_prog.c: Likewise.
10048 * elf/ldconfig.c: Likewise.
10049 * catgets/gencat.c: Likewise.
10050 * csu/version.c: Likewise.
10051 * elf/ldd.bash.in: Likewise.
10052 * elf/sprof.c (print_version): Likewise.
10053 * locale/programs/locale.c: Likewise.
10054 * locale/programs/localedef.c: Likewise.
10055 * nscd/nscd.c (print_version): Likewise.
10056 * debug/xtrace.sh: Likewise.
10057 * malloc/memusage.sh: Likewise.
10058 * malloc/mtrace.pl: Likewise.
10060 2002-01-16 Andreas Schwab <schwab@suse.de>
10062 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10063 reliably remove "-ia64" from rtld name.
10065 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10067 * iconvdata/gb18030.c: Bug fixes and support for more characters.
10068 Patch by Yu Shao <yshao@redhat.com>.
10070 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
10072 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10073 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10074 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10076 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
10078 * sysdeps/s390/fpu/libm-test-ulps: Update.
10080 2002-01-11 Ulrich Drepper <drepper@redhat.com>
10082 * elf/elf.h: Update x86 relocations.
10084 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10086 * locale/programs/charmap.c (new_width): Check whether byte
10087 sequences for both ends of range have the same length.
10089 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10091 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10093 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10095 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10097 (__full_ieee754_sqrt): Add __attribute_used__.
10099 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10101 * sysdeps/generic/group_member.c (__group_member): Also check
10102 groups[0] [PR libc/2781].
10104 2002-01-08 Ulrich Drepper <drepper@redhat.com>
10106 * Makefile (distribute): Add scripts/cpp.
10107 * elf/Makefile (distribute): Add reldep6mod[01234].c,
10108 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10109 unwind-dw2-fde.h, and dwarf2.h.
10110 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10111 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10112 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10113 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10115 2002-01-07 Roland McGrath <roland@frob.com>
10117 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10118 volatile on type of ARGC so the compiler doesn't get clever.
10120 2002-01-07 Andreas Jaeger <aj@suse.de>
10122 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10123 * sysdeps/i386/bits/byteswap.h: Likewise.
10124 * sysdeps/ia64/bits/byteswap.h: Likewise.
10125 * sysdeps/m68k/bits/byteswap.h: Likewise.
10126 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10127 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10129 2002-01-02 Bruno Haible <bruno@clisp.org>
10131 * intl/plural.y: Fix %expect count.
10133 2002-01-03 Jakub Jelinek <jakub@redhat.com>
10135 * elf/Makefile (routines, shared-only-routines): Add
10136 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10137 * elf/elf.h (PT_GNU_EH_FRAME): Define.
10138 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10139 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10140 Optimize if .eh_frame section contains no FDEs.
10141 (__register_frame, __deregister_frame_info_bases,
10142 __deregister_frame): Likewise.
10143 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10144 DW_CFA_restore handling.
10146 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
10148 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10150 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10151 for x < 0.25 and restore original range reduction method.
10152 (__ieee754_lgammal_r): Make sure signgam is set before returning.
10154 2002-01-07 Ulrich Drepper <drepper@redhat.com>
10156 * libio/fileops.c (_IO_file_underflow_mmap): New function.
10157 (_IO_file_close_mmap): New function.
10158 (_IO_file_jumps_mmap): New variable.
10159 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10160 trying to convert rest of byte buffer.
10161 (_IO_wfile_underflow_mmap): New function.
10162 (_IO_wfile_jumps_mmap): New variable.
10163 * libio/iofopen.c (__fopen_maybe_mmap): New function.
10164 (__fopen_internal): New function. Split out from _IO_new_fopen.
10165 (_IO_new_fopen): Call __fopen_internal.
10166 * libio/iofopen64.c: Just call __fopen_internal.
10167 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10169 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10170 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10171 _IO_file_close_mmap.
10173 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10174 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10176 * stdio-common/Makefile (tests): Add tst-rndseek.
10177 * stdio-common/tst-rndseek.c: New file.
10179 2002-01-05 Roland McGrath <roland@frob.com>
10181 * config.h.in (HAVE_MIG_RETCODE): New #undef.
10182 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10183 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10184 * sysdeps/mach/hurd/configure: Regenerated.
10186 2002-01-03 Ulrich Drepper <drepper@redhat.com>
10188 * elf/elf.h: Add more TLS definitions.
10190 2002-01-02 Ulrich Drepper <drepper@redhat.com>
10192 * include/features.h (__GLIBC_MINOR__): Bump to 3.
10194 2002-01-02 Roland McGrath <roland@frob.com>
10196 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10197 __sigisemptyset. Don't use MASK uninitialized.
10199 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10200 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10201 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10202 __sigdelset, __sigaddset, __sigorset.
10204 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10205 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10207 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10208 _hurd_ports is null.
10210 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10211 for old CMU and new OSF Mach interface flavors.
10212 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10213 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10215 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10217 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10218 Pass extra arguments to task_create for OSF variant.
10219 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10221 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10222 conditional on [HAVE_AUX_VECTOR].
10224 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10225 mach_msg_timeout_t as type of final argument.
10227 * hurd/privports.c (__get_privileged_ports):
10228 Change host_priv_t to mach_port_t in argument type.
10229 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10232 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10233 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
10234 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10235 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10236 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10237 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10239 2002-01-01 Roland McGrath <roland@frob.com>
10241 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10243 2002-01-01 Ulrich Drepper <drepper@redhat.com>
10245 * include/stdlib.h: Define inlines for the _l variants of the strto*
10248 2002-01-01 Roland McGrath <roland@frob.com>
10250 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10252 * mach/Machrules (MIG): Set CPP as well as CC.
10254 2001-12-31 Ulrich Drepper <drepper@redhat.com>
10256 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10257 locale to parse /proc/loadavg [PR libc/2760].
10259 2001-12-31 Jakub Jelinek <jakub@redhat.com>
10261 * elf/dl-conflict.c: Include sys/param.h.
10262 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10263 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10265 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10266 literals to avoid warnings.
10268 2001-12-31 Andreas Jaeger <aj@suse.de>
10270 * configure.in: Don't check for gsed since we do not use it anywhere.
10272 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10274 * io/fts.c: Update from BSD to fix memory leaks.
10276 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10278 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10279 * elf/chroot_canon.c: Likewise.
10280 * elf/dl-object.c: Likewise.
10281 * iconv/iconv_charmap.c: Likewise.
10282 * iconv/iconv_prog.c: Likewise.
10283 * libio/iogetdelim.c: Likewise.
10284 * locale/lc-time.c: Likewise.
10285 * stdlib/canonicalize.c: Likewise.
10286 * sunrpc/svc.c: Likewise.
10287 * sysdeps/generic/glob.c: Likewise.
10289 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10291 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10292 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10293 remove high order bit from the program counter.
10294 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10296 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10298 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10299 unnecessary code and add missing reloc types.
10300 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10301 case for reloc type R_390_NONE.
10303 2001-12-28 Andreas Jaeger <aj@suse.de>
10305 * io/bug-ftw3.c: Include string.h for prototypes.
10307 * crypt/md5test.c (main): Remove unused variable.
10309 * dlfcn/modstatic.c: Add prototype to avoid warning.
10311 2001-12-26 Roland McGrath <roland@frob.com>
10313 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10314 check only (SS->pending & MASK) for the signal to return.
10315 From Jeroen Dekkers <jeroen@dekkers.cx>.
10317 2001-12-22 Roland McGrath <roland@frob.com>
10319 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10320 Use preprocessor #if conditionals instead of `if' to avoid
10321 warnings about divide by zero in dead code.
10323 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10324 _hurd_port_init, and __hurd_self_sigstate.
10326 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10328 2001-12-21 Andreas Jaeger <aj@suse.de>
10330 * elf/dblloadmod1.c: Add prototype to avoid warning.
10331 * elf/dblloadmod2.c: Likewise.
10332 * elf/dblloadmod3.c: Likewise.
10333 * elf/reldepmod5.c: Likewise.
10334 * elf/reldepmod6.c: Likewise.
10336 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10337 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10338 used on all architectures.
10340 * sunrpc/svc_tcp.c: Add noreturn attribute for
10341 svctcp_rendezvous_abort.
10342 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10344 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10347 2001-12-19 Jakub Jelinek <jakub@redhat.com>
10349 * manual/llio.texi (aio_fsync): Fix a typo.
10350 Patch by Tammy Fox <tfox@redhat.com>.
10352 2001-12-18 Jakub Jelinek <jakub@redhat.com>
10354 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10355 stack bias from child stack pointer before passing it to clone syscall.
10357 2001-12-18 Ulrich Drepper <drepper@redhat.com>
10359 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10361 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10362 Reported by Thorsten Kukuk <kukuk@suse.de>.
10364 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10367 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10369 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
10371 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10372 conforming: return EBADF if file descriptor is invalid and EINVAL
10373 if file descriptor is no valid tty.
10374 * login/tst-grantpt.c: New file.
10375 * login/Makefile (tests): Add tst-grantpt.
10377 2001-12-17 Ulrich Drepper <drepper@redhat.com>
10379 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10380 different than implemented in last patch.
10381 * io/bug-ftw3.c: Adjust test for changed handling of
10382 inaccessibility of toplevel dir.
10384 2001-12-16 Roland McGrath <roland@frob.com>
10386 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10387 * grp/initgroups.c (internal_getgrouplist): Likewise.
10389 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10390 `default:' to silence new GCC warning.
10391 Rewrite cast of lvalue to silence new GCC warning.
10393 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10395 * sysdeps/mach/hurd/spawni.c: New file, by me with a
10396 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10398 2001-12-14 Ulrich Drepper <drepper@redhat.com>
10400 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
10401 Patch by Stephen R. van den Berg.
10403 * crypt/md5.h: Define md5_uintptr.
10405 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10407 * libio/tst_swprintf.c (main): Add test for string argument with
10409 * stdio-common/Makefile (tests): Add tst-sprintf.
10410 * stdio-common/tst-sprintf.c: New file.
10412 2001-12-13 Andreas Schwab <schwab@suse.de>
10414 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10415 zero precision with wide character string format.
10417 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
10419 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10420 but have a user supplied buffer, return the empty buffer, not NULL.
10422 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10424 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10425 Patch by Eric Sharkey <sharkey@netrics.com>.
10427 * crypt/md5test.c (main): Add test for multiple calls to
10428 __md5_process_bytes to itererate over input string.
10430 2001-12-12 Ulrich Drepper <drepper@redhat.com>
10432 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10433 from __nis_findfastest. Take timeout value from parameter.
10434 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10435 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10436 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
10438 2001-12-12 Andreas Jaeger <aj@suse.de>
10440 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10441 combreloc test so that it works in this case.
10443 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10445 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
10447 * sysdeps/sh/Makefile: New file.
10448 * sysdeps/sh/_mcount.S: New file.
10449 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10450 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10452 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10454 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10455 limitation [PR libc/2564].
10457 2001-12-11 Jakub Jelinek <jakub@redhat.com>
10459 * elf/Makefile (dl-routines): Add conflict.
10460 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10461 (ld.so): Add _begin local symbol.
10462 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10464 * elf/dl-deps.c (_dl_build_local_scope): New function.
10465 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10467 * elf/do-rel.h (VALIDX): Define.
10468 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10469 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10471 * elf/dl-conflict.c: New file.
10472 * elf/dl-lookup.c (_dl_debug_bindings): New function.
10473 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
10475 (_dl_lookup_symbol_skip): Likewise.
10476 (_dl_lookup_versioned_symbol): Likewise.
10477 (_dl_lookup_versioned_symbol_skip): Likewise.
10478 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10479 define to ElfW(Rel).
10480 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10481 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10483 Don't adjust address dynamic tags if l_addr is 0.
10484 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10485 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10486 (VALIDX, ADDRIDX): Define.
10487 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10488 (dl_main): Print library list for LD_TRACE_PRELINKING.
10489 If prelinking information can be used, skip relocating libraries and
10490 call _dl_resolve_conflicts instead.
10491 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10492 * elf/dl-load.c (_dl_map_object): Don't create fake libs
10493 if LD_TRACE_PRELINKING.
10494 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10496 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10497 (DL_DEBUG_PRELINK): Define.
10498 (_dl_resolve_conflicts): Add prototype.
10500 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10501 .plt for prelinked libraries where prelinking info cannot be used.
10502 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10503 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10504 * sysdeps/arm/bits/link.h: New file.
10505 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10506 content of .got[1].
10507 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10508 (ELF_MACHINE_PLT_REL): Define.
10509 (elf_machine_rela, elf_machine_rela_relative): New functions.
10510 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10511 of adjusting it if prelinked and prelinking cannot be used.
10512 * sysdeps/i386/bits/link.h: New file.
10513 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10514 content of .got[1].
10515 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10516 (ELF_MACHINE_PLT_REL): Define.
10517 (elf_machine_rela, elf_machine_rela_relative): New functions.
10518 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10519 of adjusting it if prelinked and prelinking cannot be used.
10520 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10521 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
10522 to find out map for R_PPC_JMP_SLOT relocs.
10523 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10524 (OPCODE_BA): Define.
10525 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10526 libraries where prelinking info cannot be used.
10527 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10528 (elf_machine_fixup_plt): Call sparc_fixup_plt.
10529 (elf_machine_rela): Set value to 0 if relocating conflicts.
10530 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10531 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10532 (sparc64_fixup_plt): Fix a typo.
10533 (elf_machine_rela): Set value to 0 if relocating conflicts.
10534 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10535 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10536 libraries where prelinking info cannot be used.
10537 * sysdeps/sh/bits/link.h: New file.
10538 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10539 content of .got[1].
10540 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10541 of adjusting it if prelinked and prelinking cannot be used.
10542 * sysdeps/s390/s390-32/bits/link.h: New file.
10543 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10544 Save original content of .got[1].
10545 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10546 of adjusting it if prelinked and prelinking cannot be used.
10547 * sysdeps/s390/s390-64/bits/link.h: New file.
10548 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10549 Save original content of .got[1].
10550 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10551 of adjusting it if prelinked and prelinking cannot be used.
10552 * sysdeps/x86_64/bits/link.h: New file.
10553 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10554 Save original content of .got[1].
10555 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10556 of adjusting it if prelinked and prelinking cannot be used.
10558 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10560 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10561 where appropriate instead of numbers. Little optimizations.
10563 2001-12-10 Roland McGrath <roland@frob.com>
10565 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10568 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10569 set to GLIBC_2.2.5, not GLIBC_2.2.4.
10571 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10572 Fix conditionals so this is set by default for stdio and not for libio.
10573 * sysdeps/mach/hurd/configure: Regenerated.
10575 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
10577 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10579 2001-12-10 Ulrich Drepper <drepper@redhat.com>
10581 * io/Makefile (tests): Add bug-ftw3.
10582 * io/bug-ftw3.c: New file.
10584 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10585 matches and GLOB_NOCHECK is set.
10586 * posix/globtest.sh: Correct expected result for NOCHECK test.
10588 * po/ca.po: Update from translation team.
10590 2001-12-09 Ulrich Drepper <drepper@redhat.com>
10592 Implement transliteration of characters in strings of the locale
10594 * locale/programs/linereader.c: Adjust for additional parameter to
10596 (get_string): If character <Uxxxx> is not found try to transliterate
10598 * locale/programs/ld-ctype.c: Adjust for additional parameter to
10599 lr_token. Add const to charmap parameter of all functions.
10600 (find_translit, find_translit2): New functions.
10601 * locale/programs/charmap.c: Adjust for additional parameter to
10603 * locale/programs/repertoire.c: Likewise.
10604 * locale/programs/linereader.h: Likewise.
10605 * locale/programs/ld-address.c: Likewise. Add const to charmap
10606 parameter of all functions.
10607 * locale/programs/ld-collate.c: Likewise.
10608 * locale/programs/ld-identification.c: Likewise.
10609 * locale/programs/ld-measurement.c: Likewise.
10610 * locale/programs/ld-messages.c: Likewise.
10611 * locale/programs/ld-monetary.c: Likewise.
10612 * locale/programs/ld-name.c: Likewise.
10613 * locale/programs/ld-numeric.c: Likewise.
10614 * locale/programs/ld-paper.c: Likewise.
10615 * locale/programs/ld-paper.c: Likewise.
10616 * locale/programs/ld-telephone.c: Likewise.
10617 * locale/programs/ld-time.c: Likewise.
10618 * locale/programs/locfile.c: Likewise.
10619 * locale/programs/localedef.c: Likewise.
10620 * locale/programs/localedef.h: Likewise.
10621 * locale/programs/locfile.h: Likewise. Add declaration for
10623 * locale/programs/simple-hash.c: Add const to first parameter of
10624 find_entry, iterate_table, and lookup.
10625 * locale/programs/simple-hash.h: Likewise.
10626 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
10628 * include/locale.h: Define __LC_LAST.
10629 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10631 2001-12-07 Geoff Keating <geoffk@redhat.com>
10633 * sysdeps/powerpc/Dist: Update for recent FP changes.
10634 * sysdeps/powerpc/fpu/Dist: Likewise.
10636 2001-12-07 Andreas Schwab <schwab@suse.de>
10638 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10640 2001-12-06 Geoff Keating <geoffk@redhat.com>
10642 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10643 save/restore functions here.
10644 (libm-support): Don't define these functions here.
10645 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10647 * sysdeps/powerpc/fe_nomask.c: Move to...
10648 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10649 * sysdeps/powerpc/fprrest.S: Move to...
10650 * sysdeps/powerpc/fpu/fprrest.S: ... here.
10651 * sysdeps/powerpc/fprsave.S: Move to...
10652 * sysdeps/powerpc/fpu/fprsave.S: ... here.
10654 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10656 * sysdeps/unix/sysv/linux/opensock.c: New file.
10658 2001-12-06 Geoff Keating <geoffk@redhat.com>
10660 * config.make.in (with-fp): Define from configure.
10661 * configure.in: Substitute with_fp.
10662 * configure: Regenerate.
10663 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10664 specified, and don't change FPU environment.
10666 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10668 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10669 * assert/assert.c: Check result of __asprintf call and don't use
10670 string if it failed.
10671 * assert/assert-perr.c: Likewise.
10672 * inet/rcmd.c: Likewise.
10673 * locale/programs/localedef.c (main): Check result of
10674 construct_output_path and exit if it failed.
10675 (construct_output_path): Check result of asprintf and mkdir calls and
10676 fail if they failed.
10677 * posix/getopt.c: Check result of __asprintf calls and fail if
10679 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10681 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10683 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10685 * sysdeps/generic/strncase.c: Likewise.
10686 * string/tester.c: Add tests for strcasecmp and strncasecmp.
10688 2001-12-05 Geoff Keating <geoffk@redhat.com>
10690 * scripts/cpp: Test the exit status from 'type', not 'awk'.
10692 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10693 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10694 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10695 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10696 * sysdeps/powerpc/fclrexcpt.c: Move to...
10697 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10698 * sysdeps/powerpc/fpu_control.h: Move to...
10699 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10701 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10703 * iconvdata/ibm1129.h: Remove duplicate mappings.
10704 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
10705 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10706 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10708 * timezone/zic.c: Fix handling of turnaround times.
10709 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10711 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
10713 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10716 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10718 * posix/regex.c: For use outside glibc defined bounded pointer
10719 macros here. Patch by Jim Meyering <jim@meyering.net>.
10721 * iconvdata/Makefile (modules): Add TCVN5712-1.
10722 * iconvdata/TESTS: Add TCVN5712-1.
10723 * iconvdata/gconv-modules: Likewise.
10724 * iconvdata/tcvn5712-1.c: New file.
10725 * iconvdata/testdata/TCVN-5712: New file.
10726 * iconvdata/testdata/TCVN-5712..UTF8: New file.
10728 2001-12-04 Ulrich Drepper <drepper@redhat.com>
10730 * iconvdata/cp1258.c: Optimize conversion from UCS4.
10732 2001-12-02 Roland McGrath <roland@frob.com>
10734 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10736 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10737 Reported by Jeff Bailey <jbailey@nisa.net>.
10739 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10740 Reported by Jeff Bailey <jbailey@nisa.net>.
10742 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10743 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10744 Reported by Jeff Bailey <jbailey@nisa.net>.
10746 2001-12-01 Roland McGrath <roland@frob.com>
10748 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10749 missing backslash in test arguments.
10750 * sysdeps/mach/hurd/configure: Regenerated.
10752 2001-11-26 Roland McGrath <roland@frob.com>
10754 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10755 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10757 2001-11-30 Ulrich Drepper <drepper@redhat.com>
10759 * iconvdata/Makefile (modules): Add ARMSCII-8.
10760 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10761 * iconvdata/armscii-8.c: New file.
10763 2001-11-29 Jakub Jelinek <jakub@redhat.com>
10765 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10766 don't match, fix {{a,b},c} globbing, clean up.
10767 Patch by Flavio Veloso <flaviovs@magnux.com>.
10768 * posix/globtest.sh: Add new tests.
10770 2001-11-29 Andreas Jaeger <aj@suse.de>
10772 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10773 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10775 * sysdeps/generic/abort.c: Include libioP.h for
10776 _IO_flush_all_lockp prototype.
10778 2001-11-29 Ulrich Drepper <drepper@redhat.com>
10780 * posix/regex.h: Define __restrict_arr correctly.
10782 2001-11-28 Ulrich Drepper <drepper@redhat.com>
10784 * iconvdata/ibm1163.c: New file.
10785 * iconvdata/ibm1163.h: New file.
10786 * iconvdata/ibm1164.c: New file.
10787 * iconvdata/ibm1164.h: New file.
10788 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10789 * iconvdata/Makefile: Likewise.
10790 * iconvdata/testdata/IBM1163: New file.
10791 * iconvdata/testdata/IBM1163..UTF8: New file.
10792 * iconvdata/testdata/IBM1164: New file.
10793 * iconvdata/testdata/IBM1164..UTF8: New file.
10794 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10796 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
10797 * iconvdata/ibm1124.h: Likewise.
10798 * iconvdata/ibm1132.h: Likewise.
10799 * iconvdata/ibm1133.h: Likewise.
10800 * iconvdata/ibm1160.h: Likewise.
10801 * iconvdata/ibm1161.h: Likewise.
10802 * iconvdata/ibm1162.h: Likewise.
10803 * iconvdata/ibm856.h: Likewise.
10804 * iconvdata/ibm922.h: Likewise.
10805 * iconvdata/ibm930.h: Likewise.
10806 * iconvdata/ibm932.h: Likewise.
10807 * iconvdata/ibm933.h: Likewise.
10808 * iconvdata/ibm935.h: Likewise.
10809 * iconvdata/ibm937.h: Likewise.
10810 * iconvdata/ibm939.h: Likewise.
10811 * iconvdata/ibm943.h: Likewise.
10812 * iconvdata/ibm930.c: Pretty printing.
10813 * iconvdata/ibm937.c: Avoid access accross array boundary.
10815 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10816 the current locale's codeset.
10817 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10818 empty input string.
10819 * iconv/iconv_prog.c: Pass empty strings as default value for to-
10820 and from-charset. Don't determine locale's charset here.
10822 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
10823 as the old _IO_flush_all but lock only if parameter is nonzero.
10824 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10825 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10826 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10827 if libio is used [PR libc/2575].
10829 2001-11-28 Jakub Jelinek <jakub@redhat.com>
10831 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10832 __signbitl): Only define for ISO C99.
10834 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
10836 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10837 herrnop to NETDB_INTERNAL if we run out of buffer space.
10839 2001-11-28 Ulrich Drepper <drepper@redhat.com>
10841 * nss/nss_files/files-XXX.c (internal_getent): Correct input
10842 overflow test for platforms with signed char.
10843 Reported by Andrew Haley <aph@cambridge.redhat.com>.
10845 2001-11-28 Bruno Haible <bruno@clisp.org>
10847 * locale/programs/simple-hash.c (lookup_2): Remove function.
10848 (insert_entry_2): Call lookup instead of lookup_2.
10850 2001-03-04 Bruno Haible <bruno@clisp.org>
10852 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10854 2001-10-31 Bruno Haible <bruno@clisp.org>
10856 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10858 2001-03-21 Bruno Haible <bruno@clisp.org>
10860 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10861 chokes on empty macro arguments.
10862 * intl/plural.y: Add #pragma for alloca on AIX 3.
10864 2001-11-27 Ulrich Drepper <drepper@redhat.com>
10866 * intl/dcigettext.c (guess_category_value): Only implement for
10867 glibc. Otherwise rely on function _nl_locale_name which isn't
10868 present in the glibc sources.
10870 2001-09-24 Bruno Haible <bruno@clisp.org>
10872 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
10873 transliteration when building on a glibc system but outside glibc.
10875 2001-09-22 Bruno Haible <bruno@clisp.org>
10877 * intl/plural-eval.c: New file, extracted from dcigettext.c.
10878 * intl/dcigettext.c (plural_eval): Remove function, moved to
10879 intl/plural-eval.c.
10880 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
10881 Include plural-eval.c.
10883 2001-09-22 Bruno Haible <bruno@clisp.org>
10885 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
10886 don't start with a digit; nplurals must be positive.
10888 2001-09-02 Bruno Haible <bruno@clisp.org>
10890 * intl/plural-exp.h: New file, extracted from gettextP.h.
10891 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
10892 * intl/gettextP.h (struct expression, struct parse_args,
10893 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
10894 * intl/loadmsgcat.c: Include plural-exp.h.
10895 (PLURAL_PARSE): Move macro to plural-exp.h.
10896 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
10898 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
10899 EXTRACT_PLURAL_EXPRESSION.
10900 (_nl_unload_domain): Update.
10901 * intl/dcigettext.c: Include plural-exp.h.
10902 * intl/plural.y: Include plural-exp.h, not gettextP.h.
10903 (FREE_EXPRESSION): Move macro to plural-exp.h.
10904 * intl/Makefile (routines): Add plural-exp.
10905 (distribute): Add plural-exp.h.
10907 2001-07-28 Bruno Haible <bruno@clisp.org>
10909 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
10910 isdigit, tolower argument to 'unsigned char'.
10911 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
10913 * intl/localealias.c (read_alias_file): Cast isspace argument to
10916 2001-10-20 Bruno Haible <bruno@clisp.org>
10918 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
10920 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
10921 with the variable 'index' in plural_lookup.
10922 * intl/l10nflist.c (strchr): Likewise.
10923 * intl/localealias.c (strchr): Likewise.
10925 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
10926 * intl/bindtextdom.c: Likewise.
10927 * intl/dcigettext.c: Likewise.
10928 * intl/dgettext.c: Likewise.
10929 * intl/dngettext.c: Likewise.
10930 * intl/explodename.c: Likewise.
10931 * intl/finddomain.c: Likewise.
10932 * intl/gettext.c: Likewise.
10933 * intl/l10nflist.c: Likewise.
10934 * intl/loadmsgcat.c: Likewise.
10935 * intl/localealias.c: Likewise.
10936 * intl/ngettext.c: Likewise.
10937 * intl/textdomain.c: Likewise.
10938 * intl/gettext.h: Assume <limits.h> exists.
10940 2001-11-27 Ulrich Drepper <drepper@redhat.com>
10942 * stdio-common/Makefile (tests): Add scanf11.
10943 * stdio-common/scanf11.c: New file.
10945 2001-11-26 Ulrich Drepper <drepper@redhat.com>
10947 * version.h (RELEASE): Define as development.
10948 (VERSION): Set to 2.2.90.
10950 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
10952 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
10953 * nis/nss_nis/nis-grp.c: Likewise.
10954 * nis/nss_nisplus/nisplus-grp.c: Likewise.
10956 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
10957 * nis/nss_nis/nis-pwd.c: Likewise.
10958 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
10960 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
10961 * nis/nss_nisplus/nisplus-parser.c: Likewise.
10962 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10964 * nscd/grpcache.c: Use strtoul instead of atol.
10965 * nscd/pwdcache.c: Likewise.
10966 * nss/getent.c: Likewise.
10968 2001-11-27 Paul Eggert <eggert@twinsun.com>
10970 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10971 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10973 2001-11-19 Bruno Haible <bruno@clisp.org>
10975 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
10977 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
10978 improves the quality of the hash function, especially for short
10981 2001-11-26 Ulrich Drepper <drepper@redhat.com>
10983 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
10984 are found call conv_error and not input_error [PR libc/2669].
10986 * math/bits/mathcalls.h: Mark ceil and floor as const.
10987 Reported by David Mosberger.
10989 2001-11-21 Jim Meyering <meyering@lucent.com>
10991 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
10992 Define to be __-prefixed.
10993 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
10995 2001-11-26 Andreas Jaeger <aj@suse.de>
10997 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11000 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
11002 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11005 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11006 unused variables. Fix threshold for returning 1.0.
11008 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11011 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11012 remove unused variables.
11014 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11016 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11017 include local math header files.
11019 2001-11-22 Andreas Jaeger <aj@suse.de>
11021 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11024 2001-11-21 Andreas Jaeger <aj@suse.de>
11026 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11028 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11031 2001-11-15 Andreas Jaeger <aj@suse.de>
11033 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11034 compilers that support it.
11036 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11037 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11038 * stdlib/stdlib.h: Likewise.
11040 2001-11-17 Ulrich Drepper <drepper@redhat.com>
11042 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11043 statement with gotos.
11044 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11046 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
11048 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11050 2001-11-15 Ulrich Drepper <drepper@redhat.com>
11052 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11054 2001-10-02 Jakub Jelinek <jakub@redhat.com>
11055 H.J. Lu <hjl@gnu.org>
11057 * Versions.def (libc): Add GCC_3.0.
11058 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11059 if gcc supports this flag.
11060 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11061 (gcc3): Allow glibc to be compiled with gcc 3.x.
11062 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11063 * config.make.in (static-libgcc, unwind-find-fde): Add.
11064 * Makerules (build-shlib-helper, build-module-helper): Use it.
11065 * scripts/versions.awk: Make sure GLIBC_ versions come first.
11066 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11068 (_fini): Call __deregister_frame_info_bases if
11069 __register_frame_info_bases was used to register.
11070 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11072 (__register_frame_info_bases, __register_frame_info_table_bases,
11073 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11074 * elf/Makefile (routines): Add unwind-dw2-fde.
11075 (shared-only-routines): Add unwind-dw2-fde.
11076 * sysdeps/alpha/gccframe.h: New file.
11077 * sysdeps/arm/gccframe.h: New file.
11078 * sysdeps/generic/framestate.c: New file.
11079 * sysdeps/generic/dwarf2.h: New file.
11080 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11081 * sysdeps/generic/unwind-dw2-fde.c: New file.
11082 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11083 * sysdeps/generic/unwind-dw2-fde.h: New file.
11084 * sysdeps/generic/unwind-dw2.c: New file.
11085 * sysdeps/generic/unwind-pe.h: New file.
11086 * sysdeps/generic/unwind.h: New file.
11087 * sysdeps/hppa/gccframe.h: New file.
11088 * sysdeps/i386/gccframe.h: New file.
11089 * sysdeps/m68k/gccframe.h: New file.
11090 * sysdeps/mips/gccframe.h: New file.
11091 * sysdeps/powerpc/gccframe.h: New file.
11092 * sysdeps/s390/gccframe.h: New file.
11093 * sysdeps/sh/gccframe.h: New file.
11094 * sysdeps/sparc/gccframe.h: New file.
11095 * sysdeps/vax/gccframe.h: New file.
11096 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11097 Set on all architectures except ia64.
11098 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11100 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11101 __deregister_frame_info): Move to elf/Versions.
11102 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11103 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11104 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11105 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11106 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11107 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11108 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11109 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11110 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11111 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11112 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11113 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11114 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11115 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11116 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11117 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11118 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11119 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11121 2001-11-15 Jeff Law <law@redhat.com>
11123 * posix/regex.c (uintptr_t): Do not provide a definition if the
11124 system provided one.
11126 2001-11-13 Roland McGrath <roland@frob.com>
11128 * stdio-common/tmpfile.c: Moved to ...
11129 * sysdeps/generic/tmpfile.c: ... here.
11130 * sysdeps/mach/hurd/tmpfile.c: New file.
11132 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11133 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11134 (fopenport): Define as weak alias.
11136 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11137 * libio/libioP.h: ... to here.
11139 2001-11-12 Ulrich Drepper <drepper@redhat.com>
11141 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11142 program header twice. Construct list with the needed information.
11144 2001-11-10 Ulrich Drepper <drepper@redhat.com>
11146 * po/ca.po: Update from translation team.
11148 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11149 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
11150 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11151 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11153 2001-11-10 Andreas Jaeger <aj@suse.de>
11155 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11156 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11157 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11159 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11161 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11163 * elf/dl-load.c (is_dst): New function.
11164 (_dl_dst_count): Use is_dst to check for DST variable.
11165 (_dl_dst_substitute): Likewise.
11167 2001-11-09 Roland McGrath <roland@frob.com>
11169 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11170 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11171 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11172 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11173 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11174 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11175 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11176 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11177 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11178 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11179 * sysdeps/mach/hurd/powerpc/Dist: New file.
11181 * hurd/privports.c (__get_privileged_ports):
11182 Only contact the proc server if necessary for this call.
11183 Suggested by Neal H Walfield <neal@cs.uml.edu>.
11184 Check error return for mach_port_mod_refs.
11186 2001-11-09 Andreas Schwab <schwab@suse.de>
11188 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11190 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11192 * elf/dl-load.c (lose): Remove some unnecessary code. The new
11193 object is always the last in the list.
11194 (_dl_map_object_from_fd): Delete code to remove from object list
11195 when DF_1_NOOPEN is seen. This is done in lose.
11197 2001-11-08 Ulrich Drepper <drepper@redhat.com>
11199 * elf/dl-object.c (_dl_new_object): Various small optimizations.
11201 2001-11-07 Ulrich Drepper <drepper@redhat.com>
11203 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11204 HWCAP_CHECK macro code.
11206 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11207 Now returns MAP_FAILED on error.
11208 * elf/rtld.c: Adjust caller.
11209 * sysdeps/generic/dl-cache.c: Likewise.
11210 * sysdeps/generic/ldsodefs.h: Adjust description.
11212 * elf/dl-version.c (match_symbol): Optimize error handling for size.
11213 (_dl_check_map_versions): Likewise.
11215 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11217 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11218 _dl_signal_error directly, always use lose. Set fd to -1 after
11220 (lose): Don't call close if fd == -1.
11222 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
11224 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
11225 Also fix typo @code {mbsinit} to @code{mbsinit}.
11227 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11229 * elf/dl-profile.c: Replace state variable with simple flag named
11230 running. Remove commented-out code.
11232 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11233 (_dl_init_paths): Likewise.
11234 (_dl_map_object_from_fd): Likewise.
11235 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11237 2001-11-06 Roland McGrath <roland@frob.com>
11239 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11240 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11242 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11243 sysdeps/powerpc/elf/sysdep.h.
11244 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11246 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11248 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
11250 (process_envvars): Some more optimizations.
11251 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11253 * elf/elf.h: Add dynamic tag definitions for prelinking.
11255 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11256 Rewrite code to remove environment varables for SUID binaries.
11257 Small optimization in LD_PROFILE handling.
11258 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11260 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11262 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11264 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11265 strings. Change type of second parameter.
11266 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11269 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11271 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
11273 * manual/string.texi: Fix typos.
11274 * manual/examples/argp-ex2.c: Likewise.
11276 2001-11-05 Roland McGrath <roland@frob.com>
11278 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11279 the more-specific unix/sysv/linux/powerpc file and breaks everything.
11280 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11281 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11282 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11283 here, put under [__ELF__].
11285 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11287 * manual/charset.texi: Extensive editing work.
11288 * manual/nss.texi: Likewise.
11289 Changes by Dennis Grace <dgrace@us.ibm.com>.
11291 2001-11-04 Roland McGrath <roland@frob.com>
11293 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11294 parameter to dir_mkfile.
11296 2001-11-02 Jakub Jelinek <jakub@redhat.com>
11298 * string/bits/string2.h (__strndup): If n is smaller than len, set
11300 * string/tester.c (test_strndup): New function.
11303 2001-11-01 Ulrich Drepper <drepper@redhat.com>
11305 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11307 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11308 * scripts/cpp: New file.
11310 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11311 for rtld_search_dirs content. Minor optimizations.
11313 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11315 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11316 avoiding unnecessary duplication.
11318 2001-10-31 Jakub Jelinek <jakub@redhat.com>
11320 * elf/dl-load.c (_dl_map_object): If library was found using
11321 LD_LIBRARY_PATH, don't try RUNPATH list.
11323 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
11325 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11326 Correct second argument of register_dump call.
11327 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11330 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11332 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11334 * iconvdata/TESTS: Likewise.
11335 * iconvdata/gconv-modules: Likewise.
11336 * iconvdata/ibm1132.c: New file.
11337 * iconvdata/ibm1132.h: New file.
11338 * iconvdata/ibm1133.c: New file.
11339 * iconvdata/ibm1133.h: New file.
11340 * iconvdata/ibm1162.c: New file.
11341 * iconvdata/ibm1162.h: New file.
11342 * iconvdata/testdata/IBM1132: New file.
11343 * iconvdata/testdata/IBM1132..UTF8: New file.
11344 * iconvdata/testdata/IBM1133: New file.
11345 * iconvdata/testdata/IBM1133..UTF8: New file.
11346 * iconvdata/testdata/IBM1162: New file.
11347 * iconvdata/testdata/IBM1162..UTF8: New file.
11348 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11350 * string/string.h: Fix typo in comment.
11351 * wcsmbs/wchar.h: Likewise.
11353 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
11355 * manual/getopt.texi (getopt_long, getopt_long_only): Include
11356 const in type of longopts parameter.
11358 2001-10-29 Andreas Jaeger <aj@suse.de>
11360 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11362 2001-10-29 Kevin Ryde <user42@zip.com.au>
11364 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11365 output, clarify `#' behaviour on 0.
11366 (Floating-Point Conversions): Clarify that %g only uses %e when
11367 the exponent would be greater than 1.
11369 2001-10-28 Roland McGrath <roland@frob.com>
11371 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11372 * sysdeps/mach/powerpc/machine-sp.h: New file.
11373 * sysdeps/mach/powerpc/sysdep.h: New file.
11374 * sysdeps/mach/powerpc/thread_state.h: New file.
11376 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11377 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
11378 expect to need the same thing on every platform.
11380 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11381 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11383 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11384 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11385 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11386 Move all these assembly-related definitions to ...
11387 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11389 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11390 by Peter Bruin <pjbruin@dds.nl>.
11392 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11393 packing results for a `poll' call.
11395 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11397 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11399 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11400 bracket expression.
11402 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11404 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11406 2001-10-24 H.J. Lu <hjl@gnu.org>
11408 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11409 Use __BEGIN_DECLS/__END_DECLS around prototypes.
11410 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11412 2001-10-21 Jim Meyering <meyering@lucent.com>
11414 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
11415 this code would end up calling gettext even in packages built
11416 with --disable-nls.
11417 * posix/getopt.c (_): Likewise.
11418 * posix/regex.c (_): Likewise.
11420 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11422 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11423 lookup not ip6.int.
11424 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11425 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11427 2001-10-19 Jakub Jelinek <jakub@redhat.com>
11429 * misc/sys/cdefs.h (__attribute_used__): Define.
11430 * elf/rtld.c (_dl_start): Add __attribute_used__.
11431 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11433 2001-10-25 Andreas Schwab <schwab@suse.de>
11435 * stdlib/a64l.c: Expect least significant digit first.
11436 * stdlib/l64a.c: Produce least significant digit first.
11437 * stdlib/Makefile (tests): Add test-a64l.
11438 * stdlib/test-a64l.c: New file.
11439 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11441 2001-10-21 Ulrich Drepper <drepper@redhat.com>
11443 * po/sk.po: Update from translation team.
11445 2001-10-18 Ulrich Drepper <drepper@redhat.com>
11447 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11449 2001-10-18 Andreas Schwab <schwab@suse.de>
11451 * math/libm-test.inc (print_ulps): Print ulp values rounded to
11453 (print_function_ulps): Likewise.
11454 (print_complex_function_ulps): Likewise.
11455 (print_max_error): Likewise.
11456 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
11458 2001-10-16 Andreas Schwab <schwab@suse.de>
11460 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11463 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11464 BSD_SETJMP or BSD__SETJMP is defined, resp.
11465 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11466 a tail call to __sigsetjmp that would require extending the
11468 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11469 * sysdeps/m68k/bsd-setjmp.S: Deleted.
11470 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11471 Reported by Jes Sorensen <jes@trained-monkey.org>.
11473 2001-10-16 Andreas Jaeger <aj@suse.de>
11475 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11476 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
11477 close PR libc/2589.
11479 2001-10-15 Ulrich Drepper <drepper@redhat.com>
11481 * po/ca.po: New file. Contributed by the translation team.
11483 2001-10-15 Ralf Baechle <ralf@gnu.org>
11485 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11486 a varargs prototype. Remove dependency from kernel header files.
11488 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11489 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11491 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11493 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11494 to generate hexadecimal identifier.
11495 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11497 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
11499 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11501 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11503 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11504 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11505 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11507 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11508 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11509 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11510 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11511 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11512 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11514 * timezone/africa: Update from tzdata2001d.
11515 * timezone/asia: Likewise.
11516 * timezone/australasia: Likewise.
11517 * timezone/backward: Likewise.
11518 * timezone/europe: Likewise.
11519 * timezone/leapseconds: Likewise.
11520 * timezone/northamerica: Likewise.
11521 * timezone/southamerica: Likewise.
11522 * timezone/zone.tab: Likewise.
11524 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
11526 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11527 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11529 2001-10-12 Ulrich Drepper <drepper@redhat.com>
11531 * elf/elf.h (PT_TLS): New definition.
11533 2001-10-10 Jeff Bailey <jbailey@nisa.net>
11535 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11538 2001-10-07 Roland McGrath <roland@frob.com>
11540 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11542 2001-10-10 Ulrich Drepper <drepper@redhat.com>
11544 * elf/elf.h: Add more ELFOSABI_* constants.
11546 2001-10-04 Ben Collins <bcollins@debian.org>
11548 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11549 decleration of __need_wchar_t.
11551 2001-10-03 Jakub Jelinek <jakub@redhat.com>
11553 * string/bits/string2.h (__strsep_g): Add prototype.
11554 (__strsep): Use it.
11555 * string/Versions (__strsep): Remove.
11556 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11558 2001-10-07 Ulrich Drepper <drepper@redhat.com>
11560 * manua/llio.texi: Clarify file references added by mmap.
11561 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11563 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
11565 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11566 Add sc_loadrs and sc_rbs_bas to match current kernel.
11568 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11570 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11572 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11574 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11576 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11577 object has been bumped because of relocation dependency, avoid
11578 duplicates in l_scope.
11579 (show_scope): Fix typos.
11580 * elf/Makefile: Add rules to build and run reldep6.
11581 * elf/reldep6.c: New file.
11582 * elf/reldep6mod0.c: New file.
11583 * elf/reldep6mod1.c: New file.
11584 * elf/reldep6mod2.c: New file.
11585 * elf/reldep6mod3.c: New file.
11586 * elf/reldep6mod4.c: New file.
11588 2001-09-26 Jakub Jelinek <jakub@redhat.com>
11590 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11592 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
11593 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11594 for non-lazy binding. Fix .plt[32768+] handling.
11595 (elf_machine_plt_value): Don't add addend.
11596 (elf_machine_rela): Call sparc64_fixup_plt instead of
11597 elf_machine_fixup_plt.
11598 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11599 dynamic linker at 0xfffff800XXXXXXXX.
11601 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11603 2001-09-28 Ulrich Drepper <drepper@redhat.com>
11605 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11607 2001-09-25 Jakub Jelinek <jakub@redhat.com>
11609 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11610 declare __cmsg_data field if its size would be bigger than 0.
11611 (CMSG_DATA): Adjust accordingly.
11612 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11613 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11614 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11615 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11616 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11617 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11618 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11620 2001-09-25 Ulrich Drepper <drepper@redhat.com>
11622 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11623 * iconvdata/testdata/IBM1160: New file.
11624 * iconvdata/testdata/IBM1160..UTF8: New file.
11625 * iconvdata/testdata/IBM1161: New file.
11626 * iconvdata/testdata/IBM1161..UTF8: New file.
11627 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11629 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11631 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11632 UL_SETFSIZE computations better.
11634 * rt/Makefile: Remove use of filter for librt again.
11636 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11637 UL_SETFSIZE computations better.
11639 * string/Versions: Export __strsep for GLIBC_2.2.5.
11640 * string/bits/string2.h: Define all __STRING_INLINE functions if
11641 _FORCE_INLINES is defined.
11642 Use int instead of char of parameter types.
11643 (__strsep): Don't use __strsep_g. Don't define it.
11644 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11645 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11647 (__stpcpy_a_small): Renamed from __stpcpy_small.
11648 (__strcspn_c1): Don't define if _FORCE_INLINES.
11649 (__strspn_c1): Likewise.
11651 2001-09-22 Ben Collins <bcollins@debian.org>
11653 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11654 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
11655 * sysdeps/ia64/bits/sigaction.h: Likewise.
11656 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11658 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
11660 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11662 2001-09-24 Jakub Jelinek <jakub@redhat.com>
11664 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11666 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11668 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11670 2001-09-20 H.J. Lu <hjl@gnu.org>
11672 * include/dlfcn.h (__RTLD_SPROF): New definiton.
11673 * elf/dl-open.c (dl_open_worker): Return immediately after loading
11675 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11676 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11678 2001-09-20 H.J. Lu <hjl@gnu.org>
11680 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11683 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11685 * nss/getent.c: Accept -s parameter to overwrite rules in
11686 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
11688 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11689 with as many ".0" as necessary to form a complete address
11690 inet_network understands.
11692 * nss/getent.c: Various cleanups. Use simpler and fewer function
11695 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11697 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11699 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11701 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11703 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11705 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11706 * iconvdata/ibm1160.c: New file.
11707 * iconvdata/ibm1160.h: New file.
11708 * iconvdata/ibm1161.c: New file.
11709 * iconvdata/ibm1161.h: New file.
11710 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11712 2001-09-19 Jakub Jelinek <jakub@redhat.com>
11714 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11715 difference between base address and first PT_LOAD's virtual address,
11716 not the base address.
11718 2001-09-11 Tom Rix <trix@redhat.com>
11720 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
11721 ifdef for __getopt_clean_environment.
11722 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11724 2001-09-22 Andreas Jaeger <aj@suse.de>
11726 * elf/reldep4.c (main): Add proper prototype to fix warning.
11728 * elf/reldep5.c (main): Remove unused variable.
11730 * math/math_private.h: Add prototypes.
11732 2001-09-21 Andreas Jaeger <aj@suse.de>
11734 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11735 * sysdeps/x86_64/Dist: New file.
11736 * sysdeps/x86_64/soft-fp/Dist: New file.
11738 * sysdeps/gnu/Dist: Remove eval.c.
11740 2001-09-20 Ulrich Drepper <drepper@redhat.com>
11742 * malloc/memusage.c (realloc): Don't count already allocated
11743 memory in the sums.
11744 (me): Always use dlsym() to find the real implementations.
11746 * malloc/memusage.sh: Make -n option actually do something.
11748 2001-09-20 Andreas Jaeger <aj@suse.de>
11750 * elf/elf.h (R_390_NUM): Correct value.
11752 * Versions.def: Add missing versions 2.2.3 for libthread_db and
11755 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11756 for x86-64, install x86-64 into */lib64.
11758 * shlib-versions: Add x86-64.
11760 * elf/elf.h: Add x86-64 relocations.
11762 2001-09-19 Ulrich Drepper <drepper@redhat.com>
11764 * po/fr.po: Update from translation team.
11766 2001-09-19 Andreas Jaeger <aj@suse.de>
11768 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11769 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11770 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11771 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11772 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11773 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11774 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11775 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11776 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11777 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11778 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11779 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11780 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11781 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11782 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11783 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11784 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11785 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11786 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11787 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11788 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11789 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11790 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11791 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11792 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11793 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11794 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11795 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11796 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11797 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11798 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11799 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11800 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11801 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11802 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11803 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11804 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11805 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11806 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11807 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11808 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11809 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11810 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11811 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11812 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11813 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11814 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11815 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11816 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11817 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11818 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11819 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11820 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11821 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11822 * sysdeps/unix/x86_64/sysdep.S: New file.
11823 * sysdeps/unix/x86_64/sysdep.h: New file.
11824 * sysdeps/x86_64/Implies: New file.
11825 * sysdeps/x86_64/Makefile: New file.
11826 * sysdeps/x86_64/Versions: New file.
11827 * sysdeps/x86_64/__longjmp.S: New file.
11828 * sysdeps/x86_64/abort-instr.h: New file.
11829 * sysdeps/x86_64/atomicity.h: New file.
11830 * sysdeps/x86_64/bits/endian.h: New file.
11831 * sysdeps/x86_64/bits/setjmp.h: New file.
11832 * sysdeps/x86_64/bits/string.h: New file.
11833 * sysdeps/x86_64/bp-asm.h: New file.
11834 * sysdeps/x86_64/bsd-_setjmp.S: New file.
11835 * sysdeps/x86_64/bsd-setjmp.S: New file.
11836 * sysdeps/x86_64/dl-machine.h: New file.
11837 * sysdeps/x86_64/elf/initfini.c: New file.
11838 * sysdeps/x86_64/elf/start.S: New file.
11839 * sysdeps/x86_64/ffs.c: New file.
11840 * sysdeps/x86_64/ffsll.c: New file.
11841 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11842 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11843 * sysdeps/x86_64/fpu/e_acosl.c: New file.
11844 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11845 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11846 * sysdeps/x86_64/fpu/e_expl.c: New file.
11847 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11848 * sysdeps/x86_64/fpu/e_log10l.S: New file.
11849 * sysdeps/x86_64/fpu/e_log2l.S: New file.
11850 * sysdeps/x86_64/fpu/e_logl.S: New file.
11851 * sysdeps/x86_64/fpu/e_powl.S: New file.
11852 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11853 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11854 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11855 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11856 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11857 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11858 * sysdeps/x86_64/fpu/fegetenv.c: New file.
11859 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11860 * sysdeps/x86_64/fpu/fegetround.c: New file.
11861 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11862 * sysdeps/x86_64/fpu/fesetenv.c: New file.
11863 * sysdeps/x86_64/fpu/fesetround.c: New file.
11864 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
11865 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
11866 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
11867 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
11868 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
11869 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
11870 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
11871 * sysdeps/x86_64/fpu/s_atanl.c: New file.
11872 * sysdeps/x86_64/fpu/s_cosl.S: New file.
11873 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
11874 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
11875 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
11876 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
11877 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
11878 * sysdeps/x86_64/fpu/s_logbl.c: New file.
11879 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
11880 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
11881 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
11882 * sysdeps/x86_64/fpu/s_rintl.c: New file.
11883 * sysdeps/x86_64/fpu/s_significandl.c: New file.
11884 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
11885 * sysdeps/x86_64/fpu/s_sinl.S: New file.
11886 * sysdeps/x86_64/fpu/s_tanl.S: New file.
11887 * sysdeps/x86_64/gmp-mparam.h: New file.
11888 * sysdeps/x86_64/hp-timing.c: New file.
11889 * sysdeps/x86_64/hp-timing.h: New file.
11890 * sysdeps/x86_64/htonl.S: New file.
11891 * sysdeps/x86_64/memusage.h: New file.
11892 * sysdeps/x86_64/setjmp.S: New file.
11893 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
11894 * sysdeps/x86_64/stackinfo.h: New file.
11895 * sysdeps/x86_64/sysdep.h: New file.
11896 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
11898 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
11901 2001-09-18 Ulrich Drepper <drepper@redhat.com>
11903 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
11904 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
11906 2001-09-18 Andreas Schwab <schwab@suse.de>
11908 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
11909 list, now that l_scope is a pointer.
11911 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
11914 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
11916 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
11917 (elf_machine_rela_relative): Add a missing declaration.
11919 2001-09-18 Jakub Jelinek <jakub@redhat.com>
11921 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
11922 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
11923 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
11924 ldd-rewrite scripts.
11926 2001-09-18 Ulrich Drepper <drepper@redhat.com>
11928 * elf/ldd.bash.in: Update copyright message.
11930 2001-09-17 H.J. Lu <hjl@gnu.org>
11932 * hurd/hurdmalloc.c (bcopy): Removed.
11933 (realloc): Replace bcopy with memcpy.
11934 * hurd/path-lookup.c (file_name_path_scan): Likewise.
11935 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
11936 * sunrpc/rpcinfo.c (pmapdump): Likewise.
11938 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
11939 (gethostbyaddr): Likewise.
11940 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
11942 2001-09-18 Ulrich Drepper <drepper@redhat.com>
11944 * sysdeps/gnu/eval.c: Removed.
11946 2001-09-18 Andreas Jaeger <aj@suse.de>
11948 * sysdeps/i386/fpu/s_logbl.S: Move to ...
11949 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
11951 * sysdeps/i386/fpu/s_rintl.S: Move to ...
11952 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
11954 * sysdeps/i386/fpu/s_significandl.S: Move to ...
11955 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
11957 2001-09-16 Ulrich Drepper <drepper@redhat.com>
11959 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11962 2001-09-14 H.J. Lu <hjl@gnu.org>
11964 * sysdeps/mips/fpu/libm-test-ulps: Updated.
11966 2001-09-14 Ulrich Drepper <drepper@redhat.com>
11968 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
11969 Patch by Florian La Roche <laroche@redhat.com>.
11971 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
11973 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
11976 2001-09-14 Andreas Schwab <schwab@suse.de>
11978 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
11979 Sumner <bls@sgi.com>.
11980 * posix/execlp.c: Likewise.
11982 2001-09-13 Jakub Jelinek <jakub@redhat.com>
11984 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
11985 is already found earlier in the search scope.
11987 2001-09-12 Jakub Jelinek <jakub@redhat.com>
11989 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
11992 2001-09-13 Ulrich Drepper <drepper@redhat.com>
11994 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
11996 2001-09-12 Ulrich Drepper <drepper@redhat.com>
11998 * config.h.in: Enforce optimization to be used.
11999 * Makeconfig (preprocess-versions): Define ASSEMBLER.
12000 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12001 * posix/Makefile (annexc-CFLAGS): Define to -O.
12002 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12004 2001-09-11 Ulrich Drepper <drepper@redhat.com>
12006 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12007 Patch by Stephan Kulow.
12009 2001-09-08 Ben Collins <bcollins@debian.org>
12011 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12012 usage of RESOLVE() (r_type, not reloc->r_type).
12014 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12016 * elf/dl-object.c: Avoid allocating extra memory block for name.
12017 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12018 allocated separately.
12019 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12021 2001-09-08 H.J. Lu <hjl@gnu.org>
12023 * po/zh_TW.po: Fix a typo.
12025 2001-09-07 Tom Rix <trix@redhat.com>
12027 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12029 2001-08-26 Tom Rix <trix@redhat.com>
12031 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12032 command line options.
12033 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12034 * sysdeps/unix/sysv/aix/start.c: Removed.
12035 * sysdeps/unix/sysv/aix/start-libc.c: New file.
12036 * sysdeps/unix/sysv/aix/init-first.c: New file.
12037 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12039 2001-09-08 Ben Collins <bcollins@debian.org>
12041 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12042 * sysdeps/generic/dl-machine.h: Likewise.
12043 * sysdeps/hppa/dl-fptr.c: Likewise.
12044 * sysdeps/ia64/dl-fptr.c: Likewise.
12045 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12046 * sysdeps/mips/dl-machine.h: Likewise.
12047 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12048 * sysdeps/powerpc/dl-machine.c: Likewise.
12050 2001-09-07 Ben Collins <bcollins@debian.org>
12052 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12054 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12056 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12058 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12059 dependencies if necessary.
12061 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12062 loaded directly) determine length if l_initfini list by iterating
12063 over its elements. Minor optimizations.
12064 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12065 for dependency objects.
12066 If object was already loaded check whether any of the dependencies
12067 is already on the relocation dependency list. If yes, remove the
12068 latter. Minor optimizations.
12069 * elf/dl-lookup.c (add_dependency): Add check for self reference of
12070 maps here. Search l_initfini list only if the object was loaded
12071 directly and not only as a dependency.
12072 (_dl_lookup_symbol): Add relocation dependency also if object
12073 is not in global scope. Remove test for self-reference here.
12074 (_dl_lookup_versioned_symbol): Likewise.
12075 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
12076 element of first name record.
12077 * elf/loadtest.c: Add some more test to recognize early if an object
12079 * elf/Makefile: Add rules to build and run reldep5.
12080 * elf/reldep5.c: New file.
12081 * elf/reldepmod5.c: New file.
12082 * elf/reldepmod6.c: New file.
12084 * elf/reldep2.c: Fix typo.
12086 2001-09-07 Ulrich Drepper <drepper@redhat.com>
12088 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12089 elements. Change l_scope to be a pointer only.
12090 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12091 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12092 here add searchlist of newly open file to the dependency's scope.
12093 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12094 only searchlist from its scope. Free own scope array if necessary.
12095 * elf/Makefile (tests): Add dblload and dblunload now.
12097 2001-09-06 Andreas Jaeger <aj@suse.de>
12099 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12102 2001-09-05 Ulrich Drepper <drepper@redhat.com>
12104 * elf/Makefile: Add rules to build new tests. Don't run them yet since
12106 * elf/dblload.c: New file.
12107 * elf/dblloadmod1.c: New file.
12108 * elf/dblloadmod2.c: New file.
12109 * elf/dblloadmod3.c: New file.
12110 * elf/dblunload.c: New file.
12112 2001-09-04 Richard Henderson <rth@redhat.com>
12114 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12115 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12117 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12119 Correct very misleading message for error in failed runtime relocation.
12120 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12121 place of the error.
12122 (_dl_signal_cerror): Likewise.
12123 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12124 * elf/dl-close.c: Likewise.
12125 * elf/dl-deps.c: Likewise.
12126 * elf/dl-load.c: Likewise.
12127 * elf/dl-lookup.c: Likewise.
12128 * elf/dl-open.c: Likewise.
12129 * elf/dl-reloc.c: Likewise.
12130 * elf/dl-sym.c: Likewise.
12131 * elf/dl-version.c: Likewise.
12132 * sysdeps/generic/dl-sysdep.c: Likewise.
12134 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12136 * iconv/strtab.c (strtabinit): Initialize null Strent.
12137 (newstring): Move len == 0 handling...
12138 (strtabadd): ...here.
12139 If len == 1, return null Strent.
12140 When inserting a suffix of an existing string, check if
12141 it is not equal to some suffix already recorded.
12142 Copy left and right members over if adding longer string.
12144 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12146 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12148 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12149 (__syscall_gethostname): Add prototype.
12151 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12153 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12155 2001-09-02 Ulrich Drepper <drepper@redhat.com>
12157 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12159 2001-08-27 Roland McGrath <roland@frob.com>
12161 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12162 short, copy that much into NAME anyway before returning error.
12164 2001-09-01 Richard Henderson <rth@redhat.com>
12166 * sysdeps/alpha/elf/Dist: Remove file.
12167 * sysdeps/alpha/elf/Makefile: Remove file.
12168 * sysdeps/alpha/elf/crtbegin.S: Remove file.
12169 * sysdeps/alpha/elf/crtend.S: Remove file.
12170 * sysdeps/alpha/elf/initfini.c: New file.
12172 2001-09-01 Mark Kettenis <kettenis@gnu.org>
12174 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12175 * iconv/tst-iconv3.c: Likewise.
12177 2001-09-01 Jakub Jelinek <jakub@redhat.com>
12179 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12181 2001-09-01 Ulrich Drepper <drepper@redhat.com>
12183 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12185 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12186 * iconv/iconv_prog.c (insert_cache): New function.
12187 (print_known_names): If cache is used call insert_cache to use the
12188 information from the cache [PR libc/2509].
12190 2001-08-31 Ulrich Drepper <drepper@redhat.com>
12192 * time/strptime.c (strptime_internal): Recognize 'l' format and
12193 handle it like 'I' for symmetry with strftime.
12195 2001-08-31 Richard Henderson <rth@redhat.com>
12197 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12198 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12199 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12200 (print_statistics): Make scalar unsigned long long.
12201 * sysdeps/alpha/hp-timing.h: New file.
12203 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12205 * stdio-common/perror.c (perror): Save errno early, pass it
12206 down to perror_internal.
12207 (perror_internal): Add errnum argument.
12209 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12211 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12212 Don't add old memory content for R_ALPHA_REFQUAD.
12214 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12216 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12219 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12220 instead of open, __close instead of close, __getpagesize instead
12223 * string/argz-stringify.c (__argz_stringify): Use __strnlen
12224 instead of strnlen.
12225 * include/string.h (strndupa): Redefine here to use __strnlen
12226 instead of strnlen.
12227 * string/strndup.c (__strndup): Use __strnlen not strnlen.
12229 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12232 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12234 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12235 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
12236 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12237 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12238 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12239 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12240 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12242 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12244 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12246 2001-08-30 Andreas Jaeger <aj@suse.de>
12248 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12249 contributed Stephen L Moshier.
12251 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12253 * sunrpc/etc.rpc (sgi_fam): Add.
12255 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12257 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12259 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12261 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12262 first is from a previous call.
12263 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12265 2001-08-29 Andreas Schwab <schwab@suse.de>
12267 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12269 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12271 * config.make.in (INSTALL_SCRIPT): Define.
12272 * Makeconfig (INSTALL_SCRIPT): Define.
12273 * Makerules (do-install-script): New macro to install scripts using
12275 (install-bin-script): New rule to install scripts with
12277 (install-bin-script-nosubdir): New rule.
12278 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12279 (distinfo-vars): Add $(install-bin-script).
12280 * Rules (others): Likewise.
12281 * Makefile (glibcbug): Install with install-bin-script.
12282 * debug/Makefile (xtrace): Likewise.
12283 (catchsegv): Likewise.
12284 * elf/Makefile (ldd): Likewise.
12285 * malloc/Makefile (mtrace): Likewise.
12286 * timezone/Makefile (tzselect): Likewise.
12288 2001-08-29 H.J. Lu <hjl@gnu.org>
12290 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12291 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12292 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12294 2001-08-29 Andreas Schwab <schwab@suse.de>
12296 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12298 2001-08-28 H.J. Lu <hjl@gnu.org>
12300 * Makeconfig (combreloc-LDFLAGS): New variable.
12301 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12302 * config.make.in (have-z-combreloc): New variable.
12303 * configure.in: Substitute libc_cv_z_combreloc.
12305 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12307 * po/sv.po: Update from translation team.
12308 * po/fr.po: Likewise.
12309 * po/da.po: Likewise.
12311 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12313 * Makerules: Fix a typo: MD% -> MD5.
12315 2001-08-28 Ulrich Drepper <drepper@redhat.com>
12317 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12318 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12320 2001-08-28 Andreas Jaeger <aj@suse.de>
12322 * manual/libc-texinfo.sh: Add entry about free manuals.
12324 * manual/contrib.texi (Contributors): Fix cross reference.
12326 * manual/libc.texinfo (Copying): Include freemanuals.
12328 * manual/Makefile (appendices): Add freemanuals.
12330 * manual/freemanuals.texi: New file.
12331 Patch by Brian Youmans <3diff@gnu.org>.
12333 * manual/libm-err-tab.pl: Pretty print more platforms, print a
12336 * manual/math.texi (Errors in Math Functions): Fix grammar, start
12337 table on separate page.
12338 Patch by Brian Youmans <3diff@gnu.org>.
12340 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12342 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
12343 the connection went down after we first used it try to connect
12344 again and resend the message before printing to the console.
12345 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12347 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12349 * string/tst-strlen.c (main): Test strnlen (, -1) too.
12350 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12353 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12355 * iconv/strtab.c (searchstring): Use correct length for comparison.
12356 (strtabadd): Account total size correct if new string has old string as
12359 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12361 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12363 2001-08-27 Andreas Jaeger <aj@suse.de>
12365 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12367 * math/libm-test.inc (j0_test): Add extra tests.
12368 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12369 not x, in Hankel approximation.
12370 Patches by Stephen L Moshier.
12372 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12374 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12377 * configure.in: Fix test for .rela.dyn section.
12379 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12381 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12383 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12384 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12385 Pass type_class to _dl_lookup_*.
12386 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12387 Pass around just type_class instead of noexec, noplt pair.
12388 (_dl_lookup_versioned_symbol): Likewise.
12389 (_dl_lookup_symbol_skip): Pass around just type_class instead of
12390 noexec, noplt pair.
12391 (_dl_lookup_versioned_symbol_skip): Likewise.
12392 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12393 * elf/do-lookup.h (do_lookup): Likewise.
12394 * include/link.h (struct link_map): Replace noexec and noplt fields
12395 in l_lookup_cache with type_class field.
12396 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12397 ELF_RTYPE_CLASS_COPY): Define.
12398 Adjust prototypes for _dl_lookup_symbol and
12399 _dl_lookup_versioned_symbol.
12400 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12401 elf_machine_lookup_noexec_p): Remove.
12402 (elf_machine_type_class): Define.
12403 * sysdeps/arm/dl-machine.h: Likewise.
12404 * sysdeps/hppa/dl-machine.h: Likewise.
12405 * sysdeps/cris/dl-machine.h: Likewise.
12406 * sysdeps/i386/dl-machine.h: Likewise.
12407 * sysdeps/ia64/dl-machine.h: Likewise.
12408 * sysdeps/m68k/dl-machine.h: Likewise.
12409 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12410 * sysdeps/mips/dl-machine.h: Likewise.
12411 * sysdeps/powerpc/dl-machine.h: Likewise.
12412 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12413 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12414 * sysdeps/sh/dl-machine.h: Likewise.
12415 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12416 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12418 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12420 * manual/message.texi (Advanced gettext functions): Change
12421 description of plural forms for Slovak.
12422 Reported by Marcel Telka <marcel@telka.sk>.
12424 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12425 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12427 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12429 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12430 typo. Patch by Florian La Roche <laroche@redhat.com>.
12432 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12434 * include/link.h (struct link_map): Add l_lookup_cache element.
12435 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12436 (RESOLVE_MAP): Likewise.
12437 (_dl_relocate_object): Remove cache initialization.
12438 * elf/dl-lookup.c: Rip out cache handling code.
12439 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12442 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12443 remove some __builtin_expect.
12444 (_dl_lookup_versioned_symbol): Likewise.
12446 * config.h.in: Add HAVE_Z_COMBRELOC.
12447 * configure.in: Add test for -z combreloc.
12449 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12450 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
12451 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
12452 case to almost no code.
12454 2001-08-25 Ulrich Drepper <drepper@redhat.com>
12456 * po/tr.po: Update from translation team.
12458 2001-08-24 Andreas Jaeger <aj@suse.de>
12460 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12463 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12465 * elf/rtld.c (print_statistics): Printf % after percent values.
12466 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12468 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12469 don't have to compute the hash value and initialize current_value.
12470 Move reference_name variable to where it is needed.
12471 (_dl_lookup_versioned_symbol): Likewise.
12473 2001-08-24 Roland McGrath <roland@frob.com>
12475 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12476 Just test that strerror returns non-null for a few errno codes.
12478 2001-08-23 Roland McGrath <roland@frob.com>
12480 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12481 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12483 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12485 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12488 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12490 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12493 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12494 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12496 * elf/rtld.c: Include <sys/param.h>.
12497 * elf/dl-reloc.c: Likewise.
12499 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12501 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12502 empty to prevent junk from being generated.
12503 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12505 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12507 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12508 records. Rename endrel to relative, initialize it to r, and use it
12509 in elf_machine_rel_relative calls. Point r after relative relocs.
12511 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12513 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12516 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12518 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12519 necessary. Undefine newly defined macros at the end.
12520 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12521 Rename from elf_machine_rel_relative.
12522 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12523 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12524 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12525 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12527 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12529 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12530 Fix argument types.
12531 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12532 Fix argument types.
12533 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12534 Likewise. Fix argument types.
12535 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12536 Likewise. Fix argument types.
12537 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12538 Fix argument types.
12539 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12540 ElfW(Rel) in argument.
12541 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12544 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
12546 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12548 2001-08-24 Andreas Jaeger <aj@suse.de>
12550 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12551 Stephen L Moshier <moshier@mediaone.net>.
12553 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12555 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12556 first if RELCOUNT is set.
12558 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12559 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12560 elf_machine_rel_relative.
12561 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12562 Minor optimizations.
12563 * sysdeps/arm/dl-machine.h: Likewise.
12564 * sysdeps/cris/dl-machine.h: Likewise.
12565 * sysdeps/hppa/dl-machine.h: Likewise.
12566 * sysdeps/i386/dl-machine.h: Likewise.
12567 * sysdeps/ia64/dl-machine.h: Likewise.
12568 * sysdeps/m68k/dl-machine.h: Likewise.
12569 * sysdeps/mips/dl-machine.h: Likewise.
12570 * sysdeps/powerpc/dl-machine.h: Likewise.
12571 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12572 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12573 * sysdeps/sh/dl-machine.h: Likewise.
12574 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12575 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12577 2001-08-23 Roland McGrath <roland@frob.com>
12579 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12581 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12582 sysdeps/mach version. Implement counting ("recursive") mutexes
12583 on top of cthreads mutexes.
12584 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12586 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12587 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12588 (__libc_cleanup_region_start, __libc_cleanup_region_end,
12589 __libc_clean_end): Define these to call the cleanup function after
12590 normal exit when they're supposed to.
12592 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12593 Take new first arg DOIT, a boolean saying whether to really install
12594 any cleanup handler.
12595 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12596 (__libc_cleanup_end): Likewise.
12597 * sysdeps/generic/bits/libc-lock.h: Same changes.
12598 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12599 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12600 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12602 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12603 * sysdeps/generic/bits/stdio-lock.h
12604 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12606 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12608 * elf/ldconfig.c (search_dir): Remove stale symlinks.
12610 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12612 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12614 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12616 (_dl_lookup_versioned_symbol): Likewise.
12617 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12619 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12620 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12621 (lookup_cache, lookup_cache_versioned): Add declarations.
12623 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12625 * stdlib/tst-random.c (main): Swap parameters in fail call.
12626 Patch by Pete Bevin <pete@petebevin.com>.
12628 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12630 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12632 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12634 * malloc/obstack.c: Indent preprocessor directives.
12635 Patch by Jim Meyering <meyering@ascend.com>.
12637 * po/ja.po: Update from translation team.
12639 2001-08-23 Roland McGrath <roland@frob.com>
12641 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12643 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12644 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12646 2001-08-22 Roland McGrath <roland@frob.com>
12648 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12649 __libc_lock_define_recursive.
12650 * elf/dl-open.c: Don't declare it here any more.
12651 * elf/dl-close.c: Likewise.
12652 * elf/dl-lookup.c: Likewise.
12653 * elf/dl-iteratephdr.c: Likewise.
12654 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12655 __libc_lock_unlock_recursive.
12656 * elf/dl-close.c (_dl_close): Likewise
12657 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12658 * elf/dl-open.c (_dl_open): Likewise
12660 * sysdeps/generic/bits/libc-lock.h
12661 (__libc_lock_define_recursive): New macro.
12662 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12663 (_IO_lock_lock): Use __libc_lock_lock_recursive.
12664 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12666 * conform/conformtest.pl (checknamespace): Sort the output list.
12668 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12669 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12670 definitions conditional on [__USE_XOPEN].
12672 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12673 these unconditionally, not only use [__USE_BSD], so as to match
12674 the sysdeps/unix/sysv/linux files.
12676 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12678 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12681 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12684 2001-08-22 Roland McGrath <roland@frob.com>
12686 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12687 conditionalization of sa_handler/sa_sigaction member types to
12688 match the sysdeps/unix/sysv/linux file.
12690 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12692 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12693 symbol sizes a bit better.
12695 * sysdeps/ia64/strncpy.S: Complete rewrite.
12696 Contributed by Jakub Jelinek <jakub@redhat.com>.
12698 * string/stratcliff.c (main): Add strncpy test.
12700 2001-08-22 Roland McGrath <roland@frob.com>
12702 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12703 and don't declare unsetenv or _environ directly.
12704 (unsetenv): Return int, not void. Use __environ instead of _environ.
12706 2001-08-01 Mark Kettenis <kettenis@gnu.org>
12708 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12709 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12710 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12711 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12712 test for cmsg struct size.
12714 2001-04-23 Paul Eggert <eggert@twinsun.com>
12716 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12717 Rename __argc to ___argc in prototypes to avoid compatibility
12718 problems with systems that reserve the identifier "__argc".
12719 Similarly for __argv.
12721 2001-08-21 Roland McGrath <roland@frob.com>
12723 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12725 * mach/Makefile (tests): Removed.
12726 * mach/hello.c: File removed.
12728 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12730 * po/sv.po: Update from translation team.
12732 * stdio-common/vfscanf.c: Fix handling of %l[].
12733 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12735 * libio/Makefile (tests): Add tst-sscanf.
12736 * libio/tst-sscanf.c: New file.
12738 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12739 * malloc/mtrace.c (tr_where): dli_sname always points to a
12740 non-empty string if != NULL.
12741 Reported by Tim Janik <timj@gtk.org>.
12743 2001-08-22 Jakub Jelinek <jakub@redhat.com>
12745 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12746 buf. Free resources on failure.
12747 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12748 (makefd_xprt): Likewise.
12749 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12750 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12751 * sunrpc/auth_unix.c (authunix_create): Likewise.
12753 2001-08-21 Jakub Jelinek <jakub@redhat.com>
12755 * string/strnlen.c: Remove.
12756 * sysdeps/generic/strnlen.c: New file.
12757 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12759 2001-08-21 Roland McGrath <roland@frob.com>
12761 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12762 as a macro, not an extern inline function.
12764 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12765 * Versions.def (libc): Add GLIBC_2.2.5 set.
12766 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12767 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12769 2001-08-20 Roland McGrath <roland@frob.com>
12771 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12772 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12774 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12776 * string/bits/string2.h: Remove strnlen optimization here.
12777 * sysdeps/i386/i486/bits/string.h: Add it here.
12779 2001-08-21 Wolfram Gloger <wg@malloc.de>
12781 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12783 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12785 * po/gl.po: Update from translation team.
12787 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12789 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12790 * misc/err.c (convert_and_print): Likewise.
12792 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12795 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12797 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12798 change of the gregset_t type.
12799 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12801 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
12803 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12805 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12807 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12809 * string/strnlen.c: Fix the implementation. We cannot use memchr.
12811 2001-08-18 Mark Kettenis <kettenis@gnu.org>
12813 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12814 before calling the cthreads initialization code.
12816 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12818 * argp/argp-help.c: Fix two problems introduced in last change.
12820 * include/dirent.h: Include <dirstream.h> first.
12822 2001-08-19 Ulrich Drepper <drepper@redhat.com>
12824 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12826 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12827 * sunrpc/xdr_rec.c: Likewise.
12828 * sunrpc/xdr_mem.c: Likewise.
12829 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12830 * sunrpc/rpc_cmsg.c: Likewise.
12831 * sunrpc/getrpcport.c (getrpcport): Likewise.
12832 * sunrpc/clnt_simp.c (callrpc): Likewise.
12833 * sunrpc/clnt_gen.c (clnt_create): Likewise.
12834 * string/envz.c: Likewise.
12836 * po/ko.po: Update from translation team.
12838 * argp/argp-help.c: Handle wide oriented stderr stream.
12840 2001-08-18 Ulrich Drepper <drepper@redhat.com>
12842 * sysdeps/generic/strtol.c: Little optimizations. Add some
12845 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12847 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12848 * wcsmbs/wcwidth.c (wcwdith): Likewise.
12849 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12851 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12853 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12855 * time/time.h (struct timespec): Use __time_t for tv_sec element.
12857 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
12858 wchar_t for function declarations and defintions.
12860 * misc/sys/select.h: Define __need_time_t before including <time.h>.
12861 Define suseconds_t if it hasn't happened yet.
12863 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
12865 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
12867 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
12870 * conform/data/stddef.h-data: Remove wint_t.
12872 * conform/conformtest.pl: Change namespace test to take #undef
12873 lines into account.
12875 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
12877 * conform/data/sys/socket.h-data: Add sockatmark.
12879 2001-08-17 Ulrich Drepper <drepper@redhat.com>
12881 * io/fts.c: Update from recent BSD source.
12883 2001-08-17 Roland McGrath <roland@frob.com>
12885 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
12886 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
12889 2001-08-17 Ulrich Drepper <drepper@redhat.com>
12891 * locale/duplocale.c (__duplocale): Also initialize the special
12892 __ctype_* elements.
12894 * conform/data/netdb.h-data: Adjust gai_strerror return type.
12896 2001-08-17 Andreas Jaeger <aj@suse.de>
12898 * misc/getpass.c: Include wchar.h for prototypes.
12899 * malloc/obstack.c: Likewise.
12901 2001-08-17 Ulrich Drepper <drepper@redhat.com>
12903 * sunrpc/svc_simple.c (universal): Use __write instead of write.
12905 * wcsmbs/wcscoll.c: Also define __wcscoll.
12906 * include/wchar.h: Declare __wcscoll.
12908 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
12909 * libio/vwprintf.c: Likewise.
12910 * libio/wprintf.c: Likewise.
12912 * iconv/gconv_cache.c: Use __munmap instead of munmap.
12914 2001-08-16 Ulrich Drepper <drepper@redhat.com>
12916 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
12917 instead of mbrtowc.
12918 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
12919 wcslen, and __wcscoll instead of wcscoll.
12921 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
12923 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
12924 __getuid instead of getuid.
12926 * stdio-common/perror.c (perror): Use __close instead of close.
12927 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
12928 * libio/freopen.c (freopen): Likewise.
12929 * libio/freopen64.c (freopen64): Likewise.
12931 * libio/tst-ungetwc2.c (main): Define str const.
12933 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
12934 * libio/fwprintf.c: Also define __fwprintf.
12935 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
12936 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
12937 * assert/assert-perr.c: Likewise.
12938 * assert/assert.c: Likewise.
12939 * gmon/gmon.c: Likewise.
12940 * inet/rcmd.c: Likewise.
12941 * malloc/obstack.c: Likewise.
12942 * misc/err.c: Likewise.
12943 * misc/error.c: Likewise.
12944 * misc/getpass.c: Likewise.
12945 * posix/getopt.c: Likewise.
12946 * resolv/res_hconf.c: Likewise.
12947 * stdio-common/perror.c: Likewise.
12948 * stdio-common/psignal.c: Likewise.
12949 * stdlib/fmtmsg.c: Likewise.
12950 * sunrpc/auth_unix.c: Likewise.
12951 * sunrpc/clnt_perr.c: Likewise.
12952 * sunrpc/clnt_tcp.c: Likewise.
12953 * sunrpc/clnt_udp.c: Likewise.
12954 * sunrpc/clnt_unix.c: Likewise.
12955 * sunrpc/svc_simple.c: Likewise.
12956 * sunrpc/svc_tcp.c: Likewise.
12957 * sunrpc/svc_udp.c: Likewise.
12958 * sunrpc/svc_unix.c: Likewise.
12959 * sunrpc/xdr.c: Likewise.
12960 * sunrpc/xdr_array.c: Likewise.
12961 * sunrpc/xdr_rec.c: Likewise.
12962 * sunrpc/xdr_ref.c: Likewise.
12963 * sysdeps/generic/wordexp.c: Likewise.
12965 * po/it.po: Update from translation team.
12967 * misc/err.c: Handle wide oriented stderr stream.
12969 2001-08-14 Tom Rix <trix@redhat.com>
12971 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
12972 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
12974 2001-08-13 Tom Rix <trix@redhat.com>
12976 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
12977 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
12980 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
12982 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
12983 Store the access registers to the ucontext structure.
12984 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
12987 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
12988 Load the access registers from the ucontext structure.
12989 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
12992 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
12993 offsets to the new ucontext layout.
12994 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
12996 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
12997 of the ucontext structure.
12998 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13000 2001-08-15 Ulrich Drepper <drepper@redhat.com>
13002 * misc/error.c (error): Handle wide oriented stderr stream correctly.
13003 (error_at_line): Likewise.
13005 * stdio-common/perror.c (perror): Implement according to standard.
13006 The stream orientation must not be changed if the stream was not
13007 oriented before the call.
13008 * stdio-common/Makefile (tests): Add tst-perror.
13009 * stdio-common/tst-perror.c: New file.
13012 See ChangeLog.12 for earlier changes.