1 2002-09-18 Ulrich Drepper <drepper@redhat.com>
3 * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
5 * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
6 define sigaction and __sigaction as wrappers around
7 __libc_sigaction which rejects changing SIGCANCEL.
8 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
13 * signal/allocrtsig.c: Move to...
14 * sysdeps/generic/allocrtsig.c: ...here. New file.
16 2002-09-17 Jakub Jelinek <jakub@redhat.com>
18 * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
20 * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
21 R_386_TLS_LE): Define.
22 (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
24 * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
25 ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
26 (elf_machine_rel): Handle R_386_TLS_TPOFF.
27 (elf_machine_rela): Likewise.
28 Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
30 2002-09-17 Roland McGrath <roland@redhat.com>
32 * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
33 file-specific variable override so it compiles properly when using
36 2002-09-17 Steven Munroe <sjmunroe@us.ibm.com>
38 Ported to PowerPC64 running Linux.
39 * sysdeps/powerpc/powerpc64/Dist: New file.
40 * sysdeps/powerpc/powerpc64/Implies: New file.
41 * sysdeps/powerpc/powerpc64/Makefile: New file.
42 * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
43 * sysdeps/powerpc/powerpc64/atomicity.h: New file.
44 * sysdeps/powerpc/powerpc64/backtrace.c: New file.
45 * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
46 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
47 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
48 * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
49 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
50 * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
51 * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
52 * sysdeps/powerpc/powerpc64/memset.S: New file.
53 * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
54 * sysdeps/powerpc/powerpc64/register-dump.h: New file.
55 * sysdeps/powerpc/powerpc64/setjmp.S: New file.
56 * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
57 * sysdeps/powerpc/powerpc64/strchr.S: New file.
58 * sysdeps/powerpc/powerpc64/strcmp.S: New file.
59 * sysdeps/powerpc/powerpc64/strcpy.S: New file.
60 * sysdeps/powerpc/powerpc64/strlen.S: New file.
61 * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
62 * sysdeps/powerpc/powerpc64/elf/start.S: New file.
63 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
64 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
65 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
66 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
67 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
68 * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
69 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
70 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
71 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
73 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
74 (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
75 various gcc versions. Dot names required for powerpc64.
76 [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
77 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
78 C_SYMBOL_DOT_NAME(alias).
79 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
80 original strong_alias macro.
81 [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
82 C_SYMBOL_DOT_NAME(alias).
83 [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
84 [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
86 Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
87 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro. Generate
88 .global C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
89 (hidden_def): Append hidden_dot_def1 macro to definition.
90 (hidden_ver): Append hidden_dot_def1 macro to definition.
91 (hidden_data_def): New macro. Same as original hidden_def macro.
92 (hidden_data_ver): New macro. Same as original hidden_ver macro.
93 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro. Generate
94 .weakext C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
95 (hidden_weak): Append hidden_dot_weak1 macro to definition.
96 (hidden_data_weak): New macro. Same as original hidden_weak macro.
97 [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
98 Otherwise defined as __GI_name.
99 (libc_hidden_data_def): New macro. Use hidden_data_def.
100 (libc_hidden_data_weak): New macro. Use hidden_data_weak.
101 (libc_hidden_data_ver): New macro. Use hidden_data_ver.
102 (rtld_hidden_data_def): New macro. Use hidden_data_def.
103 (rtld_hidden_data_weak): New macro. Use hidden_data_weak.
104 (rtld_hidden_data_ver): New macro. Use hidden_data_ver.
105 (libm_hidden_data_def): New macro. Use hidden_data_def.
106 (libm_hidden_data_weak): New macro. Use hidden_data_weak.
107 (libm_hidden_data_ver): New macro. Use hidden_data_ver.
108 * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
110 2002-09-17 Ulrich Drepper <drepper@redhat.com>
112 * include/libc-symbols.h: Change *hidden_proto macros to accept
113 option parameters and pass those to the attribute definition.
114 * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
116 * include/unistd.h: Declare __libc_pause.
118 * include/sys/socket.h: Declare __libc_send, __libc_recv,
119 __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
121 * include/unistd.h: Declare __libc_fork.
123 2002-09-17 Roland McGrath <roland@redhat.com>
125 * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
126 (passwd2des): Define it as an alias.
127 (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
129 2002-09-12 Bruno Haible <bruno@clisp.org>
131 * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
132 * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
134 * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
135 * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
137 2002-09-05 Steven Munroe <sjmunroe@us.ibm.com>
139 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
140 (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
141 __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
142 PowerPC64 does not have separate 64-bit syscalls.
144 2002-09-16 Roland McGrath <roland@redhat.com>
146 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
148 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
151 * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
153 * include/unistd.h: Uncomment libc_hidden_proto for _exit.
154 * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
155 * sysdeps/generic/_exit.c: Likewise.
157 2002-09-12 Jakub Jelinek <jakub@redhat.com>
159 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
161 * elf/rtld.c (struct dl_start_final_info): New.
162 (_dl_start_final): Change second argument to struct
163 dl_start_final_info *. Set start_time from info.
164 (_dl_start): Remove bootstrap_map variable, add info.
165 Define bootstrap_map as macro. If not DONT_USE_BOOTSTRAP_MAP,
166 store HP_TIMING_NOW result into info.start_time.
168 2002-09-16 Andreas Jaeger <aj@suse.de>
170 * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
172 * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
174 2002-09-15 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
176 * sysdeps/powerpc/abort-instr.h: New file.
178 2002-09-14 Ulrich Drepper <drepper@redhat.com>
180 * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
183 * test-skeleton.c (main): Provide more information in case waitpid
186 * include/unistd.h: Declare __exit_thread.
187 * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
188 Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
189 * sysdeps/unix/sysv/linux/exit-thread.S: New file.
190 * sysdeps/unix/sysv/linux/_exit.c: New file.
191 * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
192 * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
195 * configure.in: Add dl_iterate_phdr to test using -nostdlib.
197 2002-09-12 Jakub Jelinek <jakub@redhat.com>
199 * sysdeps/i386/dl-machine.h (elf_machine_rel)
200 (case R_386_TLS_DTPMOD32): Don't use addend.
201 [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
202 (elf_machine_rela): Add support for TLS relocs.
204 2002-09-14 Roland McGrath <roland@redhat.com>
206 * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
208 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
210 * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
211 specific asm macros for multiple percision integer math.
213 2002-06-04 Steven Munroe <sjmunroe@us.ibm.com>
215 * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
216 * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
217 Remove per-machine conditionals for FLAG_* cases.
218 * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
219 * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
222 2002-09-10 Alan Modra <amodra@bigpond.net.au>
224 * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
226 (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
227 lowest address for profiling in __monstartup call.
228 * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
230 2002-09-14 Roland McGrath <roland@redhat.com>
232 * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
233 instead of __NR_pread.
234 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
235 * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
236 instead of __NR_pwrite.
237 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
239 2002-09-13 Roland McGrath <roland@redhat.com>
241 * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
243 2002-09-13 Andreas Jaeger <aj@suse.de>
245 * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
246 syscall. Patch by Guido Guenther <agx@sigxcpu.org>.
248 2002-09-12 Ulrich Drepper <drepper@redhat.com>
250 * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
252 2002-09-10 Ulrich Drepper <drepper@redhat.com>
254 * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
257 2002-09-12 Roland McGrath <roland@redhat.com>
259 * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
260 (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
263 * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
264 executable if needed, in case it's actually a shared object.
266 2002-09-11 Roland McGrath <roland@redhat.com>
268 * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
269 l_map_start to adjust l_tls_initimage.
271 * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
272 when using h_errno and it's not set to NETDB_INTERNAL.
273 * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
275 * Makefile ($(common-objpfx)testrun.sh): New target.
276 (others): Depend on it.
277 (postclean-generated): Append it.
279 * nss/bug-erange.c: New file.
280 * nss/Makefile (tests): Add it.
282 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
283 instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
285 * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
286 strncmp, keeps the code smaller for a non-performance-critical case.
288 * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
289 no longer wrongly matches arbitrary prefixes of NAME.
290 Reported by Jakub Jelinek <jakub@redhat.com>.
292 2002-09-11 Jakub Jelinek <jakub@redhat.com>
294 * posix/bug-regex11.c (tests): New array.
295 (main): Rewritten to run more different tests.
297 2002-09-10 Roland McGrath <roland@redhat.com>
299 * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
300 (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
301 Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
303 * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
304 well so we don't get it declared by include/math.h's hidden_proto.
305 Then do hidden_proto for __isnanf locally so hidden_def works right.
307 * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
308 a cast to turn nl_langinfo return value into an integer.
310 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
312 * posix/regexec.c (build_trtable): Fix the destination of
313 newline to prevent wrong states from overwriting.
314 Append break statements to optimization.
316 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
318 * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
319 (build_range_exp): Add castings to strlen invocations.
320 (build_collating_symbol): Restore the type of characters from "char"
321 to "unsigned char", and supplement castings.
322 (build_collating_symbol): Likewise.
323 (build_equiv_class): Likewise.
324 (build_charclass): Likewise.
325 (seek_collating_symbol_entry): Likewise.
326 (parse_bracket_exp): Likewise.
327 (build_word_op): Supplement a casting.
328 * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
329 (re_string_allocate): Fix castings.
330 (re_string_construct): Likewise.
331 (re_string_construct_common): Likewise.
332 (re_string_realloc_buffers): Likewise.
333 (build_wcs_buffer): Likewise.
334 (build_wcs_upper_buffer): Likewise.
335 (re_string_skip_chars): Likewise.
336 (re_string_reconstruct): Likewise.
337 * posix/regex_internal.h: Restore the type of characters in
338 re_string_t and bracket_elem_t from "char" to "unsigned char".
339 (re_string_elem_size_at): Fix castings.
340 * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
341 (transit_state_bkref_loop): Restore the type of characters from
342 "char" to "unsigned char", and append a cast to "char*" pointer in
344 (check_node_accept_bytes): Likewise.
345 (find_collation_sequence_value): Likewise.
347 2002-09-10 Hartvig Ekner <hartvige@mips.com>
349 * sysdeps/mips/memcpy.S: New file.
350 * sysdeps/mips/memset.S: New file.
351 * sysdeps/mips/fpu/e_sqrt.c: New file.
352 * sysdeps/mips/fpu/e_sqrtf.c: New file.
354 * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
355 functional before. Also removed all SHLIB_COMPAT stuff.
356 * fpu/fegetenv.c: Likewise.
357 * fpu/fesetenv.c:: Likewise.
358 * fpu/feupdateenv.c: Likewise.
359 * fpu/fgetexcptflg.c: Likewise.
360 * fpu/fraiseexcpt.c: Likewise.
362 * sysdeps/mips/fpu/fsetexcptflg.c: New file.
364 2002-09-09 Jakub Jelinek <jakub@redhat.com>
366 * include/math.h (__finite_internal, __finitef_internal,
367 __finitel_internal, __isinf_internal, __isnan_internal): Remove.
369 (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
370 __isinfl, __isnanl): Add hidden_proto.
371 (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
373 * math/Makefile (libm-calls): Add s_isinf and s_isnan.
374 * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
376 * stdio-common/printf_size.c (printf_size): Likewise.
377 * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
378 * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
379 * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
380 * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
381 * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
382 * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
383 (__finite): Add hidden_def.
384 * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
385 (__finitef): Add hidden_def.
386 * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
387 (__finitel): Add hidden_def.
388 * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF. Add
390 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
391 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
393 * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
394 * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF. Add
396 * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
397 (__isinfl): Remove INTDEF.
398 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF. Add
400 (__isnanl): Remove INTDEF.
401 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
403 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
404 instead of sin and cos.
405 * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
407 * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
408 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
409 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
411 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
413 * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
414 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
415 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
417 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
419 * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
421 * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
422 * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
423 * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
425 * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
426 __finitel_internal): Remove aliases.
427 (__finite, __finitef, __finitel): Add hidden_def.
428 * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
429 __isnanl_internal): Remove aliases.
430 (__isnan, __isnanf, __isnanl): Add hidden_def.
431 * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
432 __isinfl_internal): Remove aliases.
433 (__isinf, __isinff, __isinfl): Add hidden_def.
434 * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
435 __fpclassifyl): Add libm_hidden_def.
436 * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
437 * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF. Add hidden_def.
438 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
439 (hidden_defx): Define and use.
440 * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
442 * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
443 * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
444 * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
446 (__isnan, __isnanf): Add hidden_def.
447 * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
448 (__finitel): Add libm_hidden_def.
449 * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
451 * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
452 * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
453 * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
454 * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
455 * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
456 * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
457 * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
458 * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
459 * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
460 * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
461 * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
462 * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
463 * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
464 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
465 * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
466 * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
467 * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
468 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
469 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
470 * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
471 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
472 * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
473 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
474 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
475 * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
476 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
477 * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
479 2002-09-09 Steven Munroe <sjmunroe@us.ibm.com>
481 * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
483 2002-09-09 Jakub Jelinek <jakub@redhat.com>
485 * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
486 LD_DEBUG=statistics or LD_TRACE_PRELINKING.
488 2002-09-09 Ulrich Drepper <drepper@redhat.com>
490 * string/stratcliff.c: Some more strncpy tests.
491 Patch by Daniel Jacobowitz <drow@mvista.com>.
493 2002-09-08 Roland McGrath <roland@redhat.com>
495 * resolv/resolv.h: Include <sys/types.h> for u_long even in
496 the [__need_res_state] case.
497 Reported by Bruno Haible <bruno@clisp.org>.
499 2002-09-04 Bruno Haible <bruno@clisp.org>
501 * sysdeps/generic/bits/ustat.h: Comment fix.
502 * io/sys/sendfile.h: Comment fix.
503 * sysdeps/posix/pread.c: Comment fix.
504 * sysdeps/posix/pread64.c: Comment fix.
505 * sysdeps/posix/pwrite.c: Comment fix.
506 * sysdeps/posix/pwrite64.c: Comment fix.
508 2002-09-06 Roland McGrath <roland@redhat.com>
510 * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
511 to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
512 (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
513 (_UTSNAME_MACHINE_LENGTH): Likewise.
514 (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
516 2002-09-06 Ulrich Drepper <drepper@redhat.com>
518 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
519 test for filesystem type name of mount points.
521 * include/errno.h: Use errno definition with __thread for now only
524 * test-skeleton.c (main): Improve error message for unexpected
527 2002-09-05 Roland McGrath <roland@redhat.com>
529 * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
530 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
532 2002-09-05 Jakub Jelinek <jakub@redhat.com>
534 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
537 2002-09-04 Bruno Haible <bruno@clisp.org>
539 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
540 sigset_get_old_mask): Turn into inline functions.
541 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
542 sigset_get_old_mask): Likewise.
543 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
544 sigset_get_old_mask): Likewise.
545 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
548 * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
550 * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
552 (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
553 _sys_nerr_internal instead of _sys_nerr.
555 * nscd/connections.c (handle_request): Declare CALLER inside #if.
557 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
559 * sysdeps/powerpc/__longjmp.S: Moved to...
560 * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
561 * sysdeps/powerpc/add_n.S: Moved to...
562 * sysdeps/powerpc/powerpc32/add_n.S: ...here.
563 * sysdeps/powerpc/addmul_1.S: Moved to...
564 * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
565 * sysdeps/powerpc/atomicity.h: Moved to...
566 * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
567 * sysdeps/powerpc/backtrace.c: Moved to...
568 * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
569 * sysdeps/powerpc/bp-asm.h: Moved to...
570 * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
571 * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
572 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
573 * sysdeps/powerpc/bsd-setjmp.S: Moved to...
574 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
575 * sysdeps/powerpc/dl-machine.c: Moved to...
576 * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
577 * sysdeps/powerpc/dl-machine.h: Moved to...
578 * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
579 * sysdeps/powerpc/dl-start.S: Moved to...
580 * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
581 * sysdeps/powerpc/gprrest0.S: Moved to...
582 * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
583 * sysdeps/powerpc/gprrest1.S: Moved to...
584 * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
585 * sysdeps/powerpc/gprsave0.S: Moved to...
586 * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
587 * sysdeps/powerpc/gprsave1.S: Moved to...
588 * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
589 * sysdeps/powerpc/lshift.S: Moved to...
590 * sysdeps/powerpc/powerpc32/lshift.S: ...here.
591 * sysdeps/powerpc/memset.S: Moved to...
592 * sysdeps/powerpc/powerpc32/memset.S: ...here.
593 * sysdeps/powerpc/mul_1.S: Moved to...
594 * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
595 * sysdeps/powerpc/ppc-mcount.S: Moved to...
596 * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
597 * sysdeps/powerpc/register-dump.h: Moved to...
598 * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
599 * sysdeps/powerpc/rshift.S: Moved to...
600 * sysdeps/powerpc/powerpc32/rshift.S: ...here.
601 * sysdeps/powerpc/setjmp.S: Moved to...
602 * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
603 * sysdeps/powerpc/stpcpy.S: Moved to...
604 * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
605 * sysdeps/powerpc/strchr.S: Moved to...
606 * sysdeps/powerpc/powerpc32/strchr.S: ...here.
607 * sysdeps/powerpc/strcmp.S: Moved to...
608 * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
609 * sysdeps/powerpc/strcpy.S: Moved to...
610 * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
611 * sysdeps/powerpc/strlen.S: Moved to...
612 * sysdeps/powerpc/powerpc32/strlen.S: ...here.
613 * sysdeps/powerpc/sub_n.S: Moved to...
614 * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
615 * sysdeps/powerpc/submul_1.S: Moved to...
616 * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
617 * sysdeps/powerpc/elf/bzero.S: Moved to...
618 * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
619 * sysdeps/powerpc/elf/start.S: Moved to...
620 * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
621 * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
622 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
623 * sysdeps/powerpc/fpu/fprrest.S: Moved to...
624 * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
625 * sysdeps/powerpc/fpu/fprsave.S: Moved to...
626 * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
627 * sysdeps/powerpc/fpu/setjmp.S: Moved to...
628 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
629 * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
630 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
631 * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
632 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
633 * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
634 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
635 * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
636 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
637 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
638 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
639 * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
640 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
641 * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
642 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
643 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
644 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
645 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
646 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
647 Support PowerPC64. Separate powerpc into powerpc/powerpc32 and
650 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
652 * FAQ.in: Add powerpc64 to supported targets list. Also state the
653 minimum gcc version is 3.2
654 * README: Add powerpc64 to supported targets list.
655 * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
656 Add powerpc64 and machine=powerpc/powerpc64.
657 (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
658 * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
659 * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
660 gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
661 * sysdeps/powerpc/powerpc32/Dist: New file.
662 * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
663 * sysdeps/powerpc/powerpc32/Implies: New file.
664 * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
665 ($(with-fp) = no): Move test to powerpc32/Makefile.
666 ($(subdir) = misc): Move to powerpc32/Makefile.
667 ($(build-shared) = yes): Move to powerpc32/Makefile.
668 ($(subdir) = csu): Move to powerpc32/Makefile.
669 (sysdep-rtld-routines): Remove dl-start. Moved these bits to ...
670 * sysdeps/powerpc/powerpc32/Makefile: New file.
671 * sysdeps/powerpc/Versions: Remove libgcc functions.
672 * sysdeps/powerpc/powerpc32/Versions: New file.
673 * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
674 * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
675 * sysdeps/unix/sysv/linux/configure.in (powerpc*):
676 Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
677 libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
678 ($machine): Add powerpc/powerpc64 to if ... | for
679 libc_cv_slibdir=/libc64.
680 (powerpc*): Set ldd_rewrite_script.
681 * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
682 * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
683 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
685 * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
686 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
687 functions. Remove GLIBC_2.2 functions except getrlimit and
688 setrlimit. Moved them to ...
689 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
691 2002-09-04 Ulrich Drepper <drepper@redhat.com>
693 * libio/tst-atime.c: Include <errno.h>.
694 (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
696 2002-09-03 Isamu Hasegawa <isamu@yamato.ibm.com>
698 * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
699 warnings of some compilers.
700 (build_collating_symbol): Change the type of characters from
701 "unsigned char" to "char", and append a cast to "char*" pointer in
703 (build_collating_symbol): Likewise.
704 (build_equiv_class): Likewise.
705 (build_charclass): Likewise.
706 (re_compile_pattern): Remove incorrect cast.
707 (re_compile_fastmap_iter): Change the type of characters from
708 "unsigned char" to "char", and append a cast to "char*" pointer
710 (parse_bracket_exp): Likewise.
711 * posix/regex_internal.c (re_string_construct_common): Likewise.
712 (re_string_allocate): Likewise.
713 (re_string_construct): Likewise.
714 (re_string_realloc_buffers): Likewise.
715 (build_wcs_buffer): Likewise.
716 (re_string_reconstruct): Likewise.
717 * posix/regex_internal.h: Change the type of characters in
718 re_string_t and bracket_elem_t from "unsigned char" to "char".
719 * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
720 warnings of some compilers.
721 (transit_state_bkref_loop): Change the type of characters from
722 "unsigned char" to "char", and append a cast to "char*" pointer in
724 (check_node_accept_bytes): Likewise.
725 (find_collation_sequence_value): Likewise.
727 2002-09-04 Roland McGrath <roland@redhat.com>
729 * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
730 from 1024 to 65536, to avoid buffer overrun.
732 2002-09-03 Gerhard Tonn <ton@de.ibm.com>
734 * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
736 2002-09-04 Ulrich Drepper <drepper@redhat.com>
738 * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
741 2002-09-04 Jakub Jelinek <jakub@redhat.com>
743 * posix/bug-regex11.c: New test.
744 * posix/Makefile (tests): Add bug-regex11.
746 2002-09-03 Jakub Jelinek <jakub@redhat.com>
748 * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
751 2002-09-02 Roland McGrath <roland@redhat.com>
753 * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
754 __pthread_initialize_minimal and __libc_check_standard_fds to
755 match the generic version.
757 * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
758 warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
760 * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
761 warnings on platorms where char is unsigned.
763 2002-09-02 Ulrich Drepper <drepper@redhat.com>
765 * version.h (VERSION): Bump to 2.2.93.
767 * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
769 2002-09-02 Jakub Jelinek <jakub@redhat.com>
771 * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
774 2002-09-02 Jack Howarth <howarth@bromo.msbb.uc.edu>
776 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
778 2002-09-02 Jakub Jelinek <jakub@redhat.com>
780 * locale/localeinfo.h (struct locale_data): Add private.ctype.
781 * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
782 __wcsmbs_to_wc, update_conversion_ptrs): Removed.
783 (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
784 (__wcsmbs_load_conv): Remove const from argument.
785 (_nl_cleanup_ctype): New proto.
786 (get_gconv_fcts): New function.
787 * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
788 (__wcsmbs_to_wc): Rename back to...
790 (__wcsmbs_gconv_fcts): Rename to...
791 (__wcsmbs_gconv_fcts_c): ... this. Make const. Use to_wc.
793 (__libc_setlocale_lock): New extern.
794 (__wcsmbs_load_conv): Remove const from argument.
795 Initialize new_category->private.ctype instead of a global
797 (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
798 update_function_ptrs. No locking is necessary.
799 (_nl_cleanup_ctype): New function.
800 * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
801 update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
802 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
803 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
804 * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
805 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
806 * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
807 * wcsmbs/wctob.c (wctob): Likewise.
808 * stdlib/mblen.c (mblen): Likewise.
809 * stdlib/mbtowc.c (mbtowc): Likewise.
810 * stdlib/wctomb.c (wctomb): Likewise.
811 * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
812 Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
813 * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
816 2002-09-02 Roland McGrath <roland@frob.com>
818 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
820 2002-09-01 Roland McGrath <roland@redhat.com>
822 * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
823 Variable declarations removed.
824 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
825 these functions to replace them.
826 (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
827 functions plus an indirection rather than the old global variables.
828 * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
830 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
832 * ctype/ctype-info.c: Revert last reversion back the other way.
833 Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
834 Define real function versions of include/ctype.h inlines here.
835 * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
836 __ctype_tolower_loc, __ctype_toupper_loc.
837 * locale/lc-ctype.c: Revert last reversion back the other way.
838 (_nl_postload_ctype): If current thread uses the global locale,
840 * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
841 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
842 CTYPE_TOLOWER, CTYPE_TOUPPER.
844 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
845 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
846 from __libc_tsd_threadvar_location.
847 (__libc_tsd_set, __libc_tsd_get): Update uses.
849 2002-09-01 Ulrich Drepper <drepper@redhat.com>
851 * ctype/ctype.h: Undo the patch before the last one. Put back the
852 macro definitions for the standard functions to access the
853 classification and mapping arrays.
854 * include/ctype.h: Partly revert last patch. Move the macro
855 definitions for the exported functions back to the public header.
856 #undef all the macros defined here before redefining.
857 * ctype/ctype-info.c: Revert last patch.
858 * locale/lc-ctype.c: Revert last patch.
860 * ctype/Makefile (routines): Add isctype.
861 * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
862 * ctype/ctype.h: Add declaration of isctype.
863 * include/ctype.h: Declare __isctype.
864 * ctype/isctype.c: New file.
866 2002-09-01 Roland McGrath <roland@redhat.com>
868 * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
869 TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
871 * include/getopt.h: Include <features.h> before <posix/getopt.h>.
873 * locale/findlocale.c (_nl_remove_locale): Don't search in
874 _nl_locale_file_list if DATA->alloc is ld_archive.
875 Use _nl_unload_locale to do the rest of the work.
877 * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
878 of new structure to UNDELETABLE.
880 * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
881 iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
882 towlower, towupper): Macros removed.
883 * ctype/ctype.h (__tobody): Put parens around macro argument.
884 (__isctype): Macro removed.
885 (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
886 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
887 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
888 tolower, toupper): Macros and inlines removed.
889 * include/ctype.h [! NOT_IN_libc]
890 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
891 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
892 tolower, toupper): Define here instead, using _NL_CURRENT.
893 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
895 * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
896 * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
897 Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
898 (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
899 (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
900 * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
901 conditional on SHLIB_COMPAT. Don't set removed variables at all.
902 * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
903 * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
904 * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
905 (ISSORTMASK): Update use.
906 * intl/localealias.c [__GNUC__]: #undef alloca before #define.
907 * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
908 (_nss_files_getENTNAME_r): Likewise.
909 * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
912 * Makerules (all-nonlib): Renamed from all-tests.
913 Include $(others) here too.
914 * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
915 CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
916 CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
917 CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
918 CPPFLAGS-charmap-dir): Variables removed. Instead, catch all
919 the program modules via cppflags-iterator.mk.
920 * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
921 Instead, catch all rpcgen-objs via cppflags-iterator.mk.
923 2002-08-31 Roland McGrath <roland@redhat.com>
925 * posix/tst-getconf.sh: If no third arg, work with static linking.
927 * locale/categories.def (LC_TIME): No more _nl_postload_time.
929 * locale/setlocale.c (_nl_category_postload): Use weak refs only under
930 [_NL_CURRENT_INDIRECT].
932 2002-08-31 Ulrich Drepper <drepper@redhat.com>
934 * time/tst-ftime_l.c (main): Also test strftime with uselocale.
936 2002-08-31 Roland McGrath <roland@redhat.com>
938 * locale/newlocale.c (__newlocale): Don't use strdup for names.
939 Instead, make the single allocation of the structure larger to hold
941 * locale/duplocale.c (__duplocale): Don't strdup names individually.
942 Instead, calculate size for a single allocation and copy into it.
943 * locale/freelocale.c (__freelocale): Don't free names individually.
945 * locale/newlocale.c (__newlocale): Don't leak old data or names.
947 * locale/xlocale.h (__locale_struct): Move __names member last,
948 for binary compatibility.
950 * locale/duplocale.c (__duplocale): Free names from the right array.
952 * locale/uselocale.c (__uselocale): Return previous locale when
955 * locale/newlocale.c: Commit changes from 2002-08-30
956 batch where I failed to commit this file:
957 (__newlocale): Fill in __names array.
959 2002-08-31 Ulrich Drepper <drepper@redhat.com>
961 * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
962 errlist-compat.c if versioning==yes.
964 2002-08-31 Andreas Jaeger <aj@suse.de>
966 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
967 external functions with hidden attribute.
968 (elf_machine_rela): Optimize.
970 * sysdeps/x86_64/memset.S: New file.
971 * sysdeps/x86_64/bzero.S: New file.
972 * sysdeps/x86_64/stpcpy.S: New file.
973 * sysdeps/x86_64/strcat.S: New file.
974 * sysdeps/x86_64/strchr.S: New file.
975 * sysdeps/x86_64/strcpy.S: New file.
976 * sysdeps/x86_64/strcspn.S: New file.
977 * sysdeps/x86_64/strlen.S: New file.
978 * sysdeps/x86_64/strpbrk.S: New file.
979 * sysdeps/x86_64/strspn.S: New file.
980 * sysdeps/x86_64/strcmp.S: New file.
981 * sysdeps/x86_64/strtok_r.S: New file.
982 * sysdeps/x86_64/strtok.S: New file.
983 * sysdeps/x86_64/memcpy.S: New file.
984 * sysdeps/x86_64/mempcpy.S: New file.
986 * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
988 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
990 2002-08-31 Ulrich Drepper <drepper@redhat.com>
992 * stdio-common/Makefile (generated): Add errlist-compat.c.
994 * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
996 * locale/localeinfo.h: Pretty printing.
998 * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
999 form_number handling.
1001 2002-08-31 Andreas Jaeger <aj@suse.de>
1003 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1006 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1009 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1011 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1013 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1014 registers used for passing args.
1016 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1017 all needed registers.
1019 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1022 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1025 2002-08-30 Ulrich Drepper <drepper@redhat.com>
1027 * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1028 always_inline attribute.
1030 2002-08-30 Roland McGrath <roland@redhat.com>
1032 * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1033 presume it's the stub and bail without error.
1035 * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1036 neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1038 * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1040 * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1041 macros replace the i686 versions for 64-bit mode.
1043 * locale/duplocale.c: Include <string.h>.
1045 * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1046 [_LIBC] (category_to_name): Don't define the function. Instead
1047 define a macro using _nl_category_names.
1049 * locale/xlocale.h (struct __locale_struct): New member `__names'.
1050 * locale/xlocale.c (_nl_C_locobj): Update initializer.
1051 * locale/global-locale.c (_nl_global_locale): Likewise.
1052 * locale/duplocale.c (__duplocale): strdup __names elements.
1053 * locale/freelocale.c (__freelocale): Free __names elements.
1054 * locale/localename.c (_nl_current_names): Variable removed.
1055 (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1056 * locale/localeinfo.h (_nl_current_names): Removed decl.
1057 * locale/setlocale.c: Use _nl_global_locale->__names in place of
1058 _nl_current_names throughout.
1060 * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1062 * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1063 and sys_nerr in the output file.
1065 * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1066 * scripts/cpp: Just use the environment variable.
1068 * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1069 * libio/tst-mmap-offend.c (do_test): Likewise.
1070 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1071 * libio/tst-mmap-eofsync.c (do_test): Likewise.
1072 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1074 * locale/localename.c: If the current locale is the global locale, use
1075 _nl_current_names; otherwise use the locale object.
1077 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1079 * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1080 'm' to enable mmap I/O.
1081 * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2. The
1082 former wasn't used (anymore?).
1083 (_IO_FLAGS2_MMAP): New define.
1084 * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1085 * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1086 _IO_FLAGS2_MMAP bit is set.
1087 * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1088 Enable mmap-using mode only if 'm' was set.
1090 2002-08-29 Roland McGrath <roland@frob.com>
1092 * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1094 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1095 Change argument type from int to intptr_t.
1097 * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1098 initializer on [! _HURD_THREADVAR_H] (bad kludge).
1099 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1100 _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1101 * hurd/hurdsig.c (_hurdsig_init): Likewise. Zero other slots.
1103 * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1105 * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1107 * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1109 * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1110 * assert/assert-perr.c: Add libc_hidden_def.
1111 * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1113 * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1115 * sysdeps/gnu/Versions: File removed. Moved all #errlist-compat
1116 sys_errlist stuff to ...
1117 * sysdeps/unix/sysv/linux/Versions: ... here.
1119 * mach/mach.h: Include <features.h>.
1121 2002-08-29 Roland McGrath <roland@redhat.com>
1123 * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1124 * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1125 define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1127 * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1129 * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1130 (norm_add_slashes): alloca -> __alloca
1132 2002-08-29 Jakub Jelinek <jakub@redhat.com>
1134 * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1135 string_malloced, it is unlikely to be set.
1136 Only call free with non-NULL workspace.
1137 * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1138 -mcpu=ultrasparc, not only tune for it.
1139 (ASFLAGS*): Set unconditionally.
1141 * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1142 ElfW(Addr). Don't mask upper 32-bits and lower 12 bits off from
1143 p_vaddr/p_offset when computing LOADADDR.
1145 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1147 * version.h (VERSION): Bump to 2.2.92.
1149 * time/Makefile (tst-ftime_l-ENV): New variable.
1151 * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1153 * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1154 <U017A>, <U017D> and <U0179>. Add missing mappings.
1155 Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1157 * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1158 Define ARCINDEX. Bump MAXARCS to 1 << 20.
1159 (struct tostruct): Use ACRINDEX as type for link field.
1160 (statuc gmonparam): Likewise for froms.
1161 * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1163 (write_call_graph): Use correct type for from_index and to_index.
1164 * gmon/mcount.c: Use correct types for frompcindex and toindex
1166 Patches by Dan Kegel <dank@kegel.com>.
1168 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1171 * time/strptime.c (ISSPACE): New #define. Use isspace or
1172 __isspace_l. Replace calls to isspace.
1173 (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1175 2002-08-29 Roland McGrath <roland@redhat.com>
1177 * string/tst-strxfrm.c: Remove __ from function names.
1179 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1181 * include/wchar.h: Declare __mbsrtowcs_l.
1182 * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1183 * wcsmbs/mbsrtowcs.c: Add support for compilation with
1184 USE_IN_EXTENDED_LOCALE_MODEL.
1185 * wcsmbs/mbsrtowcs_l: New file.
1186 * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc. Don't
1187 define as static. Change all uses.
1188 (__wcsmbs_getfct): Renamed from getfct. Don't define as static.
1190 * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1191 * time/strftime.c: When translating for the extended locale model
1192 use the _l functions.
1193 * time/Makefile (tests): Add tst-ftime_l.
1194 * time/tst-ftime_l.c: New file.
1196 2002-08-28 Roland McGrath <roland@redhat.com>
1198 * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1199 * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1200 from _nl_find_locale ok if for _nl_C_name.
1202 * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1203 iterator to refer to each category's _nl_current_LC_FOO symbol, so
1204 we know they are all linked in.
1206 * NEWS: Added 2.2.6 text from 2.2 branch version.
1208 * time/strptime.c (strptime_internal): Remove spurious const.
1210 * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1211 _nl_select_era_entry): Moved to ...
1212 * time/era.c: ... here, new file.
1213 (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1214 Add internal_function to definitions. Take an additional argument
1215 giving the `struct locale_data *' to use.
1216 * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1217 _nl_parse_alt_digit): Moved to ...
1218 * time/alt_digit.c: ... here, new file.
1219 * time/lc-time-cleanup.c: New file.
1220 * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1221 * locale/localeinfo.h (_nl_postload_time): Remove decl.
1222 (_nl_cleanup_time): Declare it.
1223 (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1224 (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1225 * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1226 * time/strftime.c: Pass locale data to helper functions.
1227 * time/strptime.c: Likewise.
1229 * locale/localeinfo.h (struct locale_data): New member `private'
1230 * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1231 (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1232 * locale/C-collate.c: Update initializer.
1233 * locale/C-identification.c: Likewise.
1234 * locale/C-measurement.c: Likewise.
1235 * locale/C-telephone.c: Likewise.
1236 * locale/C-address.c: Likewise.
1237 * locale/C-name.c: Likewise.
1238 * locale/C-paper.c: Likewise.
1239 * locale/C-time.c: Likewise.
1240 * locale/C-numeric.c: Likewise.
1241 * locale/C-monetary.c: Likewise.
1242 * locale/C-messages.c : Likewise.
1243 * locale/C-ctype.c: Likewise.
1245 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1248 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1250 * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1251 (_rtld_global): Use it.
1253 * sysdeps/gnu/Dist: Remove errlist-compat.c.
1254 * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1255 object directory. Pass all Versions files to the awk script.
1256 * sysdeps/gnu/errlist-compat.c: Removed.
1257 * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1258 first Versions file in the search path which has them.
1259 Allow multiple errlist symbol versions to have the same count of
1261 * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1262 of "errlist-compat.c".
1263 * sysdeps/gnu/errlist.c: Regenerated.
1264 * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1265 comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1266 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1267 (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1268 * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1269 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1270 * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1271 * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1272 ECANCELLED if not defined by kernel headers.
1273 * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1274 already defined by kernel headers.
1275 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1276 * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1277 aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1279 * Versions.def (GLIBC_2.3) [librt]: Add.
1281 * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1283 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1285 * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1286 missing comma to .type directive.
1288 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1290 * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1292 * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1294 (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1296 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1298 * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1299 check to close_and_out close. Replace return NULL statements where
1300 fd might be >= 0 with goto close_and_out. Close the file descriptor
1301 when it is no longer needed.
1303 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1305 * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1307 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1308 * sysdeps/arm/dl-machine.h: Likewise.
1309 * sysdeps/cris/dl-machine.h: Likewise.
1310 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1311 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1313 2002-08-28 Roland McGrath <roland@redhat.com>
1315 * Makeconfig (default_cflags): Revert unintended change.
1317 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1319 * version.h (VERSION): Bump to 2.2.91.
1321 * configure.in: Disable TLS support by default for now.
1323 * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1325 * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1328 * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1330 * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1331 fprintf/fwprintf calls.
1333 2002-08-28 Roland McGrath <roland@redhat.com>
1335 * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1336 to use $(filter ...) instead. Same bug fixed in aix conditionals.
1338 * locale/setlocale.c: Declare postload functions weak.
1340 * elf/tst-tls1-static.c: New file.
1341 * elf/tst-tls2-static.c: New file.
1342 * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1344 Make uselocale support static linking.
1345 * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1346 This file again just defines _nl_C_locobj.
1347 (_nl_C_locobj): Use a categories.def iterator in the initializer.
1348 * locale/global-locale.c: New file. Define _nl_global_locale here,
1349 using all weak references in the initializer.
1350 * locale/Makefile (aux): Add global-locale.
1351 * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1352 these unconditional, along with the tsd decl.
1353 [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1354 Define it under these conditions.
1355 [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1356 Don't declare _nl_current. Declare _nl_current_LC_FOO as
1357 `extern __thread struct locale_data *const *'.
1358 [NL_CURRENT_INDIRECT]
1359 (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1360 [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten. Define
1361 the thread variable _nl_current_LC_FOO and also a special absolute
1362 symbol _nl_current_LC_FOO_used.
1363 * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1364 Set each _nl_current_LC_FOO symbol to point into the new locale,
1365 using weak references to test if _nl_current_LC_FOO_used was linked in.
1366 * locale/setlocale.c [! SHARED]: Replace this conditional ...
1367 [NL_CURRENT_INDIRECT]: ... with this one.
1368 (_nl_current, _nl_C): Variables removed.
1369 [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1370 weak references to _nl_current_LC_FOO_used.
1371 [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1372 (free_category): New function, broken out of ...
1373 (free_mem): ... here. Call that.
1374 (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1377 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1378 PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1379 it is already absolute.
1381 * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1382 [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1383 [$(build-static) = yes] (tests-static): New variable.
1384 ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1386 2002-08-26 Christoph Hellwig <hch@lst.de>
1388 * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1389 formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1391 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1393 * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1395 * sysdeps/s390/Dist: Add bits/link.h.
1397 * sysdeps/sh/Dist: New file.
1399 * sysdeps/ia64/Dist: Add ia64libgcc.S.
1401 * sysdeps/wordsize-32/Dist: New file.
1403 * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1404 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1405 * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1407 * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1410 * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1413 * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1415 * sysdeps/unix/bsd/sun/Dist: New file.
1417 * sysdeps/unix/bsd/osf/Dist: New file.
1419 * sysdeps/unix/bsd/hp/Dist: New file.
1421 * sysdeps/unix/arm/Dist: New file.
1423 * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1425 * sysdeps/mach/hurd/Dist: Add set-init.c.
1427 * sysdeps/i386/Dist: Add bits/link.h.
1429 * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1431 * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1433 * locale/Makefile (distribute): Add hashval.h.
1435 * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1437 * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1439 * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1440 __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1441 __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1442 * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1444 * libio/stdio.h: Likewise.
1445 * locale/locale.h: Likewise.
1446 * math/math.h: Likewise.
1447 * math/bits/mathcalls.h: Likewise.
1448 * setjmp/setjmp.h: Likewise.
1449 * signal/signal.h: Likewise.
1450 * stdlib/stdlib.h: Likewise.
1451 * string/string.h: Likewise.
1452 * time/time.h: Likewise.
1453 * wcsmbs/wchar.h: Likewise.
1454 * wctype/wctype.h: Likewise.
1456 2002-08-28 Roland McGrath <roland@redhat.com>
1458 * locale/tst-C-locale.c (run_test): Remove __ from function names.
1460 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1461 Roland McGrath <roland@redhat.com>
1463 * locale/hashval.h (compute_hashval): Use prototype defn.
1464 (hashval_t): New macro, defined to unsigned long int
1465 if not already defined.
1466 (compute_hashval): Return hashval_t instead of unsigned long int.
1467 * locale/loadarchive.c (hashval_t): New macro.
1468 * locale/programs/locarchive.c: Include hashval.h directly instead
1470 (compute_hashval, hashval_t): Define these macros first.
1471 (insert_name): Use archive_hashval instead of compute_hashval.
1472 (add_locale, delete_locales_from_archive): Likewise.
1474 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1476 * locale/programs/locarchive.c (insert_name): Suppress warnings about
1477 hash collisions if be_quiet.
1479 2002-08-27 Roland McGrath <roland@redhat.com>
1481 * locale/locale.h (__newlocale, __duplocale, __freelocale,
1482 __uselocale): Don't declare these any more.
1483 * include/locale.h (__uselocale): Declare here instead, using __typeof.
1485 * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1486 and treat it as an EOF return.
1487 * sysdeps/unix/readdir_r.c: Likewise.
1489 * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1490 From Alexandre Oliva <aoliva@redhat.com>.
1491 * sysdeps/gnu/errlist-compat.c: Regenerated.
1493 2002-08-27 Brian Youmans <3diff@gnu.org>
1495 * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1496 wording at request of copyright holder Stephen Moshier.
1497 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1498 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1499 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1500 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1501 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1502 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1503 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1504 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1505 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1506 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1507 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1508 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1509 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1510 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1512 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1514 * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1515 * ctype/ctype-extn.c (isblank_l): Add weak alias.
1516 * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1517 * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1518 * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1519 * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1520 * wctype/iswctype_l.c (iswctype_l): Likewise.
1522 2002-08-27 Roland McGrath <roland@redhat.com>
1524 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1526 * ctype/ctype.h (__exctype_l): Don't declare __ name.
1527 * stdlib/stdlib.h: Don't declare __*_l names.
1528 * include/stdlib.h: Declare them here instead.
1529 * include/string.h: Don't declare __*_l names.
1530 * string/string.h: Declare them here instead.
1531 * time/time.h: Don't declare __*_l names.
1532 * include/time.h: Declare them here instead.
1533 * wcsmbs/wchar.h: Don't declare __*_l names.
1534 * include/wchar.h: Declare them here instead.
1535 * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1536 Don't declare __*_l names.
1537 * include/wctype.h: Declare them here instead.
1538 * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1539 * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1540 * locale/langinfo.h: Don't declare __nl_langinfo_l.
1541 * include/langinfo.h: Declare it here with __typeof.
1543 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1544 instead, taking an extra __locale_t argument.
1545 * time/Makefile (routines): Add strptime_l.
1546 * time/time.h (__strptime_l, strptime_l): Declare them.
1547 * time/strptime_l.c: New file.
1549 * time/time.h (__strftime_l, strftime_l): Declare them.
1550 * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1551 * time/strftime_l.c: New file.
1552 * time/wcsftime_l.c: New file.
1553 * time/Makefile (routines): Add strftime_l, wcsftime_l.
1554 * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1555 strftime_l, wcsftime_l.
1556 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1557 or __wcsftime_l instead, taking an extra __locale_t argument.
1559 * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1560 (libc: GLIBC_2.3): ... here.
1562 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1564 * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1566 * Makefile (distribute): Add LICENSES.
1568 * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1571 * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1573 * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1575 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1577 * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1579 * sysdeps/mach/hurd/alpha/Dist: New file.
1581 * sysdeps/arm/Dist: Add bits/link.h.
1583 * sunrpc/Makefile: Distribute thrsvc.
1585 * stdio-common/Makefile: Remove more left-overs from old stdio.
1587 * include/linewrap.h: Removed.
1589 * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1591 * intl/Makefile (distribute): Add plural-eval.c.
1593 2002-08-27 Roland McGrath <roland@redhat.com>
1595 * manual/sysinfo.texi (Mount Information): Correct file name to macro
1596 assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1597 Say mtab is in either /var/run or /etc.
1599 2002-08-26 Roland McGrath <roland@redhat.com>
1601 * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1602 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1604 * sysdeps/gnu/Versions: New file.
1605 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1606 _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1607 * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1608 ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1609 * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1610 and _sys_nerr_internal instead of anything else. Make it include
1611 "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1612 Make it emit some asm magic if [EMIT_ERR_MAX].
1613 * sysdeps/gnu/errlist.c: Regenerated.
1614 * sysdeps/gnu/errlist-compat.awk: New file.
1615 * sysdeps/gnu/errlist-compat.c: New file (generated).
1616 * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1617 (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1618 (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1619 (SYS_ERRLIST, SYS_NERR): Macros removed.
1620 (sys_nerr, _sys_nerr): Remove these weak aliases.
1621 * sysdeps/unix/sysv/linux/errlist.c: File removed.
1622 * sysdeps/unix/sysv/linux/errlist.h: File removed.
1623 * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1625 * include/libc-symbols.h (declare_symbol): New macro.
1626 * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1627 * configure.in: New check to define it.
1628 * configure: Regenerated.
1630 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1632 * stdio-common/Makefile (headers): Remove bits/stdio_lim.h. This
1633 file isn't distributed. Add special rules to install bits/stdio_lim.h.
1635 * Make-dist: Remove traces of old stdio.
1636 * Makeconfig: Likewise.
1638 * locale/Makefile (localedef-aux): New variable. Only md5
1639 assigned to it. These files are not ddistributed in this directory.
1641 * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1642 * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1643 * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1645 * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1647 * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1648 set h_errno to NO_RECOVERY [PR libc/4360].
1650 2002-08-26 Ulrich Drepper <drepper@redhat.com>
1652 * libio/Makefile (tests): Add bug-fopena+.
1653 * libio/bug-fopena+.c: New file.
1654 * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1655 file for _IO_IS_APPENDING if file isn't opened for reading, too.
1657 * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1659 * locale/xlocale.c: Fix the last change. The variable still has
1661 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1662 (__libc_tsd_set): Add _data prefix to variable name.
1664 2002-08-26 Roland McGrath <roland@redhat.com>
1666 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1667 macro with inline function.
1668 (sigset_get_old_mask): Likewise.
1669 * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1670 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1671 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1672 * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1673 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1674 (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1676 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1677 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1679 2002-07-06 Bruno Haible <bruno@clisp.org>
1681 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1682 sigset_get_old_mask): Make it work with larger sigset_t.
1683 * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1684 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1685 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1687 2002-08-26 Roland McGrath <roland@redhat.com>
1689 * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1690 * manual/filesys.texi (File Times): Document lutimes and futimes.
1691 * misc/Makefile (routines): Add them.
1692 * misc/Versions (libc: GLIBC_2.3): Likewise.
1693 * sysdeps/generic/lutimes.c: New file.
1694 * sysdeps/generic/futimes.c: New file.
1695 * sysdeps/mach/hurd/lutimes.c: New file.
1696 * sysdeps/mach/hurd/futimes.c: New file.
1698 * manual/filesys.texi (File Times): Add explicit note about null
1699 pointer argument to utimes.
1701 2002-08-26 Roland McGrath <roland@frob.com>
1703 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1704 (__ifreq): Add a cast. Remove an unused variable.
1706 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1707 _HURD_THREADVAR_LOCALE.
1709 2002-08-26 Jakub Jelinek <jakub@redhat.com>
1711 * posix/regexec.c (re_search_stub): Return correct match length
1713 * posix/bug-regex10.c: New test.
1714 * posix/Makefile (tests): Add bug-regex10.
1716 2002-08-26 Brian Youmans <3diff@gnu.org>
1718 * COPYING.LIB: Replaced with fresh copy from
1719 ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1720 suggested copying permission notice now says version 2.1 instead
1723 * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1725 * crypt/crypt_util.c: Likewise.
1726 * crypt/ufc.c: Likewise.
1727 * elf/dl-conflict.c: Likewise.
1728 * elf/dl-iteratephdr.c: Likewise.
1729 * iconv/iconvconfig.h: Likewise.
1730 * malloc/arena.c: Likewise.
1731 * malloc/hooks.c: Likewise.
1732 * malloc/malloc.c: Likewise.
1733 * posix/glob/Makefile.ami: Likewise.
1734 * posix/glob/Makefile.in: Likewise.
1735 * stdlib/gmp-impl.h: Likewise.
1736 * stdlib/gmp.h: Likewise.
1737 * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1738 * sysdeps/generic/strnlen.c: Likewise.
1739 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1740 * sysdeps/mach/hurd/recvmsg.c: Likewise.
1741 * sysdeps/mach/hurd/sendmsg.c: Likewise.
1742 * sysdeps/mach/hurd/spawni.c: Likewise.
1743 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1744 * sysdeps/mach/powerpc/sysdep.h: Likewise.
1745 * sysdeps/mach/powerpc/thread_state.h: Likewise.
1746 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1747 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1748 * sysdeps/x86_64/gmp-mparam.h: Likewise.
1750 * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1751 Lesser GPL copying permission notice from 2 to 2.1.
1752 * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1753 * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1754 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1755 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1756 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1757 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1758 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1759 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1760 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1761 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1762 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1763 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1764 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1765 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1766 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1767 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1768 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1769 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1770 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1771 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1772 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1773 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1774 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1775 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1776 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1777 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1778 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1779 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1780 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1781 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1782 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1783 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1784 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1785 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1786 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1787 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1788 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1789 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1790 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1791 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1792 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1793 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1794 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1795 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1796 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1797 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1798 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1799 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1800 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1801 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1802 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1803 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1804 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1805 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1806 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1808 * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1809 Moshier and Lesser GPL copying permission notice, per license from
1811 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1812 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1813 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1814 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1815 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1816 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1817 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1818 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1819 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1820 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1821 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1822 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1823 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1824 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1826 * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
1827 notice, per license from copyright holder Stephen Moshier.
1828 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1829 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1830 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1831 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1832 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1833 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1834 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1835 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1836 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1838 2002-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1840 * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
1841 (shared-only-routines): Likewise.
1843 2002-08-26 Roland McGrath <roland@redhat.com>
1845 * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
1846 name of "", store a null pointer instead.
1848 * configure.in (elf): Set to yes for freebsd*, netbsd*.
1849 * configure: Regenerated.
1851 * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
1852 Initialize this instead of __libc_tsd_LOCALE_data.
1854 * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
1855 ptsname_r to EINVAL.
1857 * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
1859 * rt/Makefile: Revert last change, it was inappropriate to presume aio
1860 implementations depend on pthreads.
1861 * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
1862 * rt/tst-aio64.c (do_test): Likewise.
1863 * rt/tst-aio2.c (do_test): Likewise.
1864 * rt/tst-aio3.c (do_test): Likewise.
1865 * rt/tst-aio4.c (do_test): Likewise.
1866 * rt/tst-aio5.c (do_test): Likewise.
1867 * rt/tst-aio6.c (do_test): Likewise.
1868 * rt/tst-aio7.c (do_test): Likewise.
1870 * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
1871 void so as to avoid compiler warnings.
1873 * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
1874 _IO_wide_data_FD, which is never used here.
1877 [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
1878 * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
1879 * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
1881 * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
1882 * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
1884 * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
1885 (closelog): Likewise.
1887 2002-07-06 Bruno Haible <bruno@clisp.org>
1889 * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
1891 * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
1892 * sysdeps/unix/alpha/pipe.S: ... here.
1893 * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
1895 * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
1897 * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
1898 * sysdeps/unix/i386/fork.S: Likewise.
1899 * sysdeps/unix/i386/pipe.S: Likewise.
1900 * sysdeps/unix/i386/wait.S: Likewise.
1902 * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
1903 * sysdeps/unix/arm/fork.S: Likewise.
1905 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
1907 (DO_CALL): Swap argument order.
1908 * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
1910 (DO_CALL): Swap argument order.
1911 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
1913 (DO_CALL): Swap argument order.
1914 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
1916 (DO_CALL): Swap argument order.
1917 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
1919 (DO_CALL): Swap argument order.
1920 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
1922 (DO_CALL): Swap argument order.
1923 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
1925 (DO_CALL): Swap argument order.
1927 * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
1928 (L): Define right for ELF.
1929 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
1930 Now defined in sysdeps/i386/sysdep.h.
1932 * sysdeps/posix/readv.c: Ansify function definition.
1933 * sysdeps/posix/writev.c: Likewise.
1935 * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
1936 have the same size. Avoid direct cast from size_t to off_t.
1938 * login/tst-utmp.c (simulate_login): Don't leave garbage after the
1939 nul byte in entry[n].ut_user.
1940 (simulate_logout): Likewise.
1942 * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
1943 _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
1944 existence of corresponding members of 'struct utmp'.
1945 * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
1948 * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
1949 allocate a buffer of at least BUFSIZ bytes, not just of
1950 sizeof (struct dirent).
1952 * sysdeps/generic/glob.c: Include <limits.h>.
1953 (NAME_MAX): Define a fallback.
1954 (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
1956 * posix/tst-dir.c: Include <stddef.h>, for offsetof.
1957 (main): Allocate enough room for a 'struct dirent64' on the stack.
1958 * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
1961 * sysdeps/unix/sysv/linux/init-first.c: Don't include
1964 * inet/htontest.c: Include <sys/types.h>.
1966 * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
1968 * include/sys/sysctl.h: Comment fix.
1970 * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
1972 * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
1974 * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
1976 * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
1977 (__getpeername): New alias.
1978 (__getsockname): New alias.
1979 (__socket): New alias.
1981 * sysdeps/unix/common/syscalls.list (getpgid): Remove.
1983 * sysdeps/unix/syscalls.list (__chown_internal): New alias.
1984 (__fcntl_internal): New alias.
1985 (__profil): New alias.
1987 2002-08-26 Ulrich Drepper <drepper@redhat.com>
1989 * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
1990 entry was for getaddr* lookup or not. Add only matching cache
1991 entry. Change all callers [PR libc/4317].
1993 * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
1994 finding the read position [PR libc/4265].
1995 * libio/Makefile (tests): Add bug-rewind2.
1996 * libio/bug-rewind2.c: New file.
1998 * libio/bug-rewind.c: Fix creation of temp file.
2000 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2002 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2003 neither SUCCESS nor TRYAGAIN [PR libc/4259].
2004 * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2005 to ENOENT if no entry is found.
2006 * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2008 * nis/nss_compat/compat-initgroups.c: Likewise.
2009 * nis/nss_compat/compat-pwd.c: Likewise.
2010 * nis/nss_compat/compat-spwd.c: Likewise.
2011 * nis/nss_nis/nis-alias.c: Likewise.
2012 * nis/nss_nis/nis-ethers.c: Likewise.
2013 * nis/nss_nis/nis-grp.c: Likewise.
2014 * nis/nss_nis/nis-hosts.c: Likewise.
2015 * nis/nss_nis/nis-initgroups.c: Likewise.
2016 * nis/nss_nis/nis-netgrp.c: Likewise.
2017 * nis/nss_nis/nis-network.c: Likewise.
2018 * nis/nss_nis/nis-proto.c: Likewise.
2019 * nis/nss_nis/nis-publickey.c: Likewise.
2020 * nis/nss_nis/nis-pwd.c: Likewise.
2021 * nis/nss_nis/nis-rpc.c: Likewise.
2022 * nis/nss_nis/nis-service.c: Likewise.
2023 * nis/nss_nis/nis-spwd.c: Likewise.
2024 * resolv/nss_dns/dns-host.c: Likewise.
2025 * resolv/nss_dns/dns-network.c: Likewise.
2026 * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2027 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2028 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2029 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2030 * nis/nss_nisplus/nisplus-network.c: Likewise.
2031 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2032 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2033 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2034 * nis/nss_nisplus/nisplus-service.c: Likewise.
2035 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2036 * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2037 * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2038 * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2039 * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2041 * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2042 declaring __restore and __restore_rt as hidden (if possible).
2044 2002-08-25 Roland McGrath <roland@redhat.com>
2046 * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2048 * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2049 (getutent_r_file, internal_getut_r): Updated all callers.
2050 (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2052 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2054 * locale/programs/locale.c: Don't print aliases for non-existing
2055 locales for 'locale -a'.
2056 Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2058 2002-07-19 H.J. Lu <hjl@gnu.org>
2060 * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2062 2002-07-16 H.J. Lu <hjl@gnu.org>
2064 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2066 * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2068 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2070 * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2071 not moved ahead of the fputs call.
2072 * elf/tst-tlsmod2.c (in_dso): Likewise.
2073 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2074 * elf/tst-tlsmod4.c (in_dso): Likewise.
2076 2002-08-25 Andreas Schwab <schwab@suse.de>
2078 * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2080 2002-08-25 Roland McGrath <roland@redhat.com>
2082 * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2083 resetting handler, to avoid the possibility of a spurious SIGALRM
2084 delivered to the user's handler.
2085 Reported by Amit D. Chaudhary <amitc@brocade.com>,
2087 * misc/Makefile (CFLAGS-init-misc.c): Variable removed. It served to
2088 set -fkeep-inline-functions, which is not needed for the current file.
2090 * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2091 (_dl_setup_hash): Add attribute_hidden.
2092 (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2093 (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2094 (_dl_new_object, _dl_map_object_deps): Likewise.
2095 (_dl_map_object_deps_internal): Remove decl.
2096 * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2098 * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2099 && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2100 && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2101 (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2102 instead relying on the compiler to produce only GOTOFF variable refs.
2104 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2106 * elf/dl-load.c: Fix typo in comment. Add a few more __builtin_expect.
2108 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2109 inline to avoid defining it in every file which includes this header.
2111 * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2112 defining DONT_USE_BOOTSTRAP_MAP.
2114 * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2115 * libio/tst-mmap-setvbuf.c (main): Likewise.
2116 * libio/tst-widetext.c (main): Likewise.
2118 * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2120 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2121 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2123 * sysdeps/i386/elf/configure.in: Unconditionally define
2124 PI_STATIC_AND_HIDDEN.
2125 * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2126 PI_STATIC_AND_HIDDEN is defined as well.
2127 * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2129 2002-08-24 Ulrich Drepper <drepper@redhat.com>
2131 * sysdeps/ia64/bzero.S: Define __bzero as well.
2133 * locale/programs/charmap.c (charmap_new_char): Don't use
2134 ULONG_MAX as maximum UCS4 value.
2136 * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2138 * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2140 * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2141 * malloc/malloc.c (mALLINFo): Likewise.
2143 * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2145 * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2146 examining result of _IO_do_flush call.
2148 * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2149 Use prec not spec when sizing buffers.
2151 * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2152 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2153 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2154 * stdio-common/vfscanf.c (inchar): Likewise.
2155 * misc/efgcvt_r.c (fcvt_r): Likewise.
2156 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2157 * elf/readlib.c (process_file): Likewise.
2158 * elf/sprof.c (load_profdata): Likewise.
2159 * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2160 * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2161 * locale/programs/charmap.c (charmap_read): Likewise.
2162 * libio/fileops.c: Likewise.
2163 * libio/fmemopen.c: Likewise.
2164 * stdlib/strtod.c: Likewise.
2165 * elf/dl-load.c: Likewise.
2166 * iconv/iconvconfig.c: Likewise.
2167 * iconv/iconv_prog.c (process_block): Likewise.
2168 * elf/rtld.c (dl_main): Likewise.
2170 * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2171 macro to calm down the compiler.
2173 * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2175 * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2177 * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2178 placement of errno definition.
2179 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2180 * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2181 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2182 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2183 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2185 * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2186 from 1024 to 65536, to avoid buffer overrun.
2188 2002-08-16 Paul Eggert <eggert@twinsun.com>
2190 * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2191 from 1024 to 65536, to avoid buffer overrun.
2192 * resolv/res_query.c (MAXPACKET): Likewise.
2194 2002-08-24 Andreas Jaeger <aj@suse.de>
2196 * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2198 2002-08-23 Ulrich Drepper <drepper@redhat.com>
2200 * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2203 * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2204 Patch by Simon Gee <simong@agile.tv>.
2206 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2207 Prefer reading /proc/stat since it is more uniform across
2210 * manual/texinfo.tex: Update to latest official version.
2212 * sysvipc/sys/shm.h: Remove SHMLBA definition.
2213 * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2214 * sysdeps/gnu/bits/shm.h: Likewise.
2215 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2216 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2217 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2218 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2219 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2220 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2221 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2222 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2223 since this is what the kernel says.
2225 * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2226 since ssize_t is needed as well. Replace const with __const.
2228 2002-08-23 Roland McGrath <roland@redhat.com>
2230 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2231 __malloc_hook, __realloc_hook, __memalign_hook,
2232 __after_morecore_hook): Variable definitions moved to ...
2233 * malloc/malloc.c: ... here, so as to be before all references.
2235 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2236 global variable reference in an unused asm parameter, to ensure the
2237 compiler has set up the GOT register before we use it.
2239 * malloc/hooks.c: Move variable definitions ahead of uses.
2240 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2241 initializers that make reference to variables they define.
2243 2002-08-23 Andreas Jaeger <aj@suse.de>
2245 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2246 alloca, free, qsort.
2248 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2250 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2251 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2253 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2255 * sysdeps/generic/fgetxattr.c: New file.
2256 * sysdeps/generic/flistxattr.c: New file.
2257 * sysdeps/generic/fremovexattr.c: New file.
2258 * sysdeps/generic/fsetxattr.c: New file.
2259 * sysdeps/generic/getxattr.c: New file.
2260 * sysdeps/generic/listxattr.c: New file.
2261 * sysdeps/generic/lgetxattr.c: New file.
2262 * sysdeps/generic/llistxattr.c: New file.
2263 * sysdeps/generic/lremovexattr.c: New file.
2264 * sysdeps/generic/lsetxattr.c: New file.
2265 * sysdeps/generic/removexattr.c: New file.
2266 * sysdeps/generic/setxattr.c: New file.
2267 * misc/Makefile (headers): Add sys/xattr.h.
2268 (routines): Add *xattr calls.
2269 * misc/Versions: Add *xattr calls with version 2.3.
2270 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2271 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2272 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2273 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2274 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2275 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2276 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2277 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2279 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
2281 * sysdeps/powerpc/elf/libc-start.c
2282 (__cache_line_size): Declare.
2283 (__aux_init_cache): New function.
2284 (__libc_start_main): Change type of `auxvec' parameter to
2285 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
2287 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2288 (__cache_line_size): Declare.
2289 (__aux_init_cache): New function.
2290 (DL_PLATFORM_INIT): Define.
2291 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2292 value to select the correct stride for dcbz.
2294 2002-08-22 Andreas Jaeger <aj@suse.de>
2296 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2299 2002-08-22 Roland McGrath <roland@redhat.com>
2301 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2302 position indicated by locrectab against file bounds before rounding to
2303 page size. In mapping loop, always set TO before breaking out of
2304 contiguous range coalescing loop.
2306 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2307 (or MAP_COPY if available) instead of MAP_SHARED.
2309 * scripts/firstversions.awk: When encountering a version newer than
2310 the specified earliest version, be sure to emit the specified earliest
2311 version first if any renaming of an older version to that has been.
2313 2002-08-21 Roland McGrath <roland@redhat.com>
2315 * configure.in: Make GCC version check require 3.[2-9]* and no others.
2316 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2317 (Configuring and compiling): Don't mention older GCC versions any more.
2318 * INSTALL: Regenerated.
2320 * manual/install.texi (Configuring and compiling, Installation,
2321 Running make install, Linux): Linux -> GNU/Linux where appropriate.
2323 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2324 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2325 and with noinline otherwise. Remove hack alloca use to prevent
2326 inlining, we can ask for it explicitly nowadays.
2328 * dlfcn/bug-dlsym1.c: New file.
2329 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2330 * dlfcn/Makefile (distribute): Add them.
2331 (tests): Add bug-dlsym1 here.
2332 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2333 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2334 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2336 2002-08-21 Ulrich Drepper <drepper@redhat.com>
2338 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
2339 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2341 (_dl_start): Don't use local bootstrap_map variable if
2342 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
2343 pass bootstrap_map to _dl_start_final in this case either. Don't
2344 pass start_time to _dl_start_final ever.
2345 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2347 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2348 This cripples the scope lists necessary to search for symbols in
2349 dependencies which are not in the global scope.
2351 * include/setjmp.h (__libc_longjmp): Add declaration.
2353 2002-08-21 Andreas Jaeger <aj@suse.de>
2355 * sysdeps/x86_64/_mcount.S: Fix assembler.
2357 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2358 with biarch support.
2360 2002-08-21 Andreas Jaeger <aj@suse.de>
2362 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2364 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2366 * sysdeps/x86_64/machine-gmon.h: New file.
2367 * sysdeps/x86_64/_mcount.S: New file.
2369 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2371 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
2372 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2373 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2374 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2375 to TL_INIT_TP. Otherwise pass 1.
2376 * include/link.h (struct link_map): Add l_tls_tp_initialized.
2377 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2379 2002-08-15 Jakub Jelinek <jakub@redhat.com>
2381 * locale/programs/localedef.c (add_to_readlist): Error about
2382 circular dependencies only if the locale in question hasn't
2384 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2385 CTYPE_LOCALE to load_locale.
2386 * locale/programs/locfile.c (locfile_read): Don't include
2387 unneeded but available locales in locale_mask.
2389 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2390 print any messages about enlarging archive.
2392 2002-08-20 Brian Youmans <3diff@gnu.org>
2394 * manual/contrib.texi: Removed licenses, added acknowledgements
2395 for contributions by Intel, IBM, Craig Metz.
2396 * LICENSES: New file, contains the text of all non-FSF licenses in the
2397 distribution that require putting the notice in the accompanying
2399 * README.template, README: Mention LICENSES.
2401 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2402 new one modelled on the modern BSD license, per recent letter
2403 of permission from CMU.
2404 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2406 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2407 from IBM to FSF, per the recent Software Letter. Changed the
2408 distribution terms from GPL to LGPL.
2410 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2411 copying permission notice (Lesser GPL), per recent IBM Software Letter.
2412 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2413 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2414 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2415 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2416 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2417 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2418 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2419 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2421 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2422 from IBM to FSF, per the recent Software Letter. Corrected the
2423 text of the copying permission notice to say Lesser GPL instead
2424 of GPL in warranty disclaimer paragraph.
2425 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2426 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2427 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2428 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2429 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2430 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2431 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2432 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2433 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2434 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2435 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2436 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2437 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2438 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2439 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2440 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2441 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2442 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2443 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2444 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2445 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2447 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2448 permission notice to say Lesser GPL instead of GPL in warranty
2449 disclaimer paragraph.
2450 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2451 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2452 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2453 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2454 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2455 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2456 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2457 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2458 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2459 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2460 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2461 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2462 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2463 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2464 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2465 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2466 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2467 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2468 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2469 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2470 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2471 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2472 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2474 2002-08-20 Roland McGrath <roland@redhat.com>
2476 Fix ABI compatibility with libc compiled with old tools on powerpc.
2477 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2478 and Jack Howarth <howarth@bromo.med.uc.edu>.
2479 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2480 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2481 pass -DHAVE_DOT_HIDDEN for these files.
2482 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2484 * sysdeps/powerpc/divdi3.c: New file.
2485 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2486 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2488 2002-08-20 Jakub Jelinek <jakub@redhat.com>
2490 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2491 partially overlapping mappings. Remove unneeded (char *) casts.
2492 Never allow duplication of ranges in mapped areas.
2494 2002-08-20 Roland McGrath <roland@redhat.com>
2496 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2497 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
2499 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2501 * include/unistd.h: Don't hide _exit.
2503 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2504 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2505 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2506 argument 1 to TLS_INIT_TP.
2507 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2509 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2511 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2512 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2513 memory allocation to...
2514 (allocate_dtv): ...here. New function.
2515 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
2516 call allocate_dtv instead of _dl_allocate_tls_storage.
2517 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
2518 (_dl_get_tls_static_info): New function.
2519 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2520 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
2522 2002-08-19 Ulrich Drepper <drepper@redhat.com>
2524 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2525 immediately if result == NULL.
2527 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2529 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2531 2002-08-18 Roland McGrath <roland@frob.com>
2533 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2534 instead of __file_name_split.
2535 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2537 * sysdeps/mach/hurd/dl-sysdep.c
2538 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2539 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2541 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2543 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2544 in change before last: MAX -> MIN.
2546 2002-08-15 Roland McGrath <roland@redhat.com>
2548 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2549 if seek would go past it.
2550 (mmap_remap_check): If file position is at or past EOF after check,
2551 leave read pointers at EOF and don't seek.
2553 * libio/tst-mmap-offend.c: New file.
2554 * libio/Makefile (tests): Add it.
2556 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2557 the name as passed, rather than the name in the archive dictionary.
2559 2002-08-15 Ulrich Drepper <drepper@redhat.com>
2561 * csu/Makefile: Define elide-routines.os not static-only-routines.
2563 * include/sched.h (__clone): Add varargs at the end.
2565 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2567 (TLS_INIT_HELPER): If defined, use it.
2568 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2570 2002-08-15 Roland McGrath <roland@redhat.com>
2572 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2573 on L->l_prev; it can happen under rtld --verify too.
2575 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2576 header separately, just map an initial window of 2MB from the file
2577 and remap if that is not large enough to cover the whole header.
2579 2002-08-15 Andreas Jaeger <aj@suse.de>
2581 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2583 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2584 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2585 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2586 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2587 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2588 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2589 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2590 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2591 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2592 Patch by Andreas Gruenbacher <agruen@suse.de>.
2594 * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2596 2002-08-14 Roland McGrath <roland@redhat.com>
2598 * locale/locarchive.h (struct locale_category_data): Give this name to
2599 the type of locale_data_t's elements.
2600 * locale/programs/locarchive.c (cmpcategorysize): New static function.
2601 (add_locale): Use that to sort the categories by size and put all
2602 those that fit into two pages into the LC_ALL block, instead of
2603 hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2604 (show_archive_content): Detect categories inside LC_ALL block
2605 directly, instead of hard-coding.
2606 (oldlocrecentcmp): Compare just on file locations used.
2608 2002-08-14 Jakub Jelinek <jakub@redhat.com>
2610 * locale/programs/locarchive.c (struct oldlocrecent): New type.
2611 (oldlocrecentcmp): New function.
2612 (enlarge_archive): Re-add locales in the order they were added
2614 (add_locale): Put all the small locale files together, if the small
2615 locale file block would occupy less pages if page size aligned, align
2617 (show_archive_content): Adjust for locale archives optimized for speed.
2619 2002-08-14 Roland McGrath <roland@frob.com>
2621 * configure.in: Use "MISSING" as not-found value for MIG.
2622 * sysdeps/mach/configure.in: Fatal if mig not found.
2623 * configure, sysdeps/mach/configure: Regenerated.
2625 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2627 * locale/loadarchive.c (archfname): Add missing slash.
2629 * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2630 * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2632 2002-08-12 Roland McGrath <roland@redhat.com>
2634 * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2635 * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2636 * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2637 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2638 * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2639 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2640 * sysdeps/generic/waitpid.c: Likewise.
2642 * include/net/if.h: New file. Use libc_hidden_proto
2643 for if_nametoindex and if_indextoname.
2644 * sysdeps/generic/if_index.c: Add libc_hidden_def.
2645 * sysdeps/mach/hurd/if_index.c: Likewise.
2646 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2648 * include/grp.h (setgroups): Add libc_hidden_proto.
2649 * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2650 * sysdeps/mach/hurd/setgroups.c: Likewise.
2651 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2652 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2654 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2656 * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2657 * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2658 * sysdeps/generic/setegid.c (setegid): Likewise.
2659 * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2660 * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2661 * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2662 * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2663 * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2664 * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2665 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2666 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2667 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2668 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2669 * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2670 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2671 Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2673 * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2674 __lxstat_internal, __lxstat64_internal): Remove.
2675 (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2677 * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2678 Remove INTDEF where present, remove #undef at the beginning.
2679 * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2680 * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2681 * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2682 * sysdeps/generic/xstat.c (__xstat): Likewise.
2683 * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2684 * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2685 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2686 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2687 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2688 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2689 * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2690 * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2691 * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2692 * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2693 * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2694 * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2695 * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2696 * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2697 * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2698 * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2699 * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2700 * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2701 * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2702 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2703 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2704 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2705 * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2706 * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2707 * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2708 * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2709 * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2710 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2711 * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2712 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2713 * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2714 * sysdeps/unix/xstat.c (__xstat): Likewise.
2716 * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2717 * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2718 * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2719 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2720 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2721 * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2722 * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2724 * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2725 * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2726 * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2727 * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2728 * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2729 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2730 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2731 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2733 * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2734 * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2735 * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2736 * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2737 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2738 * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2739 * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2740 * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2742 * include/string.h (strcoll): Add libc_hidden_proto.
2743 * string/strcoll.c (strcoll): Add libc_hidden_def.
2745 * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2747 2002-08-11 Philip Blundell <philb@gnu.org>
2749 * sysdeps/arm/Makefile: New file.
2751 2002-08-08 Jakub Jelinek <jakub@redhat.com>
2753 * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2754 by another '|', end of regex or enclosing ')', clear branch.
2755 * posix/bug-regex9.c: New test.
2756 * posix/Makefile (tests): Add bug-regex9.
2758 2002-08-12 Roland McGrath <roland@redhat.com>
2760 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2761 start count condition, use TOTAL instead of variable that was never
2762 set. Fix outer loop termination condition to TOTAL >= after update.
2764 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2765 dl_tls_static_align and dl_tls_static_nelem.
2767 2002-08-11 Roland McGrath <roland@redhat.com>
2769 * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2770 of the TLS macros, otherwise the compiler might not have initialized
2771 the PIC register yet when we use the PLT via asm.
2772 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2773 * elf/tst-tlsmod2.c (in_dso): Likewise.
2775 * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2777 * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2778 Evaluate argument exactly once. Remove __volatile__ from asm's.
2780 * include/unistd.h: Use libc_hidden_proto for getdomainname
2782 * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2783 * sysdeps/mach/hurd/getdomain.c: Likewise.
2784 * sysdeps/unix/getlogin_r.c: Likewise.
2785 * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2786 * sysdeps/generic/getlogin_r.c: Likewise.
2788 * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2789 * sunrpc/rtime.c: Add libc_hidden_def.
2791 * include/string.h: Use libc_hidden_proto for basename.
2792 * string/basename.c [_LIBC]: Add libc_hidden_def.
2794 * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2796 * locale/loadarchive.c: munmap -> __munmap throughout.
2798 * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2799 * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2800 * sysdeps/generic/gai_strerror.c: Likewise.
2802 * include/sys/errno.h: New file.
2804 * include/signal.h: No libc_hidden_proto for raise,
2805 __libc_current_sigrtmin, __libc_current_sigrtmax.
2806 These need to be overridden by linuxthreads.
2807 * sysdeps/posix/raise.c: Reverted.
2808 * sysdeps/generic/raise.c: Reverted.
2809 * signal/allocrtsig.c: Reverted.
2811 * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
2813 2002-08-10 Roland McGrath <roland@redhat.com>
2815 * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2816 * locale/localeinfo.h: Declare it.
2817 * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2818 current locale if it's not in the file list.
2819 Call _nl_archive_subfreeres.
2821 2002-08-10 Andreas Jaeger <aj@suse.de>
2823 * sysdeps/i386/strchr.S: Add comment.
2825 2002-08-10 Roland McGrath <roland@redhat.com>
2827 * include/wchar.h (putwc): Use libc_hidden_proto.
2828 * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
2829 sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
2830 * stdio-common/dprintf.c: Add libc_hidden_def.
2831 * stdio-common/fprintf.c: Likewise.
2832 * stdio-common/sprintf.c: Likewise.
2833 * stdio-common/sscanf.c: Likewise.
2834 * libio/iofwrite.c: Likewise.
2835 * libio/memstream.c: Likewise.
2836 * libio/putwc.c: Likewise.
2837 * stdio-common/perror.c: Likewise.
2838 * sysdeps/posix/remove.c: Likewise.
2839 * sysdeps/generic/remove.c: Likewise.
2840 * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h".
2841 * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
2843 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2845 * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2846 towlower, towupper): Add prototypes here too. Add libc_hidden_proto.
2847 * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2848 towlower, towupper): Add libc_hidden_weak.
2850 * include/bits/dlfcn.h: New file.
2851 * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
2853 * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
2854 * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
2855 * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
2856 * include/pwd.h (_nss_files_parse_pwent): Likewise.
2857 * include/shadow.h (_nss_files_parse_spent): Likewise.
2858 * include/netdb.h (_nss_files_parse_protoent,
2859 _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
2860 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
2861 (LINE_PARSER): Use it.
2862 * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
2863 * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
2865 * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
2868 * manual/debug.texi (%MENU%): Remove trailing dot.
2869 Reported by <hayastan132@hotmail.com>.
2871 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
2874 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
2877 2002-08-09 Roland McGrath <roland@redhat.com>
2879 * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
2880 name to find codeset name (if any) and normalize it. If the
2881 normalized name differs, look up only that in the archive.
2882 * locale/programs/locarchive.c (add_locale_to_archive): If the name
2883 contains a codeset, normalize the codeset store only the normalized
2884 name in the archive. If not, add an alias containing the locale's
2885 normalized codeset name. Apply codeset name normalization when
2886 matching entries in the alias file.
2888 * locale/programs/locarchive.c (delete_locales_from_archive): Don't
2889 decrement HEAD->namehash_used here.
2890 (add_locale): Only need to insert name string when name_offset != 0.
2892 * locale/programs/localedef.c (options): Add -A/--alias-file.
2893 (alias_file): New variable.
2894 (parse_opt): Grok -A, set that.
2895 * locale/programs/localedef.h: Declare it.
2897 * locale/locarchive.h (struct locrecent): Add `refs' member.
2898 * locale/programs/locarchive.c (insert_name): New function, broken out
2900 (add_locale_to_archive): ... here. Call that.
2901 (add_alias): New function.
2902 (add_locale): New static function, add_locale_to_archive renamed.
2903 (add_locale_to_archive): Call that and use add_alias to add an alias
2904 for the name with codeset if the given name lacks it.
2905 (enlarge_archive): Call add_locale instead of add_locale_to_archive.
2907 * locale/Makefile (routines): Add loadarchive.
2908 * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
2909 (_nl_load_locale_from_archive): New function.
2910 * locale/localeinfo.h: Declare it.
2911 * locale/findlocale.c (_nl_find_locale): If using default locale path,
2912 try _nl_load_locale_from_archive first.
2914 * locale/loadlocale.c (_nl_intern_locale_data): New function,
2915 broken out of _nl_load_locale.
2916 (_nl_load_locale): Call that.
2917 * locale/localeinfo.h: Declare it.
2918 (struct locale_data): Replace member `mmaped' with `alloc', an enum.
2919 (struct locale_data): Remove unused member `options'.
2920 * locale/findlocale.c (_nl_remove_locale): Update uses.
2921 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2922 * locale/C-collate.c: Update initializer.
2923 * locale/C-identification.c: Likewise.
2924 * locale/C-measurement.c: Likewise.
2925 * locale/C-telephone.c: Likewise.
2926 * locale/C-address.c: Likewise.
2927 * locale/C-name.c: Likewise.
2928 * locale/C-paper.c: Likewise.
2929 * locale/C-time.c: Likewise.
2930 * locale/C-numeric.c: Likewise.
2931 * locale/C-monetary.c: Likewise.
2932 * locale/C-messages.c : Likewise.
2933 * locale/C-ctype.c: Likewise.
2935 * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
2936 use CHAR_BIT instead of BITSPERBYTE.
2938 * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
2939 _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
2940 * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
2941 (_nl_remove_locale): Likewise.
2942 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2944 * locale/findlocale.c (_nl_default_locale_path): New variable.
2945 (_nl_find_locale): If LOCALE_PATH is null, default to that.
2946 * locale/localeinfo.h: Declare it.
2947 * locale/setlocale.c (setlocale): Use _nl_default_locale_path
2948 in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale.
2949 * locale/newlocale.c (__newlocale): Likewise.
2951 * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
2952 * inet/rexec.c (rexec_af): Add libc_hidden_def.
2953 * sysdeps/generic/morecore.c: Likewise.
2954 * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
2955 (__libc_current_sigrtmax): Likewise.
2957 2002-08-08 Roland McGrath <roland@redhat.com>
2959 * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
2960 * catgets/open_catalog.c (__open_catalog): Likewise.
2962 * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
2963 from typo INITIAL_NUM_NANES.
2964 (create_archive): Update use.
2966 2002-08-08 Ulrich Drepper <drepper@redhat.com>
2968 * sysdeps/unix/sysv/linux/sigwait.c: New file.
2970 2002-08-08 Roland McGrath <roland@frob.com>
2972 * resolv/netdb.h: Don't declare h_errno as a plain global any more.
2974 2002-08-08 Jakub Jelinek <jakub@redhat.com>
2976 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
2977 else and undefine after including wcstol_l.c.
2978 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
2980 2002-08-08 Ulrich Drepper <drepper@redhat.com>
2982 * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
2984 2002-08-08 Alexandre Oliva <aoliva@redhat.com>
2986 * configure.in: Make the test for broken_alias_attribute stricter.
2988 2002-05-24 Robert Love <rml@tech9.net>
2990 * posix/Makefile (routines): Add sched_getaffinity and
2992 * posix/sched.h: Add declarations for sched_getaffinity and
2994 * sysdeps/generic/sched_getaffinity.c: New file.
2995 * sysdeps/generic/sched_setaffinity.c: New file.
2996 * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
2999 2002-08-06 Andreas Schwab <schwab@suse.de>
3001 * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3003 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3005 * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3008 * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3009 It is known to be defined.
3011 * include/string.h: Define index and rindex only if _ISOMAC is not
3014 * elf/rtld.c: Include <errno.h>.
3015 * sysdeps/generic/libc-tls.c: Likewise.
3017 2002-08-07 Roland McGrath <roland@redhat.com>
3019 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3021 (precsize_aton): Likewise.
3023 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3024 the static symbols added in the last change (doofus is me).
3026 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3027 loop to notice missing categories in a composite name.
3029 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3030 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3031 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3032 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3034 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3036 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3038 2002-08-07 Roland McGrath <roland@redhat.com>
3040 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3041 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3042 Reported by Jakub Jelinek <jakub@redhat.com>.
3044 2002-08-07 Jakub Jelinek <jakub@redhat.com>
3046 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3049 2002-08-06 Roland McGrath <roland@redhat.com>
3051 * include/getopt.h: Put private decls inside [_GETOPT_H].
3052 Use libc_hidden_proto for getopt_long, getopt_long_only.
3053 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3054 Add libc_hidden_def.
3056 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3057 Define as a macro for __dl_iterate_phdr.
3059 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3060 made static. Add __ name as a strong alias.
3061 (internal_endnetgrent): Likewise.
3062 (internal_getnetgrent_r): Likewise.
3064 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3066 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3067 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3068 all *_l functions with no __ prefix.
3069 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3070 * ctype/ctype_l.c: Likewise.
3071 * locale/nl_langinfo.c: Likewise.
3072 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3073 * stdlib/stdlib.h [__USE_GNU]: Likewise.
3074 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3075 * wctype/wctype.h [__USE_GNU]: Likewise.
3076 * string/strcoll_l.c (strcoll_l): Define as weak alias.
3077 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3078 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3079 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3080 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3081 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3082 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3083 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3084 (__wcscasecmp_l): Add libc_hidden_def.
3085 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3086 (__wcsncasecmp_l): Add libc_hidden_def.
3087 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3088 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3089 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3090 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3091 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3092 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3093 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3094 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3095 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3096 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3097 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3098 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3099 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3100 * wctype/wctype_l.c (wctype_l) Define as weak alias.
3102 2002-08-05 Roland McGrath <roland@redhat.com>
3104 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3105 netname2user, host2netname, user2netname, key_gendes.
3106 * sunrpc/netname.c: Add libc_hidden_def.
3107 * sunrpc/key_call.c: Likewise.
3109 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3111 * inet/getnameinfo.c: Add libc_hidden_def.
3112 * sysdeps/generic/getaddrinfo.c: Likewise.
3113 * sysdeps/posix/getaddrinfo.c: Likewise.
3115 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3116 * wcsmbs/wmemchr.c: Add libc_hidden_def.
3117 * wcsmbs/wmemset.c: Add libc_hidden_def.
3119 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3120 (index, rindex): Define as macros for strchr, strrchr.
3122 * string/envz.c (envz_strip): index -> strchr
3124 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3125 * sunrpc/rpc_prot.c: Add libc_hidden_def.
3127 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3128 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3130 * include/stdlib.h: Use libc_hidden_proto for wctomb.
3131 * stdlib/wctomb.c: Add libc_hidden_def.
3133 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3134 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3135 * resolv/herror.c: Likewise.
3136 * inet/rcmd.c: Add libc_hidden_def.
3137 * inet/ruserpass.c: Likewise.
3138 * inet/getnetgrent_r.c: Likewise.
3140 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3141 svc_unregister, remove *_internal decls. Use libc_hidden_proto
3142 for svcerr_auth, svcerr_noprog, svcerr_progvers.
3143 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3145 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3146 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3148 * sysdeps/posix/system.c (do_system): New function, guts broken out of
3150 (__libc_system): Call it, putting just the line == NULL test here.
3152 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3153 variables work right.
3155 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3156 * elf/dl-close.c (_dl_close): Likewise.
3158 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3159 in6addr_any, in6addr_loopback. Remove decls for
3160 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3161 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3162 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3163 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3164 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3165 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3166 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3168 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3170 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3172 * inet/ether_aton_r.c: Add libc_hidden_def.
3173 * inet/ether_ntoa_r.c: Likewise.
3175 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3177 * sunrpc/svc.c: Add libc_hidden_def.
3178 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3179 pmap_set, pmap_unset.
3180 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3181 * sunrpc/pm_getport.c: Likewise.
3182 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3183 * sunrpc/publickey.c: Add libc_hidden_def.
3185 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3187 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
3188 the other memset call in this function.
3190 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3191 at correct index. Clear BSS region now that memalign is used.
3193 2002-08-05 Roland McGrath <roland@redhat.com>
3195 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3196 * sysdeps/generic/uname.c: Add libc_hidden_def.
3197 * sysdeps/mach/hurd/uname.c: Likewise.
3199 2002-08-05 Jakub Jelinek <jakub@redhat.com>
3201 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3202 wcspbrk): Add libc_hidden_proto.
3203 * time/strftime.c (my_strftime): Add libc_hidden_def.
3204 (strftime): Remove libc_hidden_def.
3205 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3206 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3207 * wcsmbs/wcsspn.c (wcsspn): Likewise.
3208 * wcsmbs/wcscmp.c (wcscmp): Likewise.
3209 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3210 * wcsmbs/wcscoll.c (wcscoll): Likewise.
3212 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3213 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3214 __rpc_thread_createerr): Add libc_hidden_proto.
3215 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3216 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3217 __rpc_thread_createerr): Add libc_hidden_def.
3219 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3220 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3221 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3222 clnt_perror, clnt_sperror): Add libc_hidden_def.
3223 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3225 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3227 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3228 * sunrpc/des_soft.c (des_setparity): Likewise.
3230 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3231 Add libc_hidden_proto.
3232 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3233 Add libc_hidden_def.
3235 2002-08-05 Roland McGrath <roland@redhat.com>
3237 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3238 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3239 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3240 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3241 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3242 old data, abandoning the original memory allocated by rtld at startup,
3243 instead of calling realloc normally.
3245 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3247 * po/fr.po: Update from translation team.
3249 2002-08-04 Roland McGrath <roland@redhat.com>
3251 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3252 then generate a dummy module under the given name, obeying the
3253 normal rules for the "caller" field.
3255 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3256 actually iterate over the elements. Fix typo p_type -> p_vaddr.
3258 * include/pthread.h: Don't declare __pthread_initialize_minimal as
3259 weak here; we declare it weak or strong in the one place we use it.
3260 * sysdeps/generic/libc-start.c: ... which is here.
3261 Don't make the decl weak if [USE_TLS], since static programs need TLS
3262 setup even when single-threaded.
3264 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3266 * elf/Makefile (test-srcs): Add $(modules-names) to it.
3267 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3268 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3269 all these variables.
3271 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3273 * include/stdio.h: Don't define macro magic to redirect function
3274 calls if _ISOMAC is defined.
3276 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3279 2002-08-04 Roland McGrath <roland@redhat.com>
3281 * stdlib/lrand48_r.c: Add libc_hidden_def.
3283 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3284 TCB with __libc_memalign instead of mmap.
3285 (_dl_deallocate_tls): Free it with free instead of munmap.
3287 * Makerules (cpp-srcs-left): When setting this to run
3288 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3289 words. Combine the two loops into one on the concatenated list,
3290 including those as well as $(test-srcs).
3292 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3293 since we align here with optimally minimal waste anyway.
3294 (malloc): Just call that.
3296 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3299 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3300 to compute memory location for l_tls_initimage.
3301 * elf/rtld.c (_dl_start): Likewise.
3302 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3304 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3305 because the .d file is generated in the non-shared case and
3306 so fails to catch them otherwise.
3308 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3309 split out of _dl_allocate_tls.
3310 (_dl_allocate_tls_init): Likewise.
3311 (_dl_allocate_tls): Call those.
3312 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3313 * elf/rtld.c (dl_main): Call them separately instead of calling
3314 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
3315 is finished, so that the initializer data has been relocated before we
3316 copy it into the main thread's TLS block.
3318 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3319 loop conditions, prevented the last used module from being initialized.
3321 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3323 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3324 if glob resp. globfree are not macros.
3325 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3326 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3327 Add libc_hidden_ver.
3328 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3330 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3331 instead of libc_hidden_weak.
3332 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3333 libc_hidden_ver instead of libc_hidden_def.
3334 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3335 libc_hidden_ver instead of libc_hidden_def.
3336 (wcstoll, wcstoq): Remove libc_hidden_weak.
3337 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3339 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3341 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3343 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3346 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3348 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
3349 to access _sys_siglist.
3350 * string/strsignal.c: Likewise.
3351 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3352 * sysdeps/gnu/siglist.c: Likewise.
3353 * sysdeps/unix/siglist.c: Likewise.
3354 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3356 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3358 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3360 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3362 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3364 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3365 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3366 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3368 * include/time.h: Add libc_hidden_proto for __gmtime_r.
3369 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3371 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3372 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3373 and __gconv_get_cache respectively.
3374 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3375 defined static. Change all users.
3376 (__gconv_get_cache): New function.
3377 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3378 (__gconv_get_alias_db): New function.
3379 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3380 (__conv_modules_db): Likewise.
3381 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3382 and __gconv_get_alias_db.
3383 * iconv/iconv_prog.c: Use the new functions instead of accessing the
3386 * include/stdlib.h: Add prototype and libc_hidden_proto for
3388 * sysdeps/generic/morecore.c: Include <stdlib.h>.
3390 * malloc/obstack.c: Remove fputs macro.
3392 * malloc/mtrace.c: Remove fopen macro.
3394 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3396 * manual/debug.texi: Fix spelling to programmatically.
3397 Reported by <hayastan132@hotmail.com>.
3399 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3401 * include/libio.h: Add libc_hidden_proto for __uflow.
3402 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3403 fgetpos to _IO_* names.
3404 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3405 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3406 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3407 putwc_unlocked, vswscanf.
3408 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3409 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3410 * libio/fseek.c: Likewise.
3411 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
3413 * libio/genops.c (__uflow): Add libc_hidden_def.
3414 * libio/iofflush_u.c (fflush_unlocked): Likewise.
3415 * libio/iofgets_u.c (fgets_unlocked): Likewise.
3416 * libio/iofputs_u.c (fputs_unlocked): Likewise.
3417 * libio/iofputws_u.c (fputws_unlocked): Likewise.
3418 * libio/iofread_u.c (fread_unlocked): Likewise.
3419 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3420 * libio/iovswscanf.c (vswscanf): Likewise.
3421 * libio/putwc_u.c (putwc_unlocked): Likewise.
3422 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3423 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3424 * malloc/mtrace.c: Likewise.
3426 * sunrpc/clnt_perr.c: Remove fputs macro.
3427 * sunrpc/svc_simple.c: Likewise.
3428 * sunrpc/svc_tcp.c: Likewise.
3429 * sunrpc/svc_udp.c: Likewise.
3430 * sunrpc/xdr_rec.c: Likewise.
3431 * sunrpc/xdr_ref.c: Likewise.
3433 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3434 iconv_prog, linereader, and charmap-dir.
3435 * locale/Makefile: Likewise for locale and charmap-dir.
3436 * malloc/Makefile: Likewise for memusagestat.
3437 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3438 * sunrpc/Makefile: Likewise for rpc_main.
3439 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3440 * timezone/Makefile: Likewise for zic.
3442 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3444 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3445 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3446 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3447 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3450 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3452 * libio/genops.c (__underflow): Add libc_hidden_def.
3453 * libio/wgenops.c (__wuflow): Likewise.
3454 (__wunderflow): Likewise.
3456 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3457 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3459 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3460 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3462 * include/string.h: Add libc_hidden_proto for __strverscmp.
3463 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3465 * include/unistd.h: Add libc_hidden_proto for __sysconf.
3466 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3467 * sysdeps/posix/sysconf.c: Likewise.
3468 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3469 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3471 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3472 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3473 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3474 __iswxdigit_l, __towlower_l, __towupper_l.
3475 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3476 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3478 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3479 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3480 * sysdeps/mach/hurd/xmknod.c: Likewise.
3481 * sysdeps/unix/xmknod.c: Likewise.
3482 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3483 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3484 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3486 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3488 2002-08-03 Roland McGrath <roland@redhat.com>
3490 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3492 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3493 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3494 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3495 * sysdeps/mach/hurd/setpriority.c: Likewise.
3496 * sysdeps/mach/hurd/getpriority.c: Likewise.
3497 * sysdeps/generic/setpriority.c: Likewise.
3498 * sysdeps/generic/getpriority.c: Likewise.
3500 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3501 * malloc/mcheck.c: Add libc_hidden_def.
3503 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3504 * misc/hsearch_r.c: Add libc_hidden_def.
3506 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3507 * posix/fnmatch.c: Add libc_hidden_weak.
3509 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3510 execl, execle, execlp, execvp, getpid, getsid.
3511 * sysdeps/generic/alarm.c: Add libc_hidden_def.
3512 * sysdeps/unix/alarm.c: Likewise.
3513 * posix/confstr.c: Likewise.
3514 * posix/execvp.c: Likewise.
3515 * posix/execlp.c: Likewise.
3516 * posix/execle.c: Likewise.
3517 * posix/execl.c: Likewise.
3518 * sysdeps/generic/getsid.c: Likewise.
3519 * sysdeps/mach/hurd/getsid.c: Likewise.
3520 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3521 * sysdeps/mach/hurd/getpid.c: Likewise.
3523 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3524 qecvt_r, qfcvt_r, lrand48_r.
3525 * misc/efgcvt_r.c: Add libc_hidden_def.
3527 * include/wordexp.h: Use libc_hidden_proto for wordfree.
3528 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3530 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3531 * locale/nl_langinfo.c: Add libc_hidden_def.
3533 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3534 * sysdeps/generic/glob.c: Add libc_hidden_def.
3535 * sysdeps/generic/glob64.c: Likewise.
3536 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3538 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3540 * elf/Makefile (CFLAGS-vismod2.c): New variable.
3542 * locale/setlocale.c (_nl_current_names): Variable moved ...
3543 * locale/localename.c (_nl_current_names): ... here, new file.
3544 Make it global, with attribute_hidden.
3545 * locale/localeinfo.h: Declare it.
3546 * locale/Makefile (aux): Add localename.
3547 * locale/localename.c (__current_locale_name): New function.
3548 * include/locale.h (__current_locale_name): Declare it.
3549 * intl/dcigettext.c (guess_category_value): Use that instead of
3552 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3553 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3554 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3555 * locale/newlocale.c: Add alias to __ name.
3556 * locale/duplocale.c: Likewise.
3557 * locale/freelocale.c: Likewise.
3558 * locale/uselocale.c: New file.
3559 * locale/Makefile (routines): Add it.
3560 * locale/Versions (libc: GLIBC_2.3): New set.
3561 Add newlocale, duplocale, freelocale, uselocale.
3562 (libc: GLIBC_PRIVATE): Add __uselocale.
3564 * locale/localeinfo.h [SHARED]
3565 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3566 (_NL_CURRENT_DATA): Define using that.
3567 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3568 (_NL_CURRENT_DEFINE): Define to empty.
3569 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3570 conditionalized on this.
3571 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3572 taking initializer of _nl_C_locobj.
3573 [SHARED] (_nl_global_locale): New variable, using that initializer.
3574 (_nl_C_locobj): Use new macro for initialzier.
3575 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3576 [! SHARED] (CATEGORY_USED): New macro.
3577 [SHARED] (CATEGORY_USED, _nl_C): New macros.
3578 (setdata, setlocale): Use that macro instead of examining _nl_current.
3579 (setdata): Set the slot in _nl_global_locale.
3580 Conditionalize setting of _nl_current on [! SHARED].
3581 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3582 declaration as an extern.
3583 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3585 * include/locale.h: Use libc_hidden_proto for setlocale.
3586 * locale/setlocale.c: Add libc_hidden_def.
3588 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3590 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3591 * misc/hsearch_r.c: Add libc_hidden_def.
3592 * misc/lsearch.c: Likewise.
3594 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3596 * misc/getttyent.c: Add libc_hidden_def.
3598 * include/mcheck.h: Use libc_hidden_proto for mcheck.
3599 * malloc/mcheck.c: Add libc_hidden_def.
3601 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3602 * include/argz.h: Use libc_hidden_proto for argz_delete.
3603 * string/argz-delete.c: Add libc_hidden_def.
3604 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
3606 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3607 HIDDEN_JUMPTARGET for _exit.
3608 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3609 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3610 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3611 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3613 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3614 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3615 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3616 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3618 * include/stdlib.h: Use libc_hidden_proto for abort,
3619 __strtof_internal, __strtod_internal, __strtold_internal,
3620 __strtol_internal, __strtoll_internal, __strtoul_internal,
3621 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3622 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3623 __strtoul_l_internal, __strtoull_l_internal.
3624 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3625 __wcstod_internal, __wcstold_internal, __wcstol_internal,
3626 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3627 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3628 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3630 * sysdeps/generic/abort.c: Add libc_hidden_def.
3631 * stdlib/strtod.c: Likewise.
3632 * sysdeps/generic/strtol.c: Likewise.
3633 * sysdeps/wordsize-64/strtol.c: Likewise.
3634 * sysdeps/wordsize-64/wcstol.c: Likewise.
3635 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3637 * include/stdlib.h: Use libc_hidden_proto for qsort.
3638 * stdlib/msort.c: Add libc_hidden_def.
3640 * include/utime.h: Use libc_hidden_proto for utime.
3641 * sysdeps/generic/utime.c: Add libc_hidden_def.
3642 * sysdeps/unix/utime.c: Likewise.
3644 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3645 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3646 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3647 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3648 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3650 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3651 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3652 and __libc_current_sigrtmax.
3653 * signal/sigismem.c: Add libc_hidden_def.
3654 * signal/sigfillset.c: Likewise.
3655 * signal/sigempty.c: Likewise.
3656 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3657 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3658 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3659 * sysdeps/posix/raise.c: Likewise.
3660 * sysdeps/generic/raise.c: Likewise.
3662 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3664 * include/string.h: Use libc_hidden_proto for __stpcpy.
3665 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3666 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3667 * sysdeps/generic/stpcpy.c: Likewise.
3668 * sysdeps/i386/stpcpy.S: Likewise.
3669 * sysdeps/i386/i586/stpcpy.S: Likewise.
3670 * sysdeps/powerpc/stpcpy.S: Likewise.
3671 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3672 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3674 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3675 __strncasecmp_l, __strdup, __strndup, __strerror_r.
3676 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3678 * string/strdup.c (__strdup): Likewise.
3679 * string/strndup.c (__strndup): Likewise.
3680 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3681 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3683 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3685 * include/libio.h: New file.
3686 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3687 * libio/iolibio.h: #include <libio.h>, not "libio.h".
3688 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3689 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3690 * sysdeps/unix/common/syscalls.list: Likewise.
3691 * sysdeps/unix/inet/syscalls.list: Likewise.
3692 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3693 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3694 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3695 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3696 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3697 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3698 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3699 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3700 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3701 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3702 * sysdeps/unix/syscalls.list: Likewise.
3704 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3705 Ulrich Drepper <drepper@redhat.com>
3707 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3708 the arguments is big enough to cause an overflow.
3710 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3712 * assert/assert.c: Use hidden_def not INTDEF.
3714 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3716 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3719 2002-08-03 Roland McGrath <roland@redhat.com>
3721 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3722 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3724 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3725 * misc/syslog.c: Add libc_hidden_def.
3726 * misc/err.c: Likewise.
3727 * stdlib/exit.c: Likewise.
3728 * stdlib/bsearch.c: Likewise.
3729 * sysdeps/generic/getenv.c: Likewise.
3731 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3733 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3734 libc_hidden_weak for every system call symbol defined.
3736 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3737 timelocal, localtime, strftime.
3738 * time/asctime.c: Add libc_hidden_def.
3739 * time/mktime.c: Likewise.
3740 * time/localtime.c: Likewise.
3741 * time/strftime.c: Likewise.
3742 * time/strptime.c: Likewise.
3743 * sysdeps/generic/time.c: Likewise.
3744 * sysdeps/unix/time.c: Likewise.
3745 * sysdeps/unix/sysv/i386/time.S: Likewise.
3746 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3748 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3749 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3750 * resolv/inet_ntop.c: Likewise.
3751 * resolv/inet_pton.c: Likewise.
3752 * inet/inet_mkadr.c: Add libc_hidden_def.
3753 * inet/inet_netof.c: Likewise.
3754 * resolv/inet_addr.c: Likewise.
3756 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3757 clauses from conditionals for now. Will have to be fixed later
3758 for older compilers.
3760 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3762 2002-08-02 Ulrich Drepper <drepper@redhat.com>
3764 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3765 broken alias attribute handling.
3766 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3768 2002-08-02 Roland McGrath <roland@frob.com>
3770 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3771 since it sets the variables we use in a -D switch.
3773 2002-08-02 Roland McGrath <roland@redhat.com>
3775 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3776 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3777 matches long int, not int.
3779 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3780 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3781 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3782 * wctype/wctrans.c (wctrans): Likewise.
3783 * wctype/wctype.c (__wctype): Likewise.
3784 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3786 2002-08-02 Ulrich Drepper <drepper@redhat.com>
3788 * assert/assert.c (__assert_fail): Fix typo in comment.
3790 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3791 * sunrpc/rpc_thread.c: Define it without static.
3792 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3794 2002-08-02 Jakub Jelinek <jakub@redhat.com>
3796 * assert/assert.c (__assert_fail): Remove undef.
3797 Replace INTDEF with libc_hidden_def.
3798 * assert/__assert.c (__assert): Remove INTUSE.
3799 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3801 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3802 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3803 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3804 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3805 libm_hiden_ver): Define.
3806 * include/assert.h (__assert_fail_internal): Remove.
3807 (__assert_fail): Add prototype. Add hidden_proto.
3808 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3810 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3811 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
3812 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3813 Add libc_hidden_proto.
3814 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3815 __fcntl): Add libc_hidden_proto. Remove macros.
3816 (__open_internal, __fcntl_internal): Remove.
3817 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3818 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3819 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3821 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3823 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
3824 Add libc_hidden_def.
3825 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
3826 * sysdeps/generic/open.c (__open): Remove undef.
3827 Add libc_hidden_def. Remove INTDEF.
3828 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
3829 Add libc_hidden_def.
3830 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
3831 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
3832 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
3833 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3834 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
3835 (__libc_fcntl): Add libc_hidden_def.
3836 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
3837 (__open): Remove INTDEF2. Add libc_hidden_weak.
3838 (__libc_open): Add libc_hidden_def.
3839 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
3840 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
3841 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3842 Add libc_hidden_def.
3843 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
3844 Add libc_hidden_def.
3845 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
3847 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
3848 (__libc_fcntl): Add libc_hidden_def.
3849 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
3850 __getpgid_internal, __chown_internal): Remove.
3851 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
3852 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
3854 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
3855 __getpid_internal, __open_internal, __write_internal): Remove.
3856 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
3857 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
3858 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
3859 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
3860 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
3861 Replace INTDEF with libc_hidden_def.
3862 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
3863 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
3864 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
3865 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
3866 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
3867 Add libc_hidden_proto.
3868 * include/sys/poll.h (__poll): Add libc_hidden_proto.
3869 * include/sys/select.h (__select): Likewise.
3870 * include/sys/socket.h (__send): Likewise.
3871 * include/sys/statfs.h (__statfs): Likewise.
3872 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
3873 __getpid, __getpgid, __setpgid, __close, __read, __write,
3874 __getpagesize, __sbrk): Likewise.
3875 (__chown_internal, __dup2_internal, __getpid_internal,
3876 __getpgid_internal, __close_internal, __write_internal,
3877 __getpagesize_internal): Remove.
3878 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
3880 * include/printf.h (__printf_fp): Add libc_hidden_proto.
3881 * include/sched.h (__sched_setscheduler): Likewise.
3882 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
3883 * include/stdlib.h (__secure_getenv): Likewise.
3884 * include/signal.h (__sigaction, __sigsuspend): Likewise.
3885 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
3886 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
3887 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
3888 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
3889 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
3890 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
3891 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
3892 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
3893 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
3894 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
3895 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
3896 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
3897 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
3898 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
3899 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
3900 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3901 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3902 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3903 * libio/genops.c (__overflow): Add libc_hidden_def.
3904 * libio/iovdprintf.c: Remove libio.h include.
3905 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
3906 libc_hidden_weak): Define to nothing if not defined.
3907 (__overflow, __woverflow): Add libc_hidden_proto.
3908 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
3909 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
3910 (DB_LOOKUP_FCT): Add libc_hidden_proto.
3911 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
3912 (DB_LOOKUP_FCT): Add libc_hidden_proto.
3913 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
3914 and libc_hidden_def.
3915 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
3916 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
3917 (__getpgid): Add libc_hidden_proto.
3918 (__bsd_getpgrp): Remove INTUSE.
3919 * resolv/res_init.c (__res_ninit, __res_randomid): Add
3921 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
3922 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
3923 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
3924 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
3925 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
3926 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
3927 __rpc_thread_createerr): Add libc_hidden_def.
3928 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
3930 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
3931 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
3932 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
3933 * sysdeps/generic/chown.c (__chown): Likewise.
3934 * sysdeps/generic/close.c (__close): Likewise.
3935 * sysdeps/generic/dup2.c (__dup2): Likewise.
3936 * sysdeps/generic/pipe.c (__pipe): Likewise.
3937 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
3938 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
3939 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
3940 * sysdeps/generic/read.c (__libc_read): Likewise.
3941 (__read): Add libc_hidden_weak.
3942 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
3943 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
3944 * sysdeps/generic/select.c (__select): Likewise.
3945 * sysdeps/generic/send.c (__send): Likewise.
3946 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
3947 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
3948 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
3949 * sysdeps/generic/statfs.c (__statfs): Likewise.
3950 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
3951 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
3952 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
3953 Remove undef and INTDEF.
3954 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
3955 * sysdeps/generic/getpid.c (__getpid): Likewise.
3956 * sysdeps/generic/write.c (__libc_write): Likewise.
3957 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
3958 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
3959 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3960 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
3961 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
3962 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
3963 Remove undef and INTDEF.
3964 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
3965 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
3966 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
3967 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
3968 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
3969 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
3970 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
3971 (__pipe): Add libc_hidden_def.
3972 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
3974 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
3975 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
3976 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
3977 (__read): Add libc_hidden_weak.
3978 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
3979 (__libc_pwrite64): Add libc_hidden_def.
3980 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
3981 * sysdeps/mach/hurd/select.c (__select): Likewise.
3982 * sysdeps/mach/hurd/send.c (__send): Likewise.
3983 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
3984 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
3985 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
3986 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
3987 * sysdeps/posix/dup2.c: Likewise.
3988 Remove undef and INTDEF.
3989 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
3990 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
3991 (__pwrite64): Add libc_hidden_weak.
3992 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
3993 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
3994 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
3995 * sysdeps/standalone/close.c (__close): Likewise.
3996 * sysdeps/standalone/write.c (__libc_write): Likewise.
3997 (__write): Add libc_hidden_weak.
3998 * sysdeps/standalone/read.c (__read): Likewise.
3999 (__libc_read): Add libc_hidden_def.
4000 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4001 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4002 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4003 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4004 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4005 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4006 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4007 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4008 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4009 __GI___sigaction): Add.
4010 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4011 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4012 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4013 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4014 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4015 __GI___setpgid): Add.
4016 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4017 Remove undef and INTDEF.
4018 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4019 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4020 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4021 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4022 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4023 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4024 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4025 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4026 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4027 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4028 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4029 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4030 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4031 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4032 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4033 __GI___statfs, __GI___send): Add.
4034 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4035 libc_hidden_ver resp. libc_hidden_def.
4036 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4038 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4039 Likewise. Remove undef and INTDEF.
4040 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4041 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4042 __GI___statfs, __GI___send): Add.
4043 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4045 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4047 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4048 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4049 libc_hidden_ver resp. libc_hidden_def.
4050 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4052 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4053 Add libc_hidden_weak.
4054 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4055 Add libc_hidden_def.
4056 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4057 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4059 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4060 resp. libc_hidden_def.
4061 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4063 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
4065 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4066 Likewise. Remove undef.
4067 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4069 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4070 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4072 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4074 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4075 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4076 Likewise. Remove undef and INTDEF.
4077 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4079 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4081 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4083 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4084 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4085 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4087 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4088 Add libc_hidden_def.
4089 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4090 __GI___statfs): Add.
4091 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4093 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4094 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4095 Remove undef and INTDEF.
4096 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4097 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4099 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4100 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4102 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4104 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4105 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4106 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4108 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4109 libc_hidden_def. Remove undef and INTDEF.
4110 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4111 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4113 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4114 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4115 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4116 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4117 Remove undef and INTDEF.
4118 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4119 broken visibility attribute handling.
4120 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4122 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4124 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4125 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4127 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4130 2002-06-29 Todd Fries <todd@openbsd.org>
4132 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4134 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4136 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4138 2002-07-30 Roland McGrath <roland@redhat.com>
4140 * resolv/resolv.h (_res): Define macro unconditionally.
4141 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4142 * include/resolv.h: ... here.
4143 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4144 as a __thread variable.
4145 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4146 a __thread variable instead of a global.
4147 * resolv/res_data.c [_LIBC]: Don't #undef _res.
4149 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4152 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4154 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4155 decls of memset and memcpy.
4157 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4158 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4160 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4162 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4163 (__libc_tsd_define): Define using __thread.
4165 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4166 (__rpc_thread_variables): Use __libc_tsd_get.
4167 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4168 __rpc_thread_variables, which might allocate what we're about to free.
4170 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4171 thread-local variable.
4172 * resolv/netdb.h (h_errno): Define macro unconditionally.
4173 [_LIBC] (__set_h_errno): Macro moved to ...
4174 * include/netdb.h: ... here.
4175 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4176 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4177 [! _LIBC_REENTRANT]: #undef h_errno here.
4179 * include/errno.h: Protect from multiple inclusion.
4181 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4182 before defining them, since Linux's <linux/posix_types.h> might have
4185 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4187 * malloc/malloc.c (public_cALLOc): Check for overflow on
4189 * sunrpc/xdr_array.c (xdr_array): Likewise.
4190 * sunrpc/rpc/types.h (mem_free): Add comment.
4191 Patch by Solar Designer <solar@openwall.com>.
4193 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4195 * sysdeps/unix/sysv/linux/kernel-features.h
4196 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4198 2002-08-01 Roland McGrath <roland@redhat.com>
4200 * libio/fileops.c (_IO_file_sync_mmap): New function.
4201 (_IO_file_jumps_mmap): Use it.
4202 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
4203 repeat the stat check and resize the mapped buffer as necessary.
4205 2002-07-31 Roland McGrath <roland@redhat.com>
4207 * libio/fileops.c (decide_maybe_mmap): New static function.
4208 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4209 mmap the file contents. Then switch the jump tables to the mmap
4210 tables if it worked, or the vanilla file tables if not.
4211 (_IO_file_underflow_maybe_mmap): New function.
4212 (_IO_file_seekoff_maybe_mmap): New function.
4213 (_IO_file_xsgetn_maybe_mmap): New function.
4214 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4215 * libio/libioP.h: Declare those.
4216 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4217 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4218 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4219 If the stream is read-only, set its jump tables to those new ones.
4220 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4221 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4222 We need the tables set before _IO_file_attach.
4224 * libio/tst-mmap-eofsync.c: New file.
4225 * libio/tst-mmap-fflushsync.c: New file.
4226 * libio/bug-mmap-fflush.c: New file.
4227 * libio/tst-mmap2-eofsync.c: New file.
4228 * libio/Makefile (tests): Add them.
4230 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4231 _IO_file_underflow_mmap fails, it already set the appropriate bit.
4233 2002-07-31 Jeff Bailey <jbailey@gnu.org>
4235 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4236 Declarations moved to <bits/sys_errlist.h>. Include that file.
4237 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4238 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
4239 declare sys_errlist and sys_nerr.
4240 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
4241 provide declarations.
4243 2002-07-31 Roland McGrath <roland@redhat.com>
4245 * elf/rtld.c (dl_main): Fix typo in error message.
4247 2002-07-31 Roland McGrath <roland@frob.com>
4249 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4250 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
4251 sysdeps/mach/hurd/dl-sysdep.c change.
4253 2002-07-28 Ulrich Drepper <drepper@redhat.com>
4255 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4256 -r`/build/include for kernel headers.
4258 * po/fi.po: New file.
4260 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
4262 * configure.in (static_nss): Set to `yes' if --disable-shared.
4264 2002-07-23 Bruno Haible <bruno@clisp.org>
4266 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4269 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4271 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4272 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4275 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4277 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4280 2002-07-21 Bruno Haible <bruno@clisp.org>
4282 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4283 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4284 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4285 trans_sysdep_tab_offset.
4286 (struct sysdep_segment): New type.
4287 (struct sysdep_string): New type.
4288 (SEGMENTS_END): New macro.
4289 * intl/gettextP.h (struct sysdep_string_desc): New type.
4290 (struct loaded_domain): New fields malloced, n_sysdep_strings,
4291 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4292 orig_tab, trans_tab, hash_tab to const pointers because they point
4293 into read-only memory.
4294 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4295 (PRI*): Define fallback values.
4296 (get_sysdep_segment_value): New function.
4297 (_nl_load_domain): Distinguish major and minor revision parts. Add
4298 support for minor revision 1 with system dependent strings.
4299 (_nl_unload_domain): Also free the 'malloced' field.
4300 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4301 now done in loadmsgcat.c. Add support for system dependent strings.
4303 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4305 * posix/bug-regex7.c: New file.
4306 * posix/bug-regex8.c: New file.
4307 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4309 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4311 * posix/bug-regex4.c (main): Fix typos.
4312 * posix/bug-regex6.c (main): Likewise.
4314 2002-07-27 Ulrich Drepper <drepper@redhat.com>
4316 * posix/bug-regex6.c (main): Fix warnings.
4318 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4320 * iconv/iconv_prog.c (main): Improve error message for the cases
4321 where -t and/or -f parameter are missing.
4323 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
4325 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4326 (re_search): Likewise.
4327 (re_match_2): Likewise.
4328 (re_search_2): Likewise.
4329 (re_search_stub): New function.
4330 (re_search_2_stub): New function.
4331 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4333 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
4335 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4336 (re_string_eoi): Use STOP instead of LEN.
4337 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4338 (re_string_construct): Likewise.
4339 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4340 * posix/regexec.c (re_search_internal): Add a new argument STOP
4341 so that it can handle the argument STOP of re_search_2 and re_match_2
4343 (regexec): Adapt to new I/F of re_search_internal.
4344 (re_search_stub): Likewise.
4346 2002-07-25 Ulrich Drepper <drepper@redhat.com>
4348 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4350 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4352 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4353 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4356 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4357 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4358 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4359 alias for adjtimex syscall.
4361 * elf/dl-minimal.c: Define __assert_fail_internal.
4362 * assert/assert.c: Likewise.
4363 * include/assert.h: Define __assert_file macro if !SHARED and not
4366 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4368 * locale/Makefile: Likewise.
4369 * nscd/Makefile: Likewise.
4370 * catgets/Makefile: Likewise.
4372 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4374 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4375 compute current position.
4377 * stdio-common/tst-fseek.c (main): Improve error messages.
4379 * libio/tst-freopen.c (main): Remove unused variable.
4381 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4382 succesful seek call. Simplify error checking.
4384 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4386 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4387 * sysdeps/ia64/fpu/libm_support.h: Likewise.
4389 2002-07-19 Roland McGrath <roland@frob.com>
4391 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4392 __libc_enable_secure is set.
4394 2002-07-24 Roland McGrath <roland@frob.com>
4396 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4397 This implementation supports only IPv4.
4398 * inet/ifaddrs.h: New file.
4399 * sysdeps/generic/ifaddrs.c: New file.
4400 * sysdeps/gnu/ifaddrs.c: New file.
4401 * inet/test-ifaddrs.c: New file.
4402 * inet/Makefile (routines): Add ifaddrs.
4403 (headers): Add ifaddrs.h here.
4404 (tests): Add test-ifaddrs.
4405 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4407 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4408 socket call to get an AF_INET socket, instead of using __opensock.
4409 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4411 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4412 if not -1 use it instead of calling __opensock.
4413 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4414 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4415 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4417 * sysdeps/mach/hurd/ifreq.h: New file.
4418 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4419 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4420 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4422 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4423 which gets moved around. Calculate size of mmap'd buffer instead.
4425 2002-07-24 Philip Blundell <philb@gnu.org>
4427 * sysdeps/unix/arm/brk.S: Improve schedule.
4428 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4429 efficient instruction.
4430 (__socket): Optimize return sequence.
4432 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4434 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4435 sockets on old kernels.
4437 2002-07-22 Philip Blundell <philb@gnu.org>
4439 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4440 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
4443 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4445 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4446 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4448 * locale/programs/locarchive.c (add_locale_to_archive): Correct
4449 test to detect duplicate locales.
4451 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4452 position would be before beginning of file.
4453 (_IO_file_seekoff_mmap): Likewise.
4454 * libio/Makefile (tests): Add bug-fseek.
4455 * libio/bug-fseek.c: New file.
4457 * intl/explodename.c: Remove support for CEN-style locale variables.
4458 It was never used and shouldn't be since it's not portable.
4459 * intl/finddomain.c: Likewise.
4460 * intl/l10nflist.c: Likewise.
4461 * intl/loadinfo.h: Likewise.
4462 * locale/findlocale.c: Likewise.
4464 2002-07-24 Roland McGrath <roland@frob.com>
4466 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4467 position, calculate it to take into account an active pushback buffer.
4469 * libio/Makefile (tests): Add bug-ungetc.
4470 * libio/bug-ungetc.c: New file.
4472 2002-07-23 Ulrich Drepper <drepper@redhat.com>
4474 * sysdeps/generic/libc-tls.c: New file.
4475 * csu/Makefile (routines): Add libc-tls.
4476 (static-only-routines): Add libc-tls.
4477 * elf/dl-support.c (_dl_phdr): New variable.
4478 (_dl_phnum): New variable.
4479 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4480 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4481 for !SHARED. First look through auxiliary vector. If TLS always
4482 call __pthread_initialize_minimal.
4484 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4485 in mmap call is never zero.
4487 2002-07-23 Andreas Jaeger <aj@suse.de>
4489 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4490 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4492 2002-07-22 Ulrich Drepper <drepper@redhat.com>
4494 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4495 creation and removal of the temp file.
4497 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
4499 * test-skeleton.c (create_temp_file): New function.
4501 2002-07-22 Andreas Jaeger <aj@suse.de>
4503 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4506 2002-07-21 Roland McGrath <roland@frob.com>
4508 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4509 put -I../include before -I../stdlib so we get the right errno.h et al.
4510 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4511 (CFLAGS-wcstof.c): Likewise.
4512 (CFLAGS-wcstold.c): Likewise.
4513 (CFLAGS-wcstod_l.c): Likewise.
4514 (CFLAGS-wcstof_l.c): Likewise.
4515 (CFLAGS-wcstold_l.c): Likewise.
4517 2002-07-19 Roland McGrath <roland@frob.com>
4519 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4521 2002-07-20 Ulrich Drepper <drepper@redhat.com>
4523 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4524 __ASSUME_AT_XID is defined.
4525 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4527 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4528 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4530 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4531 (CFLAGS-wcstof.c): Likewise.
4532 (CFLAGS-wcstold.c): Likewise.
4533 (CFLAGS-wcstod_l.c): Likewise.
4534 (CFLAGS-wcstof_l.c): Likewise.
4535 (CFLAGS-wcstold_l.c): Likewise.
4537 2002-07-18 Jakub Jelinek <jakub@redhat.com>
4539 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4540 __priority_which_t): Always typedef to int for C++.
4542 2002-07-19 Ulrich Drepper <drepper@redhat.com>
4544 * configure.in: Add test for __thread support in compiler.
4545 * config.h.in: Add HAVE___THREAD.
4546 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4547 * include/sys/errno.h: Moved to...
4548 * stdlib/sys/errno.h: ...here. New file.
4549 * stdlib/errno.h: New file. Moved from...
4550 * include/errno.h: ...here. Changed into an internal header defining
4551 libc-local things like __set_errno.
4552 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4554 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
4555 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
4557 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4559 (_dl_start_final): ...here. Add code to initialize tls elements from
4561 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4562 if USE_TLS && HAVE___THREAD.
4563 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4564 * sysdeps/mach/hurd/bits/errno.h: Likewise.
4565 * sysdeps/standalone/arm/bits/errno.h: Likewise.
4566 * sysdeps/standalone/bits/errno.h: Likewise.
4567 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4568 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4569 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4570 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4571 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4572 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4573 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4574 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4575 use GL(dl_rtld_map), use map parameter.
4576 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4577 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4578 USE_TLS && HAVE___THREAD.
4579 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4580 definitions. If USE_TLS && HAVE___THREAD store errooor value using
4582 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4584 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4585 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4586 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4587 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4588 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4589 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4591 2002-07-17 Ulrich Drepper <drepper@redhat.com>
4593 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4594 MS_INVALIDATE values.
4596 2002-07-17 Andreas Schwab <schwab@suse.de>
4597 Ulrich Drepper <drepper@redhat.com>
4599 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4600 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4601 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4602 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4604 2002-07-01 H.J. Lu <hjl@gnu.org>
4606 * elf/circleload1.c (load_dso): Call "circlemod1" and check
4609 * elf/circlemod1.c (circlemod1): Return int.
4610 * elf/circlemod2.c (circlemod2): Likewise.
4611 * elf/circlemod2a.c (circlemod2): Likewise.
4612 * elf/circlemod3.c (circlemod3): Likewise.
4613 (circlemod3a): A new function.
4615 2002-07-16 Ulrich Drepper <drepper@redhat.com>
4617 * catgets/tst-catgets.c (main): Don't expect results for
4618 untranslated messages.
4620 * glibcbug.in: Fix little typo. Remove STDIO.
4622 * config.h.in: Fail if __FAST_MATH__ is defined.
4623 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4624 (CPPFLAGS-test-idouble.c): Likewise.
4625 (CPPFLAGS-test-ildouble.c): Likewise.
4627 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4629 * intl/tst-gettext.sh: Pass -f option to msgfmt.
4630 * intl/tst-gettext.c: Correctly handle untranslated messages in
4633 * po/de.po: Update from translation team.
4635 2002-07-02 H.J. Lu <hjl@gnu.org>
4637 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
4639 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4641 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4644 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4646 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4647 TLS fail if USE_TLS is not defined.
4649 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4650 and adjust state for seek position. [PR libc/4070]
4651 * libio/Makefile (tests): Add bug-rewind.
4652 * libio/bug-rewind.c: New file.
4654 2002-07-12 Philip Blundell <philb@gnu.org>
4656 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4657 (__backtrace): Use it.
4658 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
4660 2002-07-12 Philip Blundell <philb@gnu.org>
4662 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4663 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
4664 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4665 (elf_machine_rela): Remove unused variable.
4667 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4668 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4671 2002-07-12 Ulrich Drepper <drepper@redhat.com>
4673 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4675 2002-07-14 Andreas Jaeger <aj@suse.de>
4677 * sysdeps/x86_64/bits/link.h: Add biarch support.
4679 2002-07-13 Andreas Jaeger <aj@suse.de>
4681 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4682 Use correct indices.
4683 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4685 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4687 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4688 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4689 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4690 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4691 * sysdeps/s390/s390-32/bits/link.h: Remove.
4692 * sysdeps/s390/s390-64/bits/link.h: Remove.
4693 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4694 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4695 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4696 * sysdeps/s390/bits/wordsize.h: New file.
4697 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4699 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4700 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4701 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4702 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4703 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4704 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4705 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4706 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4707 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4708 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4709 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4710 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4712 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4713 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4714 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4715 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4716 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4717 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4718 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4720 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4721 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4723 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4724 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4725 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4727 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4728 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4729 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4730 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4731 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4732 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4733 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4734 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4736 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4737 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4738 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4740 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4741 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4743 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4745 * Versions.def (libc): Add GLIBC_2.3.
4746 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4747 * stdlib/canonicalize.c: Add compatibility version for realpath
4748 and make new code available in GLIBC_2.3.
4750 2002-07-06 Bruno Haible <bruno@clisp.org>
4752 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4754 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4756 * resolv/res_hconf.c (_res_hconf_init): Move code into new
4757 function do_init. Use __libc_once.
4758 (do_init): New function.
4760 * iconvdata/iso8859-11.h: Removed.
4761 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4762 (distribute): Remove iso8859-11.h.
4763 * iconvdata/tst-tables.sh: Add ISO-8859-11.
4765 * stdio-common/vfscanf.c (inchar): Restore errno from previous
4766 underflow operation if c == (W)EOF.
4768 2002-07-03 Jakub Jelinek <jakub@redhat.com>
4770 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4771 non-zero, adjust exponent.
4772 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4773 Remove NO_LONG_DOUBLE aliases.
4774 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4775 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4776 (__log1pl): Raise divide by zero and invalid exceptions when needed.
4777 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4779 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4780 Fix BITS_PER_MP_LIMB 32 extraction.
4781 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4782 exceptions for qNaNs.
4783 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4784 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4785 Raise exceptions when needed. Don't recurse unnecessarily.
4786 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4787 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4788 exceptions for qNaNs.
4789 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4790 to fix *quo return value sign.
4791 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4793 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4795 2002-07-01 Jakub Jelinek <jakub@redhat.com>
4797 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4798 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4801 2002-07-10 Ulrich Drepper <drepper@redhat.com>
4803 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4806 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4807 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
4809 * Versions.def (libthread_db): Add GLIBC_2.3.
4811 2002-07-09 Jakub Jelinek <jakub@redhat.com>
4813 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4814 new stream if possible.
4815 * libio/freopen64.c (freopen64): Likewise.
4816 * libio/Makefile (tests): Add tst-freopen.
4817 * libio/tst-freopen.c: New file.
4819 2002-07-03 Jakub Jelinek <jakub@redhat.com>
4821 * libio/stdio.h (obstack_printf): Add format attribute.
4822 (obstack_vprintf): Likewise.
4824 2002-07-04 Jakub Jelinek <jakub@redhat.com>
4826 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
4827 resp. 16 bytes on 32-bit resp. 64-bit platforms.
4828 (re_charset_t, re_string_t): Reorder structure members for 64-bit
4831 2002-07-04 Jakub Jelinek <jakub@redhat.com>
4833 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
4834 (init_dfa): ...here.
4836 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
4838 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
4839 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
4840 nodes in parse trees.
4841 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
4842 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
4843 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
4844 nodes which can epsilon transit.
4845 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
4846 to IS_EPSILON_NODE macro.
4847 * posix/regexec.c (update_regs): New function to update registers
4848 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
4849 (proceed_next_node): Use the entities of the nodes to determine
4850 whether the node can transit to.
4851 (set_regs): Use update_regs function to update registers.
4853 2002-07-03 Jakub Jelinek <jakub@redhat.com>
4855 * posix/bug-regex4.c (main): Remove duplicate setlocale.
4856 * posix/bug-regex6.c: New file.
4857 * posix/Makefile (tests): Add bug-regex6.
4858 (bug-regex6-ENV): Set LOCPATH.
4860 2002-07-10 Ulrich Drepper <drepper@redhat.com>
4862 * Versions.def [libpthread]: Add GLIBC_2.2.6.
4863 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
4865 2002-07-06 Bruno Haible <bruno@clisp.org>
4867 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
4869 2002-07-06 Bruno Haible <bruno@clisp.org>
4871 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
4874 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
4876 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
4878 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
4880 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
4882 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
4883 * sysdeps/generic/bits/ustat.h: Likewise.
4885 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
4887 2002-07-08 Andreas Jaeger <aj@suse.de>
4889 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
4891 2002-07-08 Andreas Jaeger <aj@suse.de>
4893 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
4895 2002-07-06 Andreas Jaeger <aj@suse.de>
4897 * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
4898 * sysdeps/x86_64/fpu/s_copysign.S: New file.
4899 * sysdeps/x86_64/fpu/s_copysignf.S: New file.
4900 * sysdeps/x86_64/fpu/s_copysignl.S: New file.
4901 * sysdeps/x86_64/fpu/s_finitel.S: New file.
4902 * sysdeps/x86_64/fpu/s_fmax.S: New file.
4903 * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
4904 * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
4905 * sysdeps/x86_64/fpu/s_fmin.S: New file.
4906 * sysdeps/x86_64/fpu/s_fminf.S: New file.
4907 * sysdeps/x86_64/fpu/s_fminl.S: New file.
4909 2002-06-05 Brian Youmans <3diff@gnu.org>
4911 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
4912 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
4913 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
4914 * sysdeps/ia64/fpu/e_asin.S: Likewise.
4915 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
4916 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
4917 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
4918 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
4919 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
4920 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
4921 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
4922 * sysdeps/ia64/fpu/e_exp.S: Likewise.
4923 * sysdeps/ia64/fpu/e_expf.S: Likewise.
4924 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
4925 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
4926 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
4927 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
4928 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
4929 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
4930 * sysdeps/ia64/fpu/e_log.S: Likewise.
4931 * sysdeps/ia64/fpu/e_logf.S: Likewise.
4932 * sysdeps/ia64/fpu/e_pow.S: Likewise.
4933 * sysdeps/ia64/fpu/e_powf.S: Likewise.
4934 * sysdeps/ia64/fpu/e_powl.S: Likewise.
4935 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
4936 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
4937 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
4938 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
4939 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
4940 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
4941 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
4942 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
4943 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
4944 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
4945 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
4946 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
4947 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
4948 * sysdeps/ia64/fpu/libm_error.c: Likewise.
4949 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
4950 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
4951 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
4952 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
4953 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
4954 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
4955 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
4956 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
4957 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
4958 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
4959 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
4960 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
4961 * sysdeps/ia64/fpu/s_logb.S: Likewise.
4962 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
4963 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
4964 * sysdeps/ia64/fpu/s_modf.S: Likewise.
4965 * sysdeps/ia64/fpu/s_modff.S: Likewise.
4966 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
4967 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
4968 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
4969 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
4970 * sysdeps/ia64/fpu/s_rint.S: Likewise.
4971 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
4972 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
4973 * sysdeps/ia64/fpu/s_round.S: Likewise.
4974 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
4975 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
4976 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
4977 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
4978 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
4979 * sysdeps/ia64/fpu/s_significand.S: Likewise.
4980 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
4981 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
4982 * sysdeps/ia64/fpu/s_tan.S: Likewise.
4983 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
4984 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
4985 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
4986 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
4987 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
4988 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
4989 reflect IBM donation of math library to FSF
4990 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4991 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4992 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4993 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4994 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4995 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4996 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4997 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4998 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4999 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5000 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5001 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5002 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5003 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5004 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5005 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5006 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5007 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5008 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5009 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5010 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5011 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5012 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5013 * sysdeps/vax/__longjmp.c: Likewise.
5014 * sysdeps/vax/setjmp.c: Likewise.
5015 * libio/filedoalloc.c: Fixed BSD copying permission notice to
5016 remove advertising clause
5017 * sysdeps/vax/htonl.s: Likewise.
5018 * sysdeps/vax/htons.s: Likewise.
5019 * libio/wfiledoalloc.c: Likewise.
5020 * stdlib/random.c: Likewise.
5021 * stdlib/random_r.c: Likewise.
5022 * sysdeps/mach/sys/reboot.h: Likewise.
5023 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5024 * sysdeps/posix/getaddrinfo.c: Likewise.
5025 * sunrpc/des_impl.c: Updated license permission notice to Lesser
5026 GPL and corrected pointer to point to the correct license.
5028 2002-07-04 Andreas Jaeger <aj@suse.de>
5030 * scripts/config.guess: New upstream version.
5031 * scripts/config.sub: Likewise.
5033 2002-07-02 Andreas Schwab <schwab@suse.de>
5035 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5036 in parallel to bumping up the buffer pointer.
5038 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5040 * math/libm-test.inc (acos_test): Add missing L suffix for
5042 (cpow_test): Likewise.
5043 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5044 error for acos (0.0625).
5046 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5048 * locale/iso-639.def: Add entry for Ganda.
5049 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5051 (address_finish): Handle entries with two letter ISO 639 code.
5053 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5054 directory if it existed before.
5055 * iconv/iconvconfig.c: Implement --prefix option.
5057 * math/libm-test.inc (cexp_test): Add missing L suffix for
5058 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
5059 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5062 2002-05-29 H.J. Lu <hjl@gnu.org>
5064 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5067 2002-05-28 H.J. Lu <hjl@gnu.org>
5069 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5070 are not dlopened on the dependency list of a dlopened object.
5072 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5074 * elf/dl-lookup.c (add_dependency): It is not necessary to add
5075 dependencies if they are created between objects which are created
5076 while processing RTLD_NOW for objects loaded as part of the same
5079 2002-06-14 H.J. Lu <hjl@gnu.org>
5081 * elf/Makefile (tests): Add circleload1.
5082 (modules-names): Add circlemod1, circlemod2, circlemod3,
5083 circlemod1a, circlemod2a and circlemod3a.
5084 ($(objpfx)circleload1): New target.
5085 ($(objpfx)circleload1.out): Likewise.
5086 ($(objpfx)circlemod1.so): Likewise.
5087 ($(objpfx)circlemod2.so): Likewise.
5088 ($(objpfx)circlemod1a.so): Likewise.
5089 ($(objpfx)circlemod2a.so): Likewise.
5090 * elf/circleload1.c: New file.
5091 * elf/circlemod1.c: New file.
5092 * elf/circlemod1a.c: New file.
5093 * elf/circlemod2.c: New file.
5094 * elf/circlemod2a.c: New file.
5095 * elf/circlemod3.c: New file.
5096 * elf/circlemod3a.c: New file.
5098 2002-06-18 Amos Waterland <apw@us.ibm.com>
5100 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5102 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5103 add check for fd not open for writing.
5105 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5106 completed element(s) and do not suspend thread if so. Patch
5107 heavily modified by drepper.
5109 * rt/tst-aio7.c: New file. Regression test for problems which the
5110 above three changes fix.
5111 * rt/Makefile (tests): Add tst-aio7.
5113 2002-06-29 Ulrich Drepper <drepper@redhat.com>
5115 * rt/tst-aio6.c: Fix comment.
5117 * catgets/gencat.c (read_input_file): Handle more than one slash
5118 at end of line correctly [PR libc/3926].
5119 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5121 * catgets/sample.SJIS: Add test case for above bug.
5122 * catgets/test-gencat.c: Adjust test code.
5123 * catgets/test-gencat.sh: Adjust expected results.
5125 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5126 to skip relative relocations.
5127 Patch by Geoff Keating <geoffk@redhat.com>.
5129 2002-05-26 Bruno Haible <bruno@clisp.org>
5131 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5132 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5133 All callers changed.
5134 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5135 STANDARD_FROM_LOOP_ERR_HANDLER.
5136 (utf8_internal_loop): Likewise.
5137 (ucs2_internal_loop): Likewise.
5138 (internal_ucs2_loop): Perform error handling like in
5139 STANDARD_FROM_LOOP_ERR_HANDLER.
5140 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5141 in STANDARD_FROM_LOOP_ERR_HANDLER.
5142 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5144 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5145 in STANDARD_FROM_LOOP_ERR_HANDLER.
5146 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5148 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5149 in STANDARD_FROM_LOOP_ERR_HANDLER.
5150 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5152 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5153 STANDARD_FROM_LOOP_ERR_HANDLER.
5154 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5155 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5156 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5157 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5158 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5159 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5160 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5161 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5162 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5163 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5164 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5165 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5166 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5167 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5168 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5169 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5170 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5171 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5172 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5173 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5174 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5175 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5176 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5177 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5178 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5179 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5180 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5181 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5182 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
5183 an error, still set result = __GCONV_ILLEGAL_INPUT.
5184 (BODY for TO_LOOP): Likewise.
5185 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5186 STANDARD_FROM_LOOP_ERR_HANDLER.
5187 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5188 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5189 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5191 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5192 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5193 STANDARD_FROM_LOOP_ERR_HANDLER.
5194 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5195 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5196 STANDARD_FROM_LOOP_ERR_HANDLER.
5197 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5198 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5199 STANDARD_FROM_LOOP_ERR_HANDLER.
5200 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5201 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5202 STANDARD_FROM_LOOP_ERR_HANDLER.
5203 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5204 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5205 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5207 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5208 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5209 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5210 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5212 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5214 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5215 labels in assembler instructions.
5217 2002-06-25 Ulrich Drepper <drepper@redhat.com>
5219 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5220 not enough content is available.
5221 * libio/tst-eof.c: New file.
5222 * libio/Makefile (tests): Add tst-eof.
5224 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5226 * libio/tst-atime.c: New file.
5227 * libio/Makefile (tests): Add tst-atime.
5229 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5230 handling of overly long words.
5232 2002-06-25 Andreas Jaeger <aj@suse.de>
5234 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5235 to not use 32-bit pc relative relocations.
5236 (elf_machine_dynamic): Likewise.
5238 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5240 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5241 (__GETDENTS): Check for failed getdents64 syscall.
5242 * dirent/Makefile (tests): Add bug-readdir1.
5243 * dirent/bug-readdir1.c: New file.
5245 2002-06-17 Jakub Jelinek <jakub@redhat.com>
5247 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5249 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5250 code. Print TLS modid and offset for modules containing PT_TLS
5253 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5255 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5256 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5257 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5258 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5260 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5262 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5263 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5264 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5265 * nss/getXXent_r.c (NEW, NEW1): Define.
5266 (NEW (REENTRANT_GETNAME)): Strong alias to
5267 INTERNAL (REENTRANT_GETNAME).
5268 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5270 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5272 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5273 (_IO_file_jumps_mmap): Use it.
5274 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5275 * libio/libioP.h: Remove _IO_wdefault_setbuf and
5276 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
5278 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5279 (_IO_wfile_jumps_mmap): Don't use it anymore.
5280 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5281 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5282 _IO_wdefault_setbuf.
5283 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5284 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5285 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5287 2002-06-05 Jakub Jelinek <jakub@redhat.com>
5289 * libio/Makefile (tests): Add tst-mmap-setvbuf.
5290 * libio/tst-mmap-setvbuf.c: New test.
5292 2002-06-21 Andreas Jaeger <aj@suse.de>
5294 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5296 2002-06-18 Jakub Jelinek <jakub@redhat.com>
5298 * include/unistd.h (__fork_internal): Remove.
5299 (__fork): Don't define to __fork_internal.
5300 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5301 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5302 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5303 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5304 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5306 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5308 * po/hr.po: New file.
5310 2002-06-11 Wolfram Gloger <wg@malloc.de>
5312 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5313 Reported by Michael Meissner <meissner@redhat.com>.
5315 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5317 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5318 Patch by Hans Boehm <hans_boehm@hp.com>.
5320 2002-06-20 Andreas Jaeger <aj@suse.de>
5322 * math/libm-test.inc: Use exact values as input parameters,
5323 compute output parameters with 36 digits for 128-bit long doubles.
5324 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5325 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5326 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5328 2002-06-13 Stephen L Moshier <steve@moshier.net>
5330 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5331 argument or result is subnormal.
5333 2002-06-19 Ulrich Drepper <drepper@redhat.com>
5335 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5337 * sysdeps/i386/fpu/s_remquof.S: Likewise.
5338 * sysdeps/i386/fpu/s_remquol.S: Likewise.
5340 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5342 2002-06-17 David Mosberger <davidm@hpl.hp.com>
5344 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5345 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5346 Reported by Peter A. Buhr.
5348 2002-06-15 Roland McGrath <roland@frob.com>
5350 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5353 * sysdeps/mach/hurd/getcwd.c
5354 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5356 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5357 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5359 * sysdeps/alpha/divrem.h: Use local label instead of global one for
5360 jump to local subroutine.
5362 2002-06-14 Roland McGrath <roland@frob.com>
5364 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5365 * sysdeps/mach/hurd/Makeconfig: ... here.
5367 2002-06-13 Andreas Schwab <schwab@suse.de>
5369 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5370 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5371 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5373 2002-06-13 Roland McGrath <roland@frob.com>
5375 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5376 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5377 Use intptr_t instead of int for argc in stack layout.
5378 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5379 (_dl_init_first): Likewise.
5380 (_hurd_stack_setup): Likewise.
5381 (init1): Add a cast.
5382 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5384 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5385 argument to pfinet_siocgifconf RPC.
5387 2002-06-13 Andreas Schwab <schwab@suse.de>
5389 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5392 2002-06-12 Roland McGrath <roland@frob.com>
5394 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5396 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5397 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5399 2002-06-11 Roland McGrath <roland@frob.com>
5401 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5402 file on [!RTLD_STAT64].
5403 * sysdeps/mach/hurd/fxstat64.c: Likewise.
5405 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5406 (__fdopen): Use INTUSE.
5407 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5409 * stdio-common/tmpfile64.c: File removed.
5410 * sysdeps/generic/tmpfile64.c: New file.
5411 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5412 if not already defined.
5413 (tmpfile): Use it in place of __GT_FILE.
5415 * include/unistd.h: Declare __chown_internal.
5417 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5418 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5420 2002-06-09 Roland McGrath <roland@frob.com>
5422 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5423 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5424 value of HURD_INTERFACE_VERSION >= 20020609.
5425 * sysdeps/mach/hurd/configure: Regenerated.
5426 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5427 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5428 convert a struct stat64 into a struct stat and return 0 or -1
5429 with errno set to EOVERFLOW.
5430 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5431 for struct statfs64 to struct statfs.
5432 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5433 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5434 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5435 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5436 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5437 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5438 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5439 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5440 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5441 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5442 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5443 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5444 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5445 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5446 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5447 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5448 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5449 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5450 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5451 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5452 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5453 Use struct stat64 for io_stat argument.
5454 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5455 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5457 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5458 * hurd/fd-write.c (_hurd_fd_write): Likewise.
5459 * hurd/hurd/fd.h: Update decls.
5460 * sysdeps/mach/hurd/getcwd.c
5461 (_hurd_canonicalize_directory_name_internal): Use ino64_t
5462 and struct dirent64.
5463 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5464 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5465 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5466 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5468 2002-06-08 Roland McGrath <roland@frob.com>
5470 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5471 instead of unsigned long int for __allocation and __size members.
5473 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5475 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5476 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5477 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5478 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5480 2002-06-07 Roland McGrath <roland@frob.com>
5482 * sysdeps/mach/hurd/bits/environments.h: File removed.
5484 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5486 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5487 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5488 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5489 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5490 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5491 (sendfile64): Likewise.
5492 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5493 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5494 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5496 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5498 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5501 2002-06-04 Bruno Haible <bruno@clisp.org>
5503 * sysdeps/cris/stackinfo.h: New file.
5505 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5506 to an integer type before performing bit operations on it.
5508 2002-06-05 Roland McGrath <roland@frob.com>
5510 * sysdeps/generic/sendfile.c: Include <errno.h>.
5511 * sysdeps/generic/sendfile64.c: Likewise.
5513 * io/Makefile (routines): Add sendfile and sendfile64.
5514 (headers): Add sys/sendfile.h to the list.
5515 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5516 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5517 * io/sys/sendfile.h: ... here.
5518 * sysdeps/generic/sendfile.c: New file.
5519 * sysdeps/generic/sendfile64.c: New file.
5521 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5522 Move sendfile, sendfile64 to ...
5523 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5524 * sysdeps/mach/hurd/sendfile.c: New file.
5525 * sysdeps/mach/hurd/sendfile64.c: New file.
5527 * sysdeps/mach/nanosleep.c: New file.
5529 2002-06-04 Roland McGrath <roland@frob.com>
5531 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
5532 * sysdeps/alpha/elf/configure: New file (generated).
5534 2002-06-02 Roland McGrath <roland@frob.com>
5536 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5538 2002-06-01 Roland McGrath <roland@frob.com>
5540 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5541 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5543 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5545 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5547 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5548 Remove nstimes setting.
5549 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5550 * resolv/res_send.c (res_nsend): Don't close unconditionally if
5551 there is mix of IPv6 and IPv4 nameservers.
5552 Use nsmap array to find free slots and preserve nameserver ordering.
5555 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5557 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5558 use this header with LFS.
5560 * po/sk.po: Update from translation team.
5562 2002-05-28 Andreas Schwab <schwab@suse.de>
5564 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5565 message when finding object of wrong class.
5567 2002-05-28 Jakub Jelinek <jakub@redhat.com>
5569 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5570 Patch by <radu@netsoft.ro>.
5572 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5574 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5576 * sysdeps/unix/sysv/linux/readahead.c: New file.
5577 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5578 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5579 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5580 Add sendfile64 alias to sendfile syscall.
5581 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5582 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5583 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5584 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5587 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5588 special section for PIC register loading.
5589 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5591 * config.h.in: Define HAVE_HIDDEN.
5592 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5594 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5596 2002-05-28 Roland McGrath <roland@frob.com>
5598 * sysdeps/mach/alpha/setfpucw.c: New file.
5600 2002-05-26 Roland McGrath <roland@frob.com>
5602 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5603 Use integer_t instead of int for IOC_VOID case.
5605 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
5607 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5609 2002-05-26 Bruno Haible <bruno@clisp.org>
5611 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5612 end of the ISO-8859-7 from idx table.
5614 2002-05-27 Ulrich Drepper <drepper@redhat.com>
5616 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5618 2002-05-24 David S. Miller <davem@redhat.com>
5620 * string/bits/string2.h (memset): Do not try to optimize when
5621 not _STRING_ARCH_unaligned if GCC will do the right thing.
5623 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
5625 * posix/regex.c: Define `inline' as a macro into nothing for the
5626 compilers which lack the keyword.
5627 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5628 for the compatibility of gawk.
5629 * posix/regcomp.c: Add fake implementation of isblank() for the
5630 environments which lack the function.
5631 Don't use free_charset() in case of non-i18n envs.
5632 (build_range_exp): Don't use i18n related code in case of non-i18n
5634 (build_collating_symbol): Likewise.
5635 (build_equiv_class): Likewise.
5636 (build_charclass): Likewise.
5637 (re_compile_fastmap_iter): Likewise.
5638 (parse_bracket_exp): Likewise.
5639 (build_word_op): Likewise.
5640 (regfree): Don't use free_charset() in case of non-i18n envs.
5641 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5642 re_token_type_t in case of non-i18n envs.
5643 Don't define re_charset_t in case of non-i18n envs.
5644 Change the type of wcs of re_string_t from wchar_t to wint_t,
5645 since we store also WEOF.
5646 * posix/regex_internal.c: (re_string_realloc_buffers): Change
5647 the type of wcs of re_string_t from wchar_t to wint_t.
5648 (re_string_reconstruct): Likewise.
5649 (create_ci_newstate): Don't use i18n related code in case of
5651 (create_cd_newstate): Likewise.
5653 2002-05-24 Ulrich Drepper <drepper@redhat.com>
5655 * iconv/loop.c: Fix typo.
5657 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5659 * inet/ether_line.c (ether_line): Fix a typo causing only
5660 lower 4 bits of each ethernet address byte being assigned.
5661 Don't modify what line points to.
5662 * inet/tst-ether_aton.c (main): Add ether_line tests.
5664 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
5666 * manual/filesys.texi: Don't make readlink example leak memory
5667 when readlink fails.
5669 2002-05-20 Ulrich Drepper <drepper@redhat.com>
5671 * iconv/loop.c: Fix condition for defining unaligned loop. Add
5672 some more security checks.
5674 2002-05-17 David S. Miller <davem@redhat.com>
5676 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5678 2002-05-16 David S. Miller <davem@redhat.com>
5680 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5681 (elf_machine_dynamic): Use it to force PIC register to be loaded.
5682 (elf_machine_load_address): Likewise.
5683 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5685 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5686 is unaligned, do not forget to fully initialize %g1 magic value.
5688 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5689 register definitions and provide 32-bit variants of structures
5690 during 64-bit builds.
5692 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5693 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5694 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5695 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5696 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5697 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5698 Do not clear implicit one bit here, it must be done post-rounding.
5699 Only pad to the left using left shift if value uses less than the
5700 available fractional bits.
5702 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5704 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5705 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5706 (shared-only-routines): Likewise.
5707 * sysdeps/powerpc/libgcc-compat.c: New file.
5708 * sysdeps/wordsize-32/cmpdi2.c: Removed.
5709 * sysdeps/wordsize-32/fixdfdi.c: Removed.
5710 * sysdeps/wordsize-32/fixsfdi.c: Removed.
5711 * sysdeps/wordsize-32/shdi3.c: Removed.
5713 2002-05-16 Bruno Haible <bruno@clisp.org>
5715 * MakeTAGS (libc.pot): Don't sort the output.
5716 * po/header.pot: Update to match xgettext 0.11 output.
5718 2002-05-16 Bruno Haible <bruno@clisp.org>
5720 * MakeTAGS (subdirs): Remove duplicates.
5722 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5724 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5725 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
5728 2002-05-19 Andreas Jaeger <aj@suse.de>
5730 * sysdeps/unix/sysv/linux/configure.in: Warn against an
5731 installation in /usr/local.
5733 2002-05-16 Bruno Haible <bruno@clisp.org>
5735 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5736 string as argument of #error.
5738 2002-05-15 Ulrich Drepper <drepper@redhat.com>
5740 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5741 don't define static. Remove old __realpath function. TC1 of
5742 POSIX 2001 will allow the second parameter to be NULL.
5743 * stdlib/test-canon.c: Comment out test for NULL as second
5744 parameter of realpath.
5746 * time/offtime.c (__offtime): Set errno if overflow is detected.
5748 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5749 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5752 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5755 2002-05-15 Roland McGrath <roland@frob.com>
5757 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5759 2002-05-12 Bruno Haible <bruno@clisp.org>
5761 * iconvdata/testdata/EUC-JISX0213: New file.
5762 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5763 * iconvdata/testdata/SHIFT_JISX0213: New file.
5764 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5765 * iconvdata/testdata/ISO-2022-JP-3: New file.
5766 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5767 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5768 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5769 contains comments indicating precomposed characters.
5771 2002-04-21 Bruno Haible <bruno@clisp.org>
5773 * iconvdata/iso-2022-jp-3.c: New file.
5774 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5775 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5776 (LDFLAGS-ISO-2022-JP-3.so): New variable.
5777 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5778 (distribute): Add iso-2022-jp-3.c.
5780 2002-05-12 Bruno Haible <bruno@clisp.org>
5782 * iconvdata/tst-table-to.c (main): Restore handling of
5783 transliterations, broken by last patch.
5785 2002-05-12 Bruno Haible <bruno@clisp.org>
5787 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5789 2002-05-12 Bruno Haible <bruno@clisp.org>
5791 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5792 when there is not enough room in the output buffer.
5793 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5795 2002-04-20 Bruno Haible <bruno@clisp.org>
5797 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5799 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5800 Also make this macro work if FROM_DIRECTION evaluates to 0.
5801 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5802 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5803 of consume_incomplete.
5804 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5805 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5807 * iconvdata/cp1258.c: Likewise.
5808 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5809 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5811 * iconvdata/ibm933.c: Likewise.
5812 * iconvdata/ibm935.c: Likewise.
5813 * iconvdata/ibm937.c: Likewise.
5814 * iconvdata/ibm939.c: Likewise.
5815 * iconvdata/iso-2022-cn.c: Define
5816 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5817 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5818 * iconvdata/iso-2022-cn-ext.c: Likewise.
5819 * iconvdata/iso-2022-jp.c: Define
5820 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5821 {MIN,MAX}_NEEDED_{FROM,TO}.
5822 * iconvdata/tcvn5712-1.c: Define
5823 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5824 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
5825 * iconvdata/euc-jisx0213.c: Define
5826 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5827 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
5828 * iconvdata/shift_jisx0213.c: Likewise.
5830 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5832 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
5833 shdi3, fixdfdi, fixsfdi in csu dir.
5834 (shared-only-routines): Likewise.
5835 * sysdeps/wordsize-32/cmpdi2.c: New file.
5836 * sysdeps/wordsize-32/shdi3.c: New file.
5837 * sysdeps/wordsize-32/fixdfdi.c: New file.
5838 * sysdeps/wordsize-32/fixsfdi.c: New file.
5839 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
5840 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
5841 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
5843 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
5844 Only use va_arg if the argument will be used [PR libc/3259].
5846 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
5848 * catgets/catgets.c (catopen): Free buffer if internal catalog
5851 2002-05-14 Ulrich Drepper <drepper@redhat.com>
5853 * debug/xtrace.sh: Make more robust. For realtime tracking use
5854 non-buffering methods.
5855 * debug/pcprofiledump.c: Implement -u option.
5856 Patch by Roger Luethi <rl@hellgate.ch>.
5858 2002-05-11 Jakub Jelinek <jakub@redhat.com>
5860 * include/netinet/in.h (bindresvport_internal): Add prototype.
5861 * include/rpc/auth.h (authunix_create_internal,
5862 authunix_create_default_internal, authnone_create_internal,
5863 authdes_pk_create_internal): Add prototypes.
5864 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
5865 clntudp_create_internal, clntudp_bufcreate_internal,
5866 clntunix_create_internal): Add prototypes.
5867 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
5868 svc_getreq_internal, svc_getreq_common_internal,
5869 svc_getreqset_internal, svc_getreq_poll_internal,
5870 svc_register_internal, svc_unregister_internal,
5871 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
5872 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
5873 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
5874 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
5875 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
5876 * inet/rcmd.c (rcmd_af): Use __listen.
5877 (rresvport_af): Use __bind.
5878 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
5879 authunix_create, authunix_create_default, authnone_create,
5880 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
5881 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
5882 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
5883 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
5884 _authenticate, add INTDEF after such function definitions.
5885 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
5886 __setsockopt, __getsockname instead of non-__ variants.
5887 * sunrpc/pmap_rmt.c: Likewise.
5888 * sunrpc/rtime.c: Likewise.
5889 * sunrpc/svc_udp.c: Likewise.
5890 * sunrpc/clnt_unix.c: Likewise.
5891 * sunrpc/svc_unix.c: Likewise.
5892 * sunrpc/bindrsvprt.c: Likewise.
5893 * sunrpc/svc_tcp.c: Likewise.
5894 * sunrpc/auth_none.c: Likewise.
5895 * sunrpc/clnt_raw.c: Likewise.
5896 * sunrpc/clnt_tcp.c: Likewise.
5897 * sunrpc/auth_unix.c: Likewise.
5898 * sunrpc/key_call.c: Likewise.
5899 * sunrpc/clnt_gen.c: Likewise.
5900 * sunrpc/pm_getmaps.c: Likewise.
5901 * sunrpc/clnt_simp.c: Likewise.
5902 * sunrpc/pmap_clnt.c: Likewise.
5903 * sunrpc/svc_run.c: Likewise.
5904 * sunrpc/svc.c: Likewise.
5905 * sunrpc/svc_simple.c: Likewise.
5906 * sunrpc/pm_getport.c: Likewise.
5907 * sunrpc/auth_des.c: Likewise.
5908 * sunrpc/svc_auth.c: Likewise.
5909 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
5910 __register_frame_info_table_bases, __deregister_frame_info_bases):
5912 (__register_frame_info_bases_internal,
5913 __register_frame_info_table_bases_internal,
5914 __deregister_frame_info_bases_internal): Add prototypes.
5915 (__register_frame_info, __register_frame): Use INTUSE in call to
5916 __register_frame_info_bases.
5917 (__register_frame_info_table): Similarly.
5918 (__deregister_frame_info, __deregister_frame): Similarly.
5919 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
5920 sendto as weak alias.
5921 * sysdeps/mach/hurd/sendto.c: Likewise.
5922 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
5923 recvfrom as weak alias.
5924 * sysdeps/mach/hurd/recvfrom.c: Likewise.
5925 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
5926 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
5927 recvmsg as weak alias.
5928 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
5929 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
5930 sendmsg as weak alias.
5931 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
5932 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
5933 setsockopt, add setsockopt as weak alias.
5934 * sysdeps/mach/hurd/setsockopt.c: Likewise.
5935 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
5937 * sysdeps/mach/hurd/bind.c: Likewise.
5938 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
5940 * sysdeps/mach/hurd/listen.c: Likewise.
5941 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
5942 getsockname, add getsockname as weak alias.
5943 * sysdeps/mach/hurd/getsockname.c: Likewise.
5944 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
5945 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
5946 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
5947 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
5948 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
5949 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
5951 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5952 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5953 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5954 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5955 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
5956 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
5957 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
5958 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
5959 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
5960 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
5961 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
5962 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
5964 2002-05-10 Jakub Jelinek <jakub@redhat.com>
5966 * locale/programs/localedef.h (show_archive_content): Add verbose
5968 * locale/programs/localedef.c (main): Adjust caller.
5969 * locale/programs/locarchive.c (struct nameent, struct dataent): New
5971 (nameentcmp, dataentcmp): New functions.
5973 (show_archive_content): Print verbose listing with --list-archive -v.
5975 2002-05-14 Ulrich Drepper <drepper@redhat.com>
5977 * locale/programs/locarchive.c (open_archive): Take extra argument
5978 readonly. If true open file with O_RDONLY and don't create the
5979 archive if it doesn't exist.
5981 (close_archive): Don't do anything if fd element is -1.
5982 * locale/programs/localedef.h (open_archive): Adjust prototype.
5983 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
5986 * malloc/malloc.c (__posix_memalign): Correct check for size of
5987 alignment value [PR libc/3444].
5989 * include/stdio.h: Remove references to old stdio implementation.
5991 * libio/Makefile (bug-ungetwc2-ENV): Define.
5993 2002-05-13 Roland McGrath <roland@frob.com>
5995 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
5997 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
5999 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
6001 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6002 Allocate three, not two, more than LEN when appending '/.'.
6003 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
6004 if NAME ends with '/.' if it is shorter than 2 chars.
6006 2002-05-12 Roland McGrath <roland@frob.com>
6008 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6009 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6011 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6012 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6014 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6016 * sysdeps/ia64/Makefile: Remove extra endif.
6017 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6019 2002-05-10 Andreas Schwab <schwab@suse.de>
6021 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6023 2002-05-09 Andreas Jaeger <aj@suse.de>
6025 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6026 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6027 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6029 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6030 * sysdeps/wordsize-64/glob.c: ...here.
6031 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6032 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6033 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6035 2002-05-08 Roland McGrath <roland@frob.com>
6037 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6038 O_NOTRANS flag in "." lookup.
6040 2002-05-05 Ulrich Drepper <drepper@redhat.com>
6042 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6044 2002-05-04 Ulrich Drepper <drepper@redhat.com>
6046 * locale/duplocale.c (__duplocale): Update special members only
6047 when allocation succeeded.
6049 2002-05-03 Roland McGrath <roland@frob.com>
6051 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6052 we can only build libc.so.0.3(GLIBC_2.2.6) now.
6054 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6056 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6057 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6058 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6059 * sysdeps/ia64/ia64libgcc.S: New file.
6061 2002-05-02 Ulrich Drepper <drepper@redhat.com>
6063 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6065 * malloc/memusage.c: Distinguish anonymous mmap.
6067 2002-05-01 Roland McGrath <roland@frob.com>
6069 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6070 and use INTDEF on it.
6071 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6073 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6075 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6077 2002-05-01 Ulrich Drepper <drepper@redhat.com>
6079 * malloc/memusage.c: Add support for tracking mmap & friends.
6080 * malloc/memusage.sh: Implement -m/--mmap option.
6082 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6084 * locale/programs/locarchive.c (create_archive): Add archivefname
6085 argument, create fname from it.
6086 (enlarge_archive): Honour output_prefix.
6087 (open_archive): Likewise.
6089 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6091 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6092 too many stpcpy macros.
6094 2002-04-26 Bruno Haible <bruno@clisp.org>
6096 * locale/programs/ld-collate.c (collate_read): Cast first argument
6099 2002-04-26 Bruno Haible <bruno@clisp.org>
6101 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6102 __dcngettext_internal): New declarations.
6103 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6104 attribute declarations.
6106 2002-04-30 Roland McGrath <roland@frob.com>
6108 Removed old GNU stdio implementation; GNU libio is now the only option.
6109 * configure.in: Removed --enable-libio option and @stdio@ subst var.
6110 Define USE_IN_LIBIO unconditionally.
6111 * configure: Regenerated.
6112 * Makeconfig (stdio): Set to libio by default.
6113 * config.make.in (stdio): Variable removed.
6114 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6115 * sysdeps/unix/sysv/linux/configure: Regenerated.
6116 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6117 * sysdeps/mach/hurd/configure: Regenerated.
6118 * stdio/.cvsignore: File removed.
6119 * stdio/Makefile: File removed.
6120 * stdio/Versions: File removed.
6121 * stdio/__fbufsize.c: File removed.
6122 * stdio/__flbf.c: File removed.
6123 * stdio/__fpending.c: File removed.
6124 * stdio/__fpurge.c: File removed.
6125 * stdio/__freadable.c: File removed.
6126 * stdio/__freading.c: File removed.
6127 * stdio/__fsetlocking.c: File removed.
6128 * stdio/__fwritable.c: File removed.
6129 * stdio/__fwriting.c: File removed.
6130 * stdio/clearerr.c: File removed.
6131 * stdio/fclose.c: File removed.
6132 * stdio/fcloseall.c: File removed.
6133 * stdio/feof.c: File removed.
6134 * stdio/ferror.c: File removed.
6135 * stdio/fflush.c: File removed.
6136 * stdio/fgetc.c: File removed.
6137 * stdio/fgetpos.c: File removed.
6138 * stdio/fgets.c: File removed.
6139 * stdio/fileno.c: File removed.
6140 * stdio/fmemopen.c: File removed.
6141 * stdio/fopen.c: File removed.
6142 * stdio/fopncook.c: File removed.
6143 * stdio/fputc.c: File removed.
6144 * stdio/fputs.c: File removed.
6145 * stdio/fread.c: File removed.
6146 * stdio/freopen.c: File removed.
6147 * stdio/fseek.c: File removed.
6148 * stdio/fsetpos.c: File removed.
6149 * stdio/ftell.c: File removed.
6150 * stdio/fwrite.c: File removed.
6151 * stdio/getc.c: File removed.
6152 * stdio/getchar.c: File removed.
6153 * stdio/getdelim.c: File removed.
6154 * stdio/gets.c: File removed.
6155 * stdio/glue.c: File removed.
6156 * stdio/internals.c: File removed.
6157 * stdio/linewrap.c: File removed.
6158 * stdio/linewrap.h: File removed.
6159 * stdio/memstream.c: File removed.
6160 * stdio/newstream.c: File removed.
6161 * stdio/obstream.c: File removed.
6162 * stdio/putc.c: File removed.
6163 * stdio/putchar.c: File removed.
6164 * stdio/puts.c: File removed.
6165 * stdio/rewind.c: File removed.
6166 * stdio/setbuf.c: File removed.
6167 * stdio/setbuffer.c: File removed.
6168 * stdio/setlinebuf.c: File removed.
6169 * stdio/setvbuf.c: File removed.
6170 * stdio/stdio.h: File removed.
6171 * stdio/ungetc.c: File removed.
6172 * stdio/vasprintf.c: File removed.
6173 * stdio/vscanf.c: File removed.
6174 * stdio/vsnprintf.c: File removed.
6175 * stdio/vsprintf.c: File removed.
6176 * stdio/vsscanf.c: File removed.
6177 * sysdeps/generic/defs.c: File removed.
6178 * sysdeps/generic/fdopen.c: File removed.
6179 * sysdeps/generic/pipestream.c: File removed.
6180 * sysdeps/generic/stdio_init.c: File removed.
6181 * sysdeps/generic/sysd-stdio.c: File removed.
6182 * sysdeps/generic/vdprintf.c: File removed.
6183 * sysdeps/mach/hurd/defs.c: File removed.
6184 * sysdeps/mach/hurd/fdopen.c: File removed.
6185 * sysdeps/mach/hurd/pipestream.c: File removed.
6186 * sysdeps/mach/hurd/stdio_init.c: File removed.
6187 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6188 * sysdeps/mach/hurd/vdprintf.c: File removed.
6189 * sysdeps/posix/defs.c: File removed.
6190 * sysdeps/posix/fdopen.c: File removed.
6191 * sysdeps/posix/pipestream.c: File removed.
6192 * sysdeps/posix/stdio_init.c: File removed.
6193 * sysdeps/posix/vdprintf.c: File removed.
6194 * sysdeps/unix/pipestream.c: File removed.
6195 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6196 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6197 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6199 2002-04-29 Roland McGrath <roland@frob.com>
6201 * include/libc-symbols.h (link_warning): Use `unused' attribute.
6203 2002-04-28 Ulrich Drepper <drepper@redhat.com>
6205 * sysdeps/generic/tls.h: Describe what must be defined.
6207 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6208 glob_in_dir [PR libc/3385].
6209 * posix/globtest.sh: Add test case.
6211 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6214 2002-04-27 Ulrich Drepper <drepper@redhat.com>
6216 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6217 _internal symbol handling.
6218 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6220 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6222 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6223 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6225 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
6227 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6228 not _LIBC and RE_ENABLE_I18N.
6229 (build_range_exp): Implement for not _LIBC.
6230 (build_collating_symbol): Likewise.
6231 (parse_bracket_exp): Unify redundant error handlings.
6232 Don't erase mbcset for non matching list in multibyte envs.
6233 (build_word_op): Add '_' to matching list for \w operator.
6234 * posix/regex_internal.c (re_string_construct): Invoke
6235 build_upper_buffer in case of not RE_ENABLE_I18N.
6236 (re_string_reconstruct): Don't touch cur_state in case of not
6238 * posix/regex_internal.h (attribute_hidden): New macro in case of
6240 (re_charset_t): Define range_starts/ends in case of not _LIBC.
6241 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6243 (transit_state_mb): Likewise.
6244 (check_node_accept_bytes): Implement the code evaluating range
6245 expression in case of not _LIBC.
6246 (find_collation_sequence_value): Hide in case of not _LIBC.
6248 2002-04-26 Jakub Jelinek <jakub@redhat.com>
6250 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6252 (__old_semctl, __new_semctl): Only use va_arg if the argument will
6255 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6257 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6259 * sysdeps/ia64/strncpy.S: Fix recovery code.
6260 Patch by David Mosberger <davidm@hpl.hp.com>.
6262 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6264 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6267 2002-04-14 Bruno Haible <bruno@clisp.org>
6269 * posix/regex.c (re_max_failures): Add back symbol for binary
6272 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
6274 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6275 of buffer building functions.
6276 * posix/regex_internal.c (re_string_allocate): New function.
6277 (re_string_realloc_buffers): New function.
6278 (re_string_skip_chars): New function.
6279 (re_string_reconstruct): New function.
6280 (re_string_construct): Adapt it to new interface of buffer building
6282 (re_string_construct_common): Likewise.
6283 (build_wcs_buffer): Likewise.
6284 (build_wcs_upper_buffer): Likewise.
6285 (build_upper_buffer): Likewise.
6286 (re_string_translate_buffer): Likewise.
6287 (re_string_context_at): Adapt it to variable length buffers.
6288 * posix/regex_internal.h (re_string_t): Add new fields to handle
6289 variable length buffers.
6290 (re_match_context_t): Likewise.
6291 * posix/regexec.c (re_search_internal): Adapt it to new interface
6292 of re_string_t and re_match_context_t.
6293 (acquire_init_state_context): Likewise.
6294 (check_matching): Likewise.
6295 (check_halt_state_context): Likewise.
6296 (proceed_next_node): Likewise.
6297 (set_regs): Likewise.
6298 (sift_states_backward): Likewise.
6299 (clean_state_log_if_need): Likewise.
6300 (sift_states_iter_mb): Likewise.
6301 (sift_states_iter_bkref): Likewise.
6302 (add_epsilon_backreference): Likewise.
6303 (transit_state): Likewise.
6304 (transit_state_sb): Likewise.
6305 (transit_state_mb): Likewise.
6306 (transit_state_bkref): Likewise.
6307 (transit_state_bkref_loop): Likewise.
6308 (check_node_accept): Likewise.
6309 (match_ctx_init): Likewise.
6310 (extend_buffers): New function.
6312 2002-04-21 Bruno Haible <bruno@clisp.org>
6314 * iconvdata/tst-table.sh: For the second check, use the truncated
6315 GB18030 charmap table, like for the first check.
6317 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6319 * elf/dl-load.c (open_verify): Correct __lseek parameters.
6320 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6322 2002-04-23 H.J. Lu <hjl@gnu.org>
6324 * include/math.h (isfinite): Fix a typo.
6326 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6328 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6329 which is created by the test suite.
6331 2002-04-20 Bruno Haible <bruno@clisp.org>
6333 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6334 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6336 2002-04-20 Bruno Haible <bruno@clisp.org>
6338 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6339 to avoid gcc warning.
6341 2002-04-20 Bruno Haible <bruno@clisp.org>
6343 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6344 of data->__statep->__count.
6346 2002-04-20 Bruno Haible <bruno@clisp.org>
6348 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6350 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6352 2002-04-24 Roland McGrath <roland@frob.com>
6354 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6355 use END macro instead of our own .end directive.
6356 Use `callsys' insn mnemonic instead of `call_pal'.
6358 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6360 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6361 macro; we need this for Hurd.
6363 Log entry was missing for 2002/03/24 commit of rev 1.8,
6364 goes with 2002-03-17 changes.
6365 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6366 (sysdep_routines): Append ioperm here.
6367 (sysdep_headers): Append sys/io.h here.
6369 2002-04-23 Roland McGrath <roland@frob.com>
6371 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6372 * sysdeps/mach/hurd/sendto.c: Likewise.
6373 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6374 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6375 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6377 2002-04-22 Roland McGrath <roland@frob.com>
6379 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6380 failure from i386_io_perm_* RPCs to ENOSYS.
6382 2002-04-22 Andreas Jaeger <aj@suse.de>
6384 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6386 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6388 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6389 register instead of destroying %rbx.
6391 2002-04-21 Ulrich Drepper <drepper@redhat.com>
6393 * string/string.h: Declare strerror_r also for XPG6.
6395 2002-04-19 Roland McGrath <roland@frob.com>
6397 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6399 2002-04-20 Ulrich Drepper <drepper@redhat.com>
6401 * Makefile: Add handling of xtests and xcheck targets.
6402 * MakeTAGS: Likewise.
6403 * Makeconfig: Likewise.
6404 * Makerules: Likewise.
6406 * manual/Makefile: Likewise.
6407 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6408 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
6410 2002-04-11 Zack Weinberg <zack@codesourcery.com>
6412 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6414 * sunrpc/auth_none.c: Include bits/libc-lock.h.
6415 Delete #ifdef _RPC_THREAD_SAFE_ block.
6416 (authnone_private): Make a struct, not a pointer to struct.
6417 (authnone_private_guard): New once-control variable.
6418 (authnone_create_once): New function, split out of
6419 authnone_create. No need to allocate memory.
6420 (authnone_create): Just call authnone_create_once via
6421 __libc_once, then return &authnone_private->no_client.
6422 (authnone_marshal): Access private data via CLIENT argument,
6423 not authnone_private pointer.
6424 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6425 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6428 2002-04-12 H.J. Lu <hjl@gnu.org>
6430 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6432 2002-04-18 Bruno Haible <bruno@clisp.org>
6434 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6435 FROM_DIRECTION): Make the FROM direction stateless.
6436 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6437 FROM_DIRECTION): Likewise.
6439 2002-04-15 Bruno Haible <bruno@clisp.org>
6441 * iconvdata/JISX0213.TXT: New file.
6442 * iconvdata/jisx0213.h: New file.
6443 * iconvdata/jisx0213.c: New file.
6444 * iconvdata/euc-jisx0213.c: New file.
6445 * iconvdata/shift_jisx0213.c: New file.
6446 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6447 * iconvdata/EUC-JISX0213.precomposed: New file.
6448 * iconvdata/SHIFT_JISX0213.precomposed: New file.
6449 * iconvdata/SHIFT_JISX0213.irreversible: New file.
6450 * iconvdata/tst-table-to.c (main): Make it work for encodings for
6451 which the "to" direction is stateful.
6452 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6453 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6455 (libJISX0213-routines): New variable.
6456 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6457 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6458 (LDFLAGS-libJISX0213.so): New variable.
6459 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6460 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6461 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6463 2002-04-15 Bruno Haible <bruno@clisp.org>
6465 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6466 uint32_t. Update to Unicode 3.2.
6467 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6468 (BODY for TO_LOOP): Handle the ASCII range specially.
6469 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6470 * iconvdata/testdata/BIG5HKSCS: Remove a character.
6471 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6473 2002-04-15 Bruno Haible <bruno@clisp.org>
6475 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6476 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6478 2002-04-15 Bruno Haible <bruno@clisp.org>
6480 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6481 (ucs4_to_cns11643): Update.
6482 * iconvdata/cns11643.c: Update to Unicode 3.2.
6483 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6484 __cns11643_from_ucs4p2_tab): Regenerated.
6485 (__cns11643_from_ucs4p2c_tab): New array.
6486 * iconvdata/cvs11643l1.c: Update comments.
6487 * iconvdata/EUC-TW.irreversible: Remove two entries.
6489 2002-04-15 Bruno Haible <bruno@clisp.org>
6491 * locale/C-translit.h.in: Update to Unicode 3.2.
6492 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6493 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6495 2002-04-15 Bruno Haible <bruno@clisp.org>
6497 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6498 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6500 2002-04-15 Bruno Haible <bruno@clisp.org>
6502 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6503 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6504 always one byte, not 0 bytes in some cases and 2 bytes in others.
6506 * iconvdata/tst-table-from.c (main): Correct the usage message.
6508 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6510 * posix/regcomp.c (parse_expression): Fix incorrect error code.
6511 (parse_dup_op): Fix error handling like "a{}".
6512 (parse_bracket_exp): Add error handling.
6513 (fetch_number): Add error handling for "a{<very_large_number>}".
6515 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6517 * posix/regcomp.c (parse_bracket_symbol): Add error handling
6518 in case that the symbol name is too long.
6519 (build_charclass): Handle [:lower:]/[:uppper:] correctly
6520 in case of REG_ICASE.
6522 2002-04-19 Andreas Jaeger <aj@suse.de>
6524 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6525 <hartvige@mips.com>.
6527 2002-04-15 H.J. Lu <hjl@gnu.org>
6529 * include/math.h (__finitel_internal): Declare only if
6530 __NO_LONG_DOUBLE_MATH is not defined.
6531 (__isinfl_internal): Likewise.
6532 (__isnanl_internal): Likewise.
6534 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6535 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6536 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6537 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6538 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6539 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6540 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6542 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6545 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6546 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6548 2002-04-15 Bruno Haible <bruno@clisp.org>
6550 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6551 (BODY for TO_LOOP): Likewise.
6552 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6553 * iconvdata/tst-table.sh: Add support for encodings which contain
6554 precomposed Unicode characters, known to the iconv converter in both
6555 directions but not listed in the charmap.
6556 * iconvdata/IBM856.irreversible: New file.
6557 * iconvdata/IBM922.irreversible: New file.
6558 * iconvdata/IBM1132.irreversible: New file.
6559 * iconvdata/IBM1133.irreversible: New file.
6560 * iconvdata/IBM1160.irreversible: New file.
6561 * iconvdata/IBM1161.irreversible: New file.
6562 * iconvdata/IBM1163.irreversible: New file.
6563 * iconvdata/IBM1164.irreversible: New file.
6564 * iconvdata/ARMSCII-8.irreversible: New file.
6565 * iconvdata/TCVN5712-1.precomposed: New file.
6566 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6567 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6568 ARMSCII-8, TCVN5712-1.
6569 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6570 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6571 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6572 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6574 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6576 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
6577 for EVENING69. Include offsets in TZ environment variable.
6579 2002-04-18 Ulrich Drepper <drepper@redhat.com>
6581 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6582 avoid compiler warnings.
6584 * locale/programs/localedef.c (main): Always call
6585 construct_output_path.
6587 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6589 * locale/programs/locfile.c (to_archive): New variable. To collect
6590 data which has to be added to the locale archive.
6591 (write_all_categories): Take new third parameter with locale name.
6592 Unless no_archive flag set add new locale data to the archive
6593 (write_locale_data): Unless no-archive flag set store generated data
6594 in to_archive data structure instead of generation output file.
6595 Add new parameter with locale category index.
6596 * locale/programs/locfile.h: Add new parameters in declaractions of
6597 write_all_categories and write_locale_data.
6598 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6599 --add-to-archive, and --delete-from-archive options. Pass extra
6600 parameter to write_all_categories.
6601 * locale/programs/localedef.h: Add prototypes for functions in
6603 * locale/locarchive.h: New file.
6604 * locale/programs/locarchive.c: New file.
6605 * locale/Makefile (distribute): Add programs/locarchive.c and
6607 (localedef-modules): Add md5 and locarchive.
6608 Add vpath to crypt subdir for md5.c.
6610 * locale/programs/ld-address.c: Pass locale category ID as new second
6611 parameter to write_locale_data.
6612 * locale/programs/ld-collate.c: Likewise.
6613 * locale/programs/ld-ctype.c: Likewise.
6614 * locale/programs/ld-identification.c: Likewise.
6615 * locale/programs/ld-measurement.c: Likewise.
6616 * locale/programs/ld-messages.c: Likewise.
6617 * locale/programs/ld-monetary.c: Likewise.
6618 * locale/programs/ld-name.c: Likewise.
6619 * locale/programs/ld-numeric.c: Likewise.
6620 * locale/programs/ld-paper.c: Likewise.
6621 * locale/programs/ld-telephone.c: Likewise.
6622 * locale/programs/ld-time.c: Likewise.
6624 * locale/simple-hash.c: Move compute_hashval function from here...
6625 * locale/hashval.h: ...to here. New file.
6626 * locale/simple-hash.h: Add prototype for compute_hashval.
6628 * include/libintl.h: Minor cleanups.
6630 2002-04-16 Ulrich Drepper <drepper@redhat.com>
6632 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6634 2002-04-15 Ulrich Drepper <drepper@redhat.com>
6636 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
6638 2002-04-14 Bruno Haible <bruno@clisp.org>
6640 * locale/programs/charmap.c (charmap_read): Don't access result if
6643 2002-02-17 Andreas Schwab <schwab@suse.de>
6645 * elf/reldep7.c: New file.
6646 * elf/reldep7mod1.c: New file.
6647 * elf/reldep7mod2.c: New file.
6648 * elf/Makefile: Add rules to build and run reldep7.
6650 2002-04-14 Jakub Jelinek <jakub@redhat.com>
6652 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6653 the end of the function. Pass original flags to recursive call if
6654 add_dependency failed.
6655 (_dl_lookup_versioned_symbol): Likewise.
6657 2002-04-13 Jakub Jelinek <jakub@redhat.com>
6659 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6660 early, but check whether it overflowed afterwards.
6661 * time/tst-mktime.c (main): Add new tests.
6663 2002-04-14 Ulrich Drepper <drepper@redhat.com>
6665 * debug/xtrace.sh: Fix program name in help message.
6666 Patch by Roger Luethi <rl@hellgate.ch>.
6668 * include/sys/stat.h: Add prototypes for __lxstat_internal and
6669 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
6671 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6672 * sysdeps/mach/hurd/lxstat.c: Likewise.
6673 * sysdeps/unix/common/lxstat.c: Likewise.
6674 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6675 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6676 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6677 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6678 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6679 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6680 * sysdeps/mach/hurd/lxstat64.c: Likewise.
6681 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6682 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6684 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6685 prototypes. Add __mbrlen and __mbrtowc macros.
6686 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6687 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6689 * include/unistd.h: Add prototype for __write_internal and add
6690 __libc_write macro is SHARED.
6691 * sysdeps/generic/write.c: Use INTDEF for __write.
6692 * sysdeps/mach/hurd/write.c: Likewise.
6693 * sysdeps/unix/sysv/aix/write.c: Likewise.
6694 * sysdeps/unix/syscalls.list: Add __libc_write alias.
6696 * assert/assert.c: Replace STR_N_SIZE with something usable in
6698 * assert/assert-perr.c: Likewise.
6700 * include/sys/socket.h: Declare __libc_sa_len_internal and define
6701 SA_LEN macro to use it if not NOT_IN_libc.
6702 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6704 * include/fcntl.h: Declare __open_internal and define __open and
6705 __libc_open macros if not NOT_IN_libc.
6706 * sysdeps/generic/open.c: Use INTDEF for __open.
6707 * sysdeps/mach/hurd/open.c: Likewise.
6708 * sysdeps/unix/sysv/aix/open.c: Likewise.
6709 * sysdeps/unix/syscalls.list: Add __open_internal alias.
6711 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6714 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6715 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6716 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6717 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6719 * include/wctype.h: Declare __iswalpha_l_internal,
6720 __iswdigit_l_internal, __iswspace_l_internal,
6721 __iswxdigit_l_internal, and __iswctype_internal. Define
6722 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6723 __iswxdigit_l macros if not NOT_IN_libc.
6724 * wctype/iswctype.c: Use INTDEF for __iswctype.
6725 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6727 * include/math.h: Declare __isinf_internal, __isinfl_internal,
6728 __isnan_internal, and __isnanl_internal.
6729 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6730 __isnan, and __isnanl.
6731 * stdio-common/printf_size.c: Likewise.
6732 * sysdeps/generic/printf_fphex.c: Likewise.
6733 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6734 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6735 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6736 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6737 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6738 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6739 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6740 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6741 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6742 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6743 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6744 * sysdeps/m68k/s_isinfl.c: Likewise.
6745 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6746 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6748 * include/sys/time.h: Declare __gettimeofday_internal and define
6749 __gettimeofday macro if not NOT_IN_libc.
6750 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6751 * sysdeps/mach/gettimeofday.c: Likewise.
6752 * sysdeps/posix/gettimeofday.c: Likewise.
6753 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6754 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6755 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6756 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6758 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6759 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6760 Remove __lstat and __fstat inline functions.
6761 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6762 * sysdeps/mach/hurd/fxstat.c: Likewise.
6763 * sysdeps/unix/fxstat.c: Likewise.
6764 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6765 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6766 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6767 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6768 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6769 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6770 * sysdeps/mach/hurd/fxstat64.c: Likewise.
6771 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6772 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6774 * include/unistd.h: Declare __getpid_internal and define
6775 __getpid macro if not NOT_IN_libc.
6776 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6777 * sysdeps/generic/getpid.c: Likewise.
6778 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6779 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6781 * include/unistd.h: Declare __getpgid_internal and define
6782 __getpgid macro if not NOT_IN_libc.
6783 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6784 * sysdeps/mach/hurd/getpgid.c: Likewise.
6785 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6786 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6787 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6788 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6790 * include/unistd.h: Declare __getpagesize_internal and define
6791 __getpagesize macro if not NOT_IN_libc.
6792 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6794 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6795 * sysdeps/mach/getpagesize.c: Likewise.
6796 * sysdeps/posix/getpagesize.c: Likewise.
6797 * sysdeps/unix/getpagesize.c: Likewise.
6798 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6799 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6800 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6801 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6803 2002-04-13 Andreas Jaeger <aj@suse.de>
6805 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6806 as clobber to reduce register pressure.
6807 (__strpbrk_cg): Likewise.
6808 (__mempcpy_by4): Likewise.
6809 (__strstr_cg): Likewise.
6810 Add prototype for __memrchr.
6812 2002-04-13 Andreas Schwab <schwab@suse.de>
6814 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6815 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6816 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6818 2002-04-13 Ulrich Drepper <drepper@redhat.com>
6820 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
6821 check whether the caller prefers getting the most recent version of
6822 a symbol of the earliest version.
6823 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
6824 _dl_do_lookup to also take the new parameter and pass it on.
6825 Change 'explicit' parameter of _dl_lookup_symbol and
6826 _dl_lookup_versioned_symbol to flags. Adjust tests.
6827 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6828 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
6829 _dl_lookup_versioned_symbol.
6830 * elf/dl-reloc.c: Likewise.
6831 * elf/dl-runtime.c: Likewise.
6832 * elf/dl-sym.c: Likewise.
6833 * sysdeps/mips/dl-machine.h: Likewise.
6835 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6837 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
6839 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
6841 2002-04-10 Andreas Jaeger <aj@suse.de>
6843 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6845 * include/argz.h: Remove extra char from last patch.
6847 2002-04-09 Ulrich Drepper <drepper@redhat.com>
6849 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
6850 * sysdeps/unix/sysv/aix/chown.c: Likewise.
6851 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
6852 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
6853 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6854 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
6856 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6858 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
6859 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
6860 * intl/ngettext.c: Likewise.
6862 * include/sys/socket.h: Declare __connect_internal and define
6863 __connect macro if not NOT_IN_libc.
6864 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
6865 * sysdeps/unix/sysv/aix/connect.c: Likewise.
6866 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
6868 * include/unistd.h: Declare __close_internal and define __close macro
6870 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
6871 WJUMP3): Add extra parenthesis to avoid expanding element names with
6872 macors like __close.
6873 * sysdeps/unix/syscalls.list: Add __close_internal alias.
6875 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
6877 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
6878 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
6879 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
6881 * include/unistd.h: Declare __fork_internal and define __fork macro
6883 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
6884 * sysdeps/unix/sysv/aix/fork.c: Likewise.
6885 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
6887 * include/stdio_ext.h: Declare __fsetlocking_internal and define
6888 __fsetlocking macro to use it if not NOT_IN_libc.
6889 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
6891 * libio/__fbufsize.c: Correct copyright.
6892 * libio/__flbf.c: Likewise.
6893 * libio/__fpending.c: Likewise.
6894 * libio/__fpurge.c: Likewise.
6895 * libio/__freadable.c: Likewise.
6896 * libio/__freading.c: Likewise.
6897 * libio/__fsetlocking.c: Likewise.
6898 * libio/__fwritable.c: Likewise.
6899 * libio/__fwriting.c: Likewise.
6901 * include/stdio.h: Declare __asprintf_internal and define __asprintf
6902 macro to use it if not NOT_IN_libc.
6903 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
6905 * include/mntent.h: Declare __setmntent_internal,
6906 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
6907 __getmntent_r, and __endmntent macros to use these functions if not
6909 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
6912 * include/math.h: Declare __finite_internal, __finitef_internal, and
6913 __finitel_internal. Redefine isfinite macro if in libc or libm using
6915 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
6916 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
6917 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
6918 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
6919 * sysdeps/i386/fpu/s_finitef.S: Likewise.
6920 * sysdeps/i386/fpu/s_finitel.S: Likewise.
6921 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6922 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6923 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6924 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
6926 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
6927 to use this function if not NOT_IN_libc.
6928 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
6929 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
6930 * sysdeps/mach/hurd/fcntl.c: Likewise.
6931 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6932 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6934 * include/argz.h: Declare __argz_count_internal and
6935 __argz_stringify_internal.
6936 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
6938 * string/argz-count.c: Use INTDEF for __argz_count.
6939 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
6941 * include/stdlib.h: Declare __cxa_atexit_internal and define
6942 __cxa_atexit macro if not NOT_IN_libc.
6943 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
6944 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
6946 * assert/assert.c: Use INTDEF for __assert_fail.
6947 * assert/__assert.c: Use INTUSE for call to __assert_fail.
6948 * include/assert.h: Declare __assert_fail_internal.
6950 * extra-lib.mk: Mark assignment to lib with override.
6952 2002-04-08 Ulrich Drepper <drepper@redhat.com>
6954 * Makerules: Use cppflags-iterator.mk to add defines for all test
6957 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
6959 * elf/elf.h: Define R_SH_TLS_xxx macros.
6960 * elf/rtld.c: Remove an extra parenthesis.
6961 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
6963 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
6964 * sysdeps/sh/dl-lookupcfg.h: New file.
6965 * sysdeps/sh/dl-tls.h: New file.
6966 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
6967 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
6968 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
6969 R_SH_TLS_TPOFF32 relocations.
6971 2002-04-08 Ulrich Drepper <drepper@redhat.com>
6973 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
6975 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
6976 * include/stdlib.h: Likewise.
6978 2002-04-08 Jakub Jelinek <jakub@redhat.com>
6980 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
6981 instead of _RTLD_LOCAL.
6982 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
6983 * include/unistd.h: Likewise.
6984 * sysdeps/generic/ldsodefs.h: Likewise.
6986 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
6987 if in libc or ld.so.
6989 2002-04-08 Andreas Jaeger <aj@suse.de>
6991 * elf/cache.c (print_entry): Support x86-64.
6993 2002-04-08 Ulrich Drepper <drepper@redhat.com>
6995 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
6996 with one accessing the locale data structures directly.
6997 * stdio-common/printf-prs.c: Include localeinfo.h for new
6998 MB_CUR_MAX definition.
7000 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7001 is the name of the source file without extension.
7002 * Makefile (distribute): Add cppflags-iterator.mk.
7003 * cppflags-iterator.mk: New file.
7004 * extra-lib.mk: For the sources of the library run
7005 cppflags-iterator.mk.
7007 * include/libintl.h: Declare __dcgettext_internal and
7008 _libc_intl_domainname_internal. Define __dcgettext using these
7009 two symbols if used in libc itself.
7010 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7011 _libc_intl_domainname_internal.
7012 * argp/argp-parse.c: Likewise.
7013 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7014 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7015 * intl/gettext.c: Likewise.
7016 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7018 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7020 * posix/regex_internal.c (gettext): Likewise.
7022 2002-04-08 Andreas Jaeger <aj@suse.de>
7024 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7026 * sysdeps/x86_64/fpu/s_llrint.S: New file.
7027 * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7028 * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7029 * sysdeps/x86_64/fpu/s_lrint.S: New file.
7030 * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7031 * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7033 2002-04-08 Roland McGrath <roland@frob.com>
7035 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7036 widening __hurd_fail value.
7038 2002-04-07 Roland McGrath <roland@frob.com>
7040 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7041 <mach/machine/alpha_instruction.h>.
7042 (_hurd_setup_sighandler): Take proper arguments for current decls.
7043 Update code to use _hurdsig_catch_fault.
7044 Use `callsys' instruction instead of `call_pal'.
7045 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7047 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7048 (ALIGN, at, AT, fp): New macros.
7050 2002-04-06 Roland McGrath <roland@frob.com>
7052 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7054 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7055 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7057 * sysdeps/mach/hurd/bind.c: Use prototype definition.
7058 * sysdeps/mach/hurd/connect.c: Likewise.
7059 * sysdeps/mach/hurd/getsockopt.c: Likewise.
7060 * sysdeps/mach/hurd/setsockopt.c: Likewise.
7062 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7065 * hurd/catch-exc.c: Use integer_t instead of int.
7066 * hurd/hurdfault.c: Likewise.
7068 * sysdeps/mach/hurd/alpha/exc2signal.c
7069 (_hurd_exception2signal): Rewritten.
7070 * sysdeps/mach/hurd/alpha/longjmp-ts.c
7071 (_hurd_longjmp_thread_state): Rewritten.
7073 2002-04-07 Ulrich Drepper <drepper@redhat.com>
7075 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7076 DB_LOOKUP_FCT prototype.
7077 * nss/getXXent_r.c: Likewise.
7078 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7079 * inet/getaliasname_r.c: Likewise.
7080 * inet/getnetbyad_r.c: Likewise.
7081 * inet/getnetbynm_r.c: Likewise.
7082 * inet/getnetent_r.c: Likewise.
7083 * inet/getproto_r.c: Likewise.
7084 * inet/getprtent_r.c: Likewise.
7085 * inet/getprtname_r.c: Likewise.
7086 * inet/getrpcbyname_r.c: Likewise.
7087 * inet/getrpcbynumber_r.c: Likewise.
7088 * inet/getrpcent_r.c: Likewise.
7089 * inet/getservent_r.c: Likewise.
7090 * inet/getsrvbynm_r.c: Likewise.
7091 * inet/getsrvbypt_r.c: Likewise.
7092 * shadow/getspent_r.c: Likewise.
7093 * shadow/getspnam_r.c: Likewise.
7095 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7097 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7098 Use i686-friendly PIC code.
7099 * sysdeps/i386/elf/setjmp.S: Likewise.
7101 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7103 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7105 * elf/Versions: Remove it here.
7107 2002-04-06 Ulrich Drepper <drepper@redhat.com>
7109 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7110 direction. Reported by H . J . Lu <hjl@lucon.org>.
7112 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7114 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7115 test just before the test runs.
7116 * intl/tst-translit.sh: Likewise.
7117 * intl/tst-codeset.sh: Likewise.
7119 * timezone/zic.c: Update from tzcode2002c.
7120 * timezone/asia: Update from tzdata2002c.
7121 * timezone/backward: Likewise.
7122 * timezone/europe: Likewise.
7123 * timezone/northamerica: Likewise.
7124 * timezone/northamerica: Likewise.
7125 * timezone/northamerica: Likewise.
7126 * timezone/southamerica: Likewise.
7127 * timezone/zone.tab: Likewise.
7129 2002-03-23 Jakub Jelinek <jakub@redhat.com>
7131 * sysdeps/generic/brk.c (__curbrk): Declare.
7132 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7133 * sysdeps/generic/dl-sbrk.c: Likewise.
7134 * sysdeps/unix/arm/dl-brk.S: New file.
7135 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7136 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7137 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7138 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7139 * sysdeps/unix/i386/dl-brk.S: New file.
7140 * sysdeps/unix/mips/dl-brk.S: New file.
7141 * sysdeps/unix/sparc/dl-brk.S: New file.
7142 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7143 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7144 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7145 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7147 2002-04-03 Andreas Schwab <schwab@suse.de>
7149 * Makefile (headers): Add gnu/lib-names.h here instead of
7151 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7153 (install-headers): Add dependency on install-headers-nosubdir.
7154 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7155 instead of install-others.
7156 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7159 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7161 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7162 Reported by Sam Roberts <sroberts@uniserve.com>.
7164 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7166 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7167 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7168 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7169 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7171 2002-04-03 David Mosberger <davidm@hpl.hp.com>
7173 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7174 (RTLD_START): Ditto.
7175 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7176 dependency violation.
7178 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7180 * time/mktime.c (__mktime_internal): Move check for year < 70 below
7181 all variable declarations.
7183 2002-04-04 Andreas Schwab <schwab@suse.de>
7185 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7187 2002-04-04 Andreas Jaeger <aj@suse.de>
7189 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7190 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7192 * sysdeps/x86_64/fpu/s_fabs.c: New file.
7193 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7194 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7196 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7198 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7200 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7201 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7203 * configure.in: Handle all mips entries the same.
7205 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7206 * sysdeps/mips/mips3/*: Likewise.
7207 * sysdeps/mips/p40/bits/endian.h: Likewise.
7209 2002-04-04 Ulrich Drepper <drepper@redhat.com>
7211 * misc/dirname.c (dirname): Ignore trailing slashes at end of
7212 non-null result [PR libc/2600].
7214 * misc/tst-dirname.c: Add more tests.
7216 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7218 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7219 define a code_set_name provide one based on the filename.
7221 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7223 2001-12-28 Andreas Jaeger <aj@suse.de>
7225 * time/mktime.c (__mktime_internal): Check for year < 70
7228 2002-04-03 Andreas Jaeger <aj@suse.de>
7230 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7232 Reported by Andi Kleen <ak@suse.de>.
7234 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7236 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7237 * sysdeps/generic/w_lgammaf.c: Likewise.
7238 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7240 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7241 Adjust for new output format of the backtrace functions.
7243 * misc/syslog.c (vsyslog): Only use cleanup handler if
7244 _LIBC_REENTRANT is defined [PR libc/2924].
7246 * libio/Makefile (tests): Add bug-ungetwc2.
7247 * libio/bug-ungetwc2.c: New file.
7249 * manual/install.texi: Typographical and grammatical cleanup.
7250 Patch by Dennis Grace <dgrace@us.ibm.com>.
7252 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7253 parameter if mtflag. Patch by <jeongyun@innovay.com>.
7255 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
7256 always "&". Adjust callers.
7257 Add "_" prefix to several generated definitions.
7258 Patch by paul@serice.net [PR libc/3158].
7260 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7262 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7263 size of _dl_arm_cap_flags.
7264 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7266 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7269 2002-03-22 H.J. Lu <hjl@gnu.org>
7271 * scripts/firstversions.awk: Check the first version.
7273 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7275 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7276 dependencies must be stable to work correctly.
7277 Reported by martin.lubich@datacon.at.
7279 * libio/bug-ungetwc1.c: New file.
7280 * libio/Makefile (tests): Add bug-ungetwc1.
7282 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7283 if stream was last used for writing.
7285 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7286 number [PR libc/3111].
7288 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7290 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7292 2002-04-02 Jakub Jelinek <jakub@redhat.com>
7294 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7295 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7296 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7297 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7298 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7300 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7302 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7305 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7307 * sysdeps/i386/fpu/s_fabs.S: New file.
7308 * sysdeps/i386/fpu/s_fabsf.S: New file.
7309 * sysdeps/i386/fpu/s_fabsl.S: New file.
7310 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7311 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7312 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7314 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7316 * rt/tst-shm.c (do_test): Add one more test for size of shared
7319 2002-03-29 Wolfram Gloger <wg@malloc.de>
7321 * malloc/malloc.c: Add short description and prototypes for
7322 malloc_get_state, malloc_set_state and posix_memalign, for
7323 consistency and to avoid warnings with -Wstrict-prototypes.
7324 Reported by Andreas Jaeger <aj@suse.de>.
7326 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7328 * po/gl.po: Update from translation team.
7330 2002-03-31 Roland McGrath <roland@frob.com>
7332 * hurd/hurdselect.c (_hurd_select): Fix
7333 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7334 Use a union rather than casts to compare mach_msg_type_t as int.
7336 2002-03-25 Roland McGrath <roland@frob.com>
7338 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7339 check off the end of NAME when it's shorter than 2 chars.
7340 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7342 2002-03-17 Roland McGrath <roland@frob.com>
7344 * sysdeps/mach/hurd/i386/sys/io.h: New file.
7345 * sysdeps/mach/hurd/i386/ioperm.c: New file.
7346 * sysdeps/mach/hurd/i386/Dist: Add them.
7347 * sysdeps/mach/hurd/i386/Versions
7348 (libc: GLIBC_2.2.6): New set, add ioperm.
7349 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7350 (mach_interface_list): Check for mach_i386.defs.
7351 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7352 * sysdeps/mach/configure: Regenerated.
7354 2002-03-22 Ulrich Drepper <drepper@redhat.com>
7356 * po/fr.po: Update from translation team.
7358 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
7360 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7361 getpriority from syscalls list.
7363 2002-03-28 Andreas Jaeger <aj@suse.de>
7365 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7366 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7367 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7368 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7370 2002-03-27 Andreas Jaeger <aj@suse.de>
7372 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7373 sigcontext): Follow further kernel change.
7375 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7378 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7379 Change for struct sigcontext change.
7381 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7382 Follow changes in struct sigcontext.
7384 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7385 sysycall, use wrapper instead.
7387 2002-03-26 Andreas Jaeger <aj@suse.de>
7389 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7390 read and write accesses as detailed as possible.
7391 (__memcpy_by2): Likewise.
7392 (__memcpy_g): Likewise.
7393 (memmove): Likewise.
7395 (__memset_ccn_by4): Likewise.
7396 (__memset_ccn_by2): Likewise.
7397 (__memset_gcn_by4): Likewise.
7398 (__memset_gcn_by2): Likewise.
7400 (__memrchr): Likewise.
7401 (rawmemchr): Likewise.
7402 (__strlen_g): Likewise.
7403 (__strcpy_g): Likewise.
7404 (__mempcpy_by4): Likewise.
7405 (__mempcpy_by2): Likewise.
7406 (__mempcpy_byn): Likewise.
7407 (__stpcpy_g): Likewise.
7408 (__strncpy_by4): Likewise.
7409 (__strncpy_by2): Likewise.
7410 (__strncpy_byn): Likewise.
7411 (__strncpy_gg): Likewise.
7412 (__strcat_c): Likewise.
7413 (__strcat_g): Likewise.
7414 (__strncat_g): Likewise.
7415 (__strcmp_gg): Likewise.
7416 (__strncmp_g): Likewise.
7417 (__strchr_c): Likewise.
7418 (__strchr_g): Likewise.
7419 (__strchrnul_c): Likewise.
7420 (__strchrnul_g): Likewise.
7421 (__strrchr_c): Likewise.
7422 (__strrchr_g): Likewise.
7423 (__strrchr_c): Likewise.
7424 (__strrchr_g): Likewise.
7425 (__strcspn_c1): Likewise.
7426 (__strcspn_cg): Likewise.
7427 (__strcspn_g): Likewise.
7428 (__strcspn_g): Likewise.
7429 (__strspn_c1): Likewise.
7430 (__strspn_cg): Likewise.
7431 (__strspn_g): Likewise.
7432 (__strspn_g): Likewise.
7433 (__strpbrk_cg): Likewise.
7434 (__strpbrk_g): Likewise.
7435 (__strstr_cg): Likewise.
7436 (__strstr_g): Likewise.
7438 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
7439 Michal Ludvig <mludvig@suse.cz>.
7441 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7442 compatibilty, adjust for kernel changes.
7444 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7445 sigcontext): Adjust for kernel changes.
7447 2002-03-25 Andreas Jaeger <aj@suse.de>
7449 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7451 Reported by Artur Zaprzala <zybi@talex.com.pl>.
7453 2002-03-24 Andreas Jaeger <aj@suse.de>
7455 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7457 * stdio-common/tst-fdopen.c (main): Remove unused variable.
7459 * iconv/tst-iconv3.c (main): Use correct printf strings.
7461 2002-03-18 Roland McGrath <roland@frob.com>
7463 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7464 (CMGROUP_MAX): New macro.
7466 2002-03-23 Roland McGrath <roland@frob.com>
7468 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7469 * sysdeps/posix/shm_unlink.c: Likewise.
7471 2002-03-22 Roland McGrath <roland@frob.com>
7473 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7474 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7475 under --enable-libio.
7476 * sysdeps/mach/hurd/configure: Regenerated.
7478 2002-03-23 Roland McGrath <roland@frob.com>
7480 * sysdeps/mach/hurd/i386/Makefile
7481 (sysdep_routines, shared-only-routines): Don't add framestate,
7482 reverting 2001-10-02 change.
7483 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7484 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7485 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7486 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7487 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7488 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7489 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7490 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7491 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7492 Do it here instead, only if [$(unwind-find-fde) = yes].
7494 2002-03-23 Andreas Jaeger <aj@suse.de>
7496 * signal/signal.h: Fix typo. Patch by Steve Kemp
7497 <skx@tardis.ed.ac.uk>.
7499 2002-03-22 Andreas Jaeger <aj@suse.de>
7501 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7504 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7505 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7506 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7507 user_fpregs_struct): Rename fwd.
7509 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7510 Follow sigcontext changes.
7512 2002-03-22 Andreas Jaeger <aj@suse.de>
7514 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
7515 changes for NaNs on MIPS.
7516 Patch by Hartvig Ekner <hartvige@mips.com>.
7518 2002-03-21 Ulrich Drepper <drepper@redhat.com>
7520 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7521 Use realloc if too large.
7522 (addgrbyid): Likewise.
7523 * nscd/hstcache.c (addhstbyname): Likewise.
7524 (addhstbyaddr): Likewise.
7525 (addhstbynamev6): Likewise.
7526 (addhstbyaddrv6): Likewise.
7527 * nscd/pwdcache.c (addpwbyname): Likewise.
7528 (addpwbyuid): Likewise.
7530 2002-03-21 Andreas Jaeger <aj@suse.de>
7532 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7533 _fpstate): Add separate struct for x86-64.
7535 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7536 user_fpregs_struct): Change member names to follow kernel.
7538 2002-03-20 Ulrich Drepper <drepper@redhat.com>
7540 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7541 Correctly close the UDP connection right away [PR libc/3120].
7543 2002-03-20 Andreas Jaeger <aj@suse.de>
7545 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7546 user_fpregs_struct): Fix for changed kernel struct.
7547 (struct user_regs_struct): Likewise.
7548 (struct user): Likewise.
7549 Add 32-bit x86 compatibility.
7551 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7553 2002-03-19 Andreas Jaeger <aj@suse.de>
7555 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7557 2002-03-18 Andreas Jaeger <aj@suse.de>
7559 * iconvdata/Makefile: Only run tests when shared libs are
7562 2002-03-17 Andreas Jaeger <aj@suse.de>
7564 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7566 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7568 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7571 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7572 (CAUSE_SHIFT): New macro.
7573 Patch by Hartvig Ekner <hartvige@mips.com>.
7575 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7576 * sysdeps/generic/unwind-pe.h: Likewise.
7578 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7581 * libio/stdio.c (AL2): Define variant when visibility attribute is
7584 * include/libc-symbols.h (_INTVARDEF): Define variant when
7585 visibility attribute is not supported.
7587 2002-03-16 Ulrich Drepper <drepper@redhat.com>
7589 * po/fr.po: Update from translation team.
7591 2002-02-25 Bruno Haible <bruno@clisp.org>
7593 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7595 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7597 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7598 buffers if _IO_file_attach failed.
7600 * libio/fileops.c (_IO_file_open): Close file descriptor if
7601 _IO_SEEKOFF call failed.
7603 2002-03-15 H.J. Lu <hjl@gnu.org>
7604 Ulrich Drepper <drepper@redhat.com>
7606 * configure.in: Check for availability of
7607 init_array/fini_array/preinit_array handling in binutils.
7608 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7609 * config.make.in (have-initfini-array): New variable.
7611 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7613 * stdio-common/tst-printf.c (main): Comment out one test which
7614 checked the compiler's ability to fold floating-point constants
7615 but not really printf.
7616 (rfg3): Make s const.
7617 * stdio-common/tst-printf.sh: Adjust for removed test.
7619 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7620 internal function. Adjust for internal_function calling convention.
7621 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7622 as internal_function.
7624 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7627 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7628 declaration and definition.
7629 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7631 * nss/getXXent_r.c: Likewise.
7632 * nss/nsswitch.h (db_lookup_function): Add internal_function to
7635 * include/time.h: Declare __localtime_r as hidden.
7637 * include/aliases.h: Declare __getaliasent_r as hidden.
7638 * include/grp.h: Declare __getgrent_r as hidden.
7639 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7640 __getservent_r, and __getprotoent_r as hidden.
7641 * include/pwd.h: Declare __getpwent_r as hidden.
7642 * include/shadow.h: Declare __getspent_r as hidden.
7643 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7645 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7646 and __gconv_transliterate as hidden.
7647 Add internal_function to __gconv_get_path declaration.
7648 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7649 definition. Add attribute_hidden to __gconv_read_conf definition.
7651 2002-03-14 Ulrich Drepper <drepper@redhat.com>
7653 * elf/rtld.c: Declare _environ as hidden.
7654 * sysdeps/generic/dl-environ.c: Likewise.
7655 * sysdeps/generic/dl-sysdep.c: Likewise.
7657 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7658 _dl_mcount_internal as hidden.
7660 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7661 * sysdeps/generic/dl-brk.c: New file.
7662 * sysdeps/generic/dl-sbrk.c: New file.
7663 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7664 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7666 * elf/dl-minimal.c (malloc): Declare _end as hidden.
7667 (__errno_location): New function. Declare errno as hidden.
7668 * elf/rtld.c (_dl_argc): Define as hidden.
7669 (_dl_skip_args): Define as hidden.
7670 (_begin, _end): Declare as hidden.
7671 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7672 * sysdeps/generic/entry.h (_start): Declare as hidden.
7673 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7674 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7675 _dl_runtime_resolve and _dl_runtime_profile as hidden.
7676 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7678 2002-03-14 Roland McGrath <roland@frob.com>
7680 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7682 * Makeconfig (%.v.i, %.v): New implicit rules.
7683 (preprocess-versions): Variable removed.
7684 ($(common-objpfx)shlib-versions.v.i): New target giving just the
7685 shlib-versions input files as dependencies.
7686 ($(common-objpfx)soversions.i): Depend on that instead of the input
7687 files. Use it as input instead of using a pipeline.
7688 (postclean-generated): Append soversions.i, shlib-versions.v, and
7689 shlib-versions.v.i here.
7690 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7691 the Versions.def input files as dependencies.
7692 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7693 ($(common-objpfx)Versions.all): Depend on that instead of the input
7694 files. Use it as input instead of using a pipeline.
7695 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7696 (postclean-generated): Append those .v and .v.i files here.
7698 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7700 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7701 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7704 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7706 * sysdeps/generic/mp_clz_tab.c: New file.
7707 * sysdeps/i386/mp_clz_tab.c: New file.
7708 * sysdeps/hppa/mp_clz_tab.c: New file.
7709 * sysdeps/powerpc/mp_clz_tab.c: New file.
7710 * stdlib/Makefile (aux): Revert last patch.
7711 * math/Makefile (gmp-objs): Likewise.
7713 2002-03-13 Paul Eggert <eggert@twinsun.com>
7715 * time/strftime.c: Comment fixes for references to obsolescent
7716 standards, In most cases the simplest fix is to remove the
7717 confusing comments. Cross-referencing all the standards properly
7718 is a bit of a pain, and it should be enough to put that info in
7719 the documentation as I did in my recent time.texi patch.
7721 2002-03-13 Paul Eggert <eggert@twinsun.com>
7723 * manual/time.texi (Formatting Calendar Time):
7724 ISO C99 also specifies the E and O modifiers.
7725 %P is a GNU extension, and is not in ISO C99.
7726 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7727 %T is also in ISO C99.
7728 The RFC 822 example is not valid in arbitrary locales.
7729 Reword the POSIX.2 wording slightly, to make it a bit clearer
7730 that POSIX.2 formats are also supported by later POSIX versions.
7731 If a format was introduced in ISO C99 it is also required by
7734 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7736 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7737 _sys_nerr_internal with INTVARDEF2.
7738 * include/libc-symbols.h (INTVARDEF2): New macro.
7739 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7740 (_sys_nerr_internal): Library.
7742 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7743 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7745 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7747 2002-03-13 Wolfram Gloger <wg@malloc.de>
7749 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7751 2002-03-02 Andreas Schwab <schwab@suse.de>
7753 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7754 'h' flag and positional arg.
7755 * stdio-common/tst-printf.c (rfg3): New function to test
7756 positional arguments.
7757 (main): Fix some warnings.
7759 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7761 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7762 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7764 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7766 * grp/initgroups.c (__nss_group_data): Declare as hidden.
7768 * include/locale.h (_nl_C_locobj): Declare as hidden.
7770 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7771 * time/strptime.c (_nl_C_LC_TIME): Likewise.
7773 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7775 * include/sys/gmon.h: Declare _gmonparam as hidden.
7777 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7778 (__ctype32_wctrans): Likewise.
7779 (__ctype32_width): Likewise.
7781 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7784 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7786 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
7787 hidden. Change all users of these variables.
7789 * posix/regex_internal.h (__re_error_msgid): Renamed from
7790 re_error_msgid. Declare as hidden.
7791 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
7794 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7795 (__printf_function_table): Likewise.
7796 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7798 (__printf_function_table): Likewise.
7800 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7801 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7803 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7804 * nss/nsswitch.c: Declare _nss_*_database as hidden.
7806 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7807 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7809 2002-03-12 Ulrich Drepper <drepper@redhat.com>
7811 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7812 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7813 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7814 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7815 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7816 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7817 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7818 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7819 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7820 _nl_C_LC_CTYPE_width: Declare as hidden.
7821 * include/locale.h: Declare _nl_locale_file_list.
7822 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
7823 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
7824 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
7825 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
7826 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
7827 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
7828 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
7829 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
7830 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
7831 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
7832 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
7833 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
7834 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7835 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7836 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7837 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7838 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7839 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7840 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7841 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
7842 _nl_C_LC_CTYPE_width, and as hidden.
7843 * locale/findlocale.c: Declare _nl_C as hidden.
7844 * locale/newlocale.c: Likewise.
7845 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
7846 _nl_locale_file_list.
7847 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
7848 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
7849 Define _nl_C_locobj as hidden.
7851 * malloc/mtrace.c (_mtrace_file): Define as hidden.
7852 (_mtrace_line): Likewise.
7854 * include/time.h: Declare __mon_yday as hidden.
7855 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
7857 * libio/libioP.h: Declare __libio_codecvt as hidden.
7858 * libio/fileops.c: Declare __libio_translit as hidden.
7859 * libio/iofwide.c: Define __libio_translit as hidden.
7861 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
7862 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
7863 * login/getutline_r.c: Likewise.
7864 * login/utmpname.c: Likewise.
7866 * login/utmp-private.h: Declare __libc_utmp_file_functions,
7867 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
7868 __libc_utmp_file_name as hidden.
7870 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
7871 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
7872 * locale/freelocale.c: Likewise.
7873 * locale/lc-time.c: Likewise.
7875 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
7876 (__libc_ptyname2): Likewise.
7877 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
7879 (__libc_ptyname2): Likewise.
7881 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
7882 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
7883 * sysdeps/generic/init-first.c: Likewise.
7884 * sysdeps/i386/init-first.c: Likewise.
7885 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7886 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7887 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7888 * sysdeps/sh/init-first.c: Likewise.
7889 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7890 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7892 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
7893 (_itowa_upper_digits): Likewise.
7895 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
7896 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
7899 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
7900 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
7901 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
7902 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
7904 * gmon/gmon.c (__bb_head): Define as hidden.
7905 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
7907 * argp/argp-parse.c (_argp_hang): Define as static.
7909 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
7910 handling in latest compilers.
7912 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
7914 * libio/fileops.c (_IO_file_jumps): Likewise.
7915 * libio/stdfiles.c (_IO_list_all): Likewise.
7916 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
7918 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
7920 * include/malloc.h: Add __libc_malloc_initialized declaration
7921 here. Mark variable hidden.
7922 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
7924 * elf/dl-open.c (__libc_argc): Declare as hidden.
7925 (__libc_argv): Likewise.
7926 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
7927 (__libc_argv): Likewise.
7928 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
7929 __libc_argv as hidden.
7930 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7931 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7932 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7933 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7935 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
7936 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
7937 * stdlib/erand48.c: Likewise.
7938 * stdlib/jrand48.c: Likewise.
7939 * stdlib/lcong48.c: Likewise.
7940 * stdlib/lrand48.c: Likewise.
7941 * stdlib/mrand48.c: Likewise.
7942 * stdlib/nrand48.c: Likewise.
7943 * stdlib/seed48.c: Likewise.
7944 * stdlib/srand48.c: Likewise.
7946 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
7947 (_itoa_lower_digits_internal): New declaration.
7948 (_itoa_upper_digits_internal): New declaration.
7949 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
7950 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
7951 (_itoa_upper_digits_internal): New declaration.
7952 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
7954 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
7955 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
7957 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
7958 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7960 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
7961 (_itowa_lower_digits): Likewise.
7962 (_itowa_upper_digits): Likewise.
7963 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
7964 (_itowa_upper_digits): Likewise.
7966 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
7967 not already defined.
7968 (GERMANIC_PLURAL): Declare as hidden.
7970 * posix/getopt.c (__getopt_initialized): Declare as hidden.
7971 (attribute_hidden): Define as empty macro if not already defined.
7973 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
7974 (__gconv_max_path_elem_len): Likewise.
7975 (__gconv_path_envvar): Likewise.
7977 * math/Makefile (gmp-objs): Remove mp_clz_tab.
7978 * stdlib/Makefile (aux): Remove mp_clz_tab.
7979 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
7981 * stdlib/exit.h (__exit_funcs): Declare as hidden.
7983 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
7985 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
7986 _nl_category_names, _nl_category_name_sizes, _nl_current,
7987 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
7989 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
7990 (_nl_current_default_domain): Likewise
7991 (_nl_state_lock): Likewise.
7992 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
7993 (_nl_current_default_domain): Likewise
7994 (_nl_state_lock): Likewise.
7995 * intl/bindtextdom.c (_nl_state_lock): Likewise.
7997 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
7998 (_fpioconst_pow10): Likewise.
8000 * include/time.h (_tmbuf): Add attribute_hidden.
8002 * time/tzset.c (tzstring_list): Define as static.
8004 * include/time.h: Add attribute_hidden to __tzname_cur_max and
8005 __use_tzfile declaration.
8007 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8008 and __wcsmbs_last_locale declaration.
8010 2002-02-25 Paul Eggert <eggert@twinsun.com>
8012 * timezone/Makefile (tzbases): Move systemv from here...
8013 (tzlinks): to here, since the entries in systemv were all changed
8014 from Zone to Link lines in tz-2001a. Bug reported (and patch
8015 tested) by Peter Breitenlohner.
8017 2002-03-07 Jakub Jelinek <jakub@redhat.com>
8019 * time/tst-posixtz.c (tests): Add new tests.
8020 (main): Test whether tzset() sets daylight properly.
8022 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8024 * time/tzset.c (tz_compute): Move __daylight, __tzname and
8025 __tzname_cur_max setting...
8026 (tzset_internal): ...here.
8028 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8030 * time/tzset.c (compute_change): Don't return any value.
8031 (tz_compute): Likewise. Don't handle southern hemisphere here.
8032 (__tz_convert): But here.
8034 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8036 * manual/examples/mkfsock.c: Include <string.h> as well.
8037 Patch by Alain De Carolis <alaind@wseurope.com>.
8039 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
8041 * posix/regexec.c (re_match): Fix incorrect register sizes.
8042 (re_search): Likewise.
8044 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8046 * posix/regcomp.c (regfree): Remove a disused condition.
8047 * posix/regex_internal.c (re_acquire_state): Likewise.
8048 (re_acquire_state_context): Likewise.
8049 (register_state): Remove a redundant malloc invocation.
8050 * posix/regex_internal.h: (re_state_table_entry): Simplify
8053 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8055 * posix/regcomp.c (regcomp): Add __builtin_expect to error
8056 handling conditions.
8057 (regerror): Likewise.
8058 (regfree): Likewise.
8059 (re_compile_internal): Likewise.
8060 (init_dfa): Likewise.
8061 (init_word_char): Likewise.
8062 (create_initial_state): Likewise.
8063 (analyze): Likewise.
8064 (analyze_tree): Likewise.
8065 (duplicate_node): Likewise.
8066 (calc_eclosure): Likewise.
8067 (calc_eclosure_iter): Likewise.
8069 (parse_reg_exp): Likewise.
8070 (parse_branch): Likewise.
8071 (parse_expression): Likewise.
8072 (parse_subexp): Likewise.
8073 (parse_dup_op): Likewise.
8074 (parse_bracket_exp): Likewise.
8075 (build_equiv_class): Likewise.
8076 (build_charclass): Likewise.
8077 (build_word_op): Likewise.
8078 (fetch_number): Likewise.
8079 (create_tree): Likewise.
8080 (duplicate_tree): Likewise.
8081 * posix/regex.c (BE): New macro.
8082 * posix/regexec.c (re_match): Add __builtin_expect to error
8083 handling conditions.
8084 (re_match_2): Likewise.
8085 (re_search): Likewise.
8086 (re_search_internal): Likewise.
8087 (check_matching): Likewise.
8088 (proceed_next_node): Likewise.
8089 (set_regs): Likewise.
8090 (sift_states_backward): Likewise.
8091 (add_epsilon_backreference): Likewise.
8092 (transit_state): Likewise.
8093 (transit_state_sb): Likewise.
8094 (transit_state_mb): Likewise.
8095 (transit_state_bkref): Likewise.
8096 (transit_state_bkref_loop): Likewise.
8097 (build_trtable): Likewise.
8098 (group_nodes_into_DFAstates): Likewise.
8099 (match_ctx_init): Likewise.
8100 (match_ctx_add_entry): Likewise.
8101 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8102 to error handling conditions.
8103 (re_string_construct_toupper): Likewise.
8104 (build_wcs_buffer): Likewise.
8105 (build_wcs_upper_buffer): Likewise.
8106 (build_upper_buffer): Likewise.
8107 (re_string_translate_buffer): Likewise.
8108 (re_node_set_alloc): Likewise.
8109 (re_node_set_init_1): Likewise.
8110 (re_node_set_init_2): Likewise.
8111 (re_node_set_init_copy): Likewise.
8112 (re_node_set_intersect): Likewise.
8113 (re_node_set_init_union): Likewise.
8114 (re_node_set_merge): Likewise.
8115 (re_node_set_insert): Likewise.
8116 (re_dfa_add_node): Likewise.
8117 (re_acquire_state): Likewise.
8118 (re_acquire_state_context): Likewise.
8119 (create_new_state_common): Likewise.
8120 (register_state): Likewise.
8121 (create_ci_new_state): Likewise.
8122 (create_cd_new_state): Likewise.
8123 (re_string_context_at): Remove redundant condition.
8125 2002-01-16 Roger Sayle <roger@eyesopen.com>
8127 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8129 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8131 2002-03-11 Jakub Jelinek <jakub@redhat.com>
8133 * sysdeps/i386/elf/configure.in: Fix comment.
8135 * sysdeps/sparc/sparc64/configure.in: New file.
8136 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8137 if .dynamic comes before .got.
8138 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8140 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8141 HP_TIMING_ACCUM): Fix typos.
8143 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8145 * string/strfry.c: Add some more randomness to the seed.
8146 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8148 * po/es.po: Update from translation team.
8149 * po/fr.po: Likewise.
8151 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8153 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8154 when determining type of format.
8155 Patch by James Antill <james@anqd.org> [PR libc/2787].
8157 2002-03-04 Jakub Jelinek <jakub@redhat.com>
8159 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8161 2002-03-11 Roland McGrath <roland@frob.com>
8163 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8165 * Versions.def (libc): Add GLIBC_2.2.6.
8166 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8167 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8168 __errno_location instead of __hurd_errno_location, and don't inline it.
8169 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8170 * hurd/errno.c: New file.
8171 * hurd/Makefile (routines): Add errno.
8173 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8175 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8176 ridiculously large widths and precisions [PR libc/3026].
8178 2002-03-11 Andreas Jaeger <aj@suse.de>
8180 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8182 Patch by Susanne Oberhauser <froh@SuSE.de>.
8184 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8186 * inet/rexec.c (ahostbuf): Define as static.
8188 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8189 (__ctype32_wctrans): Likewise.
8190 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8191 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8192 (__ctype32_wctrans): Likewise.
8193 (__ctype32_width): Likewise.
8195 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8196 They were never exported anyway.
8198 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8199 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
8201 * include/sys/gmon.h: Declare _gmonparam.
8203 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8204 symbols for getdents64. They were never exported.
8206 2002-03-09 Roland McGrath <roland@frob.com>
8208 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8209 Reported by Jon Arney <jarney1@cox.net>.
8211 2002-02-23 Roland McGrath <roland@frob.com>
8213 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8215 (__hurd_errno_location): Function removed.
8217 2002-03-06 Andreas Jaeger <aj@suse.de>
8219 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8222 2002-03-04 Andreas Jaeger <aj@suse.de>
8224 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8226 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8229 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8231 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8233 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8235 * sysdeps/x86_64/bits/setjmp.h: New file.
8237 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8239 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8241 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8243 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8244 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8246 2002-02-28 Bo Thorsen <bo@suse.de>
8248 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8251 2002-03-03 Andreas Jaeger <aj@suse.de>
8253 * sysdeps/x86_64/bits/wordsize.h: New file.
8255 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8256 * elf/tst-tlsmod1.c: Likewise.
8258 * posix/regcomp.c: Get regex.h from include dir for internal
8261 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8262 to libc-internal.h and include it.
8263 * include/libc-internal.h: Add __init_misc.
8265 * misc/init-misc.c: Include libc-internal.h for prototypes.
8267 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8269 * misc/error.c [_LIBC]: Include libioP.h for prototype of
8272 2002-03-03 Ulrich Drepper <drepper@redhat.com>
8274 * posix/regcomp.c: Compatibility changes to allow using the code
8277 2002-02-28 Hartvig Ekner <hartvige@mips.com>
8279 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8282 2002-03-02 Ulrich Drepper <drepper@redhat.com>
8284 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8285 of .str elements in the returned data structure.
8287 * elf/elf.h: Add Alpha TLS bits.
8289 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8291 * sysdeps/unix/sysv/linux/nice.c: New file.
8293 2002-03-01 Ulrich Drepper <drepper@redhat.com>
8295 * elf/Makefile (dl-routines): Add dl-origin.
8296 (elide-routines.os): Add dl-origin.
8297 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8298 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8300 * include/libc-symbols.c: Define attribute_hidden depending on
8301 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
8303 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8304 * elf/dl-load.c: Likewise.
8305 * elf/rtld.c: Likewise.
8306 * include/unistd.h: Declare __libc_enable_secure_internal.
8307 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8308 Use INTUSE with __libc_enable_secure.
8309 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8311 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8312 * elf/dl-error.c: Likewise,
8313 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8315 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8316 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8317 function definition. Use INTDEF with _dl_get_origin.
8318 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8320 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8321 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
8323 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8324 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8325 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8327 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8328 * elf/dl-deps.c: Likewise.
8329 * elf/dl-error.c: Likewise.
8330 * elf/dl-fini.c: Likewise.
8331 * elf/dl-init.c: Likewise.
8332 * elf/dl-load.c: Likewise.
8333 * elf/dl-lookup.c: Likewise.
8334 * elf/dl-reloc.c: Likewise.
8335 * elf/dl-version.c: Likewise.
8336 * elf/do-lookup.h: Likewise.
8337 * sysdeps/arm/dl-machine.h: Likewise.
8338 * sysdeps/cris/dl-machine.h: Likewise.
8339 * sysdeps/hppa/dl-machine.h: Likewise.
8340 * sysdeps/i386/dl-machine.h: Likewise.
8341 * sysdeps/m68k/dl-machine.h: Likewise.
8342 * sysdeps/powerpc/dl-machine.h: Likewise.
8343 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8344 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8345 * sysdeps/sh/dl-machine.h: Likewise.
8346 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8347 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8348 * sysdeps/x86_64/dl-machine.h: Likewise.
8349 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
8350 _dl_argv[0]. Use INTUSE with _dl_argv.
8351 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8352 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8354 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8356 * elf/rtld.c (_rtld_global): Remove .protected.
8357 (_rtld_local): Strong alias to _rtld_global.
8358 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8360 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8361 _rtld_local instead of _rtld_global.
8362 (_rtld_local): Add hidden extern, possibly in .sdata section.
8363 * configure.in: Add tests for visibility attribute and .sdata.
8364 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8365 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8366 * sysdeps/arm/dl-machine.h: Likewise.
8367 * sysdeps/generic/ldsodefs.h: Likewise.
8368 * sysdeps/hppa/dl-machine.h: Likewise.
8369 * sysdeps/cris/dl-machine.h: Likewise.
8370 * sysdeps/i386/dl-machine.h: Likewise.
8371 * sysdeps/ia64/dl-machine.h: Likewise.
8372 * sysdeps/m68k/dl-machine.h: Likewise.
8373 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8374 * sysdeps/mips/dl-machine.h: Likewise.
8375 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8376 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8377 * sysdeps/sh/dl-machine.h: Likewise.
8378 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8379 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8380 * sysdeps/x86_64/dl-machine.h: Likewise.
8382 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8384 * login/login.c (login): Always initialize ut_line field
8387 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8389 * sysdeps/i386/Makefile (sysdep_routines): Add
8391 (shared-only-routines): Likewise.
8392 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8393 (shared-only-routines): Likewise.
8394 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8395 (shared-only-routines): Likewise.
8396 * sysdeps/wordsize-32/divdi3.c: New file.
8398 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8400 * locale/iso-4217.def: Remove obsolete currencies for countries
8403 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
8405 * posix/regcomp.c (regcomp): Remove a redundant condition.
8406 (init_word_char): Add a check on malloc failure.
8407 (create_initial_state): Likewise.
8408 (duplicate_node): Likewise.
8409 (calc_eclosure): Likewise.
8410 (calc_eclosure_iter): Likewise.
8411 (parse_expression): Likewise.
8412 (parse_bracket_exp): Remove unnecessary malloc invocations.
8413 (build_equiv_class): Likewise.
8414 (build_charclass): Likewise.
8415 * posix/regex_internal.c (re_node_set_intersect): Add a check
8417 (re_node_set_add_intersect): Likewise.
8418 (re_node_set_merge): Likewise.
8419 (re_acquire_state): Likewise.
8420 (re_acquire_state_context): Likewise.
8421 (create_newstate_common): Likewise.
8422 (register_state): Likewise.
8423 (create_ci_newstate): Likewise.
8424 (create_cd_newstate): Likewise.
8425 * posix/regex_internal.h: Fix prototypes of re_acquire_state
8426 and re_acquire_state_context.
8427 * posix/regexec.c (regexec): Suit it to the error handling of
8429 (re_match): Likewise.
8430 (re_search): Likewise.
8431 (re_search_internal): Add a check on malloc failure.
8432 (acquire_init_state_context): Likewise.
8433 (check_matching): Likewise.
8434 (proceed_next_node): Likewise.
8435 (set_regs): Likewise.
8436 (sift_states_backward): Likewise.
8437 (sift_states_iter_bkref): Likewise.
8438 (add_epsilon_backreference): Likewise.
8439 (transit_state): Likewise.
8440 (transit_state_sb): Likewise.
8441 (transit_state_mb): Likewise.
8442 (transit_state_bkref_loop): Likewise.
8443 (build_trtable): Likewise.
8444 (group_nodes_into_DFAstates): Likewise.
8445 (match_ctx_init): Likewise.
8446 (match_ctx_add_entry): Likewise.
8448 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8450 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8451 l_libname if profiling is enabled [PR libc/2916].
8453 * sysdeps/ia64/dl-tls.h: New file.
8455 2002-02-27 Jakub Jelinek <jakub@redhat.com>
8457 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8458 Work around an Alpha gas bug.
8460 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8462 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8463 uses read to load the catalog.
8464 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8466 2002-02-26 Ulrich Drepper <drepper@redhat.com>
8468 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8469 regex_internal.c, and regex_internal.h.
8470 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8471 * posix/regex.c: Complete rewrite.
8472 * posix/regexec.c: New file.
8473 * posix/regcomp.c: New file.
8474 * posix/regex_internal.c: New file.
8475 * posix/regex_internal.h: New file.
8476 * posix/regex.h (RE_ICASE): New macro.
8477 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8479 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8480 ungetwc. It's a macro.
8481 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8483 Reported by Jason Merrill <jason@redhat.com>.
8485 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8487 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8488 position to fp->_offset if it is set.
8489 * stdio-common/Makefile (tests): Add tst-fdopen.
8490 * stdio-common/tst-fdopen.c: New test.
8492 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8494 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8495 * stdio-common/tst-ungetc.c (main): Add another test.
8497 2002-02-25 Ulrich Drepper <drepper@redhat.com>
8499 * assert/assert-perr.c: Use INTUSE to reference functions and variables
8500 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
8501 aliases. Add prototypes for the new aliases.
8502 * assert/assert.c: Likewise.
8503 * include/libc-symbols.h: Likewise.
8504 * include/stdio.h: Likewise.
8505 * include/netinet/in.h: Likewise.
8506 * include/rpc/auth.h: Likewise.
8507 * include/rpc/auth_unix.h: Likewise.
8508 * include/rpc/key_prot.h: Likewise.
8509 * include/rpc/pmap_prot.h: Likewise.
8510 * include/rpc/pmap_rmt.h: Likewise.
8511 * include/rpc/rpc_msg.h: Likewise.
8512 * include/rpc/xdr.h: Likewise.
8513 * inet/gethstbyad_r.c: Likewise.
8514 * inet/gethstbynm2_r.c: Likewise.
8515 * inet/gethstbynm_r.c: Likewise.
8516 * inet/gethstent_r.c: Likewise.
8517 * inet/in6_addr.c: Likewise.
8518 * libio/__fpurge.c: Likewise.
8519 * libio/filedoalloc.c: Likewise.
8520 * libio/fileops.c: Likewise.
8521 * libio/ftello.c: Likewise.
8522 * libio/ftello64.c: Likewise.
8523 * libio/genops.c: Likewise.
8524 * libio/iofclose.c: Likewise.
8525 * libio/iofdopen.c: Likewise.
8526 * libio/iofflush.c: Likewise.
8527 * libio/iofflush_u.c: Likewise.
8528 * libio/iofgetpos.c: Likewise.
8529 * libio/iofgetpos64.c: Likewise.
8530 * libio/iofgets.c: Likewise.
8531 * libio/iofgets_u.c: Likewise.
8532 * libio/iofopen.c: Likewise.
8533 * libio/iofopncook.c: Likewise.
8534 * libio/iofputs.c: Likewise.
8535 * libio/iofread.c: Likewise.
8536 * libio/iofread_u.c: Likewise.
8537 * libio/iofsetpos.c: Likewise.
8538 * libio/iofsetpos64.c: Likewise.
8539 * libio/ioftell.c: Likewise.
8540 * libio/iofwrite.c: Likewise.
8541 * libio/iogetline.c: Likewise.
8542 * libio/iogets.c: Likewise.
8543 * libio/iogetwline.c: Likewise.
8544 * libio/iolibio.h: Likewise.
8545 * libio/iopadn.c: Likewise.
8546 * libio/iopopen.c: Likewise.
8547 * libio/ioseekoff.c: Likewise.
8548 * libio/ioseekpos.c: Likewise.
8549 * libio/iosetbuffer.c: Likewise.
8550 * libio/iosetvbuf.c: Likewise.
8551 * libio/ioungetc.c: Likewise.
8552 * libio/ioungetwc.c: Likewise.
8553 * libio/iovdprintf.c: Likewise.
8554 * libio/iovsprintf.c: Likewise.
8555 * libio/iovsscanf.c: Likewise.
8556 * libio/libioP.h: Likewise.
8557 * libio/memstream.c: Likewise.
8558 * libio/obprintf.c: Likewise.
8559 * libio/oldfileops.c: Likewise.
8560 * libio/oldiofclose.c: Likewise.
8561 * libio/oldiofdopen.c: Likewise.
8562 * libio/oldiofgetpos.c: Likewise.
8563 * libio/oldiofgetpos64.c: Likewise.
8564 * libio/oldiofopen.c: Likewise.
8565 * libio/oldiofsetpos.c: Likewise.
8566 * libio/oldiofsetpos64.c: Likewise.
8567 * libio/oldiopopen.c: Likewise.
8568 * libio/oldstdfiles.c: Likewise.
8569 * libio/putc.c: Likewise.
8570 * libio/setbuf.c: Likewise.
8571 * libio/setlinebuf.c: Likewise.
8572 * libio/stdfiles.c: Likewise.
8573 * libio/stdio.c: Likewise.
8574 * libio/strops.c: Likewise.
8575 * libio/vasprintf.c: Likewise.
8576 * libio/vscanf.c: Likewise.
8577 * libio/vsnprintf.c: Likewise.
8578 * libio/vswprintf.c: Likewise.
8579 * libio/wfiledoalloc.c: Likewise.
8580 * libio/wfileops.c: Likewise.
8581 * libio/wgenops.c: Likewise.
8582 * libio/wstrops.c: Likewise.
8583 * malloc/mtrace.c: Likewise.
8584 * misc/error.c: Likewise.
8585 * misc/syslog.c: Likewise.
8586 * nss/getXXbyYY_r.c: Likewise.
8587 * nss/getXXent_r.c: Likewise.
8588 * nss/hosts-lookup.c: Likewise.
8589 * stdio-common/getw.c
8590 * stdio-common/printf-prs.c: Likewise.
8591 * stdio-common/printf_fp.c: Likewise.
8592 * stdio-common/printf_size.c: Likewise.
8593 * stdio-common/putw.c: Likewise.
8594 * stdio-common/scanf.c: Likewise.
8595 * stdio-common/sprintf.c: Likewise.
8596 * stdio-common/tmpfile64.c: Likewise.
8597 * stdio-common/vfprintf.c: Likewise.
8598 * stdio-common/vfscanf.c: Likewise.
8599 * stdlib/strfmon.c: Likewise.
8600 * sunrpc/auth_des.c: Likewise.
8601 * sunrpc/auth_none.c: Likewise.
8602 * sunrpc/auth_unix.c: Likewise.
8603 * sunrpc/authdes_prot.c: Likewise.
8604 * sunrpc/authuxprot.c: Likewise.
8605 * sunrpc/clnt_perr.c: Likewise.
8606 * sunrpc/clnt_raw.c: Likewise.
8607 * sunrpc/clnt_tcp.c: Likewise.
8608 * sunrpc/clnt_udp.c: Likewise.
8609 * sunrpc/clnt_unix.c: Likewise.
8610 * sunrpc/key_call.c: Likewise.
8611 * sunrpc/key_prot.c: Likewise.
8612 * sunrpc/openchild.c: Likewise.
8613 * sunrpc/pm_getmaps.c: Likewise.
8614 * sunrpc/pm_getport.c: Likewise.
8615 * sunrpc/pmap_clnt.c: Likewise.
8616 * sunrpc/pmap_prot.c: Likewise.
8617 * sunrpc/pmap_prot2.c: Likewise.
8618 * sunrpc/pmap_rmt.c: Likewise.
8619 * sunrpc/rpc_cmsg.c: Likewise.
8620 * sunrpc/rpc_prot.c: Likewise.
8621 * sunrpc/svc_authux.c: Likewise.
8622 * sunrpc/svc_raw.c: Likewise.
8623 * sunrpc/svc_simple.c: Likewise.
8624 * sunrpc/svc_tcp.c: Likewise.
8625 * sunrpc/svc_udp.c: Likewise.
8626 * sunrpc/svc_unix.c: Likewise.
8627 * sunrpc/xdr.c: Likewise.
8628 * sunrpc/xdr_array.c: Likewise.
8629 * sunrpc/xdr_mem.c: Likewise.
8630 * sunrpc/xdr_rec.c: Likewise.
8631 * sunrpc/xdr_ref.c: Likewise.
8632 * sunrpc/xdr_stdio.c: Likewise.
8633 * sysdeps/generic/_strerror.c: Likewise.
8634 * sysdeps/generic/printf_fphex.c: Likewise.
8635 * sysdeps/generic/tmpfile.c: Likewise.
8636 * sysdeps/gnu/errlist.awk: Likewise.
8637 * sysdeps/gnu/errlist.c: Likewise.
8639 * libio/Makefile (routines): Remove iosprint.
8640 * libio/iosprintf.c: Removed
8643 2002-02-24 Ulrich Drepper <drepper@redhat.com>
8645 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8646 non_dynamic_init and exported now.
8647 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8648 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8650 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8651 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8652 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8654 2002-02-23 Ulrich Drepper <drepper@redhat.com>
8656 * elf/dl-close.c (free_slotinfo): Check for end of list and return
8659 * locale/iso-639.def: Add language codes for Walloon.
8661 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8662 total number of relocations performed.
8664 * elf/sprof.c (load_profdata): If do_test provide information as
8665 to why loading failed.
8666 * elf/dl-profile.c (_dl_start_profile): Initialize all of
8669 * csu/set-init.c: Moved to...
8670 * sysdeps/mach/hurd/set-init.c: ...here. New file.
8671 * csu/Makefile: Don't compile set-init.
8672 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8673 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8675 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8676 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8677 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8679 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
8682 2002-02-22 Ulrich Drepper <drepper@redhat.com>
8684 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8685 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8686 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8687 (_dl_deallocate_tls): New function.
8688 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8691 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8693 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8694 * stdio-common/tst-fseek.c (main): Add test for this.
8696 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
8698 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8700 2002-02-19 Jakub Jelinek <jakub@redhat.com>
8702 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8703 pointer before dereferencing.
8705 2002-02-18 Roland McGrath <roland@frob.com>
8707 * sysdeps/mach/hurd/times.c: Fix typo in last change.
8709 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8710 Use task_policy in place of task_priority.
8712 * sysdeps/generic/bits/mman.h
8713 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8714 * sysdeps/mach/msync.c: New file.
8716 * sysdeps/mach/powerpc/syscall.S: New file.
8718 * mach/msg.c [MACH_MSG_OVERWRITE]
8719 (__mach_msg_trap, __mach_msg_overwrite): New functions.
8720 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8722 * sysdeps/mach/configure.in: Check for clock.defs to put into
8723 mach_interface_list.
8724 * sysdeps/mach/configure: Regenerated.
8726 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8727 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8728 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8729 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8730 (mach-shortcuts): Add device_read_overwrite_request,
8731 device_read_overwrite, vm_read_overwrite, thread_switch.
8733 * configure.in (base_machine): Set to $machine by default.
8734 * configure: Regenerated.
8736 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8737 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8738 * sysdeps/mach/configure: Regenerated.
8739 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8741 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8743 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8745 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8746 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8748 2002-02-17 Roland McGrath <roland@frob.com>
8750 * sysdeps/mach/hurd/times.c
8751 [NO_CREATION_TIME] (startup_time): New static variable.
8752 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8753 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8754 creation_time from task_basic_info.
8755 (__times): Use __gettimeofday instead of __host_get_time.
8757 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8758 Use untyped Mach IPC message format.
8760 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8762 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8763 _S_catch_exception_raise_state_identity,
8764 _hurdsig_fault_catch_exception_raise_state,
8765 _hurdsig_fault_catch_exception_raise_state_identity.
8767 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8769 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8770 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8772 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8773 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8775 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8776 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
8777 them as no-op macros.
8778 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8779 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8781 * sysdeps/powerpc/dl-machine.h
8782 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8784 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8785 Use untyped Mach IPC message format.
8787 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8788 Handle untyped Mach IPC message formats.
8790 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8791 Expect different argument conventions when this is defined.
8792 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8793 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8794 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8795 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8796 for OSF Mach variant.
8797 (faulted): Use mig_reply_error_t for REPLY.
8798 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8799 in __thread_set_exception_ports call.
8800 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8801 __mach_port_set_attributes in place of __mach_port_set_qlimit.
8803 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8804 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8805 on Darwin, which includes bogons.
8807 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8808 variable LOADBASE so it's not declared when it's not used.
8810 2002-02-16 Roland McGrath <roland@frob.com>
8812 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8813 to use BI.creation_time.
8815 * mach/Machrules (MIG): Add -x c to CPP value passed down.
8817 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8818 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8819 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8820 host_page_size instead of vm_statistics.
8822 * sysdeps/mach/Makefile (mach-before-compile): Don't include
8823 mach_interface.h here, since not all variants use that name.
8825 * sysdeps/mach/configure.in: Add some checks for Mach headers
8826 to ensure a sane installation.
8827 (mach_interface_list): Define this variable by checking for .defs
8828 files found in various variants.
8829 * configure.in (mach_interface_list): AC_SUBST this.
8830 * config.make.in (mach-interface-list): New substituted variable.
8831 * mach/Makefile (user-interfaces): Define this using the value
8832 of $(mach-interface-list) instead of mach, mach4.
8833 Updated other references to mach_interface to use it as well.
8835 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
8837 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
8838 mig_reply_error_t for OSF Mach variant.
8840 * mach/Makefile (routines): Remove bootprivport.
8841 * mach/bootprivport.c: File removed. It has never been used.
8843 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
8844 Grok the OSF flavor of message format.
8845 (mach_msg_destroy_port): For MAKE_SEND and
8846 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
8847 no-senders notification.
8849 2002-02-06 Roland McGrath <roland@frob.com>
8851 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
8852 to here if 2.0 compatibility enabled ...
8853 (libc: GLIBC_2.1.3): ... from here.
8855 2002-02-15 Ulrich Drepper <drepper@redhat.com>
8857 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
8859 * elf/dl-close.c (_dl_close): Likewise.
8861 2002-02-14 Ulrich Drepper <drepper@redhat.com>
8863 * elf/Makefile: Add rules to build and run tst-tls8.
8864 * elf/tst-tls8.c: New file.
8865 * elf/tst-tlsmod4.c: New file.
8867 * stdlib/test-a64l.c (tests): Add more test cases.
8869 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
8870 Reported by Walter Harms <WHarms@bfs.de>.
8872 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
8874 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
8875 definitions for struct sigcontext.
8876 Suggested by David Mosberger-Tang.
8878 2002-02-13 Ulrich Drepper <drepper@redhat.com>
8880 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
8881 for removing reference of module in slotinfo list.
8882 (_dl_close): Use remove_slotinfo.
8883 * sysdeps/generic/dl-tls.c: General pretty printing.
8884 (oom): Define only if SHARED.
8885 (_dl_next_tls_modid): Correct starting point for the case we assume
8886 there is a gap. Add missing instruction grouping (doh!). Correct
8887 tests for reaching maximum index.
8888 * elf/Makefile: Add rules to build and run tst-tls7.
8889 * elf/tst-tls7.c: New file.
8890 * elf/tst-tlsmod3.c: New file.
8892 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
8894 * elf/tst-tlsmod2.c: Likewise.
8896 * elf/dl-close.c (_dl_close): When closing an object using TLS
8897 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
8898 true. Increment dl_tls_generation only if we closed any TLS-using
8900 * elf/tst-tls6.c: New file.
8901 * elf/Makefile: Add rules to build and run tst-tls6.
8903 * po/da.po: Update from translation team.
8905 * locale/categories.def: Fix typo [PR libc/2948].
8906 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
8908 * locale/iso-4217.def: Update from official version [PR libc/2950].
8909 * glibcbug.in: Honor TMPDIR [PR libc/2951].
8910 * locale/programs/ld-collate.c (collate_finish): Bail out with a
8911 message if input is too confusion instead of using assert.
8912 (collate_read): Don't crash on unknown symbol [PR libc/2952].
8913 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
8915 * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
8916 * elf/tst-tls2.c: Likewise.
8917 * elf/tst-tls3.c: Likewise.
8919 2002-02-13 Jakub Jelinek <jakub@redhat.com>
8921 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
8923 2002-02-13 Ulrich Drepper <drepper@redhat.com>
8925 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
8926 if this is really necessary.
8928 * elf/dl-close.c (_dl_close): Implement freeing entries in the
8930 (free_mem): Free memory for the slotinfo array if possible.
8932 2002-02-12 Andreas Schwab <schwab@suse.de>
8934 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
8936 2002-02-12 Ulrich Drepper <drepper@redhat.com>
8938 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
8940 (oom): New function.
8941 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
8942 (_dl_determine_tlsoffset): Likewise.
8943 (_dl_allocate_tls): Likewise.
8944 (__TLS_GET_ADDR): Define if not already defined.
8945 (_dl_tls_symaddr): New function.
8946 (allocate_and_init): New function.
8947 (__tls_get_addr): Actually implement handling of generation counter
8948 and deferred allocation.
8949 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
8950 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8952 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
8953 Declare _dl_tls_symaddr.
8954 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
8956 * include/link.h (struct link_map): Remove l_tls_nextimage and
8958 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
8959 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
8960 (_dl_vsym): Likewise.
8961 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
8963 (dl_main): Allow PT_TLS be present for empty segment. Remove
8964 nextimage list handling. Instead add all modules using TLS to
8965 dl_tls_dtv_slotinfo_list.
8966 * elf/dl-open.c (dl_open_worker): After successfully loading all
8967 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
8968 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
8969 empty segment don't do anything. Remove handling of initimage list.
8970 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
8971 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
8972 * elf/dl-minimal.c: Define __libc_memalign.
8973 * elf/dl-support.c: Remove _dl_initimage_list. Add
8974 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8976 * include/stdlib.h: Declare __libc_memalign.
8978 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
8979 * elf/tst-tls4.c: New file.
8980 * elf/tst-tls5.c: New file.
8981 * elf/tst-tlsmod2.c: New file.
8983 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
8985 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
8987 * elf/tst-tls1.c: Use test-skeleton.c.
8988 * elf/tst-tls2.c: Likewise.
8989 * elf/tst-tls3.c: Likewise.
8991 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
8993 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8995 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
8997 2002-02-10 Ulrich Drepper <drepper@redhat.com>
8999 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9001 * elf/tst-tls3.c: New file.
9002 * elf/tst-tlsmod1.c: New file.
9003 * elf/Makefile: Add rules to build and run tst-tls3.
9005 * sysdeps/i386/dl-machine.h: Include <tls.h>.
9006 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9009 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9011 * po/fr.po: Update from translation team.
9013 * elf/tls-macros.h: Add alternative macros for use in PIC.
9015 * elf/dl-lookup.c: Include <tls.h>.
9016 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9018 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9019 required by passing pointer to last element of the list.
9021 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9022 l_tls_initimage to a place where it actually is performed.
9024 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9025 after globfree() calls.
9027 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9028 (openaux): Pass open_mode as new last argument to _dl_map_object.
9029 (_dl_map_object_deps): Add new argument open_mode. Initialize
9030 open_mode element of args variable with it.
9031 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9032 _dl_map_object_deps.
9033 * elf/rtld.c (dl_main): Add zero as last parameter to
9034 _dl_map_object_deps call.
9035 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9036 * elf/nodlopen2.c: New file.
9037 * elf/nodlopenmod2.c: New file.
9038 * elf/Makefile: Add rules to build and run nodlopen2.
9040 * elf/tst-tls1.c: Move TLS helper macros to...
9041 * elf/tls-macros.h: ...here. New file.
9042 * elf/tst-tls2.c: New file.
9043 * elf/Makefile (tests): Add tst-tls2.
9044 (distribute): Add tls-macros.h.
9046 * po/sv.po: Update from translation team.
9048 * elf/tst-tls1.c (main): Add complete set of tests. Split
9049 architecture specific definitions from the actual test code.
9051 * po/tr.po: Update from translation team.
9053 2002-02-09 Ulrich Drepper <drepper@redhat.com>
9055 * elf/Makefile (tests): Add tst-tls1.
9056 * elf/tst-tls1.c: New file.
9058 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9059 alignment of TCB for now.
9061 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9062 initialization image for the application itself.
9064 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9065 loop to initialize TLS block.
9067 2002-02-08 Richard Henderson <rth@redhat.com>
9069 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9070 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9072 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9074 2002-02-09 Jakub Jelinek <jakub@redhat.com>
9076 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9078 2002-02-08 Ulrich Drepper <drepper@redhat.com>
9080 * po/ca.po: Update from translation team.
9081 * po/sk.po: Likewise.
9083 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9084 (dl_main): Move dtv/static TLS handling before relocation.
9085 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
9086 TLS_INIT_TP to allocate and install the dtv/static TLS block.
9087 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9088 so far uses TLS initialize GL(dl_tls_static_size) and
9089 GL(dl_tls_static_align) to account for the TCB.
9090 (_dl_allocate_tls): New function.
9091 * sysdeps/generic/ldsodefs.h (rtld_global): Add
9092 _dl_initial_dtv_malloced.
9094 * configure.in: Test for __builtin_memset more realistically.
9096 * csu/version.c (banner): If TLS support is available say so.
9098 2002-02-04 H.J. Lu <hjl@gnu.org>
9100 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9102 (__dl_runtime_resolve): Likewise.
9104 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9107 2001-11-15 H.J. Lu <hjl@gnu.org>
9109 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9110 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9112 * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9114 2002-02-07 H.J. Lu <hjl@gnu.org>
9116 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9118 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9121 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9123 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9125 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9126 ___tls_get_addr_internal.
9127 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9129 * po/ko.po: Update from translation team.
9131 2002-02-07 Jakub Jelinek <jakub@redhat.com>
9133 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9134 attribute, change __pad{1,2} type to unsigned int.
9135 (struct stat64): Remove packed attribute.
9137 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9139 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9141 2002-02-07 Andreas Schwab <schwab@suse.de>
9143 * configure.in: Fix check for -zcombreloc.
9145 2002-02-06 H.J. Lu <hjl@gnu.org>
9147 * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9148 * configure.in: Check if __builtin_memset really works.
9149 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9150 __GNUC_PREREQ (2, 96) before using __builtin_memset.
9152 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9154 * io/bug-ftw3.c (main): Don't try the test if root.
9156 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
9158 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9160 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9161 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9162 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9164 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9165 a weak alias for __clone.
9166 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9167 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9168 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9169 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9170 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9171 a weak alias for __mmap64.
9173 2002-02-05 H.J. Lu <hjl@gnu.org>
9175 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9176 (atomic_add): Likewise.
9177 (compare_and_swap): Likewise.
9178 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9180 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9182 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9184 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9185 alignment of the TCB and store total size and alignment of static
9186 TLS block in _dl_tls_static_size and _dl_tls_static_align.
9187 tls_index is a typedef.
9188 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9189 _dl_tls_static_align.
9190 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9191 * elf/dl-support.c: Define _dl_tls_static_size and
9192 _dl_tls_static_align.
9194 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9196 * configure.in: Add --without-tls option.
9197 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9198 --without-tls is given.
9200 * sysdeps/generic/dl-tls.c: Include <tls.h>.
9202 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9204 2002-02-06 Roland McGrath <roland@frob.com>
9206 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9207 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9209 * scripts/versions.awk: Improve error message for missing version.
9210 Each version inherits from the last one only if they have the same
9211 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9212 but not GLIBC_x and FOO_y.
9214 * scripts/firstversions.awk: Handle libraries that don't have each
9215 particular version named in the third column of shlib-versions.
9217 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9219 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9221 * Versions.def [ld]: Add GLIBC_2.3.
9222 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9223 * elf/Makefile (dl-routines): Add dl-tls.
9224 (distribute): Add dl-tls.h.
9225 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9226 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9227 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9228 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9229 along with the other info in the link map. Change queueing of init
9230 images for double linked list. Use _dl_next_tls_modid to compute
9232 * elf/rtld.c (_dl_start_final): Store alignment requirement
9233 along with the other info in rtld map and executable map.
9234 (dl_main): Add ld.so to the init image list if necessary. Compute
9235 final module ID with _dl_next_tls_modid.
9236 * include/link.h (struct link_map): Add l_tls_previmage and
9238 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9239 * sysdeps/i386/elf/Versions: New file.
9240 * sysdeps/generic/dl-tls.c: New file.
9241 * sysdeps/generic/dl-tls.h: New file.
9242 * sysdeps/i386/dl-tls.h: New file.
9244 2002-02-06 Roland McGrath <roland@frob.com>
9246 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9247 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9249 2002-01-05 Roland McGrath <roland@frob.com>
9251 * sysdeps/mach/configure.in: New file.
9252 * sysdeps/mach/configure: New generated file.
9254 * mach/Makefile (user-interfaces): Remove default_pager_helper.
9255 It has never been used by anything.
9257 2002-02-06 H.J. Lu <hjl@gnu.org>
9259 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9262 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9264 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9265 attribute((packed)) to counter stupid people misusing gcc options.
9266 (struct stat64): Likewise.
9268 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9270 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
9271 the variables which are used as booleans.
9273 2002-02-06 Andreas Jaeger <aj@suse.de>
9275 * include/libc-symbols.h (INTUSE): Renamed from INT.
9276 * elf/dl-deps.c: Change users.
9277 * sysdeps/generic/dl-sysdep.c: Likewise.
9278 * sysdeps/generic/dl-cache.c: Likewise.
9279 * elf/dl-reloc.c: Likewise.
9280 * elf/rtld.c: Likewise.
9281 * elf/dl-version.c: Likewise.
9282 * elf/dl-load.c: Likewise.
9283 * elf/dl-dst.h: Likewise.
9284 * elf/dl-init.c: Likewise.
9285 * elf/dl-error.c: Likewise.
9286 * elf/dl-fini.c: Likewise.
9287 * elf/dl-runtime.c: Likewise.
9288 * elf/do-lookup.h: Likewise.
9290 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9292 * stdio-common/_itowa.h: Likewise.
9294 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9296 * elf/dl-minimal.c: Define _itoa_lower_digits.
9298 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9301 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9302 loading modules with the DF_STATIC_TLS flag set.
9303 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9305 * include/link.h (struct link_map): Add l_flags field.
9306 * elf/elf.h (DF_STATIC_TLS): New definition.
9308 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9309 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
9311 * elf/rtld.c (process_dl_debug): Correct printing help message.
9312 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9315 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9316 definition and pass &errno in use of this variable.
9317 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9319 2002-02-04 Andreas Schwab <schwab@suse.de>
9321 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9322 * locale/programs/charmap-dir.c: Wrap calls that output messages
9323 with WITH_CUR_LOCALE. Include "localedef.h" first.
9324 * locale/programs/charmap.c: Likewise.
9325 * locale/programs/ld-address.c: Likewise.
9326 * locale/programs/ld-collate.c: Likewise.
9327 * locale/programs/ld-ctype.c: Likewise.
9328 * locale/programs/ld-identification.c: Likewise.
9329 * locale/programs/ld-measurement.c: Likewise.
9330 * locale/programs/ld-messages.c: Likewise.
9331 * locale/programs/ld-monetary.c: Likewise.
9332 * locale/programs/ld-name.c: Likewise.
9333 * locale/programs/ld-numeric.c: Likewise.
9334 * locale/programs/ld-paper.c: Likewise.
9335 * locale/programs/ld-telephone.c: Likewise.
9336 * locale/programs/ld-time.c: Likewise.
9337 * locale/programs/linereader.c: Likewise.
9338 * locale/programs/linereader.h: Likewise.
9339 * locale/programs/localedef.c: Likewise.
9340 * locale/programs/locfile.c: Likewise.
9341 * locale/programs/repertoire.c: Likewise.
9343 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9345 * elf/rtld.c (_dl_start_final): Determine load address to locate
9346 ehdr with GL(dl_rtld_map).l_map_start.
9348 * po/ca.po: Update from translation team.
9350 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9351 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9353 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9355 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9357 2002-02-04 Ulrich Drepper <drepper@redhat.com>
9359 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9360 * include/link.h (struct link_map): Add various members for TLS
9362 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9363 _rtld_tlsoffset, add _dl_initimage_list.
9364 * sysdeps/i386/dl-lookupcfg.h: New file.
9365 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9366 TLS relocation. When using TLS we now use RESOLVE_MAP.
9367 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9370 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9373 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9374 thread-pointer as soon as possible.
9375 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
9376 elements in rtld_global.
9377 * sysdeps/generic/tls.h: New file.
9378 * elf/Makefile (distribute): Add tls.h.
9379 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9380 relocations. Not complete yet.
9382 * resolv/resolv.h: Allow user to define __need_res_state and only
9383 define __res_start structure then.
9384 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9386 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9387 dl_cpuclock_offset initialization to _dl_start_final.
9388 (_dl_show_auxv): Avoid unnecessary sign extension.
9389 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9391 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9393 * config.h.in: Add HAVE_TLS_SUPPORT.
9394 * sysdeps/i386/elf/configure.in: New file.
9396 2002-02-03 Andreas Schwab <schwab@suse.de>
9398 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9399 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
9401 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
9403 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9404 alloca if the memory reqirements are too high.
9406 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9408 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9409 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9410 the former is available anyway and speed isn't important here.
9411 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9412 * elf/dl-version.c (match_symbol): Likewise.
9413 (_dl_check_map_versions): Likewise.
9414 * elf/rtld.c (process_envvars): Likewise.
9415 (print_statistics): Likewise.
9416 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9417 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
9418 bases. Add assert to catch uses of unimplemented features.
9419 (__strsep): Add assert to catch uses of unimplemented features.
9420 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
9421 and avoid inline optimization.
9422 * elf/rtld.c (process_envvars): Likewise.
9423 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9424 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9425 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9427 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9429 * stdio-common/_itoa.h: Minor simplifications of the code.
9430 * stdio-common/_itoa.c: Likewise.
9432 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9433 instead of _dl_printf for debugging info output.
9435 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9436 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9438 2002-02-01 H.J. Lu <hjl@gnu.org>
9440 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9441 (atomic_add): Likewise.
9442 (compare_and_swap): Return 0 only when failed to compare. Use
9445 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9448 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
9450 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9452 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9454 * elf/dl-minimal.c (__strsep): New minimal implementation.
9456 2002-02-02 Paul Eggert <eggert@twinsun.com>
9458 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9459 (__mktime_internal): If no tm_isdst is requested, prefer solutions
9460 with tm_isdst > 0 when the requested time falls within a
9461 spring-forward gap [PR libc/2894].
9463 2002-02-03 Andreas Schwab <schwab@suse.de>
9465 * stdio-common/tst-rndseek.c: Increase timeout.
9467 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9469 Change ld.so to not use functions which are exported. One cannot
9470 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
9472 * include/libc-symbols.h: Define INT and INTDEF.
9473 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9474 _dl_signal_error_internal, _dl_map_object_internal,
9475 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9476 _dl_lookup_versioned_symbol_internal,
9477 _dl_relocate_object_internal, _dl_debug_state_internal,
9478 _dl_start_profile_internal, and _dl_unload_cache_internal.
9479 * include/dlfcn.h: Declare _dl_catch_error_internal.
9480 * elf/rtld.c: Use INT for calls to any of the *_internal functions
9481 above. Add INTDEF to function definitions.
9482 * elf/dl-debug.c: Likewise.
9483 * elf/dl-deps.c: Likewise.
9484 * elf/dl-dst.h: Likewise.
9485 * elf/dl-error.c: Likewise.
9486 * elf/dl-fini.c: Likewise.
9487 * elf/dl-init.c: Likewise.
9488 * elf/dl-load.c: Likewise.
9489 * elf/dl-lookup.c: Likewise.
9490 * elf/dl-misc.c: Likewise.
9491 * elf/dl-open.c: Likewise.
9492 * elf/dl-profile.c: Likewise.
9493 * elf/dl-reloc.c: Likewise.
9494 * elf/dl-runtime.c: Likewise.
9495 * elf/dl-version.c: Likewise.
9496 * elf/do-lookup.h: Likewise.
9497 * sysdeps/generic/dl-cache.c: Likewise.
9498 * sysdeps/generic/dl-sysdep.c: Likewise.
9499 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9500 instead of _dl_init.
9501 * sysdeps/arm/dl-machine.h: Likewise.
9502 * sysdeps/cris/dl-machine.h: Likewise.
9503 * sysdeps/hppa/dl-machine.h: Likewise.
9504 * sysdeps/i386/dl-machine.h: Likewise.
9505 * sysdeps/ia64/dl-machine.h: Likewise.
9506 * sysdeps/m68k/dl-machine.h: Likewise.
9507 * sysdeps/mips/dl-machine.h: Likewise.
9508 * sysdeps/mips/mips64/dl-machine.h: Likewise.
9509 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9510 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9511 * sysdeps/sh/dl-machine.h: Likewise.
9512 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9513 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9514 * sysdeps/x86_64/dl-machine.h: Likewise.
9515 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9517 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9518 and _dl_debug_initialize.
9520 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
9522 * elf/rtld.c (dl_main): Avoid strrchr.
9523 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9524 result of readlink. Search from the back for '/'.
9526 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9527 strncpy if possible.
9529 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
9531 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
9532 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9533 strspn, and strcspn.
9534 (process_envvars): Don't use strcspn.
9536 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9537 (_dl_dst_substitute): Likewise.
9539 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9541 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9542 code which is never used when relocating ld.so itself.
9544 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9545 starting ld.so itself. Move l_addr variable initialization closer
9547 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9549 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9551 * Versions.def (libc): Add GLIBC_PRIVATE.
9552 (libdb, libnss_db, libdb1): Remove.
9553 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9554 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9555 (libpthread): Add GLIBC_PRIVATE.
9556 (libresolv): Likewise, remove GLIBC_2.1.
9557 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9558 GLIBC_2.2.3, GLIBC_2.3.
9559 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9560 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9561 _dl_sym, _dl_vsym): Likewise.
9562 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9563 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9564 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9565 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9566 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9567 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9568 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9569 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9571 (_dl_object_relocation_scope): Remove.
9572 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9573 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9574 __gconv_cache): Move to GLIBC_PRIVATE.
9575 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9576 __internal_setnetgrent): Likewise.
9577 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9578 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9579 * locale/Versions (__collate_element_hash, __collate_element_strings,
9580 __collate_symbol_classes, __collate_symbol_hash,
9581 __collate_symbol_strings, _nl_current_LC_COLLATE,
9582 _nl_current_LC_CTYPE): Likewise.
9583 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9584 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9585 (libnss_nis, libnss_nisplus): Likewise.
9586 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9587 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9588 (libnss_files): Move all symbols to GLIBC_PRIVATE.
9589 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9590 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9591 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9592 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9593 __ns_get16, __ns_samename): Likewise.
9594 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9595 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9597 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9598 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9599 __libc_connect): Likewise.
9600 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9602 * stdlib/Versions (__libc_system): Likewise.
9603 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9604 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9605 * sysdeps/ia64/fpu/Versions: Likewise.
9606 * sysdeps/ia64/Versions: Likewise.
9607 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9608 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9610 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9611 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9612 __libc_sigaction): Likewise.
9613 * termios/Versions (__libc_tcdrain): Likewise.
9615 * misc/sys/cdefs (__attribute_noinline__): Define.
9616 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9617 __attribute_noinline__.
9619 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9620 * elf/dl-xstat64.c: New file.
9621 * elf/dl-fxstat64.c: New file.
9622 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9623 don't export __fxstat64 at multiple versions.
9624 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9625 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9627 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
9629 * locale/program/ld-collate.c (collate_finish): Assign a wide
9630 char collation sequence value to multi character collating
9631 elements, and avoid over writing by non-character elements.
9633 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9635 * elf/Makefile (distribute): Add dl-procinfo.c.
9636 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9637 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9639 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9641 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9643 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9644 _rtld_global struct.
9645 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9646 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9647 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9648 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9649 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9650 _dl_fpu_control_set): Remove unused externs.
9651 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9652 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9653 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9654 related variables in _rtld_global struct.
9655 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9656 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9659 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9661 * sysdeps/generic/dl-procinfo.c: New file.
9663 2002-02-01 Andreas Schwab <schwab@suse.de>
9665 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9667 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9669 * elf/rtld.c (_dl_start): Mark as internal_function.
9670 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9672 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9673 General pretty printing.
9675 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9677 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9678 * elf/dl-reloc.c: Pretty printing.
9679 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9680 procinfo-related variables in rtld_global struct.
9681 * elf/dl-support.c: Likewise.
9682 * elf/rtld.c: Likewise.
9683 * sysdeps/i386/i686/Makefile: Likewise.
9684 * sysdeps/i386/i686/hp-timing.c: Likewise.
9685 * sysdeps/i386/i686/hp-timing.h: Likewise.
9686 * sysdeps/ia64/Makefile: Likewise.
9687 * sysdeps/ia64/hp-timing.c: Likewise.
9688 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9689 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9690 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9691 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9692 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9693 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9694 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9695 * sysdeps/x86_64/Makefile: Likewise.
9697 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9698 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9699 _dl_debug_fd to rtld_global.
9700 * elf/Versions: Likewise.
9701 * elf/dl-close.c: Likewise.
9702 * elf/dl-iteratephdr.c: Likewise.
9703 * elf/dl-lookup.c: Likewise.
9704 * elf/dl-misc.c: Likewise.
9705 * elf/dl-open.c: Likewise.
9706 * elf/dl-support.c: Likewise.
9707 * elf/do-lookup.h: Likewise.
9708 * elf/rtld.c: Likewise.
9709 * sysdeps/generic/dl-cache.c: Likewise.
9710 * sysdeps/generic/dl-sysdep.c: Likewise.
9711 * sysdeps/ia64/Versions: Likewise.
9712 * sysdeps/unix/clock_gettime.c: Likewise.
9713 * sysdeps/unix/clock_settime.c: Likewise.
9714 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9715 * sysdeps/sparc/Versions: Removed.
9716 * sysdeps/i386/i686/Versions : Removed.
9717 * sysdeps/x86_64/Versions: Removed.
9718 * configure.in: Define HAVE_PROTECTED if .protected is available.
9719 * config.h.in: Add entry for HAVE_PROTECTED.
9721 2002-01-31 Jakub Jelinek <jakub@redhat.com.
9723 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9724 code in struct _rtld_global. Export this struct, remove all
9725 exports for the signal variables.
9726 * sysdeps/arm/dl-machine: Likewise.
9727 * sysdeps/generic/dl-origin: Likewise.
9728 * sysdeps/generic/dl-sysdep: Likewise.
9729 * sysdeps/generic/dl-cache: Likewise.
9730 * sysdeps/hppa/dl-fptr: Likewise.
9731 * sysdeps/hppa/dl-machine: Likewise.
9732 * sysdeps/cris/dl-machine: Likewise.
9733 * sysdeps/i386/dl-machine: Likewise.
9734 * sysdeps/ia64/dl-machine: Likewise.
9735 * sysdeps/m68k/dl-machine: Likewise.
9736 * sysdeps/mach/hurd/dl-sysdep: Likewise.
9737 * sysdeps/mips/mips64/dl-machine: Likewise.
9738 * sysdeps/mips/dl-machine: Likewise.
9739 * sysdeps/powerpc/elf/libc-start: Likewise.
9740 * sysdeps/powerpc/dl-machine: Likewise.
9741 * sysdeps/powerpc/dl-start: Likewise.
9742 * sysdeps/sparc/sparc32/dl-machine: Likewise.
9743 * sysdeps/sparc/sparc64/dl-machine: Likewise.
9744 * sysdeps/sh/dl-machine: Likewise.
9745 * sysdeps/s390/s390-32/dl-machine: Likewise.
9746 * sysdeps/s390/s390-64/dl-machine: Likewise.
9747 * sysdeps/unix/sysv/aix/libc-start: Likewise.
9748 * sysdeps/unix/sysv/aix/start-libc: Likewise.
9749 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9750 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9751 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9752 * sysdeps/x86_64/dl-machine: Likewise.
9754 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9756 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9759 2002-01-31 Andreas Schwab <schwab@suse.de>
9761 * sysdeps/posix/readv.c: Check for ssize_t overflow.
9763 2002-01-31 Andreas Schwab <schwab@suse.de>
9765 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9766 reference to _dl_pagesize.
9768 2002-01-30 Ulrich Drepper <drepper@redhat.com>
9770 * Versions.def [ld]: Add GLIBC_2.3.
9771 * elf/dl-addr.c: Move global variables for SHARED code in struct
9772 _rtld_global. Export this struct, remove all exports for the
9774 * elf/dl-close.c: Likewise.
9775 * elf/dl-conflict.c: Likewise.
9776 * elf/dl-debug.c: Likewise.
9777 * elf/dl-deps.c: Likewise.
9778 * elf/dl-dst.h: Likewise.
9779 * elf/dl-error.c: Likewise.
9780 * elf/dl-fini.c: Likewise.
9781 * elf/dl-init.c: Likewise.
9782 * elf/dl-iteratephdr.c: Likewise.
9783 * elf/dl-libc.c: Likewise.
9784 * elf/dl-load.c: Likewise.
9785 * elf/dl-lookup.c: Likewise.
9786 * elf/dl-minimal.c: Likewise.
9787 * elf/dl-object.c: Likewise.
9788 * elf/dl-open.c: Likewise.
9789 * elf/dl-profile.c: Likewise.
9790 * elf/dl-profstub.c: Likewise.
9791 * elf/dl-reloc.c: Likewise.
9792 * elf/dl-runtime.c: Likewise.
9793 * elf/dl-support.c: Likewise.
9794 * elf/dl-sym.c: Likewise.
9795 * elf/dl-version.c: Likewise.
9796 * elf/do-lookup.h: Likewise.
9797 * elf/do-rel.h: Likewise.
9798 * elf/dynamic-link.h: Likewise.
9799 * elf/rtld.c: Likewise.
9800 * sysdeps/generic/dl-cache.c: Likewise.
9801 * sysdeps/generic/dl-sysdep.c: Likewise.
9802 * sysdeps/generic/ldsodefs.h: Likewise.
9803 * sysdeps/generic/libc-start.c: Likewise.
9804 * sysdeps/i386/dl-machine.h: Likewise.
9805 * sysdeps/ia64/dl-fptr.c: Likewise.
9806 * sysdeps/ia64/dl-machine.h: Likewise.
9807 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9808 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9809 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9810 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9811 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9812 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9813 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9814 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9816 2002-01-29 Ulrich Drepper <drepper@redhat.com>
9818 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9820 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9822 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
9824 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
9826 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
9828 2002-01-29 Ben Collins <bcollins@debian.org>
9830 * string/bits/string2.h (__mempcpy): Protect size arg for
9831 addition when using __builtin_memcpy.
9833 2002-01-29 Ulrich Drepper <drepper@redhat.com>
9835 * stdlib/Makefile (tests): Add tst-qsort.
9836 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
9838 * manual/signal.texi (Process Signal Mask): Document that
9839 pthread_sigmask, not sigprocmask, must be used in MT programs.
9840 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
9842 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
9844 * misc/Makefile (tests): Add tst-hsearch.
9845 * misc/tst-hsearch.c: New file.
9847 2002-01-18 Wolfram Gloger <wg@malloc.de>
9849 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
9850 * malloc/malloc.h: Likewise.
9851 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
9852 * malloc/arena.c: New file.
9853 * malloc/hooks.c: New file.
9854 * malloc/tst-mallocstate.c: New file.
9855 * malloc/Makefile: Add new testcase tst-mallocstate.
9856 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
9858 2002-01-28 Ulrich Drepper <drepper@redhat.com>
9860 * stdlib/msort.c: Remove last patch. The optimization violates the
9861 same rule which qsort.c had problems with.
9863 2002-01-27 Paul Eggert <eggert@twinsun.com>
9865 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
9866 to a pivot element that lies outside the array to be sorted, as
9867 ISO C99 requires that the comparison function be called only with
9868 addresses of array elements [PR libc/2880].
9870 2002-01-28 Ulrich Drepper <drepper@redhat.com>
9872 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
9873 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
9875 * timezone/asia: Update from tzdata2002b.
9876 * timezone/australasia: Likewise.
9877 * timezone/backward: Likewise.
9878 * timezone/europe: Likewise.
9879 * timezone/leapseconds: Likewise.
9880 * timezone/iso3166.tab: Likewise.
9881 * timezone/zone.tab: Likewise.
9883 2002-01-23 Richard Henderson <rth@redhat.com>
9885 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
9887 2002-01-28 Ulrich Drepper <drepper@redhat.com>
9889 * string/strxfrm.c: Allocate one more byte for rulearr and clear
9890 this element [PR libc/2855].
9892 * string/strcoll.c: Handle zero-length arguments specially
9895 2002-01-23 Jakub Jelinek <jakub@redhat.com>
9897 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
9898 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
9899 short lengths and constant src.
9900 (strcpy): Don't optimize for gcc 3.0+.
9901 (__stpcpy): For gcc 3.0+, don't use
9902 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
9903 for short string literal src.
9905 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
9907 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
9910 2001-01-22 Paul Eggert <eggert@twinsun.com>
9912 * manual/llio.texi (Linked Channels, Cleaning Streams):
9913 Make it clearer that a just-opened input stream might need cleaning.
9915 2002-01-21 H.J. Lu <hjl@gnu.org>
9917 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9918 Don't use label at end of compound statement.
9920 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
9922 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
9923 Remove test for negative integer arg; sin_pi does it correctly.
9925 2002-01-20 Ulrich Drepper <drepper@redhat.com>
9927 * nscd/Makefile (distribute): Filter out xmalloc.c.
9929 2002-01-19 Ulrich Drepper <drepper@redhat.com>
9931 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
9932 Set offset if read end wasn't the buffer end.
9933 (_IO_file_seekoff_mmap): New function.
9934 (_IO_file_xsgetn_mmap): New function.
9935 (_IO_file_jumps_mmap): Use the two new functions.
9936 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
9938 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
9939 _IO_file_underflow_mmap.
9940 * libio/iofopen.c: Don't position file descriptor at end of file.
9941 * libio/tst-widetext.c: Improve error messages.
9942 * stdio-common/tst-rndseek.c: Likewise.
9944 2002-01-18 Ulrich Drepper <drepper@redhat.com>
9946 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
9947 end of enum for !_GNU_SOURCE.
9948 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
9949 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
9950 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
9951 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
9952 values unless _GNU_SOURCE.
9954 * iconvdata/tcvn5712-1.c: Minor cleanups.
9956 2002-01-18 Andreas Schwab <schwab@suse.de>
9958 * sysdeps/unix/sysv/linux/configure.in
9959 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
9961 2002-01-16 Roger Sayle <roger@eyesopen.com>
9963 * stdlib/msort.c (msort_with_tmp): Replace implementation with
9964 more efficient "Towers of Hanoi" mergesort.
9965 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
9966 for generic, sizeof(int) and sizeof(long) variants respectively.
9968 2002-01-17 Ulrich Drepper <drepper@redhat.com>
9970 * manual/syslog.texi (openlog): Describe possible problems with
9972 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9974 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
9975 * nscd/connections.c (begin_drop_privileges): New function.
9976 (finish_drop_privileges): New function.
9977 (nscd_init): Call the new functions which also install all groups
9978 for the server user.
9979 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
9980 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9982 2002-01-17 H.J. Lu <hjl@gnu.org>
9984 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
9987 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
9989 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
9990 instructions for pointer operations.
9991 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
9993 2002-01-17 Andreas Jaeger <aj@suse.de>
9995 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
9996 __uint128_t build-in.
9998 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
9999 PowerPC, sync with 2.2 branch.
10001 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10003 * posix/getconf.c: Update copyright year.
10004 * nss/getent.c: Likewise.
10005 * nscd/nscd_nischeck.c: Likewise.
10006 * iconv/iconvconfig.c: Likewise.
10007 * iconv/iconv_prog.c: Likewise.
10008 * elf/ldconfig.c: Likewise.
10009 * catgets/gencat.c: Likewise.
10010 * csu/version.c: Likewise.
10011 * elf/ldd.bash.in: Likewise.
10012 * elf/sprof.c (print_version): Likewise.
10013 * locale/programs/locale.c: Likewise.
10014 * locale/programs/localedef.c: Likewise.
10015 * nscd/nscd.c (print_version): Likewise.
10016 * debug/xtrace.sh: Likewise.
10017 * malloc/memusage.sh: Likewise.
10018 * malloc/mtrace.pl: Likewise.
10020 2002-01-16 Andreas Schwab <schwab@suse.de>
10022 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10023 reliably remove "-ia64" from rtld name.
10025 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10027 * iconvdata/gb18030.c: Bug fixes and support for more characters.
10028 Patch by Yu Shao <yshao@redhat.com>.
10030 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
10032 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10033 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10034 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10036 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
10038 * sysdeps/s390/fpu/libm-test-ulps: Update.
10040 2002-01-11 Ulrich Drepper <drepper@redhat.com>
10042 * elf/elf.h: Update x86 relocations.
10044 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10046 * locale/programs/charmap.c (new_width): Check whether byte
10047 sequences for both ends of range have the same length.
10049 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10051 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10053 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10055 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10057 (__full_ieee754_sqrt): Add __attribute_used__.
10059 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10061 * sysdeps/generic/group_member.c (__group_member): Also check
10062 groups[0] [PR libc/2781].
10064 2002-01-08 Ulrich Drepper <drepper@redhat.com>
10066 * Makefile (distribute): Add scripts/cpp.
10067 * elf/Makefile (distribute): Add reldep6mod[01234].c,
10068 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10069 unwind-dw2-fde.h, and dwarf2.h.
10070 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10071 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10072 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10073 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10075 2002-01-07 Roland McGrath <roland@frob.com>
10077 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10078 volatile on type of ARGC so the compiler doesn't get clever.
10080 2002-01-07 Andreas Jaeger <aj@suse.de>
10082 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10083 * sysdeps/i386/bits/byteswap.h: Likewise.
10084 * sysdeps/ia64/bits/byteswap.h: Likewise.
10085 * sysdeps/m68k/bits/byteswap.h: Likewise.
10086 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10087 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10089 2002-01-02 Bruno Haible <bruno@clisp.org>
10091 * intl/plural.y: Fix %expect count.
10093 2002-01-03 Jakub Jelinek <jakub@redhat.com>
10095 * elf/Makefile (routines, shared-only-routines): Add
10096 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10097 * elf/elf.h (PT_GNU_EH_FRAME): Define.
10098 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10099 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10100 Optimize if .eh_frame section contains no FDEs.
10101 (__register_frame, __deregister_frame_info_bases,
10102 __deregister_frame): Likewise.
10103 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10104 DW_CFA_restore handling.
10106 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
10108 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10110 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10111 for x < 0.25 and restore original range reduction method.
10112 (__ieee754_lgammal_r): Make sure signgam is set before returning.
10114 2002-01-07 Ulrich Drepper <drepper@redhat.com>
10116 * libio/fileops.c (_IO_file_underflow_mmap): New function.
10117 (_IO_file_close_mmap): New function.
10118 (_IO_file_jumps_mmap): New variable.
10119 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10120 trying to convert rest of byte buffer.
10121 (_IO_wfile_underflow_mmap): New function.
10122 (_IO_wfile_jumps_mmap): New variable.
10123 * libio/iofopen.c (__fopen_maybe_mmap): New function.
10124 (__fopen_internal): New function. Split out from _IO_new_fopen.
10125 (_IO_new_fopen): Call __fopen_internal.
10126 * libio/iofopen64.c: Just call __fopen_internal.
10127 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10129 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10130 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10131 _IO_file_close_mmap.
10133 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10134 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10136 * stdio-common/Makefile (tests): Add tst-rndseek.
10137 * stdio-common/tst-rndseek.c: New file.
10139 2002-01-05 Roland McGrath <roland@frob.com>
10141 * config.h.in (HAVE_MIG_RETCODE): New #undef.
10142 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10143 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10144 * sysdeps/mach/hurd/configure: Regenerated.
10146 2002-01-03 Ulrich Drepper <drepper@redhat.com>
10148 * elf/elf.h: Add more TLS definitions.
10150 2002-01-02 Ulrich Drepper <drepper@redhat.com>
10152 * include/features.h (__GLIBC_MINOR__): Bump to 3.
10154 2002-01-02 Roland McGrath <roland@frob.com>
10156 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10157 __sigisemptyset. Don't use MASK uninitialized.
10159 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10160 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10161 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10162 __sigdelset, __sigaddset, __sigorset.
10164 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10165 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10167 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10168 _hurd_ports is null.
10170 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10171 for old CMU and new OSF Mach interface flavors.
10172 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10173 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10175 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10177 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10178 Pass extra arguments to task_create for OSF variant.
10179 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10181 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10182 conditional on [HAVE_AUX_VECTOR].
10184 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10185 mach_msg_timeout_t as type of final argument.
10187 * hurd/privports.c (__get_privileged_ports):
10188 Change host_priv_t to mach_port_t in argument type.
10189 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10192 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10193 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
10194 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10195 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10196 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10197 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10199 2002-01-01 Roland McGrath <roland@frob.com>
10201 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10203 2002-01-01 Ulrich Drepper <drepper@redhat.com>
10205 * include/stdlib.h: Define inlines for the _l variants of the strto*
10208 2002-01-01 Roland McGrath <roland@frob.com>
10210 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10212 * mach/Machrules (MIG): Set CPP as well as CC.
10214 2001-12-31 Ulrich Drepper <drepper@redhat.com>
10216 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10217 locale to parse /proc/loadavg [PR libc/2760].
10219 2001-12-31 Jakub Jelinek <jakub@redhat.com>
10221 * elf/dl-conflict.c: Include sys/param.h.
10222 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10223 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10225 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10226 literals to avoid warnings.
10228 2001-12-31 Andreas Jaeger <aj@suse.de>
10230 * configure.in: Don't check for gsed since we do not use it anywhere.
10232 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10234 * io/fts.c: Update from BSD to fix memory leaks.
10236 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10238 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10239 * elf/chroot_canon.c: Likewise.
10240 * elf/dl-object.c: Likewise.
10241 * iconv/iconv_charmap.c: Likewise.
10242 * iconv/iconv_prog.c: Likewise.
10243 * libio/iogetdelim.c: Likewise.
10244 * locale/lc-time.c: Likewise.
10245 * stdlib/canonicalize.c: Likewise.
10246 * sunrpc/svc.c: Likewise.
10247 * sysdeps/generic/glob.c: Likewise.
10249 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10251 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10252 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10253 remove high order bit from the program counter.
10254 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10256 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10258 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10259 unnecessary code and add missing reloc types.
10260 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10261 case for reloc type R_390_NONE.
10263 2001-12-28 Andreas Jaeger <aj@suse.de>
10265 * io/bug-ftw3.c: Include string.h for prototypes.
10267 * crypt/md5test.c (main): Remove unused variable.
10269 * dlfcn/modstatic.c: Add prototype to avoid warning.
10271 2001-12-26 Roland McGrath <roland@frob.com>
10273 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10274 check only (SS->pending & MASK) for the signal to return.
10275 From Jeroen Dekkers <jeroen@dekkers.cx>.
10277 2001-12-22 Roland McGrath <roland@frob.com>
10279 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10280 Use preprocessor #if conditionals instead of `if' to avoid
10281 warnings about divide by zero in dead code.
10283 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10284 _hurd_port_init, and __hurd_self_sigstate.
10286 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10288 2001-12-21 Andreas Jaeger <aj@suse.de>
10290 * elf/dblloadmod1.c: Add prototype to avoid warning.
10291 * elf/dblloadmod2.c: Likewise.
10292 * elf/dblloadmod3.c: Likewise.
10293 * elf/reldepmod5.c: Likewise.
10294 * elf/reldepmod6.c: Likewise.
10296 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10297 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10298 used on all architectures.
10300 * sunrpc/svc_tcp.c: Add noreturn attribute for
10301 svctcp_rendezvous_abort.
10302 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10304 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10307 2001-12-19 Jakub Jelinek <jakub@redhat.com>
10309 * manual/llio.texi (aio_fsync): Fix a typo.
10310 Patch by Tammy Fox <tfox@redhat.com>.
10312 2001-12-18 Jakub Jelinek <jakub@redhat.com>
10314 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10315 stack bias from child stack pointer before passing it to clone syscall.
10317 2001-12-18 Ulrich Drepper <drepper@redhat.com>
10319 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10321 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10322 Reported by Thorsten Kukuk <kukuk@suse.de>.
10324 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10327 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10329 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
10331 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10332 conforming: return EBADF if file descriptor is invalid and EINVAL
10333 if file descriptor is no valid tty.
10334 * login/tst-grantpt.c: New file.
10335 * login/Makefile (tests): Add tst-grantpt.
10337 2001-12-17 Ulrich Drepper <drepper@redhat.com>
10339 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10340 different than implemented in last patch.
10341 * io/bug-ftw3.c: Adjust test for changed handling of
10342 inaccessibility of toplevel dir.
10344 2001-12-16 Roland McGrath <roland@frob.com>
10346 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10347 * grp/initgroups.c (internal_getgrouplist): Likewise.
10349 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10350 `default:' to silence new GCC warning.
10351 Rewrite cast of lvalue to silence new GCC warning.
10353 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10355 * sysdeps/mach/hurd/spawni.c: New file, by me with a
10356 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10358 2001-12-14 Ulrich Drepper <drepper@redhat.com>
10360 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
10361 Patch by Stephen R. van den Berg.
10363 * crypt/md5.h: Define md5_uintptr.
10365 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10367 * libio/tst_swprintf.c (main): Add test for string argument with
10369 * stdio-common/Makefile (tests): Add tst-sprintf.
10370 * stdio-common/tst-sprintf.c: New file.
10372 2001-12-13 Andreas Schwab <schwab@suse.de>
10374 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10375 zero precision with wide character string format.
10377 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
10379 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10380 but have a user supplied buffer, return the empty buffer, not NULL.
10382 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10384 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10385 Patch by Eric Sharkey <sharkey@netrics.com>.
10387 * crypt/md5test.c (main): Add test for multiple calls to
10388 __md5_process_bytes to itererate over input string.
10390 2001-12-12 Ulrich Drepper <drepper@redhat.com>
10392 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10393 from __nis_findfastest. Take timeout value from parameter.
10394 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10395 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10396 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
10398 2001-12-12 Andreas Jaeger <aj@suse.de>
10400 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10401 combreloc test so that it works in this case.
10403 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10405 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
10407 * sysdeps/sh/Makefile: New file.
10408 * sysdeps/sh/_mcount.S: New file.
10409 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10410 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10412 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10414 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10415 limitation [PR libc/2564].
10417 2001-12-11 Jakub Jelinek <jakub@redhat.com>
10419 * elf/Makefile (dl-routines): Add conflict.
10420 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10421 (ld.so): Add _begin local symbol.
10422 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10424 * elf/dl-deps.c (_dl_build_local_scope): New function.
10425 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10427 * elf/do-rel.h (VALIDX): Define.
10428 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10429 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10431 * elf/dl-conflict.c: New file.
10432 * elf/dl-lookup.c (_dl_debug_bindings): New function.
10433 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
10435 (_dl_lookup_symbol_skip): Likewise.
10436 (_dl_lookup_versioned_symbol): Likewise.
10437 (_dl_lookup_versioned_symbol_skip): Likewise.
10438 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10439 define to ElfW(Rel).
10440 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10441 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10443 Don't adjust address dynamic tags if l_addr is 0.
10444 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10445 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10446 (VALIDX, ADDRIDX): Define.
10447 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10448 (dl_main): Print library list for LD_TRACE_PRELINKING.
10449 If prelinking information can be used, skip relocating libraries and
10450 call _dl_resolve_conflicts instead.
10451 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10452 * elf/dl-load.c (_dl_map_object): Don't create fake libs
10453 if LD_TRACE_PRELINKING.
10454 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10456 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10457 (DL_DEBUG_PRELINK): Define.
10458 (_dl_resolve_conflicts): Add prototype.
10460 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10461 .plt for prelinked libraries where prelinking info cannot be used.
10462 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10463 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10464 * sysdeps/arm/bits/link.h: New file.
10465 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10466 content of .got[1].
10467 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10468 (ELF_MACHINE_PLT_REL): Define.
10469 (elf_machine_rela, elf_machine_rela_relative): New functions.
10470 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10471 of adjusting it if prelinked and prelinking cannot be used.
10472 * sysdeps/i386/bits/link.h: New file.
10473 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10474 content of .got[1].
10475 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10476 (ELF_MACHINE_PLT_REL): Define.
10477 (elf_machine_rela, elf_machine_rela_relative): New functions.
10478 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10479 of adjusting it if prelinked and prelinking cannot be used.
10480 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10481 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
10482 to find out map for R_PPC_JMP_SLOT relocs.
10483 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10484 (OPCODE_BA): Define.
10485 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10486 libraries where prelinking info cannot be used.
10487 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10488 (elf_machine_fixup_plt): Call sparc_fixup_plt.
10489 (elf_machine_rela): Set value to 0 if relocating conflicts.
10490 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10491 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10492 (sparc64_fixup_plt): Fix a typo.
10493 (elf_machine_rela): Set value to 0 if relocating conflicts.
10494 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10495 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10496 libraries where prelinking info cannot be used.
10497 * sysdeps/sh/bits/link.h: New file.
10498 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10499 content of .got[1].
10500 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10501 of adjusting it if prelinked and prelinking cannot be used.
10502 * sysdeps/s390/s390-32/bits/link.h: New file.
10503 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10504 Save original content of .got[1].
10505 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10506 of adjusting it if prelinked and prelinking cannot be used.
10507 * sysdeps/s390/s390-64/bits/link.h: New file.
10508 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10509 Save original content of .got[1].
10510 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10511 of adjusting it if prelinked and prelinking cannot be used.
10512 * sysdeps/x86_64/bits/link.h: New file.
10513 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10514 Save original content of .got[1].
10515 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10516 of adjusting it if prelinked and prelinking cannot be used.
10518 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10520 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10521 where appropriate instead of numbers. Little optimizations.
10523 2001-12-10 Roland McGrath <roland@frob.com>
10525 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10528 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10529 set to GLIBC_2.2.5, not GLIBC_2.2.4.
10531 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10532 Fix conditionals so this is set by default for stdio and not for libio.
10533 * sysdeps/mach/hurd/configure: Regenerated.
10535 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
10537 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10539 2001-12-10 Ulrich Drepper <drepper@redhat.com>
10541 * io/Makefile (tests): Add bug-ftw3.
10542 * io/bug-ftw3.c: New file.
10544 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10545 matches and GLOB_NOCHECK is set.
10546 * posix/globtest.sh: Correct expected result for NOCHECK test.
10548 * po/ca.po: Update from translation team.
10550 2001-12-09 Ulrich Drepper <drepper@redhat.com>
10552 Implement transliteration of characters in strings of the locale
10554 * locale/programs/linereader.c: Adjust for additional parameter to
10556 (get_string): If character <Uxxxx> is not found try to transliterate
10558 * locale/programs/ld-ctype.c: Adjust for additional parameter to
10559 lr_token. Add const to charmap parameter of all functions.
10560 (find_translit, find_translit2): New functions.
10561 * locale/programs/charmap.c: Adjust for additional parameter to
10563 * locale/programs/repertoire.c: Likewise.
10564 * locale/programs/linereader.h: Likewise.
10565 * locale/programs/ld-address.c: Likewise. Add const to charmap
10566 parameter of all functions.
10567 * locale/programs/ld-collate.c: Likewise.
10568 * locale/programs/ld-identification.c: Likewise.
10569 * locale/programs/ld-measurement.c: Likewise.
10570 * locale/programs/ld-messages.c: Likewise.
10571 * locale/programs/ld-monetary.c: Likewise.
10572 * locale/programs/ld-name.c: Likewise.
10573 * locale/programs/ld-numeric.c: Likewise.
10574 * locale/programs/ld-paper.c: Likewise.
10575 * locale/programs/ld-paper.c: Likewise.
10576 * locale/programs/ld-telephone.c: Likewise.
10577 * locale/programs/ld-time.c: Likewise.
10578 * locale/programs/locfile.c: Likewise.
10579 * locale/programs/localedef.c: Likewise.
10580 * locale/programs/localedef.h: Likewise.
10581 * locale/programs/locfile.h: Likewise. Add declaration for
10583 * locale/programs/simple-hash.c: Add const to first parameter of
10584 find_entry, iterate_table, and lookup.
10585 * locale/programs/simple-hash.h: Likewise.
10586 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
10588 * include/locale.h: Define __LC_LAST.
10589 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10591 2001-12-07 Geoff Keating <geoffk@redhat.com>
10593 * sysdeps/powerpc/Dist: Update for recent FP changes.
10594 * sysdeps/powerpc/fpu/Dist: Likewise.
10596 2001-12-07 Andreas Schwab <schwab@suse.de>
10598 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10600 2001-12-06 Geoff Keating <geoffk@redhat.com>
10602 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10603 save/restore functions here.
10604 (libm-support): Don't define these functions here.
10605 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10607 * sysdeps/powerpc/fe_nomask.c: Move to...
10608 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10609 * sysdeps/powerpc/fprrest.S: Move to...
10610 * sysdeps/powerpc/fpu/fprrest.S: ... here.
10611 * sysdeps/powerpc/fprsave.S: Move to...
10612 * sysdeps/powerpc/fpu/fprsave.S: ... here.
10614 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10616 * sysdeps/unix/sysv/linux/opensock.c: New file.
10618 2001-12-06 Geoff Keating <geoffk@redhat.com>
10620 * config.make.in (with-fp): Define from configure.
10621 * configure.in: Substitute with_fp.
10622 * configure: Regenerate.
10623 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10624 specified, and don't change FPU environment.
10626 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10628 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10629 * assert/assert.c: Check result of __asprintf call and don't use
10630 string if it failed.
10631 * assert/assert-perr.c: Likewise.
10632 * inet/rcmd.c: Likewise.
10633 * locale/programs/localedef.c (main): Check result of
10634 construct_output_path and exit if it failed.
10635 (construct_output_path): Check result of asprintf and mkdir calls and
10636 fail if they failed.
10637 * posix/getopt.c: Check result of __asprintf calls and fail if
10639 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10641 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10643 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10645 * sysdeps/generic/strncase.c: Likewise.
10646 * string/tester.c: Add tests for strcasecmp and strncasecmp.
10648 2001-12-05 Geoff Keating <geoffk@redhat.com>
10650 * scripts/cpp: Test the exit status from 'type', not 'awk'.
10652 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10653 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10654 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10655 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10656 * sysdeps/powerpc/fclrexcpt.c: Move to...
10657 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10658 * sysdeps/powerpc/fpu_control.h: Move to...
10659 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10661 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10663 * iconvdata/ibm1129.h: Remove duplicate mappings.
10664 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
10665 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10666 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10668 * timezone/zic.c: Fix handling of turnaround times.
10669 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10671 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
10673 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10676 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10678 * posix/regex.c: For use outside glibc defined bounded pointer
10679 macros here. Patch by Jim Meyering <jim@meyering.net>.
10681 * iconvdata/Makefile (modules): Add TCVN5712-1.
10682 * iconvdata/TESTS: Add TCVN5712-1.
10683 * iconvdata/gconv-modules: Likewise.
10684 * iconvdata/tcvn5712-1.c: New file.
10685 * iconvdata/testdata/TCVN-5712: New file.
10686 * iconvdata/testdata/TCVN-5712..UTF8: New file.
10688 2001-12-04 Ulrich Drepper <drepper@redhat.com>
10690 * iconvdata/cp1258.c: Optimize conversion from UCS4.
10692 2001-12-02 Roland McGrath <roland@frob.com>
10694 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10696 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10697 Reported by Jeff Bailey <jbailey@nisa.net>.
10699 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10700 Reported by Jeff Bailey <jbailey@nisa.net>.
10702 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10703 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10704 Reported by Jeff Bailey <jbailey@nisa.net>.
10706 2001-12-01 Roland McGrath <roland@frob.com>
10708 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10709 missing backslash in test arguments.
10710 * sysdeps/mach/hurd/configure: Regenerated.
10712 2001-11-26 Roland McGrath <roland@frob.com>
10714 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10715 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10717 2001-11-30 Ulrich Drepper <drepper@redhat.com>
10719 * iconvdata/Makefile (modules): Add ARMSCII-8.
10720 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10721 * iconvdata/armscii-8.c: New file.
10723 2001-11-29 Jakub Jelinek <jakub@redhat.com>
10725 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10726 don't match, fix {{a,b},c} globbing, clean up.
10727 Patch by Flavio Veloso <flaviovs@magnux.com>.
10728 * posix/globtest.sh: Add new tests.
10730 2001-11-29 Andreas Jaeger <aj@suse.de>
10732 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10733 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10735 * sysdeps/generic/abort.c: Include libioP.h for
10736 _IO_flush_all_lockp prototype.
10738 2001-11-29 Ulrich Drepper <drepper@redhat.com>
10740 * posix/regex.h: Define __restrict_arr correctly.
10742 2001-11-28 Ulrich Drepper <drepper@redhat.com>
10744 * iconvdata/ibm1163.c: New file.
10745 * iconvdata/ibm1163.h: New file.
10746 * iconvdata/ibm1164.c: New file.
10747 * iconvdata/ibm1164.h: New file.
10748 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10749 * iconvdata/Makefile: Likewise.
10750 * iconvdata/testdata/IBM1163: New file.
10751 * iconvdata/testdata/IBM1163..UTF8: New file.
10752 * iconvdata/testdata/IBM1164: New file.
10753 * iconvdata/testdata/IBM1164..UTF8: New file.
10754 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10756 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
10757 * iconvdata/ibm1124.h: Likewise.
10758 * iconvdata/ibm1132.h: Likewise.
10759 * iconvdata/ibm1133.h: Likewise.
10760 * iconvdata/ibm1160.h: Likewise.
10761 * iconvdata/ibm1161.h: Likewise.
10762 * iconvdata/ibm1162.h: Likewise.
10763 * iconvdata/ibm856.h: Likewise.
10764 * iconvdata/ibm922.h: Likewise.
10765 * iconvdata/ibm930.h: Likewise.
10766 * iconvdata/ibm932.h: Likewise.
10767 * iconvdata/ibm933.h: Likewise.
10768 * iconvdata/ibm935.h: Likewise.
10769 * iconvdata/ibm937.h: Likewise.
10770 * iconvdata/ibm939.h: Likewise.
10771 * iconvdata/ibm943.h: Likewise.
10772 * iconvdata/ibm930.c: Pretty printing.
10773 * iconvdata/ibm937.c: Avoid access accross array boundary.
10775 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10776 the current locale's codeset.
10777 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10778 empty input string.
10779 * iconv/iconv_prog.c: Pass empty strings as default value for to-
10780 and from-charset. Don't determine locale's charset here.
10782 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
10783 as the old _IO_flush_all but lock only if parameter is nonzero.
10784 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10785 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10786 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10787 if libio is used [PR libc/2575].
10789 2001-11-28 Jakub Jelinek <jakub@redhat.com>
10791 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10792 __signbitl): Only define for ISO C99.
10794 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
10796 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10797 herrnop to NETDB_INTERNAL if we run out of buffer space.
10799 2001-11-28 Ulrich Drepper <drepper@redhat.com>
10801 * nss/nss_files/files-XXX.c (internal_getent): Correct input
10802 overflow test for platforms with signed char.
10803 Reported by Andrew Haley <aph@cambridge.redhat.com>.
10805 2001-11-28 Bruno Haible <bruno@clisp.org>
10807 * locale/programs/simple-hash.c (lookup_2): Remove function.
10808 (insert_entry_2): Call lookup instead of lookup_2.
10810 2001-03-04 Bruno Haible <bruno@clisp.org>
10812 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10814 2001-10-31 Bruno Haible <bruno@clisp.org>
10816 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10818 2001-03-21 Bruno Haible <bruno@clisp.org>
10820 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10821 chokes on empty macro arguments.
10822 * intl/plural.y: Add #pragma for alloca on AIX 3.
10824 2001-11-27 Ulrich Drepper <drepper@redhat.com>
10826 * intl/dcigettext.c (guess_category_value): Only implement for
10827 glibc. Otherwise rely on function _nl_locale_name which isn't
10828 present in the glibc sources.
10830 2001-09-24 Bruno Haible <bruno@clisp.org>
10832 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
10833 transliteration when building on a glibc system but outside glibc.
10835 2001-09-22 Bruno Haible <bruno@clisp.org>
10837 * intl/plural-eval.c: New file, extracted from dcigettext.c.
10838 * intl/dcigettext.c (plural_eval): Remove function, moved to
10839 intl/plural-eval.c.
10840 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
10841 Include plural-eval.c.
10843 2001-09-22 Bruno Haible <bruno@clisp.org>
10845 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
10846 don't start with a digit; nplurals must be positive.
10848 2001-09-02 Bruno Haible <bruno@clisp.org>
10850 * intl/plural-exp.h: New file, extracted from gettextP.h.
10851 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
10852 * intl/gettextP.h (struct expression, struct parse_args,
10853 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
10854 * intl/loadmsgcat.c: Include plural-exp.h.
10855 (PLURAL_PARSE): Move macro to plural-exp.h.
10856 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
10858 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
10859 EXTRACT_PLURAL_EXPRESSION.
10860 (_nl_unload_domain): Update.
10861 * intl/dcigettext.c: Include plural-exp.h.
10862 * intl/plural.y: Include plural-exp.h, not gettextP.h.
10863 (FREE_EXPRESSION): Move macro to plural-exp.h.
10864 * intl/Makefile (routines): Add plural-exp.
10865 (distribute): Add plural-exp.h.
10867 2001-07-28 Bruno Haible <bruno@clisp.org>
10869 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
10870 isdigit, tolower argument to 'unsigned char'.
10871 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
10873 * intl/localealias.c (read_alias_file): Cast isspace argument to
10876 2001-10-20 Bruno Haible <bruno@clisp.org>
10878 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
10880 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
10881 with the variable 'index' in plural_lookup.
10882 * intl/l10nflist.c (strchr): Likewise.
10883 * intl/localealias.c (strchr): Likewise.
10885 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
10886 * intl/bindtextdom.c: Likewise.
10887 * intl/dcigettext.c: Likewise.
10888 * intl/dgettext.c: Likewise.
10889 * intl/dngettext.c: Likewise.
10890 * intl/explodename.c: Likewise.
10891 * intl/finddomain.c: Likewise.
10892 * intl/gettext.c: Likewise.
10893 * intl/l10nflist.c: Likewise.
10894 * intl/loadmsgcat.c: Likewise.
10895 * intl/localealias.c: Likewise.
10896 * intl/ngettext.c: Likewise.
10897 * intl/textdomain.c: Likewise.
10898 * intl/gettext.h: Assume <limits.h> exists.
10900 2001-11-27 Ulrich Drepper <drepper@redhat.com>
10902 * stdio-common/Makefile (tests): Add scanf11.
10903 * stdio-common/scanf11.c: New file.
10905 2001-11-26 Ulrich Drepper <drepper@redhat.com>
10907 * version.h (RELEASE): Define as development.
10908 (VERSION): Set to 2.2.90.
10910 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
10912 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
10913 * nis/nss_nis/nis-grp.c: Likewise.
10914 * nis/nss_nisplus/nisplus-grp.c: Likewise.
10916 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
10917 * nis/nss_nis/nis-pwd.c: Likewise.
10918 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
10920 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
10921 * nis/nss_nisplus/nisplus-parser.c: Likewise.
10922 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10924 * nscd/grpcache.c: Use strtoul instead of atol.
10925 * nscd/pwdcache.c: Likewise.
10926 * nss/getent.c: Likewise.
10928 2001-11-27 Paul Eggert <eggert@twinsun.com>
10930 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10931 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10933 2001-11-19 Bruno Haible <bruno@clisp.org>
10935 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
10937 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
10938 improves the quality of the hash function, especially for short
10941 2001-11-26 Ulrich Drepper <drepper@redhat.com>
10943 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
10944 are found call conv_error and not input_error [PR libc/2669].
10946 * math/bits/mathcalls.h: Mark ceil and floor as const.
10947 Reported by David Mosberger.
10949 2001-11-21 Jim Meyering <meyering@lucent.com>
10951 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
10952 Define to be __-prefixed.
10953 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
10955 2001-11-26 Andreas Jaeger <aj@suse.de>
10957 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
10960 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
10962 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
10965 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
10966 unused variables. Fix threshold for returning 1.0.
10968 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
10971 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
10972 remove unused variables.
10974 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
10976 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
10977 include local math header files.
10979 2001-11-22 Andreas Jaeger <aj@suse.de>
10981 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
10984 2001-11-21 Andreas Jaeger <aj@suse.de>
10986 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
10988 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
10991 2001-11-15 Andreas Jaeger <aj@suse.de>
10993 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
10994 compilers that support it.
10996 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
10997 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
10998 * stdlib/stdlib.h: Likewise.
11000 2001-11-17 Ulrich Drepper <drepper@redhat.com>
11002 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11003 statement with gotos.
11004 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11006 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
11008 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11010 2001-11-15 Ulrich Drepper <drepper@redhat.com>
11012 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11014 2001-10-02 Jakub Jelinek <jakub@redhat.com>
11015 H.J. Lu <hjl@gnu.org>
11017 * Versions.def (libc): Add GCC_3.0.
11018 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11019 if gcc supports this flag.
11020 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11021 (gcc3): Allow glibc to be compiled with gcc 3.x.
11022 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11023 * config.make.in (static-libgcc, unwind-find-fde): Add.
11024 * Makerules (build-shlib-helper, build-module-helper): Use it.
11025 * scripts/versions.awk: Make sure GLIBC_ versions come first.
11026 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11028 (_fini): Call __deregister_frame_info_bases if
11029 __register_frame_info_bases was used to register.
11030 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11032 (__register_frame_info_bases, __register_frame_info_table_bases,
11033 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11034 * elf/Makefile (routines): Add unwind-dw2-fde.
11035 (shared-only-routines): Add unwind-dw2-fde.
11036 * sysdeps/alpha/gccframe.h: New file.
11037 * sysdeps/arm/gccframe.h: New file.
11038 * sysdeps/generic/framestate.c: New file.
11039 * sysdeps/generic/dwarf2.h: New file.
11040 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11041 * sysdeps/generic/unwind-dw2-fde.c: New file.
11042 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11043 * sysdeps/generic/unwind-dw2-fde.h: New file.
11044 * sysdeps/generic/unwind-dw2.c: New file.
11045 * sysdeps/generic/unwind-pe.h: New file.
11046 * sysdeps/generic/unwind.h: New file.
11047 * sysdeps/hppa/gccframe.h: New file.
11048 * sysdeps/i386/gccframe.h: New file.
11049 * sysdeps/m68k/gccframe.h: New file.
11050 * sysdeps/mips/gccframe.h: New file.
11051 * sysdeps/powerpc/gccframe.h: New file.
11052 * sysdeps/s390/gccframe.h: New file.
11053 * sysdeps/sh/gccframe.h: New file.
11054 * sysdeps/sparc/gccframe.h: New file.
11055 * sysdeps/vax/gccframe.h: New file.
11056 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11057 Set on all architectures except ia64.
11058 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11060 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11061 __deregister_frame_info): Move to elf/Versions.
11062 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11063 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11064 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11065 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11066 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11067 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11068 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11069 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11070 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11071 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11072 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11073 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11074 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11075 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11076 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11077 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11078 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11079 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11081 2001-11-15 Jeff Law <law@redhat.com>
11083 * posix/regex.c (uintptr_t): Do not provide a definition if the
11084 system provided one.
11086 2001-11-13 Roland McGrath <roland@frob.com>
11088 * stdio-common/tmpfile.c: Moved to ...
11089 * sysdeps/generic/tmpfile.c: ... here.
11090 * sysdeps/mach/hurd/tmpfile.c: New file.
11092 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11093 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11094 (fopenport): Define as weak alias.
11096 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11097 * libio/libioP.h: ... to here.
11099 2001-11-12 Ulrich Drepper <drepper@redhat.com>
11101 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11102 program header twice. Construct list with the needed information.
11104 2001-11-10 Ulrich Drepper <drepper@redhat.com>
11106 * po/ca.po: Update from translation team.
11108 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11109 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
11110 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11111 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11113 2001-11-10 Andreas Jaeger <aj@suse.de>
11115 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11116 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11117 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11119 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11121 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11123 * elf/dl-load.c (is_dst): New function.
11124 (_dl_dst_count): Use is_dst to check for DST variable.
11125 (_dl_dst_substitute): Likewise.
11127 2001-11-09 Roland McGrath <roland@frob.com>
11129 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11130 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11131 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11132 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11133 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11134 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11135 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11136 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11137 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11138 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11139 * sysdeps/mach/hurd/powerpc/Dist: New file.
11141 * hurd/privports.c (__get_privileged_ports):
11142 Only contact the proc server if necessary for this call.
11143 Suggested by Neal H Walfield <neal@cs.uml.edu>.
11144 Check error return for mach_port_mod_refs.
11146 2001-11-09 Andreas Schwab <schwab@suse.de>
11148 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11150 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11152 * elf/dl-load.c (lose): Remove some unnecessary code. The new
11153 object is always the last in the list.
11154 (_dl_map_object_from_fd): Delete code to remove from object list
11155 when DF_1_NOOPEN is seen. This is done in lose.
11157 2001-11-08 Ulrich Drepper <drepper@redhat.com>
11159 * elf/dl-object.c (_dl_new_object): Various small optimizations.
11161 2001-11-07 Ulrich Drepper <drepper@redhat.com>
11163 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11164 HWCAP_CHECK macro code.
11166 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11167 Now returns MAP_FAILED on error.
11168 * elf/rtld.c: Adjust caller.
11169 * sysdeps/generic/dl-cache.c: Likewise.
11170 * sysdeps/generic/ldsodefs.h: Adjust description.
11172 * elf/dl-version.c (match_symbol): Optimize error handling for size.
11173 (_dl_check_map_versions): Likewise.
11175 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11177 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11178 _dl_signal_error directly, always use lose. Set fd to -1 after
11180 (lose): Don't call close if fd == -1.
11182 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
11184 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
11185 Also fix typo @code {mbsinit} to @code{mbsinit}.
11187 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11189 * elf/dl-profile.c: Replace state variable with simple flag named
11190 running. Remove commented-out code.
11192 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11193 (_dl_init_paths): Likewise.
11194 (_dl_map_object_from_fd): Likewise.
11195 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11197 2001-11-06 Roland McGrath <roland@frob.com>
11199 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11200 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11202 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11203 sysdeps/powerpc/elf/sysdep.h.
11204 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11206 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11208 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
11210 (process_envvars): Some more optimizations.
11211 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11213 * elf/elf.h: Add dynamic tag definitions for prelinking.
11215 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11216 Rewrite code to remove environment varables for SUID binaries.
11217 Small optimization in LD_PROFILE handling.
11218 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11220 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11222 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11224 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11225 strings. Change type of second parameter.
11226 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11229 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11231 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
11233 * manual/string.texi: Fix typos.
11234 * manual/examples/argp-ex2.c: Likewise.
11236 2001-11-05 Roland McGrath <roland@frob.com>
11238 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11239 the more-specific unix/sysv/linux/powerpc file and breaks everything.
11240 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11241 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11242 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11243 here, put under [__ELF__].
11245 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11247 * manual/charset.texi: Extensive editing work.
11248 * manual/nss.texi: Likewise.
11249 Changes by Dennis Grace <dgrace@us.ibm.com>.
11251 2001-11-04 Roland McGrath <roland@frob.com>
11253 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11254 parameter to dir_mkfile.
11256 2001-11-02 Jakub Jelinek <jakub@redhat.com>
11258 * string/bits/string2.h (__strndup): If n is smaller than len, set
11260 * string/tester.c (test_strndup): New function.
11263 2001-11-01 Ulrich Drepper <drepper@redhat.com>
11265 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11267 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11268 * scripts/cpp: New file.
11270 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11271 for rtld_search_dirs content. Minor optimizations.
11273 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11275 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11276 avoiding unnecessary duplication.
11278 2001-10-31 Jakub Jelinek <jakub@redhat.com>
11280 * elf/dl-load.c (_dl_map_object): If library was found using
11281 LD_LIBRARY_PATH, don't try RUNPATH list.
11283 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
11285 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11286 Correct second argument of register_dump call.
11287 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11290 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11292 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11294 * iconvdata/TESTS: Likewise.
11295 * iconvdata/gconv-modules: Likewise.
11296 * iconvdata/ibm1132.c: New file.
11297 * iconvdata/ibm1132.h: New file.
11298 * iconvdata/ibm1133.c: New file.
11299 * iconvdata/ibm1133.h: New file.
11300 * iconvdata/ibm1162.c: New file.
11301 * iconvdata/ibm1162.h: New file.
11302 * iconvdata/testdata/IBM1132: New file.
11303 * iconvdata/testdata/IBM1132..UTF8: New file.
11304 * iconvdata/testdata/IBM1133: New file.
11305 * iconvdata/testdata/IBM1133..UTF8: New file.
11306 * iconvdata/testdata/IBM1162: New file.
11307 * iconvdata/testdata/IBM1162..UTF8: New file.
11308 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11310 * string/string.h: Fix typo in comment.
11311 * wcsmbs/wchar.h: Likewise.
11313 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
11315 * manual/getopt.texi (getopt_long, getopt_long_only): Include
11316 const in type of longopts parameter.
11318 2001-10-29 Andreas Jaeger <aj@suse.de>
11320 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11322 2001-10-29 Kevin Ryde <user42@zip.com.au>
11324 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11325 output, clarify `#' behaviour on 0.
11326 (Floating-Point Conversions): Clarify that %g only uses %e when
11327 the exponent would be greater than 1.
11329 2001-10-28 Roland McGrath <roland@frob.com>
11331 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11332 * sysdeps/mach/powerpc/machine-sp.h: New file.
11333 * sysdeps/mach/powerpc/sysdep.h: New file.
11334 * sysdeps/mach/powerpc/thread_state.h: New file.
11336 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11337 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
11338 expect to need the same thing on every platform.
11340 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11341 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11343 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11344 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11345 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11346 Move all these assembly-related definitions to ...
11347 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11349 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11350 by Peter Bruin <pjbruin@dds.nl>.
11352 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11353 packing results for a `poll' call.
11355 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11357 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11359 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11360 bracket expression.
11362 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11364 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11366 2001-10-24 H.J. Lu <hjl@gnu.org>
11368 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11369 Use __BEGIN_DECLS/__END_DECLS around prototypes.
11370 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11372 2001-10-21 Jim Meyering <meyering@lucent.com>
11374 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
11375 this code would end up calling gettext even in packages built
11376 with --disable-nls.
11377 * posix/getopt.c (_): Likewise.
11378 * posix/regex.c (_): Likewise.
11380 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11382 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11383 lookup not ip6.int.
11384 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11385 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11387 2001-10-19 Jakub Jelinek <jakub@redhat.com>
11389 * misc/sys/cdefs.h (__attribute_used__): Define.
11390 * elf/rtld.c (_dl_start): Add __attribute_used__.
11391 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11393 2001-10-25 Andreas Schwab <schwab@suse.de>
11395 * stdlib/a64l.c: Expect least significant digit first.
11396 * stdlib/l64a.c: Produce least significant digit first.
11397 * stdlib/Makefile (tests): Add test-a64l.
11398 * stdlib/test-a64l.c: New file.
11399 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11401 2001-10-21 Ulrich Drepper <drepper@redhat.com>
11403 * po/sk.po: Update from translation team.
11405 2001-10-18 Ulrich Drepper <drepper@redhat.com>
11407 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11409 2001-10-18 Andreas Schwab <schwab@suse.de>
11411 * math/libm-test.inc (print_ulps): Print ulp values rounded to
11413 (print_function_ulps): Likewise.
11414 (print_complex_function_ulps): Likewise.
11415 (print_max_error): Likewise.
11416 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
11418 2001-10-16 Andreas Schwab <schwab@suse.de>
11420 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11423 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11424 BSD_SETJMP or BSD__SETJMP is defined, resp.
11425 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11426 a tail call to __sigsetjmp that would require extending the
11428 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11429 * sysdeps/m68k/bsd-setjmp.S: Deleted.
11430 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11431 Reported by Jes Sorensen <jes@trained-monkey.org>.
11433 2001-10-16 Andreas Jaeger <aj@suse.de>
11435 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11436 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
11437 close PR libc/2589.
11439 2001-10-15 Ulrich Drepper <drepper@redhat.com>
11441 * po/ca.po: New file. Contributed by the translation team.
11443 2001-10-15 Ralf Baechle <ralf@gnu.org>
11445 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11446 a varargs prototype. Remove dependency from kernel header files.
11448 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11449 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11451 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11453 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11454 to generate hexadecimal identifier.
11455 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11457 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
11459 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11461 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11463 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11464 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11465 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11467 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11468 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11469 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11470 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11471 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11472 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11474 * timezone/africa: Update from tzdata2001d.
11475 * timezone/asia: Likewise.
11476 * timezone/australasia: Likewise.
11477 * timezone/backward: Likewise.
11478 * timezone/europe: Likewise.
11479 * timezone/leapseconds: Likewise.
11480 * timezone/northamerica: Likewise.
11481 * timezone/southamerica: Likewise.
11482 * timezone/zone.tab: Likewise.
11484 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
11486 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11487 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11489 2001-10-12 Ulrich Drepper <drepper@redhat.com>
11491 * elf/elf.h (PT_TLS): New definition.
11493 2001-10-10 Jeff Bailey <jbailey@nisa.net>
11495 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11498 2001-10-07 Roland McGrath <roland@frob.com>
11500 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11502 2001-10-10 Ulrich Drepper <drepper@redhat.com>
11504 * elf/elf.h: Add more ELFOSABI_* constants.
11506 2001-10-04 Ben Collins <bcollins@debian.org>
11508 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11509 decleration of __need_wchar_t.
11511 2001-10-03 Jakub Jelinek <jakub@redhat.com>
11513 * string/bits/string2.h (__strsep_g): Add prototype.
11514 (__strsep): Use it.
11515 * string/Versions (__strsep): Remove.
11516 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11518 2001-10-07 Ulrich Drepper <drepper@redhat.com>
11520 * manua/llio.texi: Clarify file references added by mmap.
11521 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11523 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
11525 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11526 Add sc_loadrs and sc_rbs_bas to match current kernel.
11528 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11530 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11532 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11534 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11536 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11537 object has been bumped because of relocation dependency, avoid
11538 duplicates in l_scope.
11539 (show_scope): Fix typos.
11540 * elf/Makefile: Add rules to build and run reldep6.
11541 * elf/reldep6.c: New file.
11542 * elf/reldep6mod0.c: New file.
11543 * elf/reldep6mod1.c: New file.
11544 * elf/reldep6mod2.c: New file.
11545 * elf/reldep6mod3.c: New file.
11546 * elf/reldep6mod4.c: New file.
11548 2001-09-26 Jakub Jelinek <jakub@redhat.com>
11550 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11552 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
11553 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11554 for non-lazy binding. Fix .plt[32768+] handling.
11555 (elf_machine_plt_value): Don't add addend.
11556 (elf_machine_rela): Call sparc64_fixup_plt instead of
11557 elf_machine_fixup_plt.
11558 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11559 dynamic linker at 0xfffff800XXXXXXXX.
11561 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11563 2001-09-28 Ulrich Drepper <drepper@redhat.com>
11565 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11567 2001-09-25 Jakub Jelinek <jakub@redhat.com>
11569 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11570 declare __cmsg_data field if its size would be bigger than 0.
11571 (CMSG_DATA): Adjust accordingly.
11572 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11573 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11574 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11575 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11576 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11577 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11578 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11580 2001-09-25 Ulrich Drepper <drepper@redhat.com>
11582 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11583 * iconvdata/testdata/IBM1160: New file.
11584 * iconvdata/testdata/IBM1160..UTF8: New file.
11585 * iconvdata/testdata/IBM1161: New file.
11586 * iconvdata/testdata/IBM1161..UTF8: New file.
11587 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11589 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11591 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11592 UL_SETFSIZE computations better.
11594 * rt/Makefile: Remove use of filter for librt again.
11596 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11597 UL_SETFSIZE computations better.
11599 * string/Versions: Export __strsep for GLIBC_2.2.5.
11600 * string/bits/string2.h: Define all __STRING_INLINE functions if
11601 _FORCE_INLINES is defined.
11602 Use int instead of char of parameter types.
11603 (__strsep): Don't use __strsep_g. Don't define it.
11604 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11605 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11607 (__stpcpy_a_small): Renamed from __stpcpy_small.
11608 (__strcspn_c1): Don't define if _FORCE_INLINES.
11609 (__strspn_c1): Likewise.
11611 2001-09-22 Ben Collins <bcollins@debian.org>
11613 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11614 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
11615 * sysdeps/ia64/bits/sigaction.h: Likewise.
11616 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11618 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
11620 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11622 2001-09-24 Jakub Jelinek <jakub@redhat.com>
11624 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11626 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11628 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11630 2001-09-20 H.J. Lu <hjl@gnu.org>
11632 * include/dlfcn.h (__RTLD_SPROF): New definiton.
11633 * elf/dl-open.c (dl_open_worker): Return immediately after loading
11635 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11636 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11638 2001-09-20 H.J. Lu <hjl@gnu.org>
11640 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11643 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11645 * nss/getent.c: Accept -s parameter to overwrite rules in
11646 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
11648 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11649 with as many ".0" as necessary to form a complete address
11650 inet_network understands.
11652 * nss/getent.c: Various cleanups. Use simpler and fewer function
11655 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11657 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11659 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11661 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11663 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11665 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11666 * iconvdata/ibm1160.c: New file.
11667 * iconvdata/ibm1160.h: New file.
11668 * iconvdata/ibm1161.c: New file.
11669 * iconvdata/ibm1161.h: New file.
11670 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11672 2001-09-19 Jakub Jelinek <jakub@redhat.com>
11674 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11675 difference between base address and first PT_LOAD's virtual address,
11676 not the base address.
11678 2001-09-11 Tom Rix <trix@redhat.com>
11680 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
11681 ifdef for __getopt_clean_environment.
11682 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11684 2001-09-22 Andreas Jaeger <aj@suse.de>
11686 * elf/reldep4.c (main): Add proper prototype to fix warning.
11688 * elf/reldep5.c (main): Remove unused variable.
11690 * math/math_private.h: Add prototypes.
11692 2001-09-21 Andreas Jaeger <aj@suse.de>
11694 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11695 * sysdeps/x86_64/Dist: New file.
11696 * sysdeps/x86_64/soft-fp/Dist: New file.
11698 * sysdeps/gnu/Dist: Remove eval.c.
11700 2001-09-20 Ulrich Drepper <drepper@redhat.com>
11702 * malloc/memusage.c (realloc): Don't count already allocated
11703 memory in the sums.
11704 (me): Always use dlsym() to find the real implementations.
11706 * malloc/memusage.sh: Make -n option actually do something.
11708 2001-09-20 Andreas Jaeger <aj@suse.de>
11710 * elf/elf.h (R_390_NUM): Correct value.
11712 * Versions.def: Add missing versions 2.2.3 for libthread_db and
11715 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11716 for x86-64, install x86-64 into */lib64.
11718 * shlib-versions: Add x86-64.
11720 * elf/elf.h: Add x86-64 relocations.
11722 2001-09-19 Ulrich Drepper <drepper@redhat.com>
11724 * po/fr.po: Update from translation team.
11726 2001-09-19 Andreas Jaeger <aj@suse.de>
11728 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11729 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11730 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11731 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11732 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11733 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11734 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11735 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11736 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11737 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11738 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11739 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11740 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11741 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11742 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11743 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11744 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11745 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11746 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11747 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11748 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11749 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11750 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11751 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11752 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11753 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11754 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11755 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11756 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11757 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11758 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11759 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11760 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11761 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11762 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11763 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11764 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11765 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11766 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11767 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11768 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11769 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11770 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11771 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11772 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11773 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11774 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11775 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11776 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11777 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11778 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11779 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11780 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11781 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11782 * sysdeps/unix/x86_64/sysdep.S: New file.
11783 * sysdeps/unix/x86_64/sysdep.h: New file.
11784 * sysdeps/x86_64/Implies: New file.
11785 * sysdeps/x86_64/Makefile: New file.
11786 * sysdeps/x86_64/Versions: New file.
11787 * sysdeps/x86_64/__longjmp.S: New file.
11788 * sysdeps/x86_64/abort-instr.h: New file.
11789 * sysdeps/x86_64/atomicity.h: New file.
11790 * sysdeps/x86_64/bits/endian.h: New file.
11791 * sysdeps/x86_64/bits/setjmp.h: New file.
11792 * sysdeps/x86_64/bits/string.h: New file.
11793 * sysdeps/x86_64/bp-asm.h: New file.
11794 * sysdeps/x86_64/bsd-_setjmp.S: New file.
11795 * sysdeps/x86_64/bsd-setjmp.S: New file.
11796 * sysdeps/x86_64/dl-machine.h: New file.
11797 * sysdeps/x86_64/elf/initfini.c: New file.
11798 * sysdeps/x86_64/elf/start.S: New file.
11799 * sysdeps/x86_64/ffs.c: New file.
11800 * sysdeps/x86_64/ffsll.c: New file.
11801 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11802 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11803 * sysdeps/x86_64/fpu/e_acosl.c: New file.
11804 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11805 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11806 * sysdeps/x86_64/fpu/e_expl.c: New file.
11807 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11808 * sysdeps/x86_64/fpu/e_log10l.S: New file.
11809 * sysdeps/x86_64/fpu/e_log2l.S: New file.
11810 * sysdeps/x86_64/fpu/e_logl.S: New file.
11811 * sysdeps/x86_64/fpu/e_powl.S: New file.
11812 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11813 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11814 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11815 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11816 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11817 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11818 * sysdeps/x86_64/fpu/fegetenv.c: New file.
11819 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11820 * sysdeps/x86_64/fpu/fegetround.c: New file.
11821 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11822 * sysdeps/x86_64/fpu/fesetenv.c: New file.
11823 * sysdeps/x86_64/fpu/fesetround.c: New file.
11824 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
11825 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
11826 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
11827 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
11828 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
11829 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
11830 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
11831 * sysdeps/x86_64/fpu/s_atanl.c: New file.
11832 * sysdeps/x86_64/fpu/s_cosl.S: New file.
11833 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
11834 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
11835 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
11836 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
11837 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
11838 * sysdeps/x86_64/fpu/s_logbl.c: New file.
11839 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
11840 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
11841 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
11842 * sysdeps/x86_64/fpu/s_rintl.c: New file.
11843 * sysdeps/x86_64/fpu/s_significandl.c: New file.
11844 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
11845 * sysdeps/x86_64/fpu/s_sinl.S: New file.
11846 * sysdeps/x86_64/fpu/s_tanl.S: New file.
11847 * sysdeps/x86_64/gmp-mparam.h: New file.
11848 * sysdeps/x86_64/hp-timing.c: New file.
11849 * sysdeps/x86_64/hp-timing.h: New file.
11850 * sysdeps/x86_64/htonl.S: New file.
11851 * sysdeps/x86_64/memusage.h: New file.
11852 * sysdeps/x86_64/setjmp.S: New file.
11853 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
11854 * sysdeps/x86_64/stackinfo.h: New file.
11855 * sysdeps/x86_64/sysdep.h: New file.
11856 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
11858 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
11861 2001-09-18 Ulrich Drepper <drepper@redhat.com>
11863 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
11864 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
11866 2001-09-18 Andreas Schwab <schwab@suse.de>
11868 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
11869 list, now that l_scope is a pointer.
11871 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
11874 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
11876 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
11877 (elf_machine_rela_relative): Add a missing declaration.
11879 2001-09-18 Jakub Jelinek <jakub@redhat.com>
11881 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
11882 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
11883 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
11884 ldd-rewrite scripts.
11886 2001-09-18 Ulrich Drepper <drepper@redhat.com>
11888 * elf/ldd.bash.in: Update copyright message.
11890 2001-09-17 H.J. Lu <hjl@gnu.org>
11892 * hurd/hurdmalloc.c (bcopy): Removed.
11893 (realloc): Replace bcopy with memcpy.
11894 * hurd/path-lookup.c (file_name_path_scan): Likewise.
11895 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
11896 * sunrpc/rpcinfo.c (pmapdump): Likewise.
11898 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
11899 (gethostbyaddr): Likewise.
11900 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
11902 2001-09-18 Ulrich Drepper <drepper@redhat.com>
11904 * sysdeps/gnu/eval.c: Removed.
11906 2001-09-18 Andreas Jaeger <aj@suse.de>
11908 * sysdeps/i386/fpu/s_logbl.S: Move to ...
11909 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
11911 * sysdeps/i386/fpu/s_rintl.S: Move to ...
11912 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
11914 * sysdeps/i386/fpu/s_significandl.S: Move to ...
11915 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
11917 2001-09-16 Ulrich Drepper <drepper@redhat.com>
11919 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11922 2001-09-14 H.J. Lu <hjl@gnu.org>
11924 * sysdeps/mips/fpu/libm-test-ulps: Updated.
11926 2001-09-14 Ulrich Drepper <drepper@redhat.com>
11928 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
11929 Patch by Florian La Roche <laroche@redhat.com>.
11931 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
11933 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
11936 2001-09-14 Andreas Schwab <schwab@suse.de>
11938 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
11939 Sumner <bls@sgi.com>.
11940 * posix/execlp.c: Likewise.
11942 2001-09-13 Jakub Jelinek <jakub@redhat.com>
11944 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
11945 is already found earlier in the search scope.
11947 2001-09-12 Jakub Jelinek <jakub@redhat.com>
11949 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
11952 2001-09-13 Ulrich Drepper <drepper@redhat.com>
11954 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
11956 2001-09-12 Ulrich Drepper <drepper@redhat.com>
11958 * config.h.in: Enforce optimization to be used.
11959 * Makeconfig (preprocess-versions): Define ASSEMBLER.
11960 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
11961 * posix/Makefile (annexc-CFLAGS): Define to -O.
11962 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
11964 2001-09-11 Ulrich Drepper <drepper@redhat.com>
11966 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
11967 Patch by Stephan Kulow.
11969 2001-09-08 Ben Collins <bcollins@debian.org>
11971 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
11972 usage of RESOLVE() (r_type, not reloc->r_type).
11974 2001-09-08 Ulrich Drepper <drepper@redhat.com>
11976 * elf/dl-object.c: Avoid allocating extra memory block for name.
11977 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
11978 allocated separately.
11979 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
11981 2001-09-08 H.J. Lu <hjl@gnu.org>
11983 * po/zh_TW.po: Fix a typo.
11985 2001-09-07 Tom Rix <trix@redhat.com>
11987 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
11989 2001-08-26 Tom Rix <trix@redhat.com>
11991 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
11992 command line options.
11993 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
11994 * sysdeps/unix/sysv/aix/start.c: Removed.
11995 * sysdeps/unix/sysv/aix/start-libc.c: New file.
11996 * sysdeps/unix/sysv/aix/init-first.c: New file.
11997 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
11999 2001-09-08 Ben Collins <bcollins@debian.org>
12001 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12002 * sysdeps/generic/dl-machine.h: Likewise.
12003 * sysdeps/hppa/dl-fptr.c: Likewise.
12004 * sysdeps/ia64/dl-fptr.c: Likewise.
12005 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12006 * sysdeps/mips/dl-machine.h: Likewise.
12007 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12008 * sysdeps/powerpc/dl-machine.c: Likewise.
12010 2001-09-07 Ben Collins <bcollins@debian.org>
12012 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12014 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12016 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12018 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12019 dependencies if necessary.
12021 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12022 loaded directly) determine length if l_initfini list by iterating
12023 over its elements. Minor optimizations.
12024 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12025 for dependency objects.
12026 If object was already loaded check whether any of the dependencies
12027 is already on the relocation dependency list. If yes, remove the
12028 latter. Minor optimizations.
12029 * elf/dl-lookup.c (add_dependency): Add check for self reference of
12030 maps here. Search l_initfini list only if the object was loaded
12031 directly and not only as a dependency.
12032 (_dl_lookup_symbol): Add relocation dependency also if object
12033 is not in global scope. Remove test for self-reference here.
12034 (_dl_lookup_versioned_symbol): Likewise.
12035 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
12036 element of first name record.
12037 * elf/loadtest.c: Add some more test to recognize early if an object
12039 * elf/Makefile: Add rules to build and run reldep5.
12040 * elf/reldep5.c: New file.
12041 * elf/reldepmod5.c: New file.
12042 * elf/reldepmod6.c: New file.
12044 * elf/reldep2.c: Fix typo.
12046 2001-09-07 Ulrich Drepper <drepper@redhat.com>
12048 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12049 elements. Change l_scope to be a pointer only.
12050 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12051 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12052 here add searchlist of newly open file to the dependency's scope.
12053 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12054 only searchlist from its scope. Free own scope array if necessary.
12055 * elf/Makefile (tests): Add dblload and dblunload now.
12057 2001-09-06 Andreas Jaeger <aj@suse.de>
12059 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12062 2001-09-05 Ulrich Drepper <drepper@redhat.com>
12064 * elf/Makefile: Add rules to build new tests. Don't run them yet since
12066 * elf/dblload.c: New file.
12067 * elf/dblloadmod1.c: New file.
12068 * elf/dblloadmod2.c: New file.
12069 * elf/dblloadmod3.c: New file.
12070 * elf/dblunload.c: New file.
12072 2001-09-04 Richard Henderson <rth@redhat.com>
12074 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12075 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12077 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12079 Correct very misleading message for error in failed runtime relocation.
12080 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12081 place of the error.
12082 (_dl_signal_cerror): Likewise.
12083 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12084 * elf/dl-close.c: Likewise.
12085 * elf/dl-deps.c: Likewise.
12086 * elf/dl-load.c: Likewise.
12087 * elf/dl-lookup.c: Likewise.
12088 * elf/dl-open.c: Likewise.
12089 * elf/dl-reloc.c: Likewise.
12090 * elf/dl-sym.c: Likewise.
12091 * elf/dl-version.c: Likewise.
12092 * sysdeps/generic/dl-sysdep.c: Likewise.
12094 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12096 * iconv/strtab.c (strtabinit): Initialize null Strent.
12097 (newstring): Move len == 0 handling...
12098 (strtabadd): ...here.
12099 If len == 1, return null Strent.
12100 When inserting a suffix of an existing string, check if
12101 it is not equal to some suffix already recorded.
12102 Copy left and right members over if adding longer string.
12104 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12106 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12108 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12109 (__syscall_gethostname): Add prototype.
12111 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12113 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12115 2001-09-02 Ulrich Drepper <drepper@redhat.com>
12117 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12119 2001-08-27 Roland McGrath <roland@frob.com>
12121 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12122 short, copy that much into NAME anyway before returning error.
12124 2001-09-01 Richard Henderson <rth@redhat.com>
12126 * sysdeps/alpha/elf/Dist: Remove file.
12127 * sysdeps/alpha/elf/Makefile: Remove file.
12128 * sysdeps/alpha/elf/crtbegin.S: Remove file.
12129 * sysdeps/alpha/elf/crtend.S: Remove file.
12130 * sysdeps/alpha/elf/initfini.c: New file.
12132 2001-09-01 Mark Kettenis <kettenis@gnu.org>
12134 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12135 * iconv/tst-iconv3.c: Likewise.
12137 2001-09-01 Jakub Jelinek <jakub@redhat.com>
12139 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12141 2001-09-01 Ulrich Drepper <drepper@redhat.com>
12143 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12145 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12146 * iconv/iconv_prog.c (insert_cache): New function.
12147 (print_known_names): If cache is used call insert_cache to use the
12148 information from the cache [PR libc/2509].
12150 2001-08-31 Ulrich Drepper <drepper@redhat.com>
12152 * time/strptime.c (strptime_internal): Recognize 'l' format and
12153 handle it like 'I' for symmetry with strftime.
12155 2001-08-31 Richard Henderson <rth@redhat.com>
12157 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12158 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12159 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12160 (print_statistics): Make scalar unsigned long long.
12161 * sysdeps/alpha/hp-timing.h: New file.
12163 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12165 * stdio-common/perror.c (perror): Save errno early, pass it
12166 down to perror_internal.
12167 (perror_internal): Add errnum argument.
12169 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12171 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12172 Don't add old memory content for R_ALPHA_REFQUAD.
12174 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12176 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12179 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12180 instead of open, __close instead of close, __getpagesize instead
12183 * string/argz-stringify.c (__argz_stringify): Use __strnlen
12184 instead of strnlen.
12185 * include/string.h (strndupa): Redefine here to use __strnlen
12186 instead of strnlen.
12187 * string/strndup.c (__strndup): Use __strnlen not strnlen.
12189 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12192 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12194 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12195 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
12196 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12197 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12198 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12199 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12200 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12202 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12204 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12206 2001-08-30 Andreas Jaeger <aj@suse.de>
12208 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12209 contributed Stephen L Moshier.
12211 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12213 * sunrpc/etc.rpc (sgi_fam): Add.
12215 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12217 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12219 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12221 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12222 first is from a previous call.
12223 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12225 2001-08-29 Andreas Schwab <schwab@suse.de>
12227 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12229 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12231 * config.make.in (INSTALL_SCRIPT): Define.
12232 * Makeconfig (INSTALL_SCRIPT): Define.
12233 * Makerules (do-install-script): New macro to install scripts using
12235 (install-bin-script): New rule to install scripts with
12237 (install-bin-script-nosubdir): New rule.
12238 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12239 (distinfo-vars): Add $(install-bin-script).
12240 * Rules (others): Likewise.
12241 * Makefile (glibcbug): Install with install-bin-script.
12242 * debug/Makefile (xtrace): Likewise.
12243 (catchsegv): Likewise.
12244 * elf/Makefile (ldd): Likewise.
12245 * malloc/Makefile (mtrace): Likewise.
12246 * timezone/Makefile (tzselect): Likewise.
12248 2001-08-29 H.J. Lu <hjl@gnu.org>
12250 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12251 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12252 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12254 2001-08-29 Andreas Schwab <schwab@suse.de>
12256 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12258 2001-08-28 H.J. Lu <hjl@gnu.org>
12260 * Makeconfig (combreloc-LDFLAGS): New variable.
12261 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12262 * config.make.in (have-z-combreloc): New variable.
12263 * configure.in: Substitute libc_cv_z_combreloc.
12265 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12267 * po/sv.po: Update from translation team.
12268 * po/fr.po: Likewise.
12269 * po/da.po: Likewise.
12271 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12273 * Makerules: Fix a typo: MD% -> MD5.
12275 2001-08-28 Ulrich Drepper <drepper@redhat.com>
12277 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12278 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12280 2001-08-28 Andreas Jaeger <aj@suse.de>
12282 * manual/libc-texinfo.sh: Add entry about free manuals.
12284 * manual/contrib.texi (Contributors): Fix cross reference.
12286 * manual/libc.texinfo (Copying): Include freemanuals.
12288 * manual/Makefile (appendices): Add freemanuals.
12290 * manual/freemanuals.texi: New file.
12291 Patch by Brian Youmans <3diff@gnu.org>.
12293 * manual/libm-err-tab.pl: Pretty print more platforms, print a
12296 * manual/math.texi (Errors in Math Functions): Fix grammar, start
12297 table on separate page.
12298 Patch by Brian Youmans <3diff@gnu.org>.
12300 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12302 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
12303 the connection went down after we first used it try to connect
12304 again and resend the message before printing to the console.
12305 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12307 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12309 * string/tst-strlen.c (main): Test strnlen (, -1) too.
12310 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12313 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12315 * iconv/strtab.c (searchstring): Use correct length for comparison.
12316 (strtabadd): Account total size correct if new string has old string as
12319 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12321 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12323 2001-08-27 Andreas Jaeger <aj@suse.de>
12325 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12327 * math/libm-test.inc (j0_test): Add extra tests.
12328 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12329 not x, in Hankel approximation.
12330 Patches by Stephen L Moshier.
12332 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12334 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12337 * configure.in: Fix test for .rela.dyn section.
12339 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12341 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12343 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12344 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12345 Pass type_class to _dl_lookup_*.
12346 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12347 Pass around just type_class instead of noexec, noplt pair.
12348 (_dl_lookup_versioned_symbol): Likewise.
12349 (_dl_lookup_symbol_skip): Pass around just type_class instead of
12350 noexec, noplt pair.
12351 (_dl_lookup_versioned_symbol_skip): Likewise.
12352 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12353 * elf/do-lookup.h (do_lookup): Likewise.
12354 * include/link.h (struct link_map): Replace noexec and noplt fields
12355 in l_lookup_cache with type_class field.
12356 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12357 ELF_RTYPE_CLASS_COPY): Define.
12358 Adjust prototypes for _dl_lookup_symbol and
12359 _dl_lookup_versioned_symbol.
12360 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12361 elf_machine_lookup_noexec_p): Remove.
12362 (elf_machine_type_class): Define.
12363 * sysdeps/arm/dl-machine.h: Likewise.
12364 * sysdeps/hppa/dl-machine.h: Likewise.
12365 * sysdeps/cris/dl-machine.h: Likewise.
12366 * sysdeps/i386/dl-machine.h: Likewise.
12367 * sysdeps/ia64/dl-machine.h: Likewise.
12368 * sysdeps/m68k/dl-machine.h: Likewise.
12369 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12370 * sysdeps/mips/dl-machine.h: Likewise.
12371 * sysdeps/powerpc/dl-machine.h: Likewise.
12372 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12373 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12374 * sysdeps/sh/dl-machine.h: Likewise.
12375 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12376 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12378 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12380 * manual/message.texi (Advanced gettext functions): Change
12381 description of plural forms for Slovak.
12382 Reported by Marcel Telka <marcel@telka.sk>.
12384 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12385 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12387 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12389 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12390 typo. Patch by Florian La Roche <laroche@redhat.com>.
12392 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12394 * include/link.h (struct link_map): Add l_lookup_cache element.
12395 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12396 (RESOLVE_MAP): Likewise.
12397 (_dl_relocate_object): Remove cache initialization.
12398 * elf/dl-lookup.c: Rip out cache handling code.
12399 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12402 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12403 remove some __builtin_expect.
12404 (_dl_lookup_versioned_symbol): Likewise.
12406 * config.h.in: Add HAVE_Z_COMBRELOC.
12407 * configure.in: Add test for -z combreloc.
12409 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12410 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
12411 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
12412 case to almost no code.
12414 2001-08-25 Ulrich Drepper <drepper@redhat.com>
12416 * po/tr.po: Update from translation team.
12418 2001-08-24 Andreas Jaeger <aj@suse.de>
12420 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12423 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12425 * elf/rtld.c (print_statistics): Printf % after percent values.
12426 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12428 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12429 don't have to compute the hash value and initialize current_value.
12430 Move reference_name variable to where it is needed.
12431 (_dl_lookup_versioned_symbol): Likewise.
12433 2001-08-24 Roland McGrath <roland@frob.com>
12435 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12436 Just test that strerror returns non-null for a few errno codes.
12438 2001-08-23 Roland McGrath <roland@frob.com>
12440 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12441 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12443 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12445 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12448 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12450 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12453 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12454 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12456 * elf/rtld.c: Include <sys/param.h>.
12457 * elf/dl-reloc.c: Likewise.
12459 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12461 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12462 empty to prevent junk from being generated.
12463 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12465 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12467 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12468 records. Rename endrel to relative, initialize it to r, and use it
12469 in elf_machine_rel_relative calls. Point r after relative relocs.
12471 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12473 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12476 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12478 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12479 necessary. Undefine newly defined macros at the end.
12480 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12481 Rename from elf_machine_rel_relative.
12482 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12483 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12484 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12485 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12487 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12489 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12490 Fix argument types.
12491 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12492 Fix argument types.
12493 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12494 Likewise. Fix argument types.
12495 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12496 Likewise. Fix argument types.
12497 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12498 Fix argument types.
12499 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12500 ElfW(Rel) in argument.
12501 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12504 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
12506 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12508 2001-08-24 Andreas Jaeger <aj@suse.de>
12510 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12511 Stephen L Moshier <moshier@mediaone.net>.
12513 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12515 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12516 first if RELCOUNT is set.
12518 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12519 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12520 elf_machine_rel_relative.
12521 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12522 Minor optimizations.
12523 * sysdeps/arm/dl-machine.h: Likewise.
12524 * sysdeps/cris/dl-machine.h: Likewise.
12525 * sysdeps/hppa/dl-machine.h: Likewise.
12526 * sysdeps/i386/dl-machine.h: Likewise.
12527 * sysdeps/ia64/dl-machine.h: Likewise.
12528 * sysdeps/m68k/dl-machine.h: Likewise.
12529 * sysdeps/mips/dl-machine.h: Likewise.
12530 * sysdeps/powerpc/dl-machine.h: Likewise.
12531 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12532 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12533 * sysdeps/sh/dl-machine.h: Likewise.
12534 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12535 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12537 2001-08-23 Roland McGrath <roland@frob.com>
12539 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12541 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12542 sysdeps/mach version. Implement counting ("recursive") mutexes
12543 on top of cthreads mutexes.
12544 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12546 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12547 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12548 (__libc_cleanup_region_start, __libc_cleanup_region_end,
12549 __libc_clean_end): Define these to call the cleanup function after
12550 normal exit when they're supposed to.
12552 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12553 Take new first arg DOIT, a boolean saying whether to really install
12554 any cleanup handler.
12555 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12556 (__libc_cleanup_end): Likewise.
12557 * sysdeps/generic/bits/libc-lock.h: Same changes.
12558 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12559 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12560 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12562 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12563 * sysdeps/generic/bits/stdio-lock.h
12564 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12566 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12568 * elf/ldconfig.c (search_dir): Remove stale symlinks.
12570 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12572 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12574 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12576 (_dl_lookup_versioned_symbol): Likewise.
12577 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12579 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12580 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12581 (lookup_cache, lookup_cache_versioned): Add declarations.
12583 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12585 * stdlib/tst-random.c (main): Swap parameters in fail call.
12586 Patch by Pete Bevin <pete@petebevin.com>.
12588 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12590 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12592 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12594 * malloc/obstack.c: Indent preprocessor directives.
12595 Patch by Jim Meyering <meyering@ascend.com>.
12597 * po/ja.po: Update from translation team.
12599 2001-08-23 Roland McGrath <roland@frob.com>
12601 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12603 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12604 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12606 2001-08-22 Roland McGrath <roland@frob.com>
12608 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12609 __libc_lock_define_recursive.
12610 * elf/dl-open.c: Don't declare it here any more.
12611 * elf/dl-close.c: Likewise.
12612 * elf/dl-lookup.c: Likewise.
12613 * elf/dl-iteratephdr.c: Likewise.
12614 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12615 __libc_lock_unlock_recursive.
12616 * elf/dl-close.c (_dl_close): Likewise
12617 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12618 * elf/dl-open.c (_dl_open): Likewise
12620 * sysdeps/generic/bits/libc-lock.h
12621 (__libc_lock_define_recursive): New macro.
12622 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12623 (_IO_lock_lock): Use __libc_lock_lock_recursive.
12624 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12626 * conform/conformtest.pl (checknamespace): Sort the output list.
12628 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12629 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12630 definitions conditional on [__USE_XOPEN].
12632 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12633 these unconditionally, not only use [__USE_BSD], so as to match
12634 the sysdeps/unix/sysv/linux files.
12636 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12638 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12641 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12644 2001-08-22 Roland McGrath <roland@frob.com>
12646 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12647 conditionalization of sa_handler/sa_sigaction member types to
12648 match the sysdeps/unix/sysv/linux file.
12650 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12652 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12653 symbol sizes a bit better.
12655 * sysdeps/ia64/strncpy.S: Complete rewrite.
12656 Contributed by Jakub Jelinek <jakub@redhat.com>.
12658 * string/stratcliff.c (main): Add strncpy test.
12660 2001-08-22 Roland McGrath <roland@frob.com>
12662 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12663 and don't declare unsetenv or _environ directly.
12664 (unsetenv): Return int, not void. Use __environ instead of _environ.
12666 2001-08-01 Mark Kettenis <kettenis@gnu.org>
12668 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12669 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12670 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12671 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12672 test for cmsg struct size.
12674 2001-04-23 Paul Eggert <eggert@twinsun.com>
12676 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12677 Rename __argc to ___argc in prototypes to avoid compatibility
12678 problems with systems that reserve the identifier "__argc".
12679 Similarly for __argv.
12681 2001-08-21 Roland McGrath <roland@frob.com>
12683 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12685 * mach/Makefile (tests): Removed.
12686 * mach/hello.c: File removed.
12688 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12690 * po/sv.po: Update from translation team.
12692 * stdio-common/vfscanf.c: Fix handling of %l[].
12693 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12695 * libio/Makefile (tests): Add tst-sscanf.
12696 * libio/tst-sscanf.c: New file.
12698 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12699 * malloc/mtrace.c (tr_where): dli_sname always points to a
12700 non-empty string if != NULL.
12701 Reported by Tim Janik <timj@gtk.org>.
12703 2001-08-22 Jakub Jelinek <jakub@redhat.com>
12705 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12706 buf. Free resources on failure.
12707 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12708 (makefd_xprt): Likewise.
12709 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12710 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12711 * sunrpc/auth_unix.c (authunix_create): Likewise.
12713 2001-08-21 Jakub Jelinek <jakub@redhat.com>
12715 * string/strnlen.c: Remove.
12716 * sysdeps/generic/strnlen.c: New file.
12717 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12719 2001-08-21 Roland McGrath <roland@frob.com>
12721 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12722 as a macro, not an extern inline function.
12724 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12725 * Versions.def (libc): Add GLIBC_2.2.5 set.
12726 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12727 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12729 2001-08-20 Roland McGrath <roland@frob.com>
12731 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12732 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12734 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12736 * string/bits/string2.h: Remove strnlen optimization here.
12737 * sysdeps/i386/i486/bits/string.h: Add it here.
12739 2001-08-21 Wolfram Gloger <wg@malloc.de>
12741 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12743 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12745 * po/gl.po: Update from translation team.
12747 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12749 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12750 * misc/err.c (convert_and_print): Likewise.
12752 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12755 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12757 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12758 change of the gregset_t type.
12759 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12761 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
12763 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12765 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12767 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12769 * string/strnlen.c: Fix the implementation. We cannot use memchr.
12771 2001-08-18 Mark Kettenis <kettenis@gnu.org>
12773 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12774 before calling the cthreads initialization code.
12776 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12778 * argp/argp-help.c: Fix two problems introduced in last change.
12780 * include/dirent.h: Include <dirstream.h> first.
12782 2001-08-19 Ulrich Drepper <drepper@redhat.com>
12784 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12786 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12787 * sunrpc/xdr_rec.c: Likewise.
12788 * sunrpc/xdr_mem.c: Likewise.
12789 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12790 * sunrpc/rpc_cmsg.c: Likewise.
12791 * sunrpc/getrpcport.c (getrpcport): Likewise.
12792 * sunrpc/clnt_simp.c (callrpc): Likewise.
12793 * sunrpc/clnt_gen.c (clnt_create): Likewise.
12794 * string/envz.c: Likewise.
12796 * po/ko.po: Update from translation team.
12798 * argp/argp-help.c: Handle wide oriented stderr stream.
12800 2001-08-18 Ulrich Drepper <drepper@redhat.com>
12802 * sysdeps/generic/strtol.c: Little optimizations. Add some
12805 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12807 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12808 * wcsmbs/wcwidth.c (wcwdith): Likewise.
12809 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12811 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12813 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12815 * time/time.h (struct timespec): Use __time_t for tv_sec element.
12817 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
12818 wchar_t for function declarations and defintions.
12820 * misc/sys/select.h: Define __need_time_t before including <time.h>.
12821 Define suseconds_t if it hasn't happened yet.
12823 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
12825 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
12827 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
12830 * conform/data/stddef.h-data: Remove wint_t.
12832 * conform/conformtest.pl: Change namespace test to take #undef
12833 lines into account.
12835 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
12837 * conform/data/sys/socket.h-data: Add sockatmark.
12839 2001-08-17 Ulrich Drepper <drepper@redhat.com>
12841 * io/fts.c: Update from recent BSD source.
12843 2001-08-17 Roland McGrath <roland@frob.com>
12845 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
12846 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
12849 2001-08-17 Ulrich Drepper <drepper@redhat.com>
12851 * locale/duplocale.c (__duplocale): Also initialize the special
12852 __ctype_* elements.
12854 * conform/data/netdb.h-data: Adjust gai_strerror return type.
12856 2001-08-17 Andreas Jaeger <aj@suse.de>
12858 * misc/getpass.c: Include wchar.h for prototypes.
12859 * malloc/obstack.c: Likewise.
12861 2001-08-17 Ulrich Drepper <drepper@redhat.com>
12863 * sunrpc/svc_simple.c (universal): Use __write instead of write.
12865 * wcsmbs/wcscoll.c: Also define __wcscoll.
12866 * include/wchar.h: Declare __wcscoll.
12868 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
12869 * libio/vwprintf.c: Likewise.
12870 * libio/wprintf.c: Likewise.
12872 * iconv/gconv_cache.c: Use __munmap instead of munmap.
12874 2001-08-16 Ulrich Drepper <drepper@redhat.com>
12876 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
12877 instead of mbrtowc.
12878 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
12879 wcslen, and __wcscoll instead of wcscoll.
12881 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
12883 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
12884 __getuid instead of getuid.
12886 * stdio-common/perror.c (perror): Use __close instead of close.
12887 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
12888 * libio/freopen.c (freopen): Likewise.
12889 * libio/freopen64.c (freopen64): Likewise.
12891 * libio/tst-ungetwc2.c (main): Define str const.
12893 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
12894 * libio/fwprintf.c: Also define __fwprintf.
12895 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
12896 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
12897 * assert/assert-perr.c: Likewise.
12898 * assert/assert.c: Likewise.
12899 * gmon/gmon.c: Likewise.
12900 * inet/rcmd.c: Likewise.
12901 * malloc/obstack.c: Likewise.
12902 * misc/err.c: Likewise.
12903 * misc/error.c: Likewise.
12904 * misc/getpass.c: Likewise.
12905 * posix/getopt.c: Likewise.
12906 * resolv/res_hconf.c: Likewise.
12907 * stdio-common/perror.c: Likewise.
12908 * stdio-common/psignal.c: Likewise.
12909 * stdlib/fmtmsg.c: Likewise.
12910 * sunrpc/auth_unix.c: Likewise.
12911 * sunrpc/clnt_perr.c: Likewise.
12912 * sunrpc/clnt_tcp.c: Likewise.
12913 * sunrpc/clnt_udp.c: Likewise.
12914 * sunrpc/clnt_unix.c: Likewise.
12915 * sunrpc/svc_simple.c: Likewise.
12916 * sunrpc/svc_tcp.c: Likewise.
12917 * sunrpc/svc_udp.c: Likewise.
12918 * sunrpc/svc_unix.c: Likewise.
12919 * sunrpc/xdr.c: Likewise.
12920 * sunrpc/xdr_array.c: Likewise.
12921 * sunrpc/xdr_rec.c: Likewise.
12922 * sunrpc/xdr_ref.c: Likewise.
12923 * sysdeps/generic/wordexp.c: Likewise.
12925 * po/it.po: Update from translation team.
12927 * misc/err.c: Handle wide oriented stderr stream.
12929 2001-08-14 Tom Rix <trix@redhat.com>
12931 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
12932 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
12934 2001-08-13 Tom Rix <trix@redhat.com>
12936 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
12937 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
12940 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
12942 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
12943 Store the access registers to the ucontext structure.
12944 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
12947 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
12948 Load the access registers from the ucontext structure.
12949 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
12952 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
12953 offsets to the new ucontext layout.
12954 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
12956 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
12957 of the ucontext structure.
12958 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12960 2001-08-15 Ulrich Drepper <drepper@redhat.com>
12962 * misc/error.c (error): Handle wide oriented stderr stream correctly.
12963 (error_at_line): Likewise.
12965 * stdio-common/perror.c (perror): Implement according to standard.
12966 The stream orientation must not be changed if the stream was not
12967 oriented before the call.
12968 * stdio-common/Makefile (tests): Add tst-perror.
12969 * stdio-common/tst-perror.c: New file.
12972 See ChangeLog.12 for earlier changes.