1 2002-09-17 Jakub Jelinek <jakub@redhat.com>
3 * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
5 * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
7 (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
9 * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
10 ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
11 (elf_machine_rel): Handle R_386_TLS_TPOFF.
12 (elf_machine_rela): Likewise.
13 Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
15 2002-09-17 Roland McGrath <roland@redhat.com>
17 * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
18 file-specific variable override so it compiles properly when using
21 * NEWS: Added item for powerpc64-linux port.
23 2002-09-17 Steven Munroe <sjmunroe@us.ibm.com>
25 Ported to PowerPC64 running Linux.
26 * sysdeps/powerpc/powerpc64/Dist: New file.
27 * sysdeps/powerpc/powerpc64/Implies: New file.
28 * sysdeps/powerpc/powerpc64/Makefile: New file.
29 * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
30 * sysdeps/powerpc/powerpc64/atomicity.h: New file.
31 * sysdeps/powerpc/powerpc64/backtrace.c: New file.
32 * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
33 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
34 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
35 * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
36 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
37 * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
38 * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
39 * sysdeps/powerpc/powerpc64/memset.S: New file.
40 * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
41 * sysdeps/powerpc/powerpc64/register-dump.h: New file.
42 * sysdeps/powerpc/powerpc64/setjmp.S: New file.
43 * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
44 * sysdeps/powerpc/powerpc64/strchr.S: New file.
45 * sysdeps/powerpc/powerpc64/strcmp.S: New file.
46 * sysdeps/powerpc/powerpc64/strcpy.S: New file.
47 * sysdeps/powerpc/powerpc64/strlen.S: New file.
48 * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
49 * sysdeps/powerpc/powerpc64/elf/start.S: New file.
50 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
51 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
52 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
53 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
54 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
55 * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
56 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
57 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
58 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
60 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
61 (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
62 various gcc versions. Dot names required for powerpc64.
63 [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
64 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
65 C_SYMBOL_DOT_NAME(alias).
66 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
67 original strong_alias macro.
68 [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
69 C_SYMBOL_DOT_NAME(alias).
70 [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
71 [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
73 Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
74 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro. Generate
75 .global C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
76 (hidden_def): Append hidden_dot_def1 macro to definition.
77 (hidden_ver): Append hidden_dot_def1 macro to definition.
78 (hidden_data_def): New macro. Same as original hidden_def macro.
79 (hidden_data_ver): New macro. Same as original hidden_ver macro.
80 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro. Generate
81 .weakext C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
82 (hidden_weak): Append hidden_dot_weak1 macro to definition.
83 (hidden_data_weak): New macro. Same as original hidden_weak macro.
84 [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
85 Otherwise defined as __GI_name.
86 (libc_hidden_data_def): New macro. Use hidden_data_def.
87 (libc_hidden_data_weak): New macro. Use hidden_data_weak.
88 (libc_hidden_data_ver): New macro. Use hidden_data_ver.
89 (rtld_hidden_data_def): New macro. Use hidden_data_def.
90 (rtld_hidden_data_weak): New macro. Use hidden_data_weak.
91 (rtld_hidden_data_ver): New macro. Use hidden_data_ver.
92 (libm_hidden_data_def): New macro. Use hidden_data_def.
93 (libm_hidden_data_weak): New macro. Use hidden_data_weak.
94 (libm_hidden_data_ver): New macro. Use hidden_data_ver.
95 * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
97 2002-09-17 Ulrich Drepper <drepper@redhat.com>
99 * include/libc-symbols.h: Change *hidden_proto macros to accept
100 option parameters and pass those to the attribute definition.
101 * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
103 * include/unistd.h: Declare __libc_pause.
105 * include/sys/socket.h: Declare __libc_send, __libc_recv,
106 __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
108 * include/unistd.h: Declare __libc_fork.
110 2002-09-17 Roland McGrath <roland@redhat.com>
112 * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
113 (passwd2des): Define it as an alias.
114 (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
116 2002-09-12 Bruno Haible <bruno@clisp.org>
118 * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
119 * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
121 * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
122 * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
124 2002-09-05 Steven Munroe <sjmunroe@us.ibm.com>
126 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
127 (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
128 __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
129 PowerPC64 does not have separate 64-bit syscalls.
131 2002-09-16 Roland McGrath <roland@redhat.com>
133 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
135 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
138 * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
140 * include/unistd.h: Uncomment libc_hidden_proto for _exit.
141 * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
142 * sysdeps/generic/_exit.c: Likewise.
144 2002-09-12 Jakub Jelinek <jakub@redhat.com>
146 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
148 * elf/rtld.c (struct dl_start_final_info): New.
149 (_dl_start_final): Change second argument to struct
150 dl_start_final_info *. Set start_time from info.
151 (_dl_start): Remove bootstrap_map variable, add info.
152 Define bootstrap_map as macro. If not DONT_USE_BOOTSTRAP_MAP,
153 store HP_TIMING_NOW result into info.start_time.
155 2002-09-16 Andreas Jaeger <aj@suse.de>
157 * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
159 * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
161 2002-09-15 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
163 * sysdeps/powerpc/abort-instr.h: New file.
165 2002-09-14 Ulrich Drepper <drepper@redhat.com>
167 * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
170 * test-skeleton.c (main): Provide more information in case waitpid
173 * include/unistd.h: Declare __exit_thread.
174 * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
175 Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
176 * sysdeps/unix/sysv/linux/exit-thread.S: New file.
177 * sysdeps/unix/sysv/linux/_exit.c: New file.
178 * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
179 * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
182 * configure.in: Add dl_iterate_phdr to test using -nostdlib.
184 2002-09-12 Jakub Jelinek <jakub@redhat.com>
186 * sysdeps/i386/dl-machine.h (elf_machine_rel)
187 (case R_386_TLS_DTPMOD32): Don't use addend.
188 [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
189 (elf_machine_rela): Add support for TLS relocs.
191 2002-09-14 Roland McGrath <roland@redhat.com>
193 * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
195 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
197 * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
198 specific asm macros for multiple percision integer math.
200 2002-06-04 Steven Munroe <sjmunroe@us.ibm.com>
202 * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
203 * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
204 Remove per-machine conditionals for FLAG_* cases.
205 * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
206 * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
207 * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
209 2002-09-10 Alan Modra <amodra@bigpond.net.au>
211 * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
213 (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
214 lowest address for profiling in __monstartup call.
215 * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
217 2002-09-14 Roland McGrath <roland@redhat.com>
219 * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
220 instead of __NR_pread.
221 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
222 * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
223 instead of __NR_pwrite.
224 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
226 2002-09-13 Roland McGrath <roland@redhat.com>
228 * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
230 2002-09-13 Andreas Jaeger <aj@suse.de>
232 * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
233 syscall. Patch by Guido Guenther <agx@sigxcpu.org>.
235 2002-09-12 Ulrich Drepper <drepper@redhat.com>
237 * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
239 2002-09-10 Ulrich Drepper <drepper@redhat.com>
241 * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
244 2002-09-12 Roland McGrath <roland@redhat.com>
246 * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
247 (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
250 * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
251 executable if needed, in case it's actually a shared object.
253 2002-09-11 Roland McGrath <roland@redhat.com>
255 * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
256 l_map_start to adjust l_tls_initimage.
258 * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
259 when using h_errno and it's not set to NETDB_INTERNAL.
260 * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
262 * Makefile ($(common-objpfx)testrun.sh): New target.
263 (others): Depend on it.
264 (postclean-generated): Append it.
266 * nss/bug-erange.c: New file.
267 * nss/Makefile (tests): Add it.
269 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
270 instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
272 * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
273 strncmp, keeps the code smaller for a non-performance-critical case.
275 * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
276 no longer wrongly matches arbitrary prefixes of NAME.
277 Reported by Jakub Jelinek <jakub@redhat.com>.
279 2002-09-11 Jakub Jelinek <jakub@redhat.com>
281 * posix/bug-regex11.c (tests): New array.
282 (main): Rewritten to run more different tests.
284 2002-09-10 Roland McGrath <roland@redhat.com>
286 * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
287 (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
288 Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
290 * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
291 well so we don't get it declared by include/math.h's hidden_proto.
292 Then do hidden_proto for __isnanf locally so hidden_def works right.
294 * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
295 a cast to turn nl_langinfo return value into an integer.
297 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
299 * posix/regexec.c (build_trtable): Fix the destination of
300 newline to prevent wrong states from overwriting.
301 Append break statements to optimization.
303 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
305 * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
306 (build_range_exp): Add castings to strlen invocations.
307 (build_collating_symbol): Restore the type of characters from "char"
308 to "unsigned char", and supplement castings.
309 (build_collating_symbol): Likewise.
310 (build_equiv_class): Likewise.
311 (build_charclass): Likewise.
312 (seek_collating_symbol_entry): Likewise.
313 (parse_bracket_exp): Likewise.
314 (build_word_op): Supplement a casting.
315 * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
316 (re_string_allocate): Fix castings.
317 (re_string_construct): Likewise.
318 (re_string_construct_common): Likewise.
319 (re_string_realloc_buffers): Likewise.
320 (build_wcs_buffer): Likewise.
321 (build_wcs_upper_buffer): Likewise.
322 (re_string_skip_chars): Likewise.
323 (re_string_reconstruct): Likewise.
324 * posix/regex_internal.h: Restore the type of characters in
325 re_string_t and bracket_elem_t from "char" to "unsigned char".
326 (re_string_elem_size_at): Fix castings.
327 * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
328 (transit_state_bkref_loop): Restore the type of characters from
329 "char" to "unsigned char", and append a cast to "char*" pointer in
331 (check_node_accept_bytes): Likewise.
332 (find_collation_sequence_value): Likewise.
334 2002-09-10 Hartvig Ekner <hartvige@mips.com>
336 * sysdeps/mips/memcpy.S: New file.
337 * sysdeps/mips/memset.S: New file.
338 * sysdeps/mips/fpu/e_sqrt.c: New file.
339 * sysdeps/mips/fpu/e_sqrtf.c: New file.
341 * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
342 functional before. Also removed all SHLIB_COMPAT stuff.
343 * fpu/fegetenv.c: Likewise.
344 * fpu/fesetenv.c:: Likewise.
345 * fpu/feupdateenv.c: Likewise.
346 * fpu/fgetexcptflg.c: Likewise.
347 * fpu/fraiseexcpt.c: Likewise.
349 * sysdeps/mips/fpu/fsetexcptflg.c: New file.
351 2002-09-09 Jakub Jelinek <jakub@redhat.com>
353 * include/math.h (__finite_internal, __finitef_internal,
354 __finitel_internal, __isinf_internal, __isnan_internal): Remove.
356 (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
357 __isinfl, __isnanl): Add hidden_proto.
358 (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
360 * math/Makefile (libm-calls): Add s_isinf and s_isnan.
361 * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
363 * stdio-common/printf_size.c (printf_size): Likewise.
364 * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
365 * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
366 * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
367 * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
368 * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
369 * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
370 (__finite): Add hidden_def.
371 * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
372 (__finitef): Add hidden_def.
373 * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
374 (__finitel): Add hidden_def.
375 * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF. Add
377 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
378 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
380 * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
381 * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF. Add
383 * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
384 (__isinfl): Remove INTDEF.
385 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF. Add
387 (__isnanl): Remove INTDEF.
388 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
390 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
391 instead of sin and cos.
392 * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
394 * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
395 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
396 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
398 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
400 * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
401 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
402 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
404 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
406 * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
408 * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
409 * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
410 * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
412 * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
413 __finitel_internal): Remove aliases.
414 (__finite, __finitef, __finitel): Add hidden_def.
415 * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
416 __isnanl_internal): Remove aliases.
417 (__isnan, __isnanf, __isnanl): Add hidden_def.
418 * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
419 __isinfl_internal): Remove aliases.
420 (__isinf, __isinff, __isinfl): Add hidden_def.
421 * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
422 __fpclassifyl): Add libm_hidden_def.
423 * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
424 * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF. Add hidden_def.
425 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
426 (hidden_defx): Define and use.
427 * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
429 * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
430 * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
431 * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
433 (__isnan, __isnanf): Add hidden_def.
434 * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
435 (__finitel): Add libm_hidden_def.
436 * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
438 * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
439 * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
440 * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
441 * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
442 * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
443 * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
444 * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
445 * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
446 * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
447 * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
448 * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
449 * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
450 * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
451 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
452 * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
453 * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
454 * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
455 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
456 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
457 * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
458 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
459 * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
460 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
461 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
462 * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
463 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
464 * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
466 2002-09-09 Steven Munroe <sjmunroe@us.ibm.com>
468 * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
470 2002-09-09 Jakub Jelinek <jakub@redhat.com>
472 * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
473 LD_DEBUG=statistics or LD_TRACE_PRELINKING.
475 2002-09-09 Ulrich Drepper <drepper@redhat.com>
477 * string/stratcliff.c: Some more strncpy tests.
478 Patch by Daniel Jacobowitz <drow@mvista.com>.
480 2002-09-08 Roland McGrath <roland@redhat.com>
482 * resolv/resolv.h: Include <sys/types.h> for u_long even in
483 the [__need_res_state] case.
484 Reported by Bruno Haible <bruno@clisp.org>.
486 2002-09-04 Bruno Haible <bruno@clisp.org>
488 * sysdeps/generic/bits/ustat.h: Comment fix.
489 * io/sys/sendfile.h: Comment fix.
490 * sysdeps/posix/pread.c: Comment fix.
491 * sysdeps/posix/pread64.c: Comment fix.
492 * sysdeps/posix/pwrite.c: Comment fix.
493 * sysdeps/posix/pwrite64.c: Comment fix.
495 2002-09-06 Roland McGrath <roland@redhat.com>
497 * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
498 to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
499 (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
500 (_UTSNAME_MACHINE_LENGTH): Likewise.
501 (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
503 2002-09-06 Ulrich Drepper <drepper@redhat.com>
505 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
506 test for filesystem type name of mount points.
508 * include/errno.h: Use errno definition with __thread for now only
511 * test-skeleton.c (main): Improve error message for unexpected
514 2002-09-05 Roland McGrath <roland@redhat.com>
516 * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
517 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
519 2002-09-05 Jakub Jelinek <jakub@redhat.com>
521 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
524 2002-09-04 Bruno Haible <bruno@clisp.org>
526 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
527 sigset_get_old_mask): Turn into inline functions.
528 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
529 sigset_get_old_mask): Likewise.
530 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
531 sigset_get_old_mask): Likewise.
532 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
535 * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
537 * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
539 (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
540 _sys_nerr_internal instead of _sys_nerr.
542 * nscd/connections.c (handle_request): Declare CALLER inside #if.
544 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
546 * sysdeps/powerpc/__longjmp.S: Moved to...
547 * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
548 * sysdeps/powerpc/add_n.S: Moved to...
549 * sysdeps/powerpc/powerpc32/add_n.S: ...here.
550 * sysdeps/powerpc/addmul_1.S: Moved to...
551 * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
552 * sysdeps/powerpc/atomicity.h: Moved to...
553 * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
554 * sysdeps/powerpc/backtrace.c: Moved to...
555 * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
556 * sysdeps/powerpc/bp-asm.h: Moved to...
557 * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
558 * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
559 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
560 * sysdeps/powerpc/bsd-setjmp.S: Moved to...
561 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
562 * sysdeps/powerpc/dl-machine.c: Moved to...
563 * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
564 * sysdeps/powerpc/dl-machine.h: Moved to...
565 * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
566 * sysdeps/powerpc/dl-start.S: Moved to...
567 * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
568 * sysdeps/powerpc/gprrest0.S: Moved to...
569 * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
570 * sysdeps/powerpc/gprrest1.S: Moved to...
571 * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
572 * sysdeps/powerpc/gprsave0.S: Moved to...
573 * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
574 * sysdeps/powerpc/gprsave1.S: Moved to...
575 * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
576 * sysdeps/powerpc/lshift.S: Moved to...
577 * sysdeps/powerpc/powerpc32/lshift.S: ...here.
578 * sysdeps/powerpc/memset.S: Moved to...
579 * sysdeps/powerpc/powerpc32/memset.S: ...here.
580 * sysdeps/powerpc/mul_1.S: Moved to...
581 * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
582 * sysdeps/powerpc/ppc-mcount.S: Moved to...
583 * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
584 * sysdeps/powerpc/register-dump.h: Moved to...
585 * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
586 * sysdeps/powerpc/rshift.S: Moved to...
587 * sysdeps/powerpc/powerpc32/rshift.S: ...here.
588 * sysdeps/powerpc/setjmp.S: Moved to...
589 * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
590 * sysdeps/powerpc/stpcpy.S: Moved to...
591 * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
592 * sysdeps/powerpc/strchr.S: Moved to...
593 * sysdeps/powerpc/powerpc32/strchr.S: ...here.
594 * sysdeps/powerpc/strcmp.S: Moved to...
595 * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
596 * sysdeps/powerpc/strcpy.S: Moved to...
597 * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
598 * sysdeps/powerpc/strlen.S: Moved to...
599 * sysdeps/powerpc/powerpc32/strlen.S: ...here.
600 * sysdeps/powerpc/sub_n.S: Moved to...
601 * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
602 * sysdeps/powerpc/submul_1.S: Moved to...
603 * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
604 * sysdeps/powerpc/elf/bzero.S: Moved to...
605 * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
606 * sysdeps/powerpc/elf/start.S: Moved to...
607 * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
608 * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
609 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
610 * sysdeps/powerpc/fpu/fprrest.S: Moved to...
611 * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
612 * sysdeps/powerpc/fpu/fprsave.S: Moved to...
613 * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
614 * sysdeps/powerpc/fpu/setjmp.S: Moved to...
615 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
616 * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
617 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
618 * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
619 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
620 * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
621 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
622 * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
623 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
624 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
625 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
626 * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
627 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
628 * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
629 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
630 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
631 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
632 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
633 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
634 Support PowerPC64. Separate powerpc into powerpc/powerpc32 and
637 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
639 * FAQ.in: Add powerpc64 to supported targets list. Also state the
640 minimum gcc version is 3.2
641 * README: Add powerpc64 to supported targets list.
642 * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
643 Add powerpc64 and machine=powerpc/powerpc64.
644 (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
645 * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
646 * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
647 gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
648 * sysdeps/powerpc/powerpc32/Dist: New file.
649 * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
650 * sysdeps/powerpc/powerpc32/Implies: New file.
651 * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
652 ($(with-fp) = no): Move test to powerpc32/Makefile.
653 ($(subdir) = misc): Move to powerpc32/Makefile.
654 ($(build-shared) = yes): Move to powerpc32/Makefile.
655 ($(subdir) = csu): Move to powerpc32/Makefile.
656 (sysdep-rtld-routines): Remove dl-start. Moved these bits to ...
657 * sysdeps/powerpc/powerpc32/Makefile: New file.
658 * sysdeps/powerpc/Versions: Remove libgcc functions.
659 * sysdeps/powerpc/powerpc32/Versions: New file.
660 * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
661 * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
662 * sysdeps/unix/sysv/linux/configure.in (powerpc*):
663 Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
664 libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
665 ($machine): Add powerpc/powerpc64 to if ... | for
666 libc_cv_slibdir=/libc64.
667 (powerpc*): Set ldd_rewrite_script.
668 * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
669 * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
670 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
672 * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
673 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
674 functions. Remove GLIBC_2.2 functions except getrlimit and
675 setrlimit. Moved them to ...
676 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
678 2002-09-04 Ulrich Drepper <drepper@redhat.com>
680 * libio/tst-atime.c: Include <errno.h>.
681 (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
683 2002-09-03 Isamu Hasegawa <isamu@yamato.ibm.com>
685 * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
686 warnings of some compilers.
687 (build_collating_symbol): Change the type of characters from
688 "unsigned char" to "char", and append a cast to "char*" pointer in
690 (build_collating_symbol): Likewise.
691 (build_equiv_class): Likewise.
692 (build_charclass): Likewise.
693 (re_compile_pattern): Remove incorrect cast.
694 (re_compile_fastmap_iter): Change the type of characters from
695 "unsigned char" to "char", and append a cast to "char*" pointer
697 (parse_bracket_exp): Likewise.
698 * posix/regex_internal.c (re_string_construct_common): Likewise.
699 (re_string_allocate): Likewise.
700 (re_string_construct): Likewise.
701 (re_string_realloc_buffers): Likewise.
702 (build_wcs_buffer): Likewise.
703 (re_string_reconstruct): Likewise.
704 * posix/regex_internal.h: Change the type of characters in
705 re_string_t and bracket_elem_t from "unsigned char" to "char".
706 * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
707 warnings of some compilers.
708 (transit_state_bkref_loop): Change the type of characters from
709 "unsigned char" to "char", and append a cast to "char*" pointer in
711 (check_node_accept_bytes): Likewise.
712 (find_collation_sequence_value): Likewise.
714 2002-09-04 Roland McGrath <roland@redhat.com>
716 * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
717 from 1024 to 65536, to avoid buffer overrun.
719 2002-09-03 Gerhard Tonn <ton@de.ibm.com>
721 * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
723 2002-09-04 Ulrich Drepper <drepper@redhat.com>
725 * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
728 2002-09-04 Jakub Jelinek <jakub@redhat.com>
730 * posix/bug-regex11.c: New test.
731 * posix/Makefile (tests): Add bug-regex11.
733 2002-09-03 Jakub Jelinek <jakub@redhat.com>
735 * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
738 2002-09-02 Roland McGrath <roland@redhat.com>
740 * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
741 __pthread_initialize_minimal and __libc_check_standard_fds to
742 match the generic version.
744 * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
745 warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
747 * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
748 warnings on platorms where char is unsigned.
750 2002-09-02 Ulrich Drepper <drepper@redhat.com>
752 * version.h (VERSION): Bump to 2.2.93.
754 * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
756 2002-09-02 Jakub Jelinek <jakub@redhat.com>
758 * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
761 2002-09-02 Jack Howarth <howarth@bromo.msbb.uc.edu>
763 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
765 2002-09-02 Jakub Jelinek <jakub@redhat.com>
767 * locale/localeinfo.h (struct locale_data): Add private.ctype.
768 * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
769 __wcsmbs_to_wc, update_conversion_ptrs): Removed.
770 (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
771 (__wcsmbs_load_conv): Remove const from argument.
772 (_nl_cleanup_ctype): New proto.
773 (get_gconv_fcts): New function.
774 * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
775 (__wcsmbs_to_wc): Rename back to...
777 (__wcsmbs_gconv_fcts): Rename to...
778 (__wcsmbs_gconv_fcts_c): ... this. Make const. Use to_wc.
780 (__libc_setlocale_lock): New extern.
781 (__wcsmbs_load_conv): Remove const from argument.
782 Initialize new_category->private.ctype instead of a global
784 (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
785 update_function_ptrs. No locking is necessary.
786 (_nl_cleanup_ctype): New function.
787 * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
788 update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
789 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
790 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
791 * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
792 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
793 * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
794 * wcsmbs/wctob.c (wctob): Likewise.
795 * stdlib/mblen.c (mblen): Likewise.
796 * stdlib/mbtowc.c (mbtowc): Likewise.
797 * stdlib/wctomb.c (wctomb): Likewise.
798 * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
799 Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
800 * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
803 2002-09-02 Roland McGrath <roland@frob.com>
805 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
807 2002-09-01 Roland McGrath <roland@redhat.com>
809 * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
810 Variable declarations removed.
811 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
812 these functions to replace them.
813 (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
814 functions plus an indirection rather than the old global variables.
815 * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
817 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
819 * ctype/ctype-info.c: Revert last reversion back the other way.
820 Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
821 Define real function versions of include/ctype.h inlines here.
822 * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
823 __ctype_tolower_loc, __ctype_toupper_loc.
824 * locale/lc-ctype.c: Revert last reversion back the other way.
825 (_nl_postload_ctype): If current thread uses the global locale,
827 * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
828 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
829 CTYPE_TOLOWER, CTYPE_TOUPPER.
831 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
832 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
833 from __libc_tsd_threadvar_location.
834 (__libc_tsd_set, __libc_tsd_get): Update uses.
836 2002-09-01 Ulrich Drepper <drepper@redhat.com>
838 * ctype/ctype.h: Undo the patch before the last one. Put back the
839 macro definitions for the standard functions to access the
840 classification and mapping arrays.
841 * include/ctype.h: Partly revert last patch. Move the macro
842 definitions for the exported functions back to the public header.
843 #undef all the macros defined here before redefining.
844 * ctype/ctype-info.c: Revert last patch.
845 * locale/lc-ctype.c: Revert last patch.
847 * ctype/Makefile (routines): Add isctype.
848 * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
849 * ctype/ctype.h: Add declaration of isctype.
850 * include/ctype.h: Declare __isctype.
851 * ctype/isctype.c: New file.
853 2002-09-01 Roland McGrath <roland@redhat.com>
855 * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
856 TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
858 * include/getopt.h: Include <features.h> before <posix/getopt.h>.
860 * locale/findlocale.c (_nl_remove_locale): Don't search in
861 _nl_locale_file_list if DATA->alloc is ld_archive.
862 Use _nl_unload_locale to do the rest of the work.
864 * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
865 of new structure to UNDELETABLE.
867 * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
868 iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
869 towlower, towupper): Macros removed.
870 * ctype/ctype.h (__tobody): Put parens around macro argument.
871 (__isctype): Macro removed.
872 (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
873 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
874 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
875 tolower, toupper): Macros and inlines removed.
876 * include/ctype.h [! NOT_IN_libc]
877 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
878 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
879 tolower, toupper): Define here instead, using _NL_CURRENT.
880 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
882 * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
883 * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
884 Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
885 (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
886 (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
887 * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
888 conditional on SHLIB_COMPAT. Don't set removed variables at all.
889 * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
890 * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
891 * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
892 (ISSORTMASK): Update use.
893 * intl/localealias.c [__GNUC__]: #undef alloca before #define.
894 * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
895 (_nss_files_getENTNAME_r): Likewise.
896 * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
899 * Makerules (all-nonlib): Renamed from all-tests.
900 Include $(others) here too.
901 * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
902 CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
903 CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
904 CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
905 CPPFLAGS-charmap-dir): Variables removed. Instead, catch all
906 the program modules via cppflags-iterator.mk.
907 * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
908 Instead, catch all rpcgen-objs via cppflags-iterator.mk.
910 2002-08-31 Roland McGrath <roland@redhat.com>
912 * posix/tst-getconf.sh: If no third arg, work with static linking.
914 * locale/categories.def (LC_TIME): No more _nl_postload_time.
916 * locale/setlocale.c (_nl_category_postload): Use weak refs only under
917 [_NL_CURRENT_INDIRECT].
919 2002-08-31 Ulrich Drepper <drepper@redhat.com>
921 * time/tst-ftime_l.c (main): Also test strftime with uselocale.
923 2002-08-31 Roland McGrath <roland@redhat.com>
925 * locale/newlocale.c (__newlocale): Don't use strdup for names.
926 Instead, make the single allocation of the structure larger to hold
928 * locale/duplocale.c (__duplocale): Don't strdup names individually.
929 Instead, calculate size for a single allocation and copy into it.
930 * locale/freelocale.c (__freelocale): Don't free names individually.
932 * locale/newlocale.c (__newlocale): Don't leak old data or names.
934 * locale/xlocale.h (__locale_struct): Move __names member last,
935 for binary compatibility.
937 * locale/duplocale.c (__duplocale): Free names from the right array.
939 * locale/uselocale.c (__uselocale): Return previous locale when
942 * locale/newlocale.c: Commit changes from 2002-08-30
943 batch where I failed to commit this file:
944 (__newlocale): Fill in __names array.
946 2002-08-31 Ulrich Drepper <drepper@redhat.com>
948 * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
949 errlist-compat.c if versioning==yes.
951 2002-08-31 Andreas Jaeger <aj@suse.de>
953 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
954 external functions with hidden attribute.
955 (elf_machine_rela): Optimize.
957 * sysdeps/x86_64/memset.S: New file.
958 * sysdeps/x86_64/bzero.S: New file.
959 * sysdeps/x86_64/stpcpy.S: New file.
960 * sysdeps/x86_64/strcat.S: New file.
961 * sysdeps/x86_64/strchr.S: New file.
962 * sysdeps/x86_64/strcpy.S: New file.
963 * sysdeps/x86_64/strcspn.S: New file.
964 * sysdeps/x86_64/strlen.S: New file.
965 * sysdeps/x86_64/strpbrk.S: New file.
966 * sysdeps/x86_64/strspn.S: New file.
967 * sysdeps/x86_64/strcmp.S: New file.
968 * sysdeps/x86_64/strtok_r.S: New file.
969 * sysdeps/x86_64/strtok.S: New file.
970 * sysdeps/x86_64/memcpy.S: New file.
971 * sysdeps/x86_64/mempcpy.S: New file.
973 * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
975 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
977 2002-08-31 Ulrich Drepper <drepper@redhat.com>
979 * stdio-common/Makefile (generated): Add errlist-compat.c.
981 * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
983 * locale/localeinfo.h: Pretty printing.
985 * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
986 form_number handling.
988 2002-08-31 Andreas Jaeger <aj@suse.de>
990 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
993 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
996 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
998 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1000 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1001 registers used for passing args.
1003 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1004 all needed registers.
1006 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1009 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1012 2002-08-30 Ulrich Drepper <drepper@redhat.com>
1014 * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1015 always_inline attribute.
1017 2002-08-30 Roland McGrath <roland@redhat.com>
1019 * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1020 presume it's the stub and bail without error.
1022 * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1023 neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1025 * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1027 * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1028 macros replace the i686 versions for 64-bit mode.
1030 * locale/duplocale.c: Include <string.h>.
1032 * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1033 [_LIBC] (category_to_name): Don't define the function. Instead
1034 define a macro using _nl_category_names.
1036 * locale/xlocale.h (struct __locale_struct): New member `__names'.
1037 * locale/xlocale.c (_nl_C_locobj): Update initializer.
1038 * locale/global-locale.c (_nl_global_locale): Likewise.
1039 * locale/duplocale.c (__duplocale): strdup __names elements.
1040 * locale/freelocale.c (__freelocale): Free __names elements.
1041 * locale/localename.c (_nl_current_names): Variable removed.
1042 (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1043 * locale/localeinfo.h (_nl_current_names): Removed decl.
1044 * locale/setlocale.c: Use _nl_global_locale->__names in place of
1045 _nl_current_names throughout.
1047 * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1049 * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1050 and sys_nerr in the output file.
1052 * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1053 * scripts/cpp: Just use the environment variable.
1055 * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1056 * libio/tst-mmap-offend.c (do_test): Likewise.
1057 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1058 * libio/tst-mmap-eofsync.c (do_test): Likewise.
1059 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1061 * locale/localename.c: If the current locale is the global locale, use
1062 _nl_current_names; otherwise use the locale object.
1064 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1066 * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1067 'm' to enable mmap I/O.
1068 * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2. The
1069 former wasn't used (anymore?).
1070 (_IO_FLAGS2_MMAP): New define.
1071 * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1072 * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1073 _IO_FLAGS2_MMAP bit is set.
1074 * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1075 Enable mmap-using mode only if 'm' was set.
1077 2002-08-29 Roland McGrath <roland@frob.com>
1079 * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1081 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1082 Change argument type from int to intptr_t.
1084 * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1085 initializer on [! _HURD_THREADVAR_H] (bad kludge).
1086 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1087 _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1088 * hurd/hurdsig.c (_hurdsig_init): Likewise. Zero other slots.
1090 * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1092 * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1094 * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1096 * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1097 * assert/assert-perr.c: Add libc_hidden_def.
1098 * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1100 * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1102 * sysdeps/gnu/Versions: File removed. Moved all #errlist-compat
1103 sys_errlist stuff to ...
1104 * sysdeps/unix/sysv/linux/Versions: ... here.
1106 * mach/mach.h: Include <features.h>.
1108 2002-08-29 Roland McGrath <roland@redhat.com>
1110 * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1111 * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1112 define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1114 * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1116 * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1117 (norm_add_slashes): alloca -> __alloca
1119 2002-08-29 Jakub Jelinek <jakub@redhat.com>
1121 * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1122 string_malloced, it is unlikely to be set.
1123 Only call free with non-NULL workspace.
1124 * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1125 -mcpu=ultrasparc, not only tune for it.
1126 (ASFLAGS*): Set unconditionally.
1128 * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1129 ElfW(Addr). Don't mask upper 32-bits and lower 12 bits off from
1130 p_vaddr/p_offset when computing LOADADDR.
1132 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1134 * version.h (VERSION): Bump to 2.2.92.
1136 * time/Makefile (tst-ftime_l-ENV): New variable.
1138 * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1140 * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1141 <U017A>, <U017D> and <U0179>. Add missing mappings.
1142 Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1144 * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1145 Define ARCINDEX. Bump MAXARCS to 1 << 20.
1146 (struct tostruct): Use ACRINDEX as type for link field.
1147 (statuc gmonparam): Likewise for froms.
1148 * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1150 (write_call_graph): Use correct type for from_index and to_index.
1151 * gmon/mcount.c: Use correct types for frompcindex and toindex
1153 Patches by Dan Kegel <dank@kegel.com>.
1155 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1158 * time/strptime.c (ISSPACE): New #define. Use isspace or
1159 __isspace_l. Replace calls to isspace.
1160 (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1162 2002-08-29 Roland McGrath <roland@redhat.com>
1164 * string/tst-strxfrm.c: Remove __ from function names.
1166 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1168 * include/wchar.h: Declare __mbsrtowcs_l.
1169 * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1170 * wcsmbs/mbsrtowcs.c: Add support for compilation with
1171 USE_IN_EXTENDED_LOCALE_MODEL.
1172 * wcsmbs/mbsrtowcs_l: New file.
1173 * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc. Don't
1174 define as static. Change all uses.
1175 (__wcsmbs_getfct): Renamed from getfct. Don't define as static.
1177 * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1178 * time/strftime.c: When translating for the extended locale model
1179 use the _l functions.
1180 * time/Makefile (tests): Add tst-ftime_l.
1181 * time/tst-ftime_l.c: New file.
1183 2002-08-28 Roland McGrath <roland@redhat.com>
1185 * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1186 * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1187 from _nl_find_locale ok if for _nl_C_name.
1189 * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1190 iterator to refer to each category's _nl_current_LC_FOO symbol, so
1191 we know they are all linked in.
1193 * NEWS: Added 2.2.6 text from 2.2 branch version.
1195 * time/strptime.c (strptime_internal): Remove spurious const.
1197 * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1198 _nl_select_era_entry): Moved to ...
1199 * time/era.c: ... here, new file.
1200 (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1201 Add internal_function to definitions. Take an additional argument
1202 giving the `struct locale_data *' to use.
1203 * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1204 _nl_parse_alt_digit): Moved to ...
1205 * time/alt_digit.c: ... here, new file.
1206 * time/lc-time-cleanup.c: New file.
1207 * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1208 * locale/localeinfo.h (_nl_postload_time): Remove decl.
1209 (_nl_cleanup_time): Declare it.
1210 (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1211 (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1212 * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1213 * time/strftime.c: Pass locale data to helper functions.
1214 * time/strptime.c: Likewise.
1216 * locale/localeinfo.h (struct locale_data): New member `private'
1217 * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1218 (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1219 * locale/C-collate.c: Update initializer.
1220 * locale/C-identification.c: Likewise.
1221 * locale/C-measurement.c: Likewise.
1222 * locale/C-telephone.c: Likewise.
1223 * locale/C-address.c: Likewise.
1224 * locale/C-name.c: Likewise.
1225 * locale/C-paper.c: Likewise.
1226 * locale/C-time.c: Likewise.
1227 * locale/C-numeric.c: Likewise.
1228 * locale/C-monetary.c: Likewise.
1229 * locale/C-messages.c : Likewise.
1230 * locale/C-ctype.c: Likewise.
1232 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1235 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1237 * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1238 (_rtld_global): Use it.
1240 * sysdeps/gnu/Dist: Remove errlist-compat.c.
1241 * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1242 object directory. Pass all Versions files to the awk script.
1243 * sysdeps/gnu/errlist-compat.c: Removed.
1244 * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1245 first Versions file in the search path which has them.
1246 Allow multiple errlist symbol versions to have the same count of
1248 * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1249 of "errlist-compat.c".
1250 * sysdeps/gnu/errlist.c: Regenerated.
1251 * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1252 comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1253 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1254 (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1255 * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1256 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1257 * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1258 * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1259 ECANCELLED if not defined by kernel headers.
1260 * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1261 already defined by kernel headers.
1262 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1263 * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1264 aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1266 * Versions.def (GLIBC_2.3) [librt]: Add.
1268 * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1270 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1272 * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1273 missing comma to .type directive.
1275 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1277 * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1279 * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1281 (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1283 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1285 * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1286 check to close_and_out close. Replace return NULL statements where
1287 fd might be >= 0 with goto close_and_out. Close the file descriptor
1288 when it is no longer needed.
1290 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1292 * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1294 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1295 * sysdeps/arm/dl-machine.h: Likewise.
1296 * sysdeps/cris/dl-machine.h: Likewise.
1297 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1298 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1300 2002-08-28 Roland McGrath <roland@redhat.com>
1302 * Makeconfig (default_cflags): Revert unintended change.
1304 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1306 * version.h (VERSION): Bump to 2.2.91.
1308 * configure.in: Disable TLS support by default for now.
1310 * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1312 * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1315 * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1317 * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1318 fprintf/fwprintf calls.
1320 2002-08-28 Roland McGrath <roland@redhat.com>
1322 * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1323 to use $(filter ...) instead. Same bug fixed in aix conditionals.
1325 * locale/setlocale.c: Declare postload functions weak.
1327 * elf/tst-tls1-static.c: New file.
1328 * elf/tst-tls2-static.c: New file.
1329 * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1331 Make uselocale support static linking.
1332 * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1333 This file again just defines _nl_C_locobj.
1334 (_nl_C_locobj): Use a categories.def iterator in the initializer.
1335 * locale/global-locale.c: New file. Define _nl_global_locale here,
1336 using all weak references in the initializer.
1337 * locale/Makefile (aux): Add global-locale.
1338 * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1339 these unconditional, along with the tsd decl.
1340 [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1341 Define it under these conditions.
1342 [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1343 Don't declare _nl_current. Declare _nl_current_LC_FOO as
1344 `extern __thread struct locale_data *const *'.
1345 [NL_CURRENT_INDIRECT]
1346 (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1347 [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten. Define
1348 the thread variable _nl_current_LC_FOO and also a special absolute
1349 symbol _nl_current_LC_FOO_used.
1350 * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1351 Set each _nl_current_LC_FOO symbol to point into the new locale,
1352 using weak references to test if _nl_current_LC_FOO_used was linked in.
1353 * locale/setlocale.c [! SHARED]: Replace this conditional ...
1354 [NL_CURRENT_INDIRECT]: ... with this one.
1355 (_nl_current, _nl_C): Variables removed.
1356 [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1357 weak references to _nl_current_LC_FOO_used.
1358 [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1359 (free_category): New function, broken out of ...
1360 (free_mem): ... here. Call that.
1361 (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1364 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1365 PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1366 it is already absolute.
1368 * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1369 [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1370 [$(build-static) = yes] (tests-static): New variable.
1371 ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1373 2002-08-26 Christoph Hellwig <hch@lst.de>
1375 * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1376 formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1378 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1380 * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1382 * sysdeps/s390/Dist: Add bits/link.h.
1384 * sysdeps/sh/Dist: New file.
1386 * sysdeps/ia64/Dist: Add ia64libgcc.S.
1388 * sysdeps/wordsize-32/Dist: New file.
1390 * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1391 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1392 * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1394 * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1397 * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1400 * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1402 * sysdeps/unix/bsd/sun/Dist: New file.
1404 * sysdeps/unix/bsd/osf/Dist: New file.
1406 * sysdeps/unix/bsd/hp/Dist: New file.
1408 * sysdeps/unix/arm/Dist: New file.
1410 * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1412 * sysdeps/mach/hurd/Dist: Add set-init.c.
1414 * sysdeps/i386/Dist: Add bits/link.h.
1416 * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1418 * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1420 * locale/Makefile (distribute): Add hashval.h.
1422 * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1424 * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1426 * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1427 __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1428 __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1429 * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1431 * libio/stdio.h: Likewise.
1432 * locale/locale.h: Likewise.
1433 * math/math.h: Likewise.
1434 * math/bits/mathcalls.h: Likewise.
1435 * setjmp/setjmp.h: Likewise.
1436 * signal/signal.h: Likewise.
1437 * stdlib/stdlib.h: Likewise.
1438 * string/string.h: Likewise.
1439 * time/time.h: Likewise.
1440 * wcsmbs/wchar.h: Likewise.
1441 * wctype/wctype.h: Likewise.
1443 2002-08-28 Roland McGrath <roland@redhat.com>
1445 * locale/tst-C-locale.c (run_test): Remove __ from function names.
1447 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1448 Roland McGrath <roland@redhat.com>
1450 * locale/hashval.h (compute_hashval): Use prototype defn.
1451 (hashval_t): New macro, defined to unsigned long int
1452 if not already defined.
1453 (compute_hashval): Return hashval_t instead of unsigned long int.
1454 * locale/loadarchive.c (hashval_t): New macro.
1455 * locale/programs/locarchive.c: Include hashval.h directly instead
1457 (compute_hashval, hashval_t): Define these macros first.
1458 (insert_name): Use archive_hashval instead of compute_hashval.
1459 (add_locale, delete_locales_from_archive): Likewise.
1461 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1463 * locale/programs/locarchive.c (insert_name): Suppress warnings about
1464 hash collisions if be_quiet.
1466 2002-08-27 Roland McGrath <roland@redhat.com>
1468 * locale/locale.h (__newlocale, __duplocale, __freelocale,
1469 __uselocale): Don't declare these any more.
1470 * include/locale.h (__uselocale): Declare here instead, using __typeof.
1472 * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1473 and treat it as an EOF return.
1474 * sysdeps/unix/readdir_r.c: Likewise.
1476 * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1477 From Alexandre Oliva <aoliva@redhat.com>.
1478 * sysdeps/gnu/errlist-compat.c: Regenerated.
1480 2002-08-27 Brian Youmans <3diff@gnu.org>
1482 * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1483 wording at request of copyright holder Stephen Moshier.
1484 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1485 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1486 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1487 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1488 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1489 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1490 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1491 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1492 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1493 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1494 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1495 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1496 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1497 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1499 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1501 * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1502 * ctype/ctype-extn.c (isblank_l): Add weak alias.
1503 * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1504 * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1505 * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1506 * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1507 * wctype/iswctype_l.c (iswctype_l): Likewise.
1509 2002-08-27 Roland McGrath <roland@redhat.com>
1511 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1513 * ctype/ctype.h (__exctype_l): Don't declare __ name.
1514 * stdlib/stdlib.h: Don't declare __*_l names.
1515 * include/stdlib.h: Declare them here instead.
1516 * include/string.h: Don't declare __*_l names.
1517 * string/string.h: Declare them here instead.
1518 * time/time.h: Don't declare __*_l names.
1519 * include/time.h: Declare them here instead.
1520 * wcsmbs/wchar.h: Don't declare __*_l names.
1521 * include/wchar.h: Declare them here instead.
1522 * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1523 Don't declare __*_l names.
1524 * include/wctype.h: Declare them here instead.
1525 * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1526 * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1527 * locale/langinfo.h: Don't declare __nl_langinfo_l.
1528 * include/langinfo.h: Declare it here with __typeof.
1530 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1531 instead, taking an extra __locale_t argument.
1532 * time/Makefile (routines): Add strptime_l.
1533 * time/time.h (__strptime_l, strptime_l): Declare them.
1534 * time/strptime_l.c: New file.
1536 * time/time.h (__strftime_l, strftime_l): Declare them.
1537 * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1538 * time/strftime_l.c: New file.
1539 * time/wcsftime_l.c: New file.
1540 * time/Makefile (routines): Add strftime_l, wcsftime_l.
1541 * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1542 strftime_l, wcsftime_l.
1543 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1544 or __wcsftime_l instead, taking an extra __locale_t argument.
1546 * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1547 (libc: GLIBC_2.3): ... here.
1549 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1551 * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1553 * Makefile (distribute): Add LICENSES.
1555 * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1558 * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1560 * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1562 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1564 * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1566 * sysdeps/mach/hurd/alpha/Dist: New file.
1568 * sysdeps/arm/Dist: Add bits/link.h.
1570 * sunrpc/Makefile: Distribute thrsvc.
1572 * stdio-common/Makefile: Remove more left-overs from old stdio.
1574 * include/linewrap.h: Removed.
1576 * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1578 * intl/Makefile (distribute): Add plural-eval.c.
1580 2002-08-27 Roland McGrath <roland@redhat.com>
1582 * manual/sysinfo.texi (Mount Information): Correct file name to macro
1583 assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1584 Say mtab is in either /var/run or /etc.
1586 2002-08-26 Roland McGrath <roland@redhat.com>
1588 * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1589 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1591 * sysdeps/gnu/Versions: New file.
1592 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1593 _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1594 * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1595 ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1596 * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1597 and _sys_nerr_internal instead of anything else. Make it include
1598 "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1599 Make it emit some asm magic if [EMIT_ERR_MAX].
1600 * sysdeps/gnu/errlist.c: Regenerated.
1601 * sysdeps/gnu/errlist-compat.awk: New file.
1602 * sysdeps/gnu/errlist-compat.c: New file (generated).
1603 * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1604 (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1605 (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1606 (SYS_ERRLIST, SYS_NERR): Macros removed.
1607 (sys_nerr, _sys_nerr): Remove these weak aliases.
1608 * sysdeps/unix/sysv/linux/errlist.c: File removed.
1609 * sysdeps/unix/sysv/linux/errlist.h: File removed.
1610 * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1612 * include/libc-symbols.h (declare_symbol): New macro.
1613 * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1614 * configure.in: New check to define it.
1615 * configure: Regenerated.
1617 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1619 * stdio-common/Makefile (headers): Remove bits/stdio_lim.h. This
1620 file isn't distributed. Add special rules to install bits/stdio_lim.h.
1622 * Make-dist: Remove traces of old stdio.
1623 * Makeconfig: Likewise.
1625 * locale/Makefile (localedef-aux): New variable. Only md5
1626 assigned to it. These files are not ddistributed in this directory.
1628 * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1629 * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1630 * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1632 * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1634 * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1635 set h_errno to NO_RECOVERY [PR libc/4360].
1637 2002-08-26 Ulrich Drepper <drepper@redhat.com>
1639 * libio/Makefile (tests): Add bug-fopena+.
1640 * libio/bug-fopena+.c: New file.
1641 * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1642 file for _IO_IS_APPENDING if file isn't opened for reading, too.
1644 * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1646 * locale/xlocale.c: Fix the last change. The variable still has
1648 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1649 (__libc_tsd_set): Add _data prefix to variable name.
1651 2002-08-26 Roland McGrath <roland@redhat.com>
1653 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1654 macro with inline function.
1655 (sigset_get_old_mask): Likewise.
1656 * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1657 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1658 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1659 * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1660 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1661 (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1663 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1664 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1666 2002-07-06 Bruno Haible <bruno@clisp.org>
1668 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1669 sigset_get_old_mask): Make it work with larger sigset_t.
1670 * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1671 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1672 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1674 2002-08-26 Roland McGrath <roland@redhat.com>
1676 * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1677 * manual/filesys.texi (File Times): Document lutimes and futimes.
1678 * misc/Makefile (routines): Add them.
1679 * misc/Versions (libc: GLIBC_2.3): Likewise.
1680 * sysdeps/generic/lutimes.c: New file.
1681 * sysdeps/generic/futimes.c: New file.
1682 * sysdeps/mach/hurd/lutimes.c: New file.
1683 * sysdeps/mach/hurd/futimes.c: New file.
1685 * manual/filesys.texi (File Times): Add explicit note about null
1686 pointer argument to utimes.
1688 2002-08-26 Roland McGrath <roland@frob.com>
1690 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1691 (__ifreq): Add a cast. Remove an unused variable.
1693 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1694 _HURD_THREADVAR_LOCALE.
1696 2002-08-26 Jakub Jelinek <jakub@redhat.com>
1698 * posix/regexec.c (re_search_stub): Return correct match length
1700 * posix/bug-regex10.c: New test.
1701 * posix/Makefile (tests): Add bug-regex10.
1703 2002-08-26 Brian Youmans <3diff@gnu.org>
1705 * COPYING.LIB: Replaced with fresh copy from
1706 ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1707 suggested copying permission notice now says version 2.1 instead
1710 * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1712 * crypt/crypt_util.c: Likewise.
1713 * crypt/ufc.c: Likewise.
1714 * elf/dl-conflict.c: Likewise.
1715 * elf/dl-iteratephdr.c: Likewise.
1716 * iconv/iconvconfig.h: Likewise.
1717 * malloc/arena.c: Likewise.
1718 * malloc/hooks.c: Likewise.
1719 * malloc/malloc.c: Likewise.
1720 * posix/glob/Makefile.ami: Likewise.
1721 * posix/glob/Makefile.in: Likewise.
1722 * stdlib/gmp-impl.h: Likewise.
1723 * stdlib/gmp.h: Likewise.
1724 * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1725 * sysdeps/generic/strnlen.c: Likewise.
1726 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1727 * sysdeps/mach/hurd/recvmsg.c: Likewise.
1728 * sysdeps/mach/hurd/sendmsg.c: Likewise.
1729 * sysdeps/mach/hurd/spawni.c: Likewise.
1730 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1731 * sysdeps/mach/powerpc/sysdep.h: Likewise.
1732 * sysdeps/mach/powerpc/thread_state.h: Likewise.
1733 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1734 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1735 * sysdeps/x86_64/gmp-mparam.h: Likewise.
1737 * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1738 Lesser GPL copying permission notice from 2 to 2.1.
1739 * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1740 * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1741 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1742 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1743 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1744 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1745 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1746 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1747 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1748 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1749 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1750 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1751 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1752 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1753 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1754 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1755 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1756 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1757 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1758 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1759 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1760 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1761 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1762 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1763 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1764 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1765 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1766 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1767 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1768 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1769 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1770 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1771 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1772 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1773 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1774 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1775 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1776 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1777 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1778 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1779 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1780 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1781 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1782 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1783 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1784 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1785 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1786 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1787 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1788 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1789 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1790 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1791 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1792 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1793 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1795 * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1796 Moshier and Lesser GPL copying permission notice, per license from
1798 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1799 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1800 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1801 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1802 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1803 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1804 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1805 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1806 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1807 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1808 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1809 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1810 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1811 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1813 * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
1814 notice, per license from copyright holder Stephen Moshier.
1815 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1816 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1817 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1818 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1819 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1820 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1821 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1822 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1823 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1825 2002-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1827 * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
1828 (shared-only-routines): Likewise.
1830 2002-08-26 Roland McGrath <roland@redhat.com>
1832 * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
1833 name of "", store a null pointer instead.
1835 * configure.in (elf): Set to yes for freebsd*, netbsd*.
1836 * configure: Regenerated.
1838 * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
1839 Initialize this instead of __libc_tsd_LOCALE_data.
1841 * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
1842 ptsname_r to EINVAL.
1844 * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
1846 * rt/Makefile: Revert last change, it was inappropriate to presume aio
1847 implementations depend on pthreads.
1848 * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
1849 * rt/tst-aio64.c (do_test): Likewise.
1850 * rt/tst-aio2.c (do_test): Likewise.
1851 * rt/tst-aio3.c (do_test): Likewise.
1852 * rt/tst-aio4.c (do_test): Likewise.
1853 * rt/tst-aio5.c (do_test): Likewise.
1854 * rt/tst-aio6.c (do_test): Likewise.
1855 * rt/tst-aio7.c (do_test): Likewise.
1857 * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
1858 void so as to avoid compiler warnings.
1860 * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
1861 _IO_wide_data_FD, which is never used here.
1864 [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
1865 * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
1866 * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
1868 * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
1869 * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
1871 * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
1872 (closelog): Likewise.
1874 2002-07-06 Bruno Haible <bruno@clisp.org>
1876 * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
1878 * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
1879 * sysdeps/unix/alpha/pipe.S: ... here.
1880 * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
1882 * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
1884 * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
1885 * sysdeps/unix/i386/fork.S: Likewise.
1886 * sysdeps/unix/i386/pipe.S: Likewise.
1887 * sysdeps/unix/i386/wait.S: Likewise.
1889 * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
1890 * sysdeps/unix/arm/fork.S: Likewise.
1892 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
1894 (DO_CALL): Swap argument order.
1895 * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
1897 (DO_CALL): Swap argument order.
1898 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
1900 (DO_CALL): Swap argument order.
1901 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
1903 (DO_CALL): Swap argument order.
1904 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
1906 (DO_CALL): Swap argument order.
1907 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
1909 (DO_CALL): Swap argument order.
1910 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
1912 (DO_CALL): Swap argument order.
1914 * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
1915 (L): Define right for ELF.
1916 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
1917 Now defined in sysdeps/i386/sysdep.h.
1919 * sysdeps/posix/readv.c: Ansify function definition.
1920 * sysdeps/posix/writev.c: Likewise.
1922 * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
1923 have the same size. Avoid direct cast from size_t to off_t.
1925 * login/tst-utmp.c (simulate_login): Don't leave garbage after the
1926 nul byte in entry[n].ut_user.
1927 (simulate_logout): Likewise.
1929 * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
1930 _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
1931 existence of corresponding members of 'struct utmp'.
1932 * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
1935 * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
1936 allocate a buffer of at least BUFSIZ bytes, not just of
1937 sizeof (struct dirent).
1939 * sysdeps/generic/glob.c: Include <limits.h>.
1940 (NAME_MAX): Define a fallback.
1941 (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
1943 * posix/tst-dir.c: Include <stddef.h>, for offsetof.
1944 (main): Allocate enough room for a 'struct dirent64' on the stack.
1945 * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
1948 * sysdeps/unix/sysv/linux/init-first.c: Don't include
1951 * inet/htontest.c: Include <sys/types.h>.
1953 * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
1955 * include/sys/sysctl.h: Comment fix.
1957 * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
1959 * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
1961 * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
1963 * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
1964 (__getpeername): New alias.
1965 (__getsockname): New alias.
1966 (__socket): New alias.
1968 * sysdeps/unix/common/syscalls.list (getpgid): Remove.
1970 * sysdeps/unix/syscalls.list (__chown_internal): New alias.
1971 (__fcntl_internal): New alias.
1972 (__profil): New alias.
1974 2002-08-26 Ulrich Drepper <drepper@redhat.com>
1976 * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
1977 entry was for getaddr* lookup or not. Add only matching cache
1978 entry. Change all callers [PR libc/4317].
1980 * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
1981 finding the read position [PR libc/4265].
1982 * libio/Makefile (tests): Add bug-rewind2.
1983 * libio/bug-rewind2.c: New file.
1985 * libio/bug-rewind.c: Fix creation of temp file.
1987 2002-08-25 Ulrich Drepper <drepper@redhat.com>
1989 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
1990 neither SUCCESS nor TRYAGAIN [PR libc/4259].
1991 * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
1992 to ENOENT if no entry is found.
1993 * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
1995 * nis/nss_compat/compat-initgroups.c: Likewise.
1996 * nis/nss_compat/compat-pwd.c: Likewise.
1997 * nis/nss_compat/compat-spwd.c: Likewise.
1998 * nis/nss_nis/nis-alias.c: Likewise.
1999 * nis/nss_nis/nis-ethers.c: Likewise.
2000 * nis/nss_nis/nis-grp.c: Likewise.
2001 * nis/nss_nis/nis-hosts.c: Likewise.
2002 * nis/nss_nis/nis-initgroups.c: Likewise.
2003 * nis/nss_nis/nis-netgrp.c: Likewise.
2004 * nis/nss_nis/nis-network.c: Likewise.
2005 * nis/nss_nis/nis-proto.c: Likewise.
2006 * nis/nss_nis/nis-publickey.c: Likewise.
2007 * nis/nss_nis/nis-pwd.c: Likewise.
2008 * nis/nss_nis/nis-rpc.c: Likewise.
2009 * nis/nss_nis/nis-service.c: Likewise.
2010 * nis/nss_nis/nis-spwd.c: Likewise.
2011 * resolv/nss_dns/dns-host.c: Likewise.
2012 * resolv/nss_dns/dns-network.c: Likewise.
2013 * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2014 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2015 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2016 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2017 * nis/nss_nisplus/nisplus-network.c: Likewise.
2018 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2019 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2020 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2021 * nis/nss_nisplus/nisplus-service.c: Likewise.
2022 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2023 * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2024 * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2025 * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2026 * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2028 * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2029 declaring __restore and __restore_rt as hidden (if possible).
2031 2002-08-25 Roland McGrath <roland@redhat.com>
2033 * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2035 * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2036 (getutent_r_file, internal_getut_r): Updated all callers.
2037 (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2039 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2041 * locale/programs/locale.c: Don't print aliases for non-existing
2042 locales for 'locale -a'.
2043 Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2045 2002-07-19 H.J. Lu <hjl@gnu.org>
2047 * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2049 2002-07-16 H.J. Lu <hjl@gnu.org>
2051 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2053 * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2055 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2057 * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2058 not moved ahead of the fputs call.
2059 * elf/tst-tlsmod2.c (in_dso): Likewise.
2060 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2061 * elf/tst-tlsmod4.c (in_dso): Likewise.
2063 2002-08-25 Andreas Schwab <schwab@suse.de>
2065 * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2067 2002-08-25 Roland McGrath <roland@redhat.com>
2069 * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2070 resetting handler, to avoid the possibility of a spurious SIGALRM
2071 delivered to the user's handler.
2072 Reported by Amit D. Chaudhary <amitc@brocade.com>,
2074 * misc/Makefile (CFLAGS-init-misc.c): Variable removed. It served to
2075 set -fkeep-inline-functions, which is not needed for the current file.
2077 * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2078 (_dl_setup_hash): Add attribute_hidden.
2079 (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2080 (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2081 (_dl_new_object, _dl_map_object_deps): Likewise.
2082 (_dl_map_object_deps_internal): Remove decl.
2083 * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2085 * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2086 && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2087 && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2088 (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2089 instead relying on the compiler to produce only GOTOFF variable refs.
2091 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2093 * elf/dl-load.c: Fix typo in comment. Add a few more __builtin_expect.
2095 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2096 inline to avoid defining it in every file which includes this header.
2098 * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2099 defining DONT_USE_BOOTSTRAP_MAP.
2101 * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2102 * libio/tst-mmap-setvbuf.c (main): Likewise.
2103 * libio/tst-widetext.c (main): Likewise.
2105 * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2107 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2108 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2110 * sysdeps/i386/elf/configure.in: Unconditionally define
2111 PI_STATIC_AND_HIDDEN.
2112 * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2113 PI_STATIC_AND_HIDDEN is defined as well.
2114 * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2116 2002-08-24 Ulrich Drepper <drepper@redhat.com>
2118 * sysdeps/ia64/bzero.S: Define __bzero as well.
2120 * locale/programs/charmap.c (charmap_new_char): Don't use
2121 ULONG_MAX as maximum UCS4 value.
2123 * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2125 * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2127 * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2128 * malloc/malloc.c (mALLINFo): Likewise.
2130 * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2132 * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2133 examining result of _IO_do_flush call.
2135 * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2136 Use prec not spec when sizing buffers.
2138 * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2139 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2140 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2141 * stdio-common/vfscanf.c (inchar): Likewise.
2142 * misc/efgcvt_r.c (fcvt_r): Likewise.
2143 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2144 * elf/readlib.c (process_file): Likewise.
2145 * elf/sprof.c (load_profdata): Likewise.
2146 * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2147 * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2148 * locale/programs/charmap.c (charmap_read): Likewise.
2149 * libio/fileops.c: Likewise.
2150 * libio/fmemopen.c: Likewise.
2151 * stdlib/strtod.c: Likewise.
2152 * elf/dl-load.c: Likewise.
2153 * iconv/iconvconfig.c: Likewise.
2154 * iconv/iconv_prog.c (process_block): Likewise.
2155 * elf/rtld.c (dl_main): Likewise.
2157 * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2158 macro to calm down the compiler.
2160 * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2162 * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2164 * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2165 placement of errno definition.
2166 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2167 * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2168 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2169 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2170 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2172 * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2173 from 1024 to 65536, to avoid buffer overrun.
2175 2002-08-16 Paul Eggert <eggert@twinsun.com>
2177 * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2178 from 1024 to 65536, to avoid buffer overrun.
2179 * resolv/res_query.c (MAXPACKET): Likewise.
2181 2002-08-24 Andreas Jaeger <aj@suse.de>
2183 * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2185 2002-08-23 Ulrich Drepper <drepper@redhat.com>
2187 * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2190 * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2191 Patch by Simon Gee <simong@agile.tv>.
2193 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2194 Prefer reading /proc/stat since it is more uniform across
2197 * manual/texinfo.tex: Update to latest official version.
2199 * sysvipc/sys/shm.h: Remove SHMLBA definition.
2200 * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2201 * sysdeps/gnu/bits/shm.h: Likewise.
2202 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2203 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2204 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2205 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2206 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2207 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2208 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2209 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2210 since this is what the kernel says.
2212 * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2213 since ssize_t is needed as well. Replace const with __const.
2215 2002-08-23 Roland McGrath <roland@redhat.com>
2217 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2218 __malloc_hook, __realloc_hook, __memalign_hook,
2219 __after_morecore_hook): Variable definitions moved to ...
2220 * malloc/malloc.c: ... here, so as to be before all references.
2222 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2223 global variable reference in an unused asm parameter, to ensure the
2224 compiler has set up the GOT register before we use it.
2226 * malloc/hooks.c: Move variable definitions ahead of uses.
2227 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2228 initializers that make reference to variables they define.
2230 2002-08-23 Andreas Jaeger <aj@suse.de>
2232 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2233 alloca, free, qsort.
2235 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2237 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2238 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2240 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2242 * sysdeps/generic/fgetxattr.c: New file.
2243 * sysdeps/generic/flistxattr.c: New file.
2244 * sysdeps/generic/fremovexattr.c: New file.
2245 * sysdeps/generic/fsetxattr.c: New file.
2246 * sysdeps/generic/getxattr.c: New file.
2247 * sysdeps/generic/listxattr.c: New file.
2248 * sysdeps/generic/lgetxattr.c: New file.
2249 * sysdeps/generic/llistxattr.c: New file.
2250 * sysdeps/generic/lremovexattr.c: New file.
2251 * sysdeps/generic/lsetxattr.c: New file.
2252 * sysdeps/generic/removexattr.c: New file.
2253 * sysdeps/generic/setxattr.c: New file.
2254 * misc/Makefile (headers): Add sys/xattr.h.
2255 (routines): Add *xattr calls.
2256 * misc/Versions: Add *xattr calls with version 2.3.
2257 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2258 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2259 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2260 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2261 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2262 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2263 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2264 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2266 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
2268 * sysdeps/powerpc/elf/libc-start.c
2269 (__cache_line_size): Declare.
2270 (__aux_init_cache): New function.
2271 (__libc_start_main): Change type of `auxvec' parameter to
2272 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
2274 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2275 (__cache_line_size): Declare.
2276 (__aux_init_cache): New function.
2277 (DL_PLATFORM_INIT): Define.
2278 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2279 value to select the correct stride for dcbz.
2281 2002-08-22 Andreas Jaeger <aj@suse.de>
2283 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2286 2002-08-22 Roland McGrath <roland@redhat.com>
2288 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2289 position indicated by locrectab against file bounds before rounding to
2290 page size. In mapping loop, always set TO before breaking out of
2291 contiguous range coalescing loop.
2293 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2294 (or MAP_COPY if available) instead of MAP_SHARED.
2296 * scripts/firstversions.awk: When encountering a version newer than
2297 the specified earliest version, be sure to emit the specified earliest
2298 version first if any renaming of an older version to that has been.
2300 2002-08-21 Roland McGrath <roland@redhat.com>
2302 * configure.in: Make GCC version check require 3.[2-9]* and no others.
2303 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2304 (Configuring and compiling): Don't mention older GCC versions any more.
2305 * INSTALL: Regenerated.
2307 * manual/install.texi (Configuring and compiling, Installation,
2308 Running make install, Linux): Linux -> GNU/Linux where appropriate.
2310 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2311 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2312 and with noinline otherwise. Remove hack alloca use to prevent
2313 inlining, we can ask for it explicitly nowadays.
2315 * dlfcn/bug-dlsym1.c: New file.
2316 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2317 * dlfcn/Makefile (distribute): Add them.
2318 (tests): Add bug-dlsym1 here.
2319 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2320 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2321 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2323 2002-08-21 Ulrich Drepper <drepper@redhat.com>
2325 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
2326 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2328 (_dl_start): Don't use local bootstrap_map variable if
2329 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
2330 pass bootstrap_map to _dl_start_final in this case either. Don't
2331 pass start_time to _dl_start_final ever.
2332 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2334 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2335 This cripples the scope lists necessary to search for symbols in
2336 dependencies which are not in the global scope.
2338 * include/setjmp.h (__libc_longjmp): Add declaration.
2340 2002-08-21 Andreas Jaeger <aj@suse.de>
2342 * sysdeps/x86_64/_mcount.S: Fix assembler.
2344 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2345 with biarch support.
2347 2002-08-21 Andreas Jaeger <aj@suse.de>
2349 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2351 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2353 * sysdeps/x86_64/machine-gmon.h: New file.
2354 * sysdeps/x86_64/_mcount.S: New file.
2356 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2358 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
2359 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2360 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2361 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2362 to TL_INIT_TP. Otherwise pass 1.
2363 * include/link.h (struct link_map): Add l_tls_tp_initialized.
2364 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2366 2002-08-15 Jakub Jelinek <jakub@redhat.com>
2368 * locale/programs/localedef.c (add_to_readlist): Error about
2369 circular dependencies only if the locale in question hasn't
2371 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2372 CTYPE_LOCALE to load_locale.
2373 * locale/programs/locfile.c (locfile_read): Don't include
2374 unneeded but available locales in locale_mask.
2376 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2377 print any messages about enlarging archive.
2379 2002-08-20 Brian Youmans <3diff@gnu.org>
2381 * manual/contrib.texi: Removed licenses, added acknowledgements
2382 for contributions by Intel, IBM, Craig Metz.
2383 * LICENSES: New file, contains the text of all non-FSF licenses in the
2384 distribution that require putting the notice in the accompanying
2386 * README.template, README: Mention LICENSES.
2388 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2389 new one modelled on the modern BSD license, per recent letter
2390 of permission from CMU.
2391 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2393 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2394 from IBM to FSF, per the recent Software Letter. Changed the
2395 distribution terms from GPL to LGPL.
2397 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2398 copying permission notice (Lesser GPL), per recent IBM Software Letter.
2399 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2400 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2401 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2402 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2403 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2404 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2405 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2406 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2408 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2409 from IBM to FSF, per the recent Software Letter. Corrected the
2410 text of the copying permission notice to say Lesser GPL instead
2411 of GPL in warranty disclaimer paragraph.
2412 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2413 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2414 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2415 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2416 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2417 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2418 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2419 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2420 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2421 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2422 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2423 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2424 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2425 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2426 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2427 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2428 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2429 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2430 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2431 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2432 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2434 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2435 permission notice to say Lesser GPL instead of GPL in warranty
2436 disclaimer paragraph.
2437 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2438 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2439 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2440 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2441 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2442 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2443 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2444 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2445 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2446 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2447 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2448 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2449 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2450 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2451 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2452 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2453 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2454 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2455 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2456 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2457 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2458 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2459 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2461 2002-08-20 Roland McGrath <roland@redhat.com>
2463 Fix ABI compatibility with libc compiled with old tools on powerpc.
2464 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2465 and Jack Howarth <howarth@bromo.med.uc.edu>.
2466 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2467 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2468 pass -DHAVE_DOT_HIDDEN for these files.
2469 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2471 * sysdeps/powerpc/divdi3.c: New file.
2472 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2473 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2475 2002-08-20 Jakub Jelinek <jakub@redhat.com>
2477 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2478 partially overlapping mappings. Remove unneeded (char *) casts.
2479 Never allow duplication of ranges in mapped areas.
2481 2002-08-20 Roland McGrath <roland@redhat.com>
2483 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2484 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
2486 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2488 * include/unistd.h: Don't hide _exit.
2490 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2491 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2492 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2493 argument 1 to TLS_INIT_TP.
2494 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2496 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2498 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2499 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2500 memory allocation to...
2501 (allocate_dtv): ...here. New function.
2502 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
2503 call allocate_dtv instead of _dl_allocate_tls_storage.
2504 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
2505 (_dl_get_tls_static_info): New function.
2506 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2507 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
2509 2002-08-19 Ulrich Drepper <drepper@redhat.com>
2511 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2512 immediately if result == NULL.
2514 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2516 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2518 2002-08-18 Roland McGrath <roland@frob.com>
2520 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2521 instead of __file_name_split.
2522 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2524 * sysdeps/mach/hurd/dl-sysdep.c
2525 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2526 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2528 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2530 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2531 in change before last: MAX -> MIN.
2533 2002-08-15 Roland McGrath <roland@redhat.com>
2535 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2536 if seek would go past it.
2537 (mmap_remap_check): If file position is at or past EOF after check,
2538 leave read pointers at EOF and don't seek.
2540 * libio/tst-mmap-offend.c: New file.
2541 * libio/Makefile (tests): Add it.
2543 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2544 the name as passed, rather than the name in the archive dictionary.
2546 2002-08-15 Ulrich Drepper <drepper@redhat.com>
2548 * csu/Makefile: Define elide-routines.os not static-only-routines.
2550 * include/sched.h (__clone): Add varargs at the end.
2552 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2554 (TLS_INIT_HELPER): If defined, use it.
2555 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2557 2002-08-15 Roland McGrath <roland@redhat.com>
2559 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2560 on L->l_prev; it can happen under rtld --verify too.
2562 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2563 header separately, just map an initial window of 2MB from the file
2564 and remap if that is not large enough to cover the whole header.
2566 2002-08-15 Andreas Jaeger <aj@suse.de>
2568 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2570 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2571 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2572 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2573 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2574 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2575 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2576 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2577 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2578 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2579 Patch by Andreas Gruenbacher <agruen@suse.de>.
2581 * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2583 2002-08-14 Roland McGrath <roland@redhat.com>
2585 * locale/locarchive.h (struct locale_category_data): Give this name to
2586 the type of locale_data_t's elements.
2587 * locale/programs/locarchive.c (cmpcategorysize): New static function.
2588 (add_locale): Use that to sort the categories by size and put all
2589 those that fit into two pages into the LC_ALL block, instead of
2590 hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2591 (show_archive_content): Detect categories inside LC_ALL block
2592 directly, instead of hard-coding.
2593 (oldlocrecentcmp): Compare just on file locations used.
2595 2002-08-14 Jakub Jelinek <jakub@redhat.com>
2597 * locale/programs/locarchive.c (struct oldlocrecent): New type.
2598 (oldlocrecentcmp): New function.
2599 (enlarge_archive): Re-add locales in the order they were added
2601 (add_locale): Put all the small locale files together, if the small
2602 locale file block would occupy less pages if page size aligned, align
2604 (show_archive_content): Adjust for locale archives optimized for speed.
2606 2002-08-14 Roland McGrath <roland@frob.com>
2608 * configure.in: Use "MISSING" as not-found value for MIG.
2609 * sysdeps/mach/configure.in: Fatal if mig not found.
2610 * configure, sysdeps/mach/configure: Regenerated.
2612 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2614 * locale/loadarchive.c (archfname): Add missing slash.
2616 * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2617 * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2619 2002-08-12 Roland McGrath <roland@redhat.com>
2621 * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2622 * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2623 * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2624 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2625 * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2626 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2627 * sysdeps/generic/waitpid.c: Likewise.
2629 * include/net/if.h: New file. Use libc_hidden_proto
2630 for if_nametoindex and if_indextoname.
2631 * sysdeps/generic/if_index.c: Add libc_hidden_def.
2632 * sysdeps/mach/hurd/if_index.c: Likewise.
2633 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2635 * include/grp.h (setgroups): Add libc_hidden_proto.
2636 * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2637 * sysdeps/mach/hurd/setgroups.c: Likewise.
2638 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2639 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2641 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2643 * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2644 * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2645 * sysdeps/generic/setegid.c (setegid): Likewise.
2646 * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2647 * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2648 * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2649 * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2650 * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2651 * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2652 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2653 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2654 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2655 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2656 * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2657 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2658 Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2660 * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2661 __lxstat_internal, __lxstat64_internal): Remove.
2662 (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2664 * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2665 Remove INTDEF where present, remove #undef at the beginning.
2666 * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2667 * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2668 * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2669 * sysdeps/generic/xstat.c (__xstat): Likewise.
2670 * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2671 * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2672 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2673 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2674 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2675 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2676 * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2677 * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2678 * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2679 * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2680 * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2681 * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2682 * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2683 * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2684 * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2685 * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2686 * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2687 * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2688 * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2689 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2690 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2691 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2692 * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2693 * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2694 * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2695 * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2696 * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2697 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2698 * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2699 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2700 * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2701 * sysdeps/unix/xstat.c (__xstat): Likewise.
2703 * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2704 * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2705 * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2706 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2707 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2708 * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2709 * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2711 * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2712 * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2713 * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2714 * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2715 * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2716 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2717 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2718 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2720 * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2721 * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2722 * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2723 * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2724 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2725 * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2726 * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2727 * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2729 * include/string.h (strcoll): Add libc_hidden_proto.
2730 * string/strcoll.c (strcoll): Add libc_hidden_def.
2732 * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2734 2002-08-11 Philip Blundell <philb@gnu.org>
2736 * sysdeps/arm/Makefile: New file.
2738 2002-08-08 Jakub Jelinek <jakub@redhat.com>
2740 * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2741 by another '|', end of regex or enclosing ')', clear branch.
2742 * posix/bug-regex9.c: New test.
2743 * posix/Makefile (tests): Add bug-regex9.
2745 2002-08-12 Roland McGrath <roland@redhat.com>
2747 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2748 start count condition, use TOTAL instead of variable that was never
2749 set. Fix outer loop termination condition to TOTAL >= after update.
2751 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2752 dl_tls_static_align and dl_tls_static_nelem.
2754 2002-08-11 Roland McGrath <roland@redhat.com>
2756 * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2757 of the TLS macros, otherwise the compiler might not have initialized
2758 the PIC register yet when we use the PLT via asm.
2759 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2760 * elf/tst-tlsmod2.c (in_dso): Likewise.
2762 * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2764 * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2765 Evaluate argument exactly once. Remove __volatile__ from asm's.
2767 * include/unistd.h: Use libc_hidden_proto for getdomainname
2769 * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2770 * sysdeps/mach/hurd/getdomain.c: Likewise.
2771 * sysdeps/unix/getlogin_r.c: Likewise.
2772 * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2773 * sysdeps/generic/getlogin_r.c: Likewise.
2775 * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2776 * sunrpc/rtime.c: Add libc_hidden_def.
2778 * include/string.h: Use libc_hidden_proto for basename.
2779 * string/basename.c [_LIBC]: Add libc_hidden_def.
2781 * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2783 * locale/loadarchive.c: munmap -> __munmap throughout.
2785 * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2786 * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2787 * sysdeps/generic/gai_strerror.c: Likewise.
2789 * include/sys/errno.h: New file.
2791 * include/signal.h: No libc_hidden_proto for raise,
2792 __libc_current_sigrtmin, __libc_current_sigrtmax.
2793 These need to be overridden by linuxthreads.
2794 * sysdeps/posix/raise.c: Reverted.
2795 * sysdeps/generic/raise.c: Reverted.
2796 * signal/allocrtsig.c: Reverted.
2798 * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
2800 2002-08-10 Roland McGrath <roland@redhat.com>
2802 * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2803 * locale/localeinfo.h: Declare it.
2804 * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2805 current locale if it's not in the file list.
2806 Call _nl_archive_subfreeres.
2808 2002-08-10 Andreas Jaeger <aj@suse.de>
2810 * sysdeps/i386/strchr.S: Add comment.
2812 2002-08-10 Roland McGrath <roland@redhat.com>
2814 * include/wchar.h (putwc): Use libc_hidden_proto.
2815 * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
2816 sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
2817 * stdio-common/dprintf.c: Add libc_hidden_def.
2818 * stdio-common/fprintf.c: Likewise.
2819 * stdio-common/sprintf.c: Likewise.
2820 * stdio-common/sscanf.c: Likewise.
2821 * libio/iofwrite.c: Likewise.
2822 * libio/memstream.c: Likewise.
2823 * libio/putwc.c: Likewise.
2824 * stdio-common/perror.c: Likewise.
2825 * sysdeps/posix/remove.c: Likewise.
2826 * sysdeps/generic/remove.c: Likewise.
2827 * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h".
2828 * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
2830 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2832 * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2833 towlower, towupper): Add prototypes here too. Add libc_hidden_proto.
2834 * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2835 towlower, towupper): Add libc_hidden_weak.
2837 * include/bits/dlfcn.h: New file.
2838 * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
2840 * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
2841 * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
2842 * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
2843 * include/pwd.h (_nss_files_parse_pwent): Likewise.
2844 * include/shadow.h (_nss_files_parse_spent): Likewise.
2845 * include/netdb.h (_nss_files_parse_protoent,
2846 _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
2847 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
2848 (LINE_PARSER): Use it.
2849 * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
2850 * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
2852 * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
2855 * manual/debug.texi (%MENU%): Remove trailing dot.
2856 Reported by <hayastan132@hotmail.com>.
2858 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
2861 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
2864 2002-08-09 Roland McGrath <roland@redhat.com>
2866 * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
2867 name to find codeset name (if any) and normalize it. If the
2868 normalized name differs, look up only that in the archive.
2869 * locale/programs/locarchive.c (add_locale_to_archive): If the name
2870 contains a codeset, normalize the codeset store only the normalized
2871 name in the archive. If not, add an alias containing the locale's
2872 normalized codeset name. Apply codeset name normalization when
2873 matching entries in the alias file.
2875 * locale/programs/locarchive.c (delete_locales_from_archive): Don't
2876 decrement HEAD->namehash_used here.
2877 (add_locale): Only need to insert name string when name_offset != 0.
2879 * locale/programs/localedef.c (options): Add -A/--alias-file.
2880 (alias_file): New variable.
2881 (parse_opt): Grok -A, set that.
2882 * locale/programs/localedef.h: Declare it.
2884 * locale/locarchive.h (struct locrecent): Add `refs' member.
2885 * locale/programs/locarchive.c (insert_name): New function, broken out
2887 (add_locale_to_archive): ... here. Call that.
2888 (add_alias): New function.
2889 (add_locale): New static function, add_locale_to_archive renamed.
2890 (add_locale_to_archive): Call that and use add_alias to add an alias
2891 for the name with codeset if the given name lacks it.
2892 (enlarge_archive): Call add_locale instead of add_locale_to_archive.
2894 * locale/Makefile (routines): Add loadarchive.
2895 * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
2896 (_nl_load_locale_from_archive): New function.
2897 * locale/localeinfo.h: Declare it.
2898 * locale/findlocale.c (_nl_find_locale): If using default locale path,
2899 try _nl_load_locale_from_archive first.
2901 * locale/loadlocale.c (_nl_intern_locale_data): New function,
2902 broken out of _nl_load_locale.
2903 (_nl_load_locale): Call that.
2904 * locale/localeinfo.h: Declare it.
2905 (struct locale_data): Replace member `mmaped' with `alloc', an enum.
2906 (struct locale_data): Remove unused member `options'.
2907 * locale/findlocale.c (_nl_remove_locale): Update uses.
2908 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2909 * locale/C-collate.c: Update initializer.
2910 * locale/C-identification.c: Likewise.
2911 * locale/C-measurement.c: Likewise.
2912 * locale/C-telephone.c: Likewise.
2913 * locale/C-address.c: Likewise.
2914 * locale/C-name.c: Likewise.
2915 * locale/C-paper.c: Likewise.
2916 * locale/C-time.c: Likewise.
2917 * locale/C-numeric.c: Likewise.
2918 * locale/C-monetary.c: Likewise.
2919 * locale/C-messages.c : Likewise.
2920 * locale/C-ctype.c: Likewise.
2922 * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
2923 use CHAR_BIT instead of BITSPERBYTE.
2925 * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
2926 _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
2927 * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
2928 (_nl_remove_locale): Likewise.
2929 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2931 * locale/findlocale.c (_nl_default_locale_path): New variable.
2932 (_nl_find_locale): If LOCALE_PATH is null, default to that.
2933 * locale/localeinfo.h: Declare it.
2934 * locale/setlocale.c (setlocale): Use _nl_default_locale_path
2935 in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale.
2936 * locale/newlocale.c (__newlocale): Likewise.
2938 * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
2939 * inet/rexec.c (rexec_af): Add libc_hidden_def.
2940 * sysdeps/generic/morecore.c: Likewise.
2941 * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
2942 (__libc_current_sigrtmax): Likewise.
2944 2002-08-08 Roland McGrath <roland@redhat.com>
2946 * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
2947 * catgets/open_catalog.c (__open_catalog): Likewise.
2949 * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
2950 from typo INITIAL_NUM_NANES.
2951 (create_archive): Update use.
2953 2002-08-08 Ulrich Drepper <drepper@redhat.com>
2955 * sysdeps/unix/sysv/linux/sigwait.c: New file.
2957 2002-08-08 Roland McGrath <roland@frob.com>
2959 * resolv/netdb.h: Don't declare h_errno as a plain global any more.
2961 2002-08-08 Jakub Jelinek <jakub@redhat.com>
2963 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
2964 else and undefine after including wcstol_l.c.
2965 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
2967 2002-08-08 Ulrich Drepper <drepper@redhat.com>
2969 * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
2971 2002-08-08 Alexandre Oliva <aoliva@redhat.com>
2973 * configure.in: Make the test for broken_alias_attribute stricter.
2975 2002-05-24 Robert Love <rml@tech9.net>
2977 * posix/Makefile (routines): Add sched_getaffinity and
2979 * posix/sched.h: Add declarations for sched_getaffinity and
2981 * sysdeps/generic/sched_getaffinity.c: New file.
2982 * sysdeps/generic/sched_setaffinity.c: New file.
2983 * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
2986 2002-08-06 Andreas Schwab <schwab@suse.de>
2988 * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
2990 2002-08-07 Ulrich Drepper <drepper@redhat.com>
2992 * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
2995 * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
2996 It is known to be defined.
2998 * include/string.h: Define index and rindex only if _ISOMAC is not
3001 * elf/rtld.c: Include <errno.h>.
3002 * sysdeps/generic/libc-tls.c: Likewise.
3004 2002-08-07 Roland McGrath <roland@redhat.com>
3006 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3008 (precsize_aton): Likewise.
3010 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3011 the static symbols added in the last change (doofus is me).
3013 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3014 loop to notice missing categories in a composite name.
3016 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3017 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3018 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3019 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3021 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3023 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3025 2002-08-07 Roland McGrath <roland@redhat.com>
3027 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3028 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3029 Reported by Jakub Jelinek <jakub@redhat.com>.
3031 2002-08-07 Jakub Jelinek <jakub@redhat.com>
3033 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3036 2002-08-06 Roland McGrath <roland@redhat.com>
3038 * include/getopt.h: Put private decls inside [_GETOPT_H].
3039 Use libc_hidden_proto for getopt_long, getopt_long_only.
3040 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3041 Add libc_hidden_def.
3043 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3044 Define as a macro for __dl_iterate_phdr.
3046 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3047 made static. Add __ name as a strong alias.
3048 (internal_endnetgrent): Likewise.
3049 (internal_getnetgrent_r): Likewise.
3051 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3053 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3054 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3055 all *_l functions with no __ prefix.
3056 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3057 * ctype/ctype_l.c: Likewise.
3058 * locale/nl_langinfo.c: Likewise.
3059 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3060 * stdlib/stdlib.h [__USE_GNU]: Likewise.
3061 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3062 * wctype/wctype.h [__USE_GNU]: Likewise.
3063 * string/strcoll_l.c (strcoll_l): Define as weak alias.
3064 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3065 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3066 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3067 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3068 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3069 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3070 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3071 (__wcscasecmp_l): Add libc_hidden_def.
3072 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3073 (__wcsncasecmp_l): Add libc_hidden_def.
3074 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3075 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3076 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3077 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3078 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3079 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3080 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3081 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3082 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3083 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3084 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3085 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3086 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3087 * wctype/wctype_l.c (wctype_l) Define as weak alias.
3089 2002-08-05 Roland McGrath <roland@redhat.com>
3091 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3092 netname2user, host2netname, user2netname, key_gendes.
3093 * sunrpc/netname.c: Add libc_hidden_def.
3094 * sunrpc/key_call.c: Likewise.
3096 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3098 * inet/getnameinfo.c: Add libc_hidden_def.
3099 * sysdeps/generic/getaddrinfo.c: Likewise.
3100 * sysdeps/posix/getaddrinfo.c: Likewise.
3102 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3103 * wcsmbs/wmemchr.c: Add libc_hidden_def.
3104 * wcsmbs/wmemset.c: Add libc_hidden_def.
3106 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3107 (index, rindex): Define as macros for strchr, strrchr.
3109 * string/envz.c (envz_strip): index -> strchr
3111 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3112 * sunrpc/rpc_prot.c: Add libc_hidden_def.
3114 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3115 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3117 * include/stdlib.h: Use libc_hidden_proto for wctomb.
3118 * stdlib/wctomb.c: Add libc_hidden_def.
3120 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3121 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3122 * resolv/herror.c: Likewise.
3123 * inet/rcmd.c: Add libc_hidden_def.
3124 * inet/ruserpass.c: Likewise.
3125 * inet/getnetgrent_r.c: Likewise.
3127 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3128 svc_unregister, remove *_internal decls. Use libc_hidden_proto
3129 for svcerr_auth, svcerr_noprog, svcerr_progvers.
3130 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3132 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3133 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3135 * sysdeps/posix/system.c (do_system): New function, guts broken out of
3137 (__libc_system): Call it, putting just the line == NULL test here.
3139 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3140 variables work right.
3142 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3143 * elf/dl-close.c (_dl_close): Likewise.
3145 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3146 in6addr_any, in6addr_loopback. Remove decls for
3147 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3148 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3149 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3150 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3151 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3152 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3153 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3155 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3157 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3159 * inet/ether_aton_r.c: Add libc_hidden_def.
3160 * inet/ether_ntoa_r.c: Likewise.
3162 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3164 * sunrpc/svc.c: Add libc_hidden_def.
3165 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3166 pmap_set, pmap_unset.
3167 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3168 * sunrpc/pm_getport.c: Likewise.
3169 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3170 * sunrpc/publickey.c: Add libc_hidden_def.
3172 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3174 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
3175 the other memset call in this function.
3177 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3178 at correct index. Clear BSS region now that memalign is used.
3180 2002-08-05 Roland McGrath <roland@redhat.com>
3182 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3183 * sysdeps/generic/uname.c: Add libc_hidden_def.
3184 * sysdeps/mach/hurd/uname.c: Likewise.
3186 2002-08-05 Jakub Jelinek <jakub@redhat.com>
3188 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3189 wcspbrk): Add libc_hidden_proto.
3190 * time/strftime.c (my_strftime): Add libc_hidden_def.
3191 (strftime): Remove libc_hidden_def.
3192 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3193 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3194 * wcsmbs/wcsspn.c (wcsspn): Likewise.
3195 * wcsmbs/wcscmp.c (wcscmp): Likewise.
3196 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3197 * wcsmbs/wcscoll.c (wcscoll): Likewise.
3199 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3200 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3201 __rpc_thread_createerr): Add libc_hidden_proto.
3202 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3203 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3204 __rpc_thread_createerr): Add libc_hidden_def.
3206 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3207 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3208 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3209 clnt_perror, clnt_sperror): Add libc_hidden_def.
3210 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3212 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3214 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3215 * sunrpc/des_soft.c (des_setparity): Likewise.
3217 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3218 Add libc_hidden_proto.
3219 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3220 Add libc_hidden_def.
3222 2002-08-05 Roland McGrath <roland@redhat.com>
3224 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3225 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3226 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3227 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3228 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3229 old data, abandoning the original memory allocated by rtld at startup,
3230 instead of calling realloc normally.
3232 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3234 * po/fr.po: Update from translation team.
3236 2002-08-04 Roland McGrath <roland@redhat.com>
3238 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3239 then generate a dummy module under the given name, obeying the
3240 normal rules for the "caller" field.
3242 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3243 actually iterate over the elements. Fix typo p_type -> p_vaddr.
3245 * include/pthread.h: Don't declare __pthread_initialize_minimal as
3246 weak here; we declare it weak or strong in the one place we use it.
3247 * sysdeps/generic/libc-start.c: ... which is here.
3248 Don't make the decl weak if [USE_TLS], since static programs need TLS
3249 setup even when single-threaded.
3251 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3253 * elf/Makefile (test-srcs): Add $(modules-names) to it.
3254 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3255 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3256 all these variables.
3258 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3260 * include/stdio.h: Don't define macro magic to redirect function
3261 calls if _ISOMAC is defined.
3263 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3266 2002-08-04 Roland McGrath <roland@redhat.com>
3268 * stdlib/lrand48_r.c: Add libc_hidden_def.
3270 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3271 TCB with __libc_memalign instead of mmap.
3272 (_dl_deallocate_tls): Free it with free instead of munmap.
3274 * Makerules (cpp-srcs-left): When setting this to run
3275 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3276 words. Combine the two loops into one on the concatenated list,
3277 including those as well as $(test-srcs).
3279 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3280 since we align here with optimally minimal waste anyway.
3281 (malloc): Just call that.
3283 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3286 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3287 to compute memory location for l_tls_initimage.
3288 * elf/rtld.c (_dl_start): Likewise.
3289 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3291 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3292 because the .d file is generated in the non-shared case and
3293 so fails to catch them otherwise.
3295 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3296 split out of _dl_allocate_tls.
3297 (_dl_allocate_tls_init): Likewise.
3298 (_dl_allocate_tls): Call those.
3299 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3300 * elf/rtld.c (dl_main): Call them separately instead of calling
3301 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
3302 is finished, so that the initializer data has been relocated before we
3303 copy it into the main thread's TLS block.
3305 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3306 loop conditions, prevented the last used module from being initialized.
3308 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3310 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3311 if glob resp. globfree are not macros.
3312 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3313 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3314 Add libc_hidden_ver.
3315 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3317 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3318 instead of libc_hidden_weak.
3319 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3320 libc_hidden_ver instead of libc_hidden_def.
3321 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3322 libc_hidden_ver instead of libc_hidden_def.
3323 (wcstoll, wcstoq): Remove libc_hidden_weak.
3324 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3326 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3328 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3330 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3333 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3335 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
3336 to access _sys_siglist.
3337 * string/strsignal.c: Likewise.
3338 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3339 * sysdeps/gnu/siglist.c: Likewise.
3340 * sysdeps/unix/siglist.c: Likewise.
3341 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3343 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3345 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3347 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3349 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3351 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3352 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3353 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3355 * include/time.h: Add libc_hidden_proto for __gmtime_r.
3356 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3358 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3359 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3360 and __gconv_get_cache respectively.
3361 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3362 defined static. Change all users.
3363 (__gconv_get_cache): New function.
3364 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3365 (__gconv_get_alias_db): New function.
3366 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3367 (__conv_modules_db): Likewise.
3368 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3369 and __gconv_get_alias_db.
3370 * iconv/iconv_prog.c: Use the new functions instead of accessing the
3373 * include/stdlib.h: Add prototype and libc_hidden_proto for
3375 * sysdeps/generic/morecore.c: Include <stdlib.h>.
3377 * malloc/obstack.c: Remove fputs macro.
3379 * malloc/mtrace.c: Remove fopen macro.
3381 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3383 * manual/debug.texi: Fix spelling to programmatically.
3384 Reported by <hayastan132@hotmail.com>.
3386 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3388 * include/libio.h: Add libc_hidden_proto for __uflow.
3389 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3390 fgetpos to _IO_* names.
3391 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3392 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3393 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3394 putwc_unlocked, vswscanf.
3395 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3396 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3397 * libio/fseek.c: Likewise.
3398 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
3400 * libio/genops.c (__uflow): Add libc_hidden_def.
3401 * libio/iofflush_u.c (fflush_unlocked): Likewise.
3402 * libio/iofgets_u.c (fgets_unlocked): Likewise.
3403 * libio/iofputs_u.c (fputs_unlocked): Likewise.
3404 * libio/iofputws_u.c (fputws_unlocked): Likewise.
3405 * libio/iofread_u.c (fread_unlocked): Likewise.
3406 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3407 * libio/iovswscanf.c (vswscanf): Likewise.
3408 * libio/putwc_u.c (putwc_unlocked): Likewise.
3409 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3410 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3411 * malloc/mtrace.c: Likewise.
3413 * sunrpc/clnt_perr.c: Remove fputs macro.
3414 * sunrpc/svc_simple.c: Likewise.
3415 * sunrpc/svc_tcp.c: Likewise.
3416 * sunrpc/svc_udp.c: Likewise.
3417 * sunrpc/xdr_rec.c: Likewise.
3418 * sunrpc/xdr_ref.c: Likewise.
3420 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3421 iconv_prog, linereader, and charmap-dir.
3422 * locale/Makefile: Likewise for locale and charmap-dir.
3423 * malloc/Makefile: Likewise for memusagestat.
3424 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3425 * sunrpc/Makefile: Likewise for rpc_main.
3426 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3427 * timezone/Makefile: Likewise for zic.
3429 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3431 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3432 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3433 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3434 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3437 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3439 * libio/genops.c (__underflow): Add libc_hidden_def.
3440 * libio/wgenops.c (__wuflow): Likewise.
3441 (__wunderflow): Likewise.
3443 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3444 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3446 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3447 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3449 * include/string.h: Add libc_hidden_proto for __strverscmp.
3450 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3452 * include/unistd.h: Add libc_hidden_proto for __sysconf.
3453 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3454 * sysdeps/posix/sysconf.c: Likewise.
3455 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3456 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3458 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3459 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3460 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3461 __iswxdigit_l, __towlower_l, __towupper_l.
3462 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3463 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3465 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3466 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3467 * sysdeps/mach/hurd/xmknod.c: Likewise.
3468 * sysdeps/unix/xmknod.c: Likewise.
3469 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3470 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3471 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3473 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3475 2002-08-03 Roland McGrath <roland@redhat.com>
3477 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3479 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3480 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3481 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3482 * sysdeps/mach/hurd/setpriority.c: Likewise.
3483 * sysdeps/mach/hurd/getpriority.c: Likewise.
3484 * sysdeps/generic/setpriority.c: Likewise.
3485 * sysdeps/generic/getpriority.c: Likewise.
3487 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3488 * malloc/mcheck.c: Add libc_hidden_def.
3490 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3491 * misc/hsearch_r.c: Add libc_hidden_def.
3493 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3494 * posix/fnmatch.c: Add libc_hidden_weak.
3496 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3497 execl, execle, execlp, execvp, getpid, getsid.
3498 * sysdeps/generic/alarm.c: Add libc_hidden_def.
3499 * sysdeps/unix/alarm.c: Likewise.
3500 * posix/confstr.c: Likewise.
3501 * posix/execvp.c: Likewise.
3502 * posix/execlp.c: Likewise.
3503 * posix/execle.c: Likewise.
3504 * posix/execl.c: Likewise.
3505 * sysdeps/generic/getsid.c: Likewise.
3506 * sysdeps/mach/hurd/getsid.c: Likewise.
3507 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3508 * sysdeps/mach/hurd/getpid.c: Likewise.
3510 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3511 qecvt_r, qfcvt_r, lrand48_r.
3512 * misc/efgcvt_r.c: Add libc_hidden_def.
3514 * include/wordexp.h: Use libc_hidden_proto for wordfree.
3515 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3517 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3518 * locale/nl_langinfo.c: Add libc_hidden_def.
3520 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3521 * sysdeps/generic/glob.c: Add libc_hidden_def.
3522 * sysdeps/generic/glob64.c: Likewise.
3523 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3525 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3527 * elf/Makefile (CFLAGS-vismod2.c): New variable.
3529 * locale/setlocale.c (_nl_current_names): Variable moved ...
3530 * locale/localename.c (_nl_current_names): ... here, new file.
3531 Make it global, with attribute_hidden.
3532 * locale/localeinfo.h: Declare it.
3533 * locale/Makefile (aux): Add localename.
3534 * locale/localename.c (__current_locale_name): New function.
3535 * include/locale.h (__current_locale_name): Declare it.
3536 * intl/dcigettext.c (guess_category_value): Use that instead of
3539 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3540 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3541 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3542 * locale/newlocale.c: Add alias to __ name.
3543 * locale/duplocale.c: Likewise.
3544 * locale/freelocale.c: Likewise.
3545 * locale/uselocale.c: New file.
3546 * locale/Makefile (routines): Add it.
3547 * locale/Versions (libc: GLIBC_2.3): New set.
3548 Add newlocale, duplocale, freelocale, uselocale.
3549 (libc: GLIBC_PRIVATE): Add __uselocale.
3551 * locale/localeinfo.h [SHARED]
3552 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3553 (_NL_CURRENT_DATA): Define using that.
3554 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3555 (_NL_CURRENT_DEFINE): Define to empty.
3556 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3557 conditionalized on this.
3558 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3559 taking initializer of _nl_C_locobj.
3560 [SHARED] (_nl_global_locale): New variable, using that initializer.
3561 (_nl_C_locobj): Use new macro for initialzier.
3562 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3563 [! SHARED] (CATEGORY_USED): New macro.
3564 [SHARED] (CATEGORY_USED, _nl_C): New macros.
3565 (setdata, setlocale): Use that macro instead of examining _nl_current.
3566 (setdata): Set the slot in _nl_global_locale.
3567 Conditionalize setting of _nl_current on [! SHARED].
3568 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3569 declaration as an extern.
3570 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3572 * include/locale.h: Use libc_hidden_proto for setlocale.
3573 * locale/setlocale.c: Add libc_hidden_def.
3575 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3577 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3578 * misc/hsearch_r.c: Add libc_hidden_def.
3579 * misc/lsearch.c: Likewise.
3581 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3583 * misc/getttyent.c: Add libc_hidden_def.
3585 * include/mcheck.h: Use libc_hidden_proto for mcheck.
3586 * malloc/mcheck.c: Add libc_hidden_def.
3588 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3589 * include/argz.h: Use libc_hidden_proto for argz_delete.
3590 * string/argz-delete.c: Add libc_hidden_def.
3591 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
3593 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3594 HIDDEN_JUMPTARGET for _exit.
3595 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3596 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3597 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3598 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3600 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3601 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3602 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3603 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3605 * include/stdlib.h: Use libc_hidden_proto for abort,
3606 __strtof_internal, __strtod_internal, __strtold_internal,
3607 __strtol_internal, __strtoll_internal, __strtoul_internal,
3608 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3609 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3610 __strtoul_l_internal, __strtoull_l_internal.
3611 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3612 __wcstod_internal, __wcstold_internal, __wcstol_internal,
3613 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3614 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3615 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3617 * sysdeps/generic/abort.c: Add libc_hidden_def.
3618 * stdlib/strtod.c: Likewise.
3619 * sysdeps/generic/strtol.c: Likewise.
3620 * sysdeps/wordsize-64/strtol.c: Likewise.
3621 * sysdeps/wordsize-64/wcstol.c: Likewise.
3622 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3624 * include/stdlib.h: Use libc_hidden_proto for qsort.
3625 * stdlib/msort.c: Add libc_hidden_def.
3627 * include/utime.h: Use libc_hidden_proto for utime.
3628 * sysdeps/generic/utime.c: Add libc_hidden_def.
3629 * sysdeps/unix/utime.c: Likewise.
3631 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3632 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3633 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3634 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3635 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3637 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3638 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3639 and __libc_current_sigrtmax.
3640 * signal/sigismem.c: Add libc_hidden_def.
3641 * signal/sigfillset.c: Likewise.
3642 * signal/sigempty.c: Likewise.
3643 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3644 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3645 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3646 * sysdeps/posix/raise.c: Likewise.
3647 * sysdeps/generic/raise.c: Likewise.
3649 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3651 * include/string.h: Use libc_hidden_proto for __stpcpy.
3652 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3653 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3654 * sysdeps/generic/stpcpy.c: Likewise.
3655 * sysdeps/i386/stpcpy.S: Likewise.
3656 * sysdeps/i386/i586/stpcpy.S: Likewise.
3657 * sysdeps/powerpc/stpcpy.S: Likewise.
3658 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3659 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3661 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3662 __strncasecmp_l, __strdup, __strndup, __strerror_r.
3663 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3665 * string/strdup.c (__strdup): Likewise.
3666 * string/strndup.c (__strndup): Likewise.
3667 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3668 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3670 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3672 * include/libio.h: New file.
3673 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3674 * libio/iolibio.h: #include <libio.h>, not "libio.h".
3675 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3676 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3677 * sysdeps/unix/common/syscalls.list: Likewise.
3678 * sysdeps/unix/inet/syscalls.list: Likewise.
3679 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3680 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3681 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3682 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3683 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3684 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3685 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3686 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3687 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3688 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3689 * sysdeps/unix/syscalls.list: Likewise.
3691 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3692 Ulrich Drepper <drepper@redhat.com>
3694 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3695 the arguments is big enough to cause an overflow.
3697 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3699 * assert/assert.c: Use hidden_def not INTDEF.
3701 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3703 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3706 2002-08-03 Roland McGrath <roland@redhat.com>
3708 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3709 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3711 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3712 * misc/syslog.c: Add libc_hidden_def.
3713 * misc/err.c: Likewise.
3714 * stdlib/exit.c: Likewise.
3715 * stdlib/bsearch.c: Likewise.
3716 * sysdeps/generic/getenv.c: Likewise.
3718 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3720 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3721 libc_hidden_weak for every system call symbol defined.
3723 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3724 timelocal, localtime, strftime.
3725 * time/asctime.c: Add libc_hidden_def.
3726 * time/mktime.c: Likewise.
3727 * time/localtime.c: Likewise.
3728 * time/strftime.c: Likewise.
3729 * time/strptime.c: Likewise.
3730 * sysdeps/generic/time.c: Likewise.
3731 * sysdeps/unix/time.c: Likewise.
3732 * sysdeps/unix/sysv/i386/time.S: Likewise.
3733 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3735 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3736 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3737 * resolv/inet_ntop.c: Likewise.
3738 * resolv/inet_pton.c: Likewise.
3739 * inet/inet_mkadr.c: Add libc_hidden_def.
3740 * inet/inet_netof.c: Likewise.
3741 * resolv/inet_addr.c: Likewise.
3743 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3744 clauses from conditionals for now. Will have to be fixed later
3745 for older compilers.
3747 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3749 2002-08-02 Ulrich Drepper <drepper@redhat.com>
3751 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3752 broken alias attribute handling.
3753 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3755 2002-08-02 Roland McGrath <roland@frob.com>
3757 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3758 since it sets the variables we use in a -D switch.
3760 2002-08-02 Roland McGrath <roland@redhat.com>
3762 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3763 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3764 matches long int, not int.
3766 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3767 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3768 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3769 * wctype/wctrans.c (wctrans): Likewise.
3770 * wctype/wctype.c (__wctype): Likewise.
3771 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3773 2002-08-02 Ulrich Drepper <drepper@redhat.com>
3775 * assert/assert.c (__assert_fail): Fix typo in comment.
3777 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3778 * sunrpc/rpc_thread.c: Define it without static.
3779 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3781 2002-08-02 Jakub Jelinek <jakub@redhat.com>
3783 * assert/assert.c (__assert_fail): Remove undef.
3784 Replace INTDEF with libc_hidden_def.
3785 * assert/__assert.c (__assert): Remove INTUSE.
3786 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3788 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3789 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3790 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3791 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3792 libm_hiden_ver): Define.
3793 * include/assert.h (__assert_fail_internal): Remove.
3794 (__assert_fail): Add prototype. Add hidden_proto.
3795 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3797 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3798 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
3799 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3800 Add libc_hidden_proto.
3801 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3802 __fcntl): Add libc_hidden_proto. Remove macros.
3803 (__open_internal, __fcntl_internal): Remove.
3804 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3805 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3806 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3808 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3810 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
3811 Add libc_hidden_def.
3812 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
3813 * sysdeps/generic/open.c (__open): Remove undef.
3814 Add libc_hidden_def. Remove INTDEF.
3815 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
3816 Add libc_hidden_def.
3817 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
3818 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
3819 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
3820 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3821 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
3822 (__libc_fcntl): Add libc_hidden_def.
3823 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
3824 (__open): Remove INTDEF2. Add libc_hidden_weak.
3825 (__libc_open): Add libc_hidden_def.
3826 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
3827 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
3828 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3829 Add libc_hidden_def.
3830 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
3831 Add libc_hidden_def.
3832 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
3834 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
3835 (__libc_fcntl): Add libc_hidden_def.
3836 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
3837 __getpgid_internal, __chown_internal): Remove.
3838 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
3839 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
3841 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
3842 __getpid_internal, __open_internal, __write_internal): Remove.
3843 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
3844 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
3845 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
3846 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
3847 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
3848 Replace INTDEF with libc_hidden_def.
3849 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
3850 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
3851 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
3852 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
3853 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
3854 Add libc_hidden_proto.
3855 * include/sys/poll.h (__poll): Add libc_hidden_proto.
3856 * include/sys/select.h (__select): Likewise.
3857 * include/sys/socket.h (__send): Likewise.
3858 * include/sys/statfs.h (__statfs): Likewise.
3859 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
3860 __getpid, __getpgid, __setpgid, __close, __read, __write,
3861 __getpagesize, __sbrk): Likewise.
3862 (__chown_internal, __dup2_internal, __getpid_internal,
3863 __getpgid_internal, __close_internal, __write_internal,
3864 __getpagesize_internal): Remove.
3865 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
3867 * include/printf.h (__printf_fp): Add libc_hidden_proto.
3868 * include/sched.h (__sched_setscheduler): Likewise.
3869 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
3870 * include/stdlib.h (__secure_getenv): Likewise.
3871 * include/signal.h (__sigaction, __sigsuspend): Likewise.
3872 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
3873 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
3874 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
3875 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
3876 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
3877 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
3878 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
3879 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
3880 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
3881 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
3882 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
3883 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
3884 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
3885 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
3886 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
3887 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3888 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3889 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3890 * libio/genops.c (__overflow): Add libc_hidden_def.
3891 * libio/iovdprintf.c: Remove libio.h include.
3892 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
3893 libc_hidden_weak): Define to nothing if not defined.
3894 (__overflow, __woverflow): Add libc_hidden_proto.
3895 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
3896 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
3897 (DB_LOOKUP_FCT): Add libc_hidden_proto.
3898 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
3899 (DB_LOOKUP_FCT): Add libc_hidden_proto.
3900 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
3901 and libc_hidden_def.
3902 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
3903 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
3904 (__getpgid): Add libc_hidden_proto.
3905 (__bsd_getpgrp): Remove INTUSE.
3906 * resolv/res_init.c (__res_ninit, __res_randomid): Add
3908 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
3909 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
3910 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
3911 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
3912 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
3913 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
3914 __rpc_thread_createerr): Add libc_hidden_def.
3915 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
3917 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
3918 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
3919 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
3920 * sysdeps/generic/chown.c (__chown): Likewise.
3921 * sysdeps/generic/close.c (__close): Likewise.
3922 * sysdeps/generic/dup2.c (__dup2): Likewise.
3923 * sysdeps/generic/pipe.c (__pipe): Likewise.
3924 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
3925 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
3926 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
3927 * sysdeps/generic/read.c (__libc_read): Likewise.
3928 (__read): Add libc_hidden_weak.
3929 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
3930 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
3931 * sysdeps/generic/select.c (__select): Likewise.
3932 * sysdeps/generic/send.c (__send): Likewise.
3933 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
3934 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
3935 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
3936 * sysdeps/generic/statfs.c (__statfs): Likewise.
3937 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
3938 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
3939 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
3940 Remove undef and INTDEF.
3941 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
3942 * sysdeps/generic/getpid.c (__getpid): Likewise.
3943 * sysdeps/generic/write.c (__libc_write): Likewise.
3944 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
3945 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
3946 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3947 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
3948 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
3949 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
3950 Remove undef and INTDEF.
3951 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
3952 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
3953 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
3954 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
3955 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
3956 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
3957 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
3958 (__pipe): Add libc_hidden_def.
3959 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
3961 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
3962 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
3963 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
3964 (__read): Add libc_hidden_weak.
3965 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
3966 (__libc_pwrite64): Add libc_hidden_def.
3967 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
3968 * sysdeps/mach/hurd/select.c (__select): Likewise.
3969 * sysdeps/mach/hurd/send.c (__send): Likewise.
3970 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
3971 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
3972 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
3973 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
3974 * sysdeps/posix/dup2.c: Likewise.
3975 Remove undef and INTDEF.
3976 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
3977 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
3978 (__pwrite64): Add libc_hidden_weak.
3979 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
3980 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
3981 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
3982 * sysdeps/standalone/close.c (__close): Likewise.
3983 * sysdeps/standalone/write.c (__libc_write): Likewise.
3984 (__write): Add libc_hidden_weak.
3985 * sysdeps/standalone/read.c (__read): Likewise.
3986 (__libc_read): Add libc_hidden_def.
3987 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
3988 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
3989 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
3990 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
3991 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
3992 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
3993 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
3994 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
3995 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
3996 __GI___sigaction): Add.
3997 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
3998 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
3999 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4000 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4001 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4002 __GI___setpgid): Add.
4003 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4004 Remove undef and INTDEF.
4005 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4006 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4007 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4008 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4009 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4010 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4011 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4012 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4013 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4014 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4015 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4016 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4017 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4018 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4019 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4020 __GI___statfs, __GI___send): Add.
4021 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4022 libc_hidden_ver resp. libc_hidden_def.
4023 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4025 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4026 Likewise. Remove undef and INTDEF.
4027 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4028 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4029 __GI___statfs, __GI___send): Add.
4030 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4032 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4034 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4035 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4036 libc_hidden_ver resp. libc_hidden_def.
4037 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4039 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4040 Add libc_hidden_weak.
4041 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4042 Add libc_hidden_def.
4043 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4044 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4046 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4047 resp. libc_hidden_def.
4048 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4050 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
4052 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4053 Likewise. Remove undef.
4054 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4056 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4057 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4059 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4061 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4062 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4063 Likewise. Remove undef and INTDEF.
4064 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4066 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4068 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4070 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4071 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4072 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4074 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4075 Add libc_hidden_def.
4076 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4077 __GI___statfs): Add.
4078 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4080 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4081 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4082 Remove undef and INTDEF.
4083 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4084 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4086 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4087 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4089 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4091 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4092 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4093 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4095 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4096 libc_hidden_def. Remove undef and INTDEF.
4097 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4098 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4100 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4101 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4102 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4103 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4104 Remove undef and INTDEF.
4105 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4106 broken visibility attribute handling.
4107 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4109 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4111 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4112 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4114 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4117 2002-06-29 Todd Fries <todd@openbsd.org>
4119 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4121 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4123 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4125 2002-07-30 Roland McGrath <roland@redhat.com>
4127 * resolv/resolv.h (_res): Define macro unconditionally.
4128 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4129 * include/resolv.h: ... here.
4130 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4131 as a __thread variable.
4132 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4133 a __thread variable instead of a global.
4134 * resolv/res_data.c [_LIBC]: Don't #undef _res.
4136 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4139 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4141 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4142 decls of memset and memcpy.
4144 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4145 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4147 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4149 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4150 (__libc_tsd_define): Define using __thread.
4152 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4153 (__rpc_thread_variables): Use __libc_tsd_get.
4154 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4155 __rpc_thread_variables, which might allocate what we're about to free.
4157 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4158 thread-local variable.
4159 * resolv/netdb.h (h_errno): Define macro unconditionally.
4160 [_LIBC] (__set_h_errno): Macro moved to ...
4161 * include/netdb.h: ... here.
4162 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4163 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4164 [! _LIBC_REENTRANT]: #undef h_errno here.
4166 * include/errno.h: Protect from multiple inclusion.
4168 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4169 before defining them, since Linux's <linux/posix_types.h> might have
4172 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4174 * malloc/malloc.c (public_cALLOc): Check for overflow on
4176 * sunrpc/xdr_array.c (xdr_array): Likewise.
4177 * sunrpc/rpc/types.h (mem_free): Add comment.
4178 Patch by Solar Designer <solar@openwall.com>.
4180 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4182 * sysdeps/unix/sysv/linux/kernel-features.h
4183 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4185 2002-08-01 Roland McGrath <roland@redhat.com>
4187 * libio/fileops.c (_IO_file_sync_mmap): New function.
4188 (_IO_file_jumps_mmap): Use it.
4189 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
4190 repeat the stat check and resize the mapped buffer as necessary.
4192 2002-07-31 Roland McGrath <roland@redhat.com>
4194 * libio/fileops.c (decide_maybe_mmap): New static function.
4195 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4196 mmap the file contents. Then switch the jump tables to the mmap
4197 tables if it worked, or the vanilla file tables if not.
4198 (_IO_file_underflow_maybe_mmap): New function.
4199 (_IO_file_seekoff_maybe_mmap): New function.
4200 (_IO_file_xsgetn_maybe_mmap): New function.
4201 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4202 * libio/libioP.h: Declare those.
4203 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4204 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4205 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4206 If the stream is read-only, set its jump tables to those new ones.
4207 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4208 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4209 We need the tables set before _IO_file_attach.
4211 * libio/tst-mmap-eofsync.c: New file.
4212 * libio/tst-mmap-fflushsync.c: New file.
4213 * libio/bug-mmap-fflush.c: New file.
4214 * libio/tst-mmap2-eofsync.c: New file.
4215 * libio/Makefile (tests): Add them.
4217 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4218 _IO_file_underflow_mmap fails, it already set the appropriate bit.
4220 2002-07-31 Jeff Bailey <jbailey@gnu.org>
4222 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4223 Declarations moved to <bits/sys_errlist.h>. Include that file.
4224 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4225 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
4226 declare sys_errlist and sys_nerr.
4227 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
4228 provide declarations.
4230 2002-07-31 Roland McGrath <roland@redhat.com>
4232 * elf/rtld.c (dl_main): Fix typo in error message.
4234 2002-07-31 Roland McGrath <roland@frob.com>
4236 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4237 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
4238 sysdeps/mach/hurd/dl-sysdep.c change.
4240 2002-07-28 Ulrich Drepper <drepper@redhat.com>
4242 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4243 -r`/build/include for kernel headers.
4245 * po/fi.po: New file.
4247 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
4249 * configure.in (static_nss): Set to `yes' if --disable-shared.
4251 2002-07-23 Bruno Haible <bruno@clisp.org>
4253 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4256 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4258 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4259 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4262 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4264 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4267 2002-07-21 Bruno Haible <bruno@clisp.org>
4269 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4270 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4271 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4272 trans_sysdep_tab_offset.
4273 (struct sysdep_segment): New type.
4274 (struct sysdep_string): New type.
4275 (SEGMENTS_END): New macro.
4276 * intl/gettextP.h (struct sysdep_string_desc): New type.
4277 (struct loaded_domain): New fields malloced, n_sysdep_strings,
4278 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4279 orig_tab, trans_tab, hash_tab to const pointers because they point
4280 into read-only memory.
4281 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4282 (PRI*): Define fallback values.
4283 (get_sysdep_segment_value): New function.
4284 (_nl_load_domain): Distinguish major and minor revision parts. Add
4285 support for minor revision 1 with system dependent strings.
4286 (_nl_unload_domain): Also free the 'malloced' field.
4287 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4288 now done in loadmsgcat.c. Add support for system dependent strings.
4290 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4292 * posix/bug-regex7.c: New file.
4293 * posix/bug-regex8.c: New file.
4294 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4296 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4298 * posix/bug-regex4.c (main): Fix typos.
4299 * posix/bug-regex6.c (main): Likewise.
4301 2002-07-27 Ulrich Drepper <drepper@redhat.com>
4303 * posix/bug-regex6.c (main): Fix warnings.
4305 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4307 * iconv/iconv_prog.c (main): Improve error message for the cases
4308 where -t and/or -f parameter are missing.
4310 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
4312 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4313 (re_search): Likewise.
4314 (re_match_2): Likewise.
4315 (re_search_2): Likewise.
4316 (re_search_stub): New function.
4317 (re_search_2_stub): New function.
4318 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4320 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
4322 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4323 (re_string_eoi): Use STOP instead of LEN.
4324 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4325 (re_string_construct): Likewise.
4326 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4327 * posix/regexec.c (re_search_internal): Add a new argument STOP
4328 so that it can handle the argument STOP of re_search_2 and re_match_2
4330 (regexec): Adapt to new I/F of re_search_internal.
4331 (re_search_stub): Likewise.
4333 2002-07-25 Ulrich Drepper <drepper@redhat.com>
4335 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4337 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4339 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4340 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4343 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4344 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4345 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4346 alias for adjtimex syscall.
4348 * elf/dl-minimal.c: Define __assert_fail_internal.
4349 * assert/assert.c: Likewise.
4350 * include/assert.h: Define __assert_file macro if !SHARED and not
4353 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4355 * locale/Makefile: Likewise.
4356 * nscd/Makefile: Likewise.
4357 * catgets/Makefile: Likewise.
4359 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4361 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4362 compute current position.
4364 * stdio-common/tst-fseek.c (main): Improve error messages.
4366 * libio/tst-freopen.c (main): Remove unused variable.
4368 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4369 succesful seek call. Simplify error checking.
4371 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4373 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4374 * sysdeps/ia64/fpu/libm_support.h: Likewise.
4376 2002-07-19 Roland McGrath <roland@frob.com>
4378 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4379 __libc_enable_secure is set.
4381 2002-07-24 Roland McGrath <roland@frob.com>
4383 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4384 This implementation supports only IPv4.
4385 * inet/ifaddrs.h: New file.
4386 * sysdeps/generic/ifaddrs.c: New file.
4387 * sysdeps/gnu/ifaddrs.c: New file.
4388 * inet/test-ifaddrs.c: New file.
4389 * inet/Makefile (routines): Add ifaddrs.
4390 (headers): Add ifaddrs.h here.
4391 (tests): Add test-ifaddrs.
4392 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4394 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4395 socket call to get an AF_INET socket, instead of using __opensock.
4396 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4398 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4399 if not -1 use it instead of calling __opensock.
4400 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4401 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4402 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4404 * sysdeps/mach/hurd/ifreq.h: New file.
4405 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4406 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4407 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4409 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4410 which gets moved around. Calculate size of mmap'd buffer instead.
4412 2002-07-24 Philip Blundell <philb@gnu.org>
4414 * sysdeps/unix/arm/brk.S: Improve schedule.
4415 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4416 efficient instruction.
4417 (__socket): Optimize return sequence.
4419 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4421 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4422 sockets on old kernels.
4424 2002-07-22 Philip Blundell <philb@gnu.org>
4426 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4427 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
4430 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4432 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4433 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4435 * locale/programs/locarchive.c (add_locale_to_archive): Correct
4436 test to detect duplicate locales.
4438 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4439 position would be before beginning of file.
4440 (_IO_file_seekoff_mmap): Likewise.
4441 * libio/Makefile (tests): Add bug-fseek.
4442 * libio/bug-fseek.c: New file.
4444 * intl/explodename.c: Remove support for CEN-style locale variables.
4445 It was never used and shouldn't be since it's not portable.
4446 * intl/finddomain.c: Likewise.
4447 * intl/l10nflist.c: Likewise.
4448 * intl/loadinfo.h: Likewise.
4449 * locale/findlocale.c: Likewise.
4451 2002-07-24 Roland McGrath <roland@frob.com>
4453 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4454 position, calculate it to take into account an active pushback buffer.
4456 * libio/Makefile (tests): Add bug-ungetc.
4457 * libio/bug-ungetc.c: New file.
4459 2002-07-23 Ulrich Drepper <drepper@redhat.com>
4461 * sysdeps/generic/libc-tls.c: New file.
4462 * csu/Makefile (routines): Add libc-tls.
4463 (static-only-routines): Add libc-tls.
4464 * elf/dl-support.c (_dl_phdr): New variable.
4465 (_dl_phnum): New variable.
4466 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4467 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4468 for !SHARED. First look through auxiliary vector. If TLS always
4469 call __pthread_initialize_minimal.
4471 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4472 in mmap call is never zero.
4474 2002-07-23 Andreas Jaeger <aj@suse.de>
4476 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4477 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4479 2002-07-22 Ulrich Drepper <drepper@redhat.com>
4481 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4482 creation and removal of the temp file.
4484 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
4486 * test-skeleton.c (create_temp_file): New function.
4488 2002-07-22 Andreas Jaeger <aj@suse.de>
4490 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4493 2002-07-21 Roland McGrath <roland@frob.com>
4495 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4496 put -I../include before -I../stdlib so we get the right errno.h et al.
4497 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4498 (CFLAGS-wcstof.c): Likewise.
4499 (CFLAGS-wcstold.c): Likewise.
4500 (CFLAGS-wcstod_l.c): Likewise.
4501 (CFLAGS-wcstof_l.c): Likewise.
4502 (CFLAGS-wcstold_l.c): Likewise.
4504 2002-07-19 Roland McGrath <roland@frob.com>
4506 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4508 2002-07-20 Ulrich Drepper <drepper@redhat.com>
4510 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4511 __ASSUME_AT_XID is defined.
4512 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4514 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4515 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4517 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4518 (CFLAGS-wcstof.c): Likewise.
4519 (CFLAGS-wcstold.c): Likewise.
4520 (CFLAGS-wcstod_l.c): Likewise.
4521 (CFLAGS-wcstof_l.c): Likewise.
4522 (CFLAGS-wcstold_l.c): Likewise.
4524 2002-07-18 Jakub Jelinek <jakub@redhat.com>
4526 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4527 __priority_which_t): Always typedef to int for C++.
4529 2002-07-19 Ulrich Drepper <drepper@redhat.com>
4531 * configure.in: Add test for __thread support in compiler.
4532 * config.h.in: Add HAVE___THREAD.
4533 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4534 * include/sys/errno.h: Moved to...
4535 * stdlib/sys/errno.h: ...here. New file.
4536 * stdlib/errno.h: New file. Moved from...
4537 * include/errno.h: ...here. Changed into an internal header defining
4538 libc-local things like __set_errno.
4539 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4541 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
4542 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
4544 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4546 (_dl_start_final): ...here. Add code to initialize tls elements from
4548 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4549 if USE_TLS && HAVE___THREAD.
4550 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4551 * sysdeps/mach/hurd/bits/errno.h: Likewise.
4552 * sysdeps/standalone/arm/bits/errno.h: Likewise.
4553 * sysdeps/standalone/bits/errno.h: Likewise.
4554 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4555 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4556 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4557 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4558 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4559 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4560 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4561 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4562 use GL(dl_rtld_map), use map parameter.
4563 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4564 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4565 USE_TLS && HAVE___THREAD.
4566 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4567 definitions. If USE_TLS && HAVE___THREAD store errooor value using
4569 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4571 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4572 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4573 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4574 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4575 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4576 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4578 2002-07-17 Ulrich Drepper <drepper@redhat.com>
4580 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4581 MS_INVALIDATE values.
4583 2002-07-17 Andreas Schwab <schwab@suse.de>
4584 Ulrich Drepper <drepper@redhat.com>
4586 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4587 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4588 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4589 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4591 2002-07-01 H.J. Lu <hjl@gnu.org>
4593 * elf/circleload1.c (load_dso): Call "circlemod1" and check
4596 * elf/circlemod1.c (circlemod1): Return int.
4597 * elf/circlemod2.c (circlemod2): Likewise.
4598 * elf/circlemod2a.c (circlemod2): Likewise.
4599 * elf/circlemod3.c (circlemod3): Likewise.
4600 (circlemod3a): A new function.
4602 2002-07-16 Ulrich Drepper <drepper@redhat.com>
4604 * catgets/tst-catgets.c (main): Don't expect results for
4605 untranslated messages.
4607 * glibcbug.in: Fix little typo. Remove STDIO.
4609 * config.h.in: Fail if __FAST_MATH__ is defined.
4610 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4611 (CPPFLAGS-test-idouble.c): Likewise.
4612 (CPPFLAGS-test-ildouble.c): Likewise.
4614 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4616 * intl/tst-gettext.sh: Pass -f option to msgfmt.
4617 * intl/tst-gettext.c: Correctly handle untranslated messages in
4620 * po/de.po: Update from translation team.
4622 2002-07-02 H.J. Lu <hjl@gnu.org>
4624 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
4626 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4628 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4631 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4633 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4634 TLS fail if USE_TLS is not defined.
4636 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4637 and adjust state for seek position. [PR libc/4070]
4638 * libio/Makefile (tests): Add bug-rewind.
4639 * libio/bug-rewind.c: New file.
4641 2002-07-12 Philip Blundell <philb@gnu.org>
4643 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4644 (__backtrace): Use it.
4645 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
4647 2002-07-12 Philip Blundell <philb@gnu.org>
4649 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4650 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
4651 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4652 (elf_machine_rela): Remove unused variable.
4654 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4655 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4658 2002-07-12 Ulrich Drepper <drepper@redhat.com>
4660 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4662 2002-07-14 Andreas Jaeger <aj@suse.de>
4664 * sysdeps/x86_64/bits/link.h: Add biarch support.
4666 2002-07-13 Andreas Jaeger <aj@suse.de>
4668 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4669 Use correct indices.
4670 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4672 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4674 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4675 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4676 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4677 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4678 * sysdeps/s390/s390-32/bits/link.h: Remove.
4679 * sysdeps/s390/s390-64/bits/link.h: Remove.
4680 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4681 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4682 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4683 * sysdeps/s390/bits/wordsize.h: New file.
4684 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4686 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4687 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4688 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4689 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4690 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4691 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4692 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4693 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4694 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4695 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4696 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4697 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4699 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4700 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4701 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4702 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4703 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4704 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4705 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4707 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4708 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4710 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4711 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4712 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4714 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4715 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4716 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4717 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4718 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4719 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4720 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4721 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4723 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4724 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4725 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4727 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4728 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4730 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4732 * Versions.def (libc): Add GLIBC_2.3.
4733 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4734 * stdlib/canonicalize.c: Add compatibility version for realpath
4735 and make new code available in GLIBC_2.3.
4737 2002-07-06 Bruno Haible <bruno@clisp.org>
4739 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4741 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4743 * resolv/res_hconf.c (_res_hconf_init): Move code into new
4744 function do_init. Use __libc_once.
4745 (do_init): New function.
4747 * iconvdata/iso8859-11.h: Removed.
4748 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4749 (distribute): Remove iso8859-11.h.
4750 * iconvdata/tst-tables.sh: Add ISO-8859-11.
4752 * stdio-common/vfscanf.c (inchar): Restore errno from previous
4753 underflow operation if c == (W)EOF.
4755 2002-07-03 Jakub Jelinek <jakub@redhat.com>
4757 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4758 non-zero, adjust exponent.
4759 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4760 Remove NO_LONG_DOUBLE aliases.
4761 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4762 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4763 (__log1pl): Raise divide by zero and invalid exceptions when needed.
4764 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4766 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4767 Fix BITS_PER_MP_LIMB 32 extraction.
4768 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4769 exceptions for qNaNs.
4770 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4771 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4772 Raise exceptions when needed. Don't recurse unnecessarily.
4773 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4774 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4775 exceptions for qNaNs.
4776 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4777 to fix *quo return value sign.
4778 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4780 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4782 2002-07-01 Jakub Jelinek <jakub@redhat.com>
4784 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4785 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4788 2002-07-10 Ulrich Drepper <drepper@redhat.com>
4790 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4793 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4794 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
4796 * Versions.def (libthread_db): Add GLIBC_2.3.
4798 2002-07-09 Jakub Jelinek <jakub@redhat.com>
4800 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4801 new stream if possible.
4802 * libio/freopen64.c (freopen64): Likewise.
4803 * libio/Makefile (tests): Add tst-freopen.
4804 * libio/tst-freopen.c: New file.
4806 2002-07-03 Jakub Jelinek <jakub@redhat.com>
4808 * libio/stdio.h (obstack_printf): Add format attribute.
4809 (obstack_vprintf): Likewise.
4811 2002-07-04 Jakub Jelinek <jakub@redhat.com>
4813 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
4814 resp. 16 bytes on 32-bit resp. 64-bit platforms.
4815 (re_charset_t, re_string_t): Reorder structure members for 64-bit
4818 2002-07-04 Jakub Jelinek <jakub@redhat.com>
4820 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
4821 (init_dfa): ...here.
4823 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
4825 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
4826 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
4827 nodes in parse trees.
4828 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
4829 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
4830 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
4831 nodes which can epsilon transit.
4832 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
4833 to IS_EPSILON_NODE macro.
4834 * posix/regexec.c (update_regs): New function to update registers
4835 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
4836 (proceed_next_node): Use the entities of the nodes to determine
4837 whether the node can transit to.
4838 (set_regs): Use update_regs function to update registers.
4840 2002-07-03 Jakub Jelinek <jakub@redhat.com>
4842 * posix/bug-regex4.c (main): Remove duplicate setlocale.
4843 * posix/bug-regex6.c: New file.
4844 * posix/Makefile (tests): Add bug-regex6.
4845 (bug-regex6-ENV): Set LOCPATH.
4847 2002-07-10 Ulrich Drepper <drepper@redhat.com>
4849 * Versions.def [libpthread]: Add GLIBC_2.2.6.
4850 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
4852 2002-07-06 Bruno Haible <bruno@clisp.org>
4854 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
4856 2002-07-06 Bruno Haible <bruno@clisp.org>
4858 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
4861 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
4863 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
4865 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
4867 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
4869 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
4870 * sysdeps/generic/bits/ustat.h: Likewise.
4872 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
4874 2002-07-08 Andreas Jaeger <aj@suse.de>
4876 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
4878 2002-07-08 Andreas Jaeger <aj@suse.de>
4880 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
4882 2002-07-06 Andreas Jaeger <aj@suse.de>
4884 * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
4885 * sysdeps/x86_64/fpu/s_copysign.S: New file.
4886 * sysdeps/x86_64/fpu/s_copysignf.S: New file.
4887 * sysdeps/x86_64/fpu/s_copysignl.S: New file.
4888 * sysdeps/x86_64/fpu/s_finitel.S: New file.
4889 * sysdeps/x86_64/fpu/s_fmax.S: New file.
4890 * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
4891 * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
4892 * sysdeps/x86_64/fpu/s_fmin.S: New file.
4893 * sysdeps/x86_64/fpu/s_fminf.S: New file.
4894 * sysdeps/x86_64/fpu/s_fminl.S: New file.
4896 2002-06-05 Brian Youmans <3diff@gnu.org>
4898 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
4899 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
4900 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
4901 * sysdeps/ia64/fpu/e_asin.S: Likewise.
4902 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
4903 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
4904 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
4905 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
4906 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
4907 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
4908 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
4909 * sysdeps/ia64/fpu/e_exp.S: Likewise.
4910 * sysdeps/ia64/fpu/e_expf.S: Likewise.
4911 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
4912 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
4913 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
4914 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
4915 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
4916 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
4917 * sysdeps/ia64/fpu/e_log.S: Likewise.
4918 * sysdeps/ia64/fpu/e_logf.S: Likewise.
4919 * sysdeps/ia64/fpu/e_pow.S: Likewise.
4920 * sysdeps/ia64/fpu/e_powf.S: Likewise.
4921 * sysdeps/ia64/fpu/e_powl.S: Likewise.
4922 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
4923 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
4924 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
4925 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
4926 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
4927 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
4928 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
4929 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
4930 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
4931 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
4932 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
4933 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
4934 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
4935 * sysdeps/ia64/fpu/libm_error.c: Likewise.
4936 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
4937 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
4938 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
4939 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
4940 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
4941 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
4942 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
4943 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
4944 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
4945 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
4946 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
4947 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
4948 * sysdeps/ia64/fpu/s_logb.S: Likewise.
4949 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
4950 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
4951 * sysdeps/ia64/fpu/s_modf.S: Likewise.
4952 * sysdeps/ia64/fpu/s_modff.S: Likewise.
4953 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
4954 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
4955 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
4956 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
4957 * sysdeps/ia64/fpu/s_rint.S: Likewise.
4958 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
4959 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
4960 * sysdeps/ia64/fpu/s_round.S: Likewise.
4961 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
4962 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
4963 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
4964 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
4965 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
4966 * sysdeps/ia64/fpu/s_significand.S: Likewise.
4967 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
4968 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
4969 * sysdeps/ia64/fpu/s_tan.S: Likewise.
4970 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
4971 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
4972 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
4973 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
4974 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
4975 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
4976 reflect IBM donation of math library to FSF
4977 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4978 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4979 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4980 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4981 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4982 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4983 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4984 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4985 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4986 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4987 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4988 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
4989 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
4990 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
4991 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
4992 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4993 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4994 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4995 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4996 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
4997 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
4998 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
4999 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5000 * sysdeps/vax/__longjmp.c: Likewise.
5001 * sysdeps/vax/setjmp.c: Likewise.
5002 * libio/filedoalloc.c: Fixed BSD copying permission notice to
5003 remove advertising clause
5004 * sysdeps/vax/htonl.s: Likewise.
5005 * sysdeps/vax/htons.s: Likewise.
5006 * libio/wfiledoalloc.c: Likewise.
5007 * stdlib/random.c: Likewise.
5008 * stdlib/random_r.c: Likewise.
5009 * sysdeps/mach/sys/reboot.h: Likewise.
5010 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5011 * sysdeps/posix/getaddrinfo.c: Likewise.
5012 * sunrpc/des_impl.c: Updated license permission notice to Lesser
5013 GPL and corrected pointer to point to the correct license.
5015 2002-07-04 Andreas Jaeger <aj@suse.de>
5017 * scripts/config.guess: New upstream version.
5018 * scripts/config.sub: Likewise.
5020 2002-07-02 Andreas Schwab <schwab@suse.de>
5022 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5023 in parallel to bumping up the buffer pointer.
5025 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5027 * math/libm-test.inc (acos_test): Add missing L suffix for
5029 (cpow_test): Likewise.
5030 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5031 error for acos (0.0625).
5033 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5035 * locale/iso-639.def: Add entry for Ganda.
5036 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5038 (address_finish): Handle entries with two letter ISO 639 code.
5040 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5041 directory if it existed before.
5042 * iconv/iconvconfig.c: Implement --prefix option.
5044 * math/libm-test.inc (cexp_test): Add missing L suffix for
5045 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
5046 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5049 2002-05-29 H.J. Lu <hjl@gnu.org>
5051 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5054 2002-05-28 H.J. Lu <hjl@gnu.org>
5056 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5057 are not dlopened on the dependency list of a dlopened object.
5059 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5061 * elf/dl-lookup.c (add_dependency): It is not necessary to add
5062 dependencies if they are created between objects which are created
5063 while processing RTLD_NOW for objects loaded as part of the same
5066 2002-06-14 H.J. Lu <hjl@gnu.org>
5068 * elf/Makefile (tests): Add circleload1.
5069 (modules-names): Add circlemod1, circlemod2, circlemod3,
5070 circlemod1a, circlemod2a and circlemod3a.
5071 ($(objpfx)circleload1): New target.
5072 ($(objpfx)circleload1.out): Likewise.
5073 ($(objpfx)circlemod1.so): Likewise.
5074 ($(objpfx)circlemod2.so): Likewise.
5075 ($(objpfx)circlemod1a.so): Likewise.
5076 ($(objpfx)circlemod2a.so): Likewise.
5077 * elf/circleload1.c: New file.
5078 * elf/circlemod1.c: New file.
5079 * elf/circlemod1a.c: New file.
5080 * elf/circlemod2.c: New file.
5081 * elf/circlemod2a.c: New file.
5082 * elf/circlemod3.c: New file.
5083 * elf/circlemod3a.c: New file.
5085 2002-06-18 Amos Waterland <apw@us.ibm.com>
5087 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5089 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5090 add check for fd not open for writing.
5092 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5093 completed element(s) and do not suspend thread if so. Patch
5094 heavily modified by drepper.
5096 * rt/tst-aio7.c: New file. Regression test for problems which the
5097 above three changes fix.
5098 * rt/Makefile (tests): Add tst-aio7.
5100 2002-06-29 Ulrich Drepper <drepper@redhat.com>
5102 * rt/tst-aio6.c: Fix comment.
5104 * catgets/gencat.c (read_input_file): Handle more than one slash
5105 at end of line correctly [PR libc/3926].
5106 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5108 * catgets/sample.SJIS: Add test case for above bug.
5109 * catgets/test-gencat.c: Adjust test code.
5110 * catgets/test-gencat.sh: Adjust expected results.
5112 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5113 to skip relative relocations.
5114 Patch by Geoff Keating <geoffk@redhat.com>.
5116 2002-05-26 Bruno Haible <bruno@clisp.org>
5118 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5119 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5120 All callers changed.
5121 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5122 STANDARD_FROM_LOOP_ERR_HANDLER.
5123 (utf8_internal_loop): Likewise.
5124 (ucs2_internal_loop): Likewise.
5125 (internal_ucs2_loop): Perform error handling like in
5126 STANDARD_FROM_LOOP_ERR_HANDLER.
5127 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5128 in STANDARD_FROM_LOOP_ERR_HANDLER.
5129 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5131 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5132 in STANDARD_FROM_LOOP_ERR_HANDLER.
5133 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5135 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5136 in STANDARD_FROM_LOOP_ERR_HANDLER.
5137 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5139 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5140 STANDARD_FROM_LOOP_ERR_HANDLER.
5141 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5142 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5143 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5144 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5145 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5146 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5147 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5148 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5149 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5150 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5151 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5152 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5153 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5154 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5155 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5156 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5157 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5158 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5159 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5160 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5161 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5162 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5163 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5164 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5165 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5166 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5167 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5168 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5169 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
5170 an error, still set result = __GCONV_ILLEGAL_INPUT.
5171 (BODY for TO_LOOP): Likewise.
5172 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5173 STANDARD_FROM_LOOP_ERR_HANDLER.
5174 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5175 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5176 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5178 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5179 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5180 STANDARD_FROM_LOOP_ERR_HANDLER.
5181 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5182 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5183 STANDARD_FROM_LOOP_ERR_HANDLER.
5184 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5185 * iconvdata/ibm937.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/ibm939.c (BODY for FROM_LOOP): For error handling use
5189 STANDARD_FROM_LOOP_ERR_HANDLER.
5190 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5191 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5192 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5194 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5195 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5196 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5197 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5199 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5201 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5202 labels in assembler instructions.
5204 2002-06-25 Ulrich Drepper <drepper@redhat.com>
5206 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5207 not enough content is available.
5208 * libio/tst-eof.c: New file.
5209 * libio/Makefile (tests): Add tst-eof.
5211 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5213 * libio/tst-atime.c: New file.
5214 * libio/Makefile (tests): Add tst-atime.
5216 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5217 handling of overly long words.
5219 2002-06-25 Andreas Jaeger <aj@suse.de>
5221 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5222 to not use 32-bit pc relative relocations.
5223 (elf_machine_dynamic): Likewise.
5225 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5227 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5228 (__GETDENTS): Check for failed getdents64 syscall.
5229 * dirent/Makefile (tests): Add bug-readdir1.
5230 * dirent/bug-readdir1.c: New file.
5232 2002-06-17 Jakub Jelinek <jakub@redhat.com>
5234 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5236 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5237 code. Print TLS modid and offset for modules containing PT_TLS
5240 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5242 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5243 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5244 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5245 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5247 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5249 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5250 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5251 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5252 * nss/getXXent_r.c (NEW, NEW1): Define.
5253 (NEW (REENTRANT_GETNAME)): Strong alias to
5254 INTERNAL (REENTRANT_GETNAME).
5255 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5257 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5259 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5260 (_IO_file_jumps_mmap): Use it.
5261 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5262 * libio/libioP.h: Remove _IO_wdefault_setbuf and
5263 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
5265 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5266 (_IO_wfile_jumps_mmap): Don't use it anymore.
5267 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5268 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5269 _IO_wdefault_setbuf.
5270 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5271 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5272 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5274 2002-06-05 Jakub Jelinek <jakub@redhat.com>
5276 * libio/Makefile (tests): Add tst-mmap-setvbuf.
5277 * libio/tst-mmap-setvbuf.c: New test.
5279 2002-06-21 Andreas Jaeger <aj@suse.de>
5281 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5283 2002-06-18 Jakub Jelinek <jakub@redhat.com>
5285 * include/unistd.h (__fork_internal): Remove.
5286 (__fork): Don't define to __fork_internal.
5287 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5288 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5289 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5290 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5291 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5293 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5295 * po/hr.po: New file.
5297 2002-06-11 Wolfram Gloger <wg@malloc.de>
5299 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5300 Reported by Michael Meissner <meissner@redhat.com>.
5302 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5304 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5305 Patch by Hans Boehm <hans_boehm@hp.com>.
5307 2002-06-20 Andreas Jaeger <aj@suse.de>
5309 * math/libm-test.inc: Use exact values as input parameters,
5310 compute output parameters with 36 digits for 128-bit long doubles.
5311 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5312 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5313 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5315 2002-06-13 Stephen L Moshier <steve@moshier.net>
5317 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5318 argument or result is subnormal.
5320 2002-06-19 Ulrich Drepper <drepper@redhat.com>
5322 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5324 * sysdeps/i386/fpu/s_remquof.S: Likewise.
5325 * sysdeps/i386/fpu/s_remquol.S: Likewise.
5327 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5329 2002-06-17 David Mosberger <davidm@hpl.hp.com>
5331 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5332 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5333 Reported by Peter A. Buhr.
5335 2002-06-15 Roland McGrath <roland@frob.com>
5337 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5340 * sysdeps/mach/hurd/getcwd.c
5341 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5343 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5344 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5346 * sysdeps/alpha/divrem.h: Use local label instead of global one for
5347 jump to local subroutine.
5349 2002-06-14 Roland McGrath <roland@frob.com>
5351 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5352 * sysdeps/mach/hurd/Makeconfig: ... here.
5354 2002-06-13 Andreas Schwab <schwab@suse.de>
5356 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5357 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5358 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5360 2002-06-13 Roland McGrath <roland@frob.com>
5362 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5363 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5364 Use intptr_t instead of int for argc in stack layout.
5365 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5366 (_dl_init_first): Likewise.
5367 (_hurd_stack_setup): Likewise.
5368 (init1): Add a cast.
5369 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5371 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5372 argument to pfinet_siocgifconf RPC.
5374 2002-06-13 Andreas Schwab <schwab@suse.de>
5376 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5379 2002-06-12 Roland McGrath <roland@frob.com>
5381 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5383 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5384 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5386 2002-06-11 Roland McGrath <roland@frob.com>
5388 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5389 file on [!RTLD_STAT64].
5390 * sysdeps/mach/hurd/fxstat64.c: Likewise.
5392 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5393 (__fdopen): Use INTUSE.
5394 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5396 * stdio-common/tmpfile64.c: File removed.
5397 * sysdeps/generic/tmpfile64.c: New file.
5398 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5399 if not already defined.
5400 (tmpfile): Use it in place of __GT_FILE.
5402 * include/unistd.h: Declare __chown_internal.
5404 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5405 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5407 2002-06-09 Roland McGrath <roland@frob.com>
5409 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5410 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5411 value of HURD_INTERFACE_VERSION >= 20020609.
5412 * sysdeps/mach/hurd/configure: Regenerated.
5413 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5414 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5415 convert a struct stat64 into a struct stat and return 0 or -1
5416 with errno set to EOVERFLOW.
5417 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5418 for struct statfs64 to struct statfs.
5419 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5420 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5421 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5422 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5423 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5424 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5425 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5426 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5427 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5428 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5429 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5430 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5431 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5432 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5433 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5434 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5435 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5436 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5437 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5438 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5439 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5440 Use struct stat64 for io_stat argument.
5441 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5442 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5444 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5445 * hurd/fd-write.c (_hurd_fd_write): Likewise.
5446 * hurd/hurd/fd.h: Update decls.
5447 * sysdeps/mach/hurd/getcwd.c
5448 (_hurd_canonicalize_directory_name_internal): Use ino64_t
5449 and struct dirent64.
5450 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5451 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5452 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5453 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5455 2002-06-08 Roland McGrath <roland@frob.com>
5457 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5458 instead of unsigned long int for __allocation and __size members.
5460 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5462 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5463 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5464 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5465 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5467 2002-06-07 Roland McGrath <roland@frob.com>
5469 * sysdeps/mach/hurd/bits/environments.h: File removed.
5471 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5473 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5474 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5475 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5476 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5477 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5478 (sendfile64): Likewise.
5479 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5480 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5481 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5483 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5485 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5488 2002-06-04 Bruno Haible <bruno@clisp.org>
5490 * sysdeps/cris/stackinfo.h: New file.
5492 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5493 to an integer type before performing bit operations on it.
5495 2002-06-05 Roland McGrath <roland@frob.com>
5497 * sysdeps/generic/sendfile.c: Include <errno.h>.
5498 * sysdeps/generic/sendfile64.c: Likewise.
5500 * io/Makefile (routines): Add sendfile and sendfile64.
5501 (headers): Add sys/sendfile.h to the list.
5502 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5503 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5504 * io/sys/sendfile.h: ... here.
5505 * sysdeps/generic/sendfile.c: New file.
5506 * sysdeps/generic/sendfile64.c: New file.
5508 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5509 Move sendfile, sendfile64 to ...
5510 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5511 * sysdeps/mach/hurd/sendfile.c: New file.
5512 * sysdeps/mach/hurd/sendfile64.c: New file.
5514 * sysdeps/mach/nanosleep.c: New file.
5516 2002-06-04 Roland McGrath <roland@frob.com>
5518 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
5519 * sysdeps/alpha/elf/configure: New file (generated).
5521 2002-06-02 Roland McGrath <roland@frob.com>
5523 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5525 2002-06-01 Roland McGrath <roland@frob.com>
5527 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5528 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5530 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5532 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5534 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5535 Remove nstimes setting.
5536 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5537 * resolv/res_send.c (res_nsend): Don't close unconditionally if
5538 there is mix of IPv6 and IPv4 nameservers.
5539 Use nsmap array to find free slots and preserve nameserver ordering.
5542 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5544 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5545 use this header with LFS.
5547 * po/sk.po: Update from translation team.
5549 2002-05-28 Andreas Schwab <schwab@suse.de>
5551 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5552 message when finding object of wrong class.
5554 2002-05-28 Jakub Jelinek <jakub@redhat.com>
5556 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5557 Patch by <radu@netsoft.ro>.
5559 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5561 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5563 * sysdeps/unix/sysv/linux/readahead.c: New file.
5564 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5565 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5566 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5567 Add sendfile64 alias to sendfile syscall.
5568 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5569 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5570 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5571 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5574 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5575 special section for PIC register loading.
5576 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5578 * config.h.in: Define HAVE_HIDDEN.
5579 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5581 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5583 2002-05-28 Roland McGrath <roland@frob.com>
5585 * sysdeps/mach/alpha/setfpucw.c: New file.
5587 2002-05-26 Roland McGrath <roland@frob.com>
5589 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5590 Use integer_t instead of int for IOC_VOID case.
5592 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
5594 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5596 2002-05-26 Bruno Haible <bruno@clisp.org>
5598 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5599 end of the ISO-8859-7 from idx table.
5601 2002-05-27 Ulrich Drepper <drepper@redhat.com>
5603 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5605 2002-05-24 David S. Miller <davem@redhat.com>
5607 * string/bits/string2.h (memset): Do not try to optimize when
5608 not _STRING_ARCH_unaligned if GCC will do the right thing.
5610 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
5612 * posix/regex.c: Define `inline' as a macro into nothing for the
5613 compilers which lack the keyword.
5614 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5615 for the compatibility of gawk.
5616 * posix/regcomp.c: Add fake implementation of isblank() for the
5617 environments which lack the function.
5618 Don't use free_charset() in case of non-i18n envs.
5619 (build_range_exp): Don't use i18n related code in case of non-i18n
5621 (build_collating_symbol): Likewise.
5622 (build_equiv_class): Likewise.
5623 (build_charclass): Likewise.
5624 (re_compile_fastmap_iter): Likewise.
5625 (parse_bracket_exp): Likewise.
5626 (build_word_op): Likewise.
5627 (regfree): Don't use free_charset() in case of non-i18n envs.
5628 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5629 re_token_type_t in case of non-i18n envs.
5630 Don't define re_charset_t in case of non-i18n envs.
5631 Change the type of wcs of re_string_t from wchar_t to wint_t,
5632 since we store also WEOF.
5633 * posix/regex_internal.c: (re_string_realloc_buffers): Change
5634 the type of wcs of re_string_t from wchar_t to wint_t.
5635 (re_string_reconstruct): Likewise.
5636 (create_ci_newstate): Don't use i18n related code in case of
5638 (create_cd_newstate): Likewise.
5640 2002-05-24 Ulrich Drepper <drepper@redhat.com>
5642 * iconv/loop.c: Fix typo.
5644 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5646 * inet/ether_line.c (ether_line): Fix a typo causing only
5647 lower 4 bits of each ethernet address byte being assigned.
5648 Don't modify what line points to.
5649 * inet/tst-ether_aton.c (main): Add ether_line tests.
5651 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
5653 * manual/filesys.texi: Don't make readlink example leak memory
5654 when readlink fails.
5656 2002-05-20 Ulrich Drepper <drepper@redhat.com>
5658 * iconv/loop.c: Fix condition for defining unaligned loop. Add
5659 some more security checks.
5661 2002-05-17 David S. Miller <davem@redhat.com>
5663 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5665 2002-05-16 David S. Miller <davem@redhat.com>
5667 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5668 (elf_machine_dynamic): Use it to force PIC register to be loaded.
5669 (elf_machine_load_address): Likewise.
5670 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5672 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5673 is unaligned, do not forget to fully initialize %g1 magic value.
5675 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5676 register definitions and provide 32-bit variants of structures
5677 during 64-bit builds.
5679 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5680 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5681 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5682 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5683 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5684 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5685 Do not clear implicit one bit here, it must be done post-rounding.
5686 Only pad to the left using left shift if value uses less than the
5687 available fractional bits.
5689 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5691 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5692 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5693 (shared-only-routines): Likewise.
5694 * sysdeps/powerpc/libgcc-compat.c: New file.
5695 * sysdeps/wordsize-32/cmpdi2.c: Removed.
5696 * sysdeps/wordsize-32/fixdfdi.c: Removed.
5697 * sysdeps/wordsize-32/fixsfdi.c: Removed.
5698 * sysdeps/wordsize-32/shdi3.c: Removed.
5700 2002-05-16 Bruno Haible <bruno@clisp.org>
5702 * MakeTAGS (libc.pot): Don't sort the output.
5703 * po/header.pot: Update to match xgettext 0.11 output.
5705 2002-05-16 Bruno Haible <bruno@clisp.org>
5707 * MakeTAGS (subdirs): Remove duplicates.
5709 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5711 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5712 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
5715 2002-05-19 Andreas Jaeger <aj@suse.de>
5717 * sysdeps/unix/sysv/linux/configure.in: Warn against an
5718 installation in /usr/local.
5720 2002-05-16 Bruno Haible <bruno@clisp.org>
5722 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5723 string as argument of #error.
5725 2002-05-15 Ulrich Drepper <drepper@redhat.com>
5727 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5728 don't define static. Remove old __realpath function. TC1 of
5729 POSIX 2001 will allow the second parameter to be NULL.
5730 * stdlib/test-canon.c: Comment out test for NULL as second
5731 parameter of realpath.
5733 * time/offtime.c (__offtime): Set errno if overflow is detected.
5735 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5736 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5739 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5742 2002-05-15 Roland McGrath <roland@frob.com>
5744 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5746 2002-05-12 Bruno Haible <bruno@clisp.org>
5748 * iconvdata/testdata/EUC-JISX0213: New file.
5749 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5750 * iconvdata/testdata/SHIFT_JISX0213: New file.
5751 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5752 * iconvdata/testdata/ISO-2022-JP-3: New file.
5753 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5754 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5755 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5756 contains comments indicating precomposed characters.
5758 2002-04-21 Bruno Haible <bruno@clisp.org>
5760 * iconvdata/iso-2022-jp-3.c: New file.
5761 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5762 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5763 (LDFLAGS-ISO-2022-JP-3.so): New variable.
5764 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5765 (distribute): Add iso-2022-jp-3.c.
5767 2002-05-12 Bruno Haible <bruno@clisp.org>
5769 * iconvdata/tst-table-to.c (main): Restore handling of
5770 transliterations, broken by last patch.
5772 2002-05-12 Bruno Haible <bruno@clisp.org>
5774 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5776 2002-05-12 Bruno Haible <bruno@clisp.org>
5778 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5779 when there is not enough room in the output buffer.
5780 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5782 2002-04-20 Bruno Haible <bruno@clisp.org>
5784 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5786 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5787 Also make this macro work if FROM_DIRECTION evaluates to 0.
5788 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5789 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5790 of consume_incomplete.
5791 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5792 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5794 * iconvdata/cp1258.c: Likewise.
5795 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5796 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5798 * iconvdata/ibm933.c: Likewise.
5799 * iconvdata/ibm935.c: Likewise.
5800 * iconvdata/ibm937.c: Likewise.
5801 * iconvdata/ibm939.c: Likewise.
5802 * iconvdata/iso-2022-cn.c: Define
5803 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5804 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5805 * iconvdata/iso-2022-cn-ext.c: Likewise.
5806 * iconvdata/iso-2022-jp.c: Define
5807 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5808 {MIN,MAX}_NEEDED_{FROM,TO}.
5809 * iconvdata/tcvn5712-1.c: Define
5810 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5811 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
5812 * iconvdata/euc-jisx0213.c: Define
5813 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5814 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
5815 * iconvdata/shift_jisx0213.c: Likewise.
5817 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5819 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
5820 shdi3, fixdfdi, fixsfdi in csu dir.
5821 (shared-only-routines): Likewise.
5822 * sysdeps/wordsize-32/cmpdi2.c: New file.
5823 * sysdeps/wordsize-32/shdi3.c: New file.
5824 * sysdeps/wordsize-32/fixdfdi.c: New file.
5825 * sysdeps/wordsize-32/fixsfdi.c: New file.
5826 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
5827 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
5828 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
5830 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
5831 Only use va_arg if the argument will be used [PR libc/3259].
5833 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
5835 * catgets/catgets.c (catopen): Free buffer if internal catalog
5838 2002-05-14 Ulrich Drepper <drepper@redhat.com>
5840 * debug/xtrace.sh: Make more robust. For realtime tracking use
5841 non-buffering methods.
5842 * debug/pcprofiledump.c: Implement -u option.
5843 Patch by Roger Luethi <rl@hellgate.ch>.
5845 2002-05-11 Jakub Jelinek <jakub@redhat.com>
5847 * include/netinet/in.h (bindresvport_internal): Add prototype.
5848 * include/rpc/auth.h (authunix_create_internal,
5849 authunix_create_default_internal, authnone_create_internal,
5850 authdes_pk_create_internal): Add prototypes.
5851 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
5852 clntudp_create_internal, clntudp_bufcreate_internal,
5853 clntunix_create_internal): Add prototypes.
5854 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
5855 svc_getreq_internal, svc_getreq_common_internal,
5856 svc_getreqset_internal, svc_getreq_poll_internal,
5857 svc_register_internal, svc_unregister_internal,
5858 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
5859 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
5860 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
5861 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
5862 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
5863 * inet/rcmd.c (rcmd_af): Use __listen.
5864 (rresvport_af): Use __bind.
5865 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
5866 authunix_create, authunix_create_default, authnone_create,
5867 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
5868 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
5869 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
5870 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
5871 _authenticate, add INTDEF after such function definitions.
5872 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
5873 __setsockopt, __getsockname instead of non-__ variants.
5874 * sunrpc/pmap_rmt.c: Likewise.
5875 * sunrpc/rtime.c: Likewise.
5876 * sunrpc/svc_udp.c: Likewise.
5877 * sunrpc/clnt_unix.c: Likewise.
5878 * sunrpc/svc_unix.c: Likewise.
5879 * sunrpc/bindrsvprt.c: Likewise.
5880 * sunrpc/svc_tcp.c: Likewise.
5881 * sunrpc/auth_none.c: Likewise.
5882 * sunrpc/clnt_raw.c: Likewise.
5883 * sunrpc/clnt_tcp.c: Likewise.
5884 * sunrpc/auth_unix.c: Likewise.
5885 * sunrpc/key_call.c: Likewise.
5886 * sunrpc/clnt_gen.c: Likewise.
5887 * sunrpc/pm_getmaps.c: Likewise.
5888 * sunrpc/clnt_simp.c: Likewise.
5889 * sunrpc/pmap_clnt.c: Likewise.
5890 * sunrpc/svc_run.c: Likewise.
5891 * sunrpc/svc.c: Likewise.
5892 * sunrpc/svc_simple.c: Likewise.
5893 * sunrpc/pm_getport.c: Likewise.
5894 * sunrpc/auth_des.c: Likewise.
5895 * sunrpc/svc_auth.c: Likewise.
5896 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
5897 __register_frame_info_table_bases, __deregister_frame_info_bases):
5899 (__register_frame_info_bases_internal,
5900 __register_frame_info_table_bases_internal,
5901 __deregister_frame_info_bases_internal): Add prototypes.
5902 (__register_frame_info, __register_frame): Use INTUSE in call to
5903 __register_frame_info_bases.
5904 (__register_frame_info_table): Similarly.
5905 (__deregister_frame_info, __deregister_frame): Similarly.
5906 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
5907 sendto as weak alias.
5908 * sysdeps/mach/hurd/sendto.c: Likewise.
5909 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
5910 recvfrom as weak alias.
5911 * sysdeps/mach/hurd/recvfrom.c: Likewise.
5912 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
5913 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
5914 recvmsg as weak alias.
5915 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
5916 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
5917 sendmsg as weak alias.
5918 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
5919 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
5920 setsockopt, add setsockopt as weak alias.
5921 * sysdeps/mach/hurd/setsockopt.c: Likewise.
5922 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
5924 * sysdeps/mach/hurd/bind.c: Likewise.
5925 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
5927 * sysdeps/mach/hurd/listen.c: Likewise.
5928 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
5929 getsockname, add getsockname as weak alias.
5930 * sysdeps/mach/hurd/getsockname.c: Likewise.
5931 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
5932 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
5933 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
5934 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
5935 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
5936 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
5938 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5939 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5940 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5941 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5942 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
5943 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
5944 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
5945 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
5946 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
5947 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
5948 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
5949 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
5951 2002-05-10 Jakub Jelinek <jakub@redhat.com>
5953 * locale/programs/localedef.h (show_archive_content): Add verbose
5955 * locale/programs/localedef.c (main): Adjust caller.
5956 * locale/programs/locarchive.c (struct nameent, struct dataent): New
5958 (nameentcmp, dataentcmp): New functions.
5960 (show_archive_content): Print verbose listing with --list-archive -v.
5962 2002-05-14 Ulrich Drepper <drepper@redhat.com>
5964 * locale/programs/locarchive.c (open_archive): Take extra argument
5965 readonly. If true open file with O_RDONLY and don't create the
5966 archive if it doesn't exist.
5968 (close_archive): Don't do anything if fd element is -1.
5969 * locale/programs/localedef.h (open_archive): Adjust prototype.
5970 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
5973 * malloc/malloc.c (__posix_memalign): Correct check for size of
5974 alignment value [PR libc/3444].
5976 * include/stdio.h: Remove references to old stdio implementation.
5978 * libio/Makefile (bug-ungetwc2-ENV): Define.
5980 2002-05-13 Roland McGrath <roland@frob.com>
5982 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
5984 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
5986 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
5988 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5989 Allocate three, not two, more than LEN when appending '/.'.
5990 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
5991 if NAME ends with '/.' if it is shorter than 2 chars.
5993 2002-05-12 Roland McGrath <roland@frob.com>
5995 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
5996 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
5998 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
5999 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6001 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6003 * sysdeps/ia64/Makefile: Remove extra endif.
6004 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6006 2002-05-10 Andreas Schwab <schwab@suse.de>
6008 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6010 2002-05-09 Andreas Jaeger <aj@suse.de>
6012 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6013 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6014 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6016 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6017 * sysdeps/wordsize-64/glob.c: ...here.
6018 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6019 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6020 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6022 2002-05-08 Roland McGrath <roland@frob.com>
6024 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6025 O_NOTRANS flag in "." lookup.
6027 2002-05-05 Ulrich Drepper <drepper@redhat.com>
6029 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6031 2002-05-04 Ulrich Drepper <drepper@redhat.com>
6033 * locale/duplocale.c (__duplocale): Update special members only
6034 when allocation succeeded.
6036 2002-05-03 Roland McGrath <roland@frob.com>
6038 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6039 we can only build libc.so.0.3(GLIBC_2.2.6) now.
6041 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6043 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6044 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6045 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6046 * sysdeps/ia64/ia64libgcc.S: New file.
6048 2002-05-02 Ulrich Drepper <drepper@redhat.com>
6050 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6052 * malloc/memusage.c: Distinguish anonymous mmap.
6054 2002-05-01 Roland McGrath <roland@frob.com>
6056 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6057 and use INTDEF on it.
6058 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6060 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6062 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6064 2002-05-01 Ulrich Drepper <drepper@redhat.com>
6066 * malloc/memusage.c: Add support for tracking mmap & friends.
6067 * malloc/memusage.sh: Implement -m/--mmap option.
6069 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6071 * locale/programs/locarchive.c (create_archive): Add archivefname
6072 argument, create fname from it.
6073 (enlarge_archive): Honour output_prefix.
6074 (open_archive): Likewise.
6076 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6078 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6079 too many stpcpy macros.
6081 2002-04-26 Bruno Haible <bruno@clisp.org>
6083 * locale/programs/ld-collate.c (collate_read): Cast first argument
6086 2002-04-26 Bruno Haible <bruno@clisp.org>
6088 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6089 __dcngettext_internal): New declarations.
6090 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6091 attribute declarations.
6093 2002-04-30 Roland McGrath <roland@frob.com>
6095 Removed old GNU stdio implementation; GNU libio is now the only option.
6096 * configure.in: Removed --enable-libio option and @stdio@ subst var.
6097 Define USE_IN_LIBIO unconditionally.
6098 * configure: Regenerated.
6099 * Makeconfig (stdio): Set to libio by default.
6100 * config.make.in (stdio): Variable removed.
6101 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6102 * sysdeps/unix/sysv/linux/configure: Regenerated.
6103 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6104 * sysdeps/mach/hurd/configure: Regenerated.
6105 * stdio/.cvsignore: File removed.
6106 * stdio/Makefile: File removed.
6107 * stdio/Versions: File removed.
6108 * stdio/__fbufsize.c: File removed.
6109 * stdio/__flbf.c: File removed.
6110 * stdio/__fpending.c: File removed.
6111 * stdio/__fpurge.c: File removed.
6112 * stdio/__freadable.c: File removed.
6113 * stdio/__freading.c: File removed.
6114 * stdio/__fsetlocking.c: File removed.
6115 * stdio/__fwritable.c: File removed.
6116 * stdio/__fwriting.c: File removed.
6117 * stdio/clearerr.c: File removed.
6118 * stdio/fclose.c: File removed.
6119 * stdio/fcloseall.c: File removed.
6120 * stdio/feof.c: File removed.
6121 * stdio/ferror.c: File removed.
6122 * stdio/fflush.c: File removed.
6123 * stdio/fgetc.c: File removed.
6124 * stdio/fgetpos.c: File removed.
6125 * stdio/fgets.c: File removed.
6126 * stdio/fileno.c: File removed.
6127 * stdio/fmemopen.c: File removed.
6128 * stdio/fopen.c: File removed.
6129 * stdio/fopncook.c: File removed.
6130 * stdio/fputc.c: File removed.
6131 * stdio/fputs.c: File removed.
6132 * stdio/fread.c: File removed.
6133 * stdio/freopen.c: File removed.
6134 * stdio/fseek.c: File removed.
6135 * stdio/fsetpos.c: File removed.
6136 * stdio/ftell.c: File removed.
6137 * stdio/fwrite.c: File removed.
6138 * stdio/getc.c: File removed.
6139 * stdio/getchar.c: File removed.
6140 * stdio/getdelim.c: File removed.
6141 * stdio/gets.c: File removed.
6142 * stdio/glue.c: File removed.
6143 * stdio/internals.c: File removed.
6144 * stdio/linewrap.c: File removed.
6145 * stdio/linewrap.h: File removed.
6146 * stdio/memstream.c: File removed.
6147 * stdio/newstream.c: File removed.
6148 * stdio/obstream.c: File removed.
6149 * stdio/putc.c: File removed.
6150 * stdio/putchar.c: File removed.
6151 * stdio/puts.c: File removed.
6152 * stdio/rewind.c: File removed.
6153 * stdio/setbuf.c: File removed.
6154 * stdio/setbuffer.c: File removed.
6155 * stdio/setlinebuf.c: File removed.
6156 * stdio/setvbuf.c: File removed.
6157 * stdio/stdio.h: File removed.
6158 * stdio/ungetc.c: File removed.
6159 * stdio/vasprintf.c: File removed.
6160 * stdio/vscanf.c: File removed.
6161 * stdio/vsnprintf.c: File removed.
6162 * stdio/vsprintf.c: File removed.
6163 * stdio/vsscanf.c: File removed.
6164 * sysdeps/generic/defs.c: File removed.
6165 * sysdeps/generic/fdopen.c: File removed.
6166 * sysdeps/generic/pipestream.c: File removed.
6167 * sysdeps/generic/stdio_init.c: File removed.
6168 * sysdeps/generic/sysd-stdio.c: File removed.
6169 * sysdeps/generic/vdprintf.c: File removed.
6170 * sysdeps/mach/hurd/defs.c: File removed.
6171 * sysdeps/mach/hurd/fdopen.c: File removed.
6172 * sysdeps/mach/hurd/pipestream.c: File removed.
6173 * sysdeps/mach/hurd/stdio_init.c: File removed.
6174 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6175 * sysdeps/mach/hurd/vdprintf.c: File removed.
6176 * sysdeps/posix/defs.c: File removed.
6177 * sysdeps/posix/fdopen.c: File removed.
6178 * sysdeps/posix/pipestream.c: File removed.
6179 * sysdeps/posix/stdio_init.c: File removed.
6180 * sysdeps/posix/vdprintf.c: File removed.
6181 * sysdeps/unix/pipestream.c: File removed.
6182 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6183 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6184 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6186 2002-04-29 Roland McGrath <roland@frob.com>
6188 * include/libc-symbols.h (link_warning): Use `unused' attribute.
6190 2002-04-28 Ulrich Drepper <drepper@redhat.com>
6192 * sysdeps/generic/tls.h: Describe what must be defined.
6194 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6195 glob_in_dir [PR libc/3385].
6196 * posix/globtest.sh: Add test case.
6198 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6201 2002-04-27 Ulrich Drepper <drepper@redhat.com>
6203 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6204 _internal symbol handling.
6205 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6207 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6209 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6210 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6212 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
6214 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6215 not _LIBC and RE_ENABLE_I18N.
6216 (build_range_exp): Implement for not _LIBC.
6217 (build_collating_symbol): Likewise.
6218 (parse_bracket_exp): Unify redundant error handlings.
6219 Don't erase mbcset for non matching list in multibyte envs.
6220 (build_word_op): Add '_' to matching list for \w operator.
6221 * posix/regex_internal.c (re_string_construct): Invoke
6222 build_upper_buffer in case of not RE_ENABLE_I18N.
6223 (re_string_reconstruct): Don't touch cur_state in case of not
6225 * posix/regex_internal.h (attribute_hidden): New macro in case of
6227 (re_charset_t): Define range_starts/ends in case of not _LIBC.
6228 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6230 (transit_state_mb): Likewise.
6231 (check_node_accept_bytes): Implement the code evaluating range
6232 expression in case of not _LIBC.
6233 (find_collation_sequence_value): Hide in case of not _LIBC.
6235 2002-04-26 Jakub Jelinek <jakub@redhat.com>
6237 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6239 (__old_semctl, __new_semctl): Only use va_arg if the argument will
6242 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6244 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6246 * sysdeps/ia64/strncpy.S: Fix recovery code.
6247 Patch by David Mosberger <davidm@hpl.hp.com>.
6249 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6251 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6254 2002-04-14 Bruno Haible <bruno@clisp.org>
6256 * posix/regex.c (re_max_failures): Add back symbol for binary
6259 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
6261 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6262 of buffer building functions.
6263 * posix/regex_internal.c (re_string_allocate): New function.
6264 (re_string_realloc_buffers): New function.
6265 (re_string_skip_chars): New function.
6266 (re_string_reconstruct): New function.
6267 (re_string_construct): Adapt it to new interface of buffer building
6269 (re_string_construct_common): Likewise.
6270 (build_wcs_buffer): Likewise.
6271 (build_wcs_upper_buffer): Likewise.
6272 (build_upper_buffer): Likewise.
6273 (re_string_translate_buffer): Likewise.
6274 (re_string_context_at): Adapt it to variable length buffers.
6275 * posix/regex_internal.h (re_string_t): Add new fields to handle
6276 variable length buffers.
6277 (re_match_context_t): Likewise.
6278 * posix/regexec.c (re_search_internal): Adapt it to new interface
6279 of re_string_t and re_match_context_t.
6280 (acquire_init_state_context): Likewise.
6281 (check_matching): Likewise.
6282 (check_halt_state_context): Likewise.
6283 (proceed_next_node): Likewise.
6284 (set_regs): Likewise.
6285 (sift_states_backward): Likewise.
6286 (clean_state_log_if_need): Likewise.
6287 (sift_states_iter_mb): Likewise.
6288 (sift_states_iter_bkref): Likewise.
6289 (add_epsilon_backreference): Likewise.
6290 (transit_state): Likewise.
6291 (transit_state_sb): Likewise.
6292 (transit_state_mb): Likewise.
6293 (transit_state_bkref): Likewise.
6294 (transit_state_bkref_loop): Likewise.
6295 (check_node_accept): Likewise.
6296 (match_ctx_init): Likewise.
6297 (extend_buffers): New function.
6299 2002-04-21 Bruno Haible <bruno@clisp.org>
6301 * iconvdata/tst-table.sh: For the second check, use the truncated
6302 GB18030 charmap table, like for the first check.
6304 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6306 * elf/dl-load.c (open_verify): Correct __lseek parameters.
6307 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6309 2002-04-23 H.J. Lu <hjl@gnu.org>
6311 * include/math.h (isfinite): Fix a typo.
6313 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6315 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6316 which is created by the test suite.
6318 2002-04-20 Bruno Haible <bruno@clisp.org>
6320 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6321 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6323 2002-04-20 Bruno Haible <bruno@clisp.org>
6325 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6326 to avoid gcc warning.
6328 2002-04-20 Bruno Haible <bruno@clisp.org>
6330 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6331 of data->__statep->__count.
6333 2002-04-20 Bruno Haible <bruno@clisp.org>
6335 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6337 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6339 2002-04-24 Roland McGrath <roland@frob.com>
6341 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6342 use END macro instead of our own .end directive.
6343 Use `callsys' insn mnemonic instead of `call_pal'.
6345 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6347 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6348 macro; we need this for Hurd.
6350 Log entry was missing for 2002/03/24 commit of rev 1.8,
6351 goes with 2002-03-17 changes.
6352 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6353 (sysdep_routines): Append ioperm here.
6354 (sysdep_headers): Append sys/io.h here.
6356 2002-04-23 Roland McGrath <roland@frob.com>
6358 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6359 * sysdeps/mach/hurd/sendto.c: Likewise.
6360 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6361 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6362 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6364 2002-04-22 Roland McGrath <roland@frob.com>
6366 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6367 failure from i386_io_perm_* RPCs to ENOSYS.
6369 2002-04-22 Andreas Jaeger <aj@suse.de>
6371 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6373 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6375 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6376 register instead of destroying %rbx.
6378 2002-04-21 Ulrich Drepper <drepper@redhat.com>
6380 * string/string.h: Declare strerror_r also for XPG6.
6382 2002-04-19 Roland McGrath <roland@frob.com>
6384 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6386 2002-04-20 Ulrich Drepper <drepper@redhat.com>
6388 * Makefile: Add handling of xtests and xcheck targets.
6389 * MakeTAGS: Likewise.
6390 * Makeconfig: Likewise.
6391 * Makerules: Likewise.
6393 * manual/Makefile: Likewise.
6394 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6395 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
6397 2002-04-11 Zack Weinberg <zack@codesourcery.com>
6399 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6401 * sunrpc/auth_none.c: Include bits/libc-lock.h.
6402 Delete #ifdef _RPC_THREAD_SAFE_ block.
6403 (authnone_private): Make a struct, not a pointer to struct.
6404 (authnone_private_guard): New once-control variable.
6405 (authnone_create_once): New function, split out of
6406 authnone_create. No need to allocate memory.
6407 (authnone_create): Just call authnone_create_once via
6408 __libc_once, then return &authnone_private->no_client.
6409 (authnone_marshal): Access private data via CLIENT argument,
6410 not authnone_private pointer.
6411 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6412 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6415 2002-04-12 H.J. Lu <hjl@gnu.org>
6417 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6419 2002-04-18 Bruno Haible <bruno@clisp.org>
6421 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6422 FROM_DIRECTION): Make the FROM direction stateless.
6423 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6424 FROM_DIRECTION): Likewise.
6426 2002-04-15 Bruno Haible <bruno@clisp.org>
6428 * iconvdata/JISX0213.TXT: New file.
6429 * iconvdata/jisx0213.h: New file.
6430 * iconvdata/jisx0213.c: New file.
6431 * iconvdata/euc-jisx0213.c: New file.
6432 * iconvdata/shift_jisx0213.c: New file.
6433 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6434 * iconvdata/EUC-JISX0213.precomposed: New file.
6435 * iconvdata/SHIFT_JISX0213.precomposed: New file.
6436 * iconvdata/SHIFT_JISX0213.irreversible: New file.
6437 * iconvdata/tst-table-to.c (main): Make it work for encodings for
6438 which the "to" direction is stateful.
6439 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6440 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6442 (libJISX0213-routines): New variable.
6443 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6444 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6445 (LDFLAGS-libJISX0213.so): New variable.
6446 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6447 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6448 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6450 2002-04-15 Bruno Haible <bruno@clisp.org>
6452 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6453 uint32_t. Update to Unicode 3.2.
6454 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6455 (BODY for TO_LOOP): Handle the ASCII range specially.
6456 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6457 * iconvdata/testdata/BIG5HKSCS: Remove a character.
6458 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6460 2002-04-15 Bruno Haible <bruno@clisp.org>
6462 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6463 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6465 2002-04-15 Bruno Haible <bruno@clisp.org>
6467 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6468 (ucs4_to_cns11643): Update.
6469 * iconvdata/cns11643.c: Update to Unicode 3.2.
6470 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6471 __cns11643_from_ucs4p2_tab): Regenerated.
6472 (__cns11643_from_ucs4p2c_tab): New array.
6473 * iconvdata/cvs11643l1.c: Update comments.
6474 * iconvdata/EUC-TW.irreversible: Remove two entries.
6476 2002-04-15 Bruno Haible <bruno@clisp.org>
6478 * locale/C-translit.h.in: Update to Unicode 3.2.
6479 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6480 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6482 2002-04-15 Bruno Haible <bruno@clisp.org>
6484 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6485 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6487 2002-04-15 Bruno Haible <bruno@clisp.org>
6489 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6490 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6491 always one byte, not 0 bytes in some cases and 2 bytes in others.
6493 * iconvdata/tst-table-from.c (main): Correct the usage message.
6495 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6497 * posix/regcomp.c (parse_expression): Fix incorrect error code.
6498 (parse_dup_op): Fix error handling like "a{}".
6499 (parse_bracket_exp): Add error handling.
6500 (fetch_number): Add error handling for "a{<very_large_number>}".
6502 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6504 * posix/regcomp.c (parse_bracket_symbol): Add error handling
6505 in case that the symbol name is too long.
6506 (build_charclass): Handle [:lower:]/[:uppper:] correctly
6507 in case of REG_ICASE.
6509 2002-04-19 Andreas Jaeger <aj@suse.de>
6511 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6512 <hartvige@mips.com>.
6514 2002-04-15 H.J. Lu <hjl@gnu.org>
6516 * include/math.h (__finitel_internal): Declare only if
6517 __NO_LONG_DOUBLE_MATH is not defined.
6518 (__isinfl_internal): Likewise.
6519 (__isnanl_internal): Likewise.
6521 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6522 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6523 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6524 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6525 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6526 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6527 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6529 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6532 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6533 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6535 2002-04-15 Bruno Haible <bruno@clisp.org>
6537 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6538 (BODY for TO_LOOP): Likewise.
6539 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6540 * iconvdata/tst-table.sh: Add support for encodings which contain
6541 precomposed Unicode characters, known to the iconv converter in both
6542 directions but not listed in the charmap.
6543 * iconvdata/IBM856.irreversible: New file.
6544 * iconvdata/IBM922.irreversible: New file.
6545 * iconvdata/IBM1132.irreversible: New file.
6546 * iconvdata/IBM1133.irreversible: New file.
6547 * iconvdata/IBM1160.irreversible: New file.
6548 * iconvdata/IBM1161.irreversible: New file.
6549 * iconvdata/IBM1163.irreversible: New file.
6550 * iconvdata/IBM1164.irreversible: New file.
6551 * iconvdata/ARMSCII-8.irreversible: New file.
6552 * iconvdata/TCVN5712-1.precomposed: New file.
6553 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6554 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6555 ARMSCII-8, TCVN5712-1.
6556 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6557 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6558 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6559 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6561 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6563 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
6564 for EVENING69. Include offsets in TZ environment variable.
6566 2002-04-18 Ulrich Drepper <drepper@redhat.com>
6568 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6569 avoid compiler warnings.
6571 * locale/programs/localedef.c (main): Always call
6572 construct_output_path.
6574 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6576 * locale/programs/locfile.c (to_archive): New variable. To collect
6577 data which has to be added to the locale archive.
6578 (write_all_categories): Take new third parameter with locale name.
6579 Unless no_archive flag set add new locale data to the archive
6580 (write_locale_data): Unless no-archive flag set store generated data
6581 in to_archive data structure instead of generation output file.
6582 Add new parameter with locale category index.
6583 * locale/programs/locfile.h: Add new parameters in declaractions of
6584 write_all_categories and write_locale_data.
6585 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6586 --add-to-archive, and --delete-from-archive options. Pass extra
6587 parameter to write_all_categories.
6588 * locale/programs/localedef.h: Add prototypes for functions in
6590 * locale/locarchive.h: New file.
6591 * locale/programs/locarchive.c: New file.
6592 * locale/Makefile (distribute): Add programs/locarchive.c and
6594 (localedef-modules): Add md5 and locarchive.
6595 Add vpath to crypt subdir for md5.c.
6597 * locale/programs/ld-address.c: Pass locale category ID as new second
6598 parameter to write_locale_data.
6599 * locale/programs/ld-collate.c: Likewise.
6600 * locale/programs/ld-ctype.c: Likewise.
6601 * locale/programs/ld-identification.c: Likewise.
6602 * locale/programs/ld-measurement.c: Likewise.
6603 * locale/programs/ld-messages.c: Likewise.
6604 * locale/programs/ld-monetary.c: Likewise.
6605 * locale/programs/ld-name.c: Likewise.
6606 * locale/programs/ld-numeric.c: Likewise.
6607 * locale/programs/ld-paper.c: Likewise.
6608 * locale/programs/ld-telephone.c: Likewise.
6609 * locale/programs/ld-time.c: Likewise.
6611 * locale/simple-hash.c: Move compute_hashval function from here...
6612 * locale/hashval.h: ...to here. New file.
6613 * locale/simple-hash.h: Add prototype for compute_hashval.
6615 * include/libintl.h: Minor cleanups.
6617 2002-04-16 Ulrich Drepper <drepper@redhat.com>
6619 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6621 2002-04-15 Ulrich Drepper <drepper@redhat.com>
6623 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
6625 2002-04-14 Bruno Haible <bruno@clisp.org>
6627 * locale/programs/charmap.c (charmap_read): Don't access result if
6630 2002-02-17 Andreas Schwab <schwab@suse.de>
6632 * elf/reldep7.c: New file.
6633 * elf/reldep7mod1.c: New file.
6634 * elf/reldep7mod2.c: New file.
6635 * elf/Makefile: Add rules to build and run reldep7.
6637 2002-04-14 Jakub Jelinek <jakub@redhat.com>
6639 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6640 the end of the function. Pass original flags to recursive call if
6641 add_dependency failed.
6642 (_dl_lookup_versioned_symbol): Likewise.
6644 2002-04-13 Jakub Jelinek <jakub@redhat.com>
6646 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6647 early, but check whether it overflowed afterwards.
6648 * time/tst-mktime.c (main): Add new tests.
6650 2002-04-14 Ulrich Drepper <drepper@redhat.com>
6652 * debug/xtrace.sh: Fix program name in help message.
6653 Patch by Roger Luethi <rl@hellgate.ch>.
6655 * include/sys/stat.h: Add prototypes for __lxstat_internal and
6656 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
6658 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6659 * sysdeps/mach/hurd/lxstat.c: Likewise.
6660 * sysdeps/unix/common/lxstat.c: Likewise.
6661 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6662 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6663 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6664 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6665 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6666 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6667 * sysdeps/mach/hurd/lxstat64.c: Likewise.
6668 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6669 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6671 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6672 prototypes. Add __mbrlen and __mbrtowc macros.
6673 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6674 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6676 * include/unistd.h: Add prototype for __write_internal and add
6677 __libc_write macro is SHARED.
6678 * sysdeps/generic/write.c: Use INTDEF for __write.
6679 * sysdeps/mach/hurd/write.c: Likewise.
6680 * sysdeps/unix/sysv/aix/write.c: Likewise.
6681 * sysdeps/unix/syscalls.list: Add __libc_write alias.
6683 * assert/assert.c: Replace STR_N_SIZE with something usable in
6685 * assert/assert-perr.c: Likewise.
6687 * include/sys/socket.h: Declare __libc_sa_len_internal and define
6688 SA_LEN macro to use it if not NOT_IN_libc.
6689 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6691 * include/fcntl.h: Declare __open_internal and define __open and
6692 __libc_open macros if not NOT_IN_libc.
6693 * sysdeps/generic/open.c: Use INTDEF for __open.
6694 * sysdeps/mach/hurd/open.c: Likewise.
6695 * sysdeps/unix/sysv/aix/open.c: Likewise.
6696 * sysdeps/unix/syscalls.list: Add __open_internal alias.
6698 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6701 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6702 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6703 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6704 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6706 * include/wctype.h: Declare __iswalpha_l_internal,
6707 __iswdigit_l_internal, __iswspace_l_internal,
6708 __iswxdigit_l_internal, and __iswctype_internal. Define
6709 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6710 __iswxdigit_l macros if not NOT_IN_libc.
6711 * wctype/iswctype.c: Use INTDEF for __iswctype.
6712 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6714 * include/math.h: Declare __isinf_internal, __isinfl_internal,
6715 __isnan_internal, and __isnanl_internal.
6716 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6717 __isnan, and __isnanl.
6718 * stdio-common/printf_size.c: Likewise.
6719 * sysdeps/generic/printf_fphex.c: Likewise.
6720 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6721 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6722 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6723 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6724 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6725 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6726 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6727 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6728 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6729 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6730 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6731 * sysdeps/m68k/s_isinfl.c: Likewise.
6732 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6733 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6735 * include/sys/time.h: Declare __gettimeofday_internal and define
6736 __gettimeofday macro if not NOT_IN_libc.
6737 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6738 * sysdeps/mach/gettimeofday.c: Likewise.
6739 * sysdeps/posix/gettimeofday.c: Likewise.
6740 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6741 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6742 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6743 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6745 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6746 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6747 Remove __lstat and __fstat inline functions.
6748 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6749 * sysdeps/mach/hurd/fxstat.c: Likewise.
6750 * sysdeps/unix/fxstat.c: Likewise.
6751 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6752 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6753 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6754 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6755 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6756 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6757 * sysdeps/mach/hurd/fxstat64.c: Likewise.
6758 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6759 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6761 * include/unistd.h: Declare __getpid_internal and define
6762 __getpid macro if not NOT_IN_libc.
6763 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6764 * sysdeps/generic/getpid.c: Likewise.
6765 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6766 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6768 * include/unistd.h: Declare __getpgid_internal and define
6769 __getpgid macro if not NOT_IN_libc.
6770 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6771 * sysdeps/mach/hurd/getpgid.c: Likewise.
6772 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6773 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6774 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6775 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6777 * include/unistd.h: Declare __getpagesize_internal and define
6778 __getpagesize macro if not NOT_IN_libc.
6779 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6781 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6782 * sysdeps/mach/getpagesize.c: Likewise.
6783 * sysdeps/posix/getpagesize.c: Likewise.
6784 * sysdeps/unix/getpagesize.c: Likewise.
6785 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6786 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6787 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6788 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6790 2002-04-13 Andreas Jaeger <aj@suse.de>
6792 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6793 as clobber to reduce register pressure.
6794 (__strpbrk_cg): Likewise.
6795 (__mempcpy_by4): Likewise.
6796 (__strstr_cg): Likewise.
6797 Add prototype for __memrchr.
6799 2002-04-13 Andreas Schwab <schwab@suse.de>
6801 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6802 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6803 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6805 2002-04-13 Ulrich Drepper <drepper@redhat.com>
6807 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
6808 check whether the caller prefers getting the most recent version of
6809 a symbol of the earliest version.
6810 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
6811 _dl_do_lookup to also take the new parameter and pass it on.
6812 Change 'explicit' parameter of _dl_lookup_symbol and
6813 _dl_lookup_versioned_symbol to flags. Adjust tests.
6814 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6815 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
6816 _dl_lookup_versioned_symbol.
6817 * elf/dl-reloc.c: Likewise.
6818 * elf/dl-runtime.c: Likewise.
6819 * elf/dl-sym.c: Likewise.
6820 * sysdeps/mips/dl-machine.h: Likewise.
6822 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6824 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
6826 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
6828 2002-04-10 Andreas Jaeger <aj@suse.de>
6830 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6832 * include/argz.h: Remove extra char from last patch.
6834 2002-04-09 Ulrich Drepper <drepper@redhat.com>
6836 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
6837 * sysdeps/unix/sysv/aix/chown.c: Likewise.
6838 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
6839 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
6840 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6841 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
6843 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6845 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
6846 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
6847 * intl/ngettext.c: Likewise.
6849 * include/sys/socket.h: Declare __connect_internal and define
6850 __connect macro if not NOT_IN_libc.
6851 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
6852 * sysdeps/unix/sysv/aix/connect.c: Likewise.
6853 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
6855 * include/unistd.h: Declare __close_internal and define __close macro
6857 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
6858 WJUMP3): Add extra parenthesis to avoid expanding element names with
6859 macors like __close.
6860 * sysdeps/unix/syscalls.list: Add __close_internal alias.
6862 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
6864 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
6865 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
6866 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
6868 * include/unistd.h: Declare __fork_internal and define __fork macro
6870 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
6871 * sysdeps/unix/sysv/aix/fork.c: Likewise.
6872 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
6874 * include/stdio_ext.h: Declare __fsetlocking_internal and define
6875 __fsetlocking macro to use it if not NOT_IN_libc.
6876 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
6878 * libio/__fbufsize.c: Correct copyright.
6879 * libio/__flbf.c: Likewise.
6880 * libio/__fpending.c: Likewise.
6881 * libio/__fpurge.c: Likewise.
6882 * libio/__freadable.c: Likewise.
6883 * libio/__freading.c: Likewise.
6884 * libio/__fsetlocking.c: Likewise.
6885 * libio/__fwritable.c: Likewise.
6886 * libio/__fwriting.c: Likewise.
6888 * include/stdio.h: Declare __asprintf_internal and define __asprintf
6889 macro to use it if not NOT_IN_libc.
6890 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
6892 * include/mntent.h: Declare __setmntent_internal,
6893 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
6894 __getmntent_r, and __endmntent macros to use these functions if not
6896 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
6899 * include/math.h: Declare __finite_internal, __finitef_internal, and
6900 __finitel_internal. Redefine isfinite macro if in libc or libm using
6902 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
6903 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
6904 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
6905 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
6906 * sysdeps/i386/fpu/s_finitef.S: Likewise.
6907 * sysdeps/i386/fpu/s_finitel.S: Likewise.
6908 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6909 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6910 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6911 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
6913 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
6914 to use this function if not NOT_IN_libc.
6915 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
6916 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
6917 * sysdeps/mach/hurd/fcntl.c: Likewise.
6918 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6919 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6921 * include/argz.h: Declare __argz_count_internal and
6922 __argz_stringify_internal.
6923 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
6925 * string/argz-count.c: Use INTDEF for __argz_count.
6926 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
6928 * include/stdlib.h: Declare __cxa_atexit_internal and define
6929 __cxa_atexit macro if not NOT_IN_libc.
6930 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
6931 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
6933 * assert/assert.c: Use INTDEF for __assert_fail.
6934 * assert/__assert.c: Use INTUSE for call to __assert_fail.
6935 * include/assert.h: Declare __assert_fail_internal.
6937 * extra-lib.mk: Mark assignment to lib with override.
6939 2002-04-08 Ulrich Drepper <drepper@redhat.com>
6941 * Makerules: Use cppflags-iterator.mk to add defines for all test
6944 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
6946 * elf/elf.h: Define R_SH_TLS_xxx macros.
6947 * elf/rtld.c: Remove an extra parenthesis.
6948 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
6950 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
6951 * sysdeps/sh/dl-lookupcfg.h: New file.
6952 * sysdeps/sh/dl-tls.h: New file.
6953 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
6954 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
6955 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
6956 R_SH_TLS_TPOFF32 relocations.
6958 2002-04-08 Ulrich Drepper <drepper@redhat.com>
6960 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
6962 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
6963 * include/stdlib.h: Likewise.
6965 2002-04-08 Jakub Jelinek <jakub@redhat.com>
6967 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
6968 instead of _RTLD_LOCAL.
6969 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
6970 * include/unistd.h: Likewise.
6971 * sysdeps/generic/ldsodefs.h: Likewise.
6973 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
6974 if in libc or ld.so.
6976 2002-04-08 Andreas Jaeger <aj@suse.de>
6978 * elf/cache.c (print_entry): Support x86-64.
6980 2002-04-08 Ulrich Drepper <drepper@redhat.com>
6982 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
6983 with one accessing the locale data structures directly.
6984 * stdio-common/printf-prs.c: Include localeinfo.h for new
6985 MB_CUR_MAX definition.
6987 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
6988 is the name of the source file without extension.
6989 * Makefile (distribute): Add cppflags-iterator.mk.
6990 * cppflags-iterator.mk: New file.
6991 * extra-lib.mk: For the sources of the library run
6992 cppflags-iterator.mk.
6994 * include/libintl.h: Declare __dcgettext_internal and
6995 _libc_intl_domainname_internal. Define __dcgettext using these
6996 two symbols if used in libc itself.
6997 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
6998 _libc_intl_domainname_internal.
6999 * argp/argp-parse.c: Likewise.
7000 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7001 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7002 * intl/gettext.c: Likewise.
7003 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7005 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7007 * posix/regex_internal.c (gettext): Likewise.
7009 2002-04-08 Andreas Jaeger <aj@suse.de>
7011 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7013 * sysdeps/x86_64/fpu/s_llrint.S: New file.
7014 * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7015 * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7016 * sysdeps/x86_64/fpu/s_lrint.S: New file.
7017 * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7018 * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7020 2002-04-08 Roland McGrath <roland@frob.com>
7022 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7023 widening __hurd_fail value.
7025 2002-04-07 Roland McGrath <roland@frob.com>
7027 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7028 <mach/machine/alpha_instruction.h>.
7029 (_hurd_setup_sighandler): Take proper arguments for current decls.
7030 Update code to use _hurdsig_catch_fault.
7031 Use `callsys' instruction instead of `call_pal'.
7032 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7034 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7035 (ALIGN, at, AT, fp): New macros.
7037 2002-04-06 Roland McGrath <roland@frob.com>
7039 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7041 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7042 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7044 * sysdeps/mach/hurd/bind.c: Use prototype definition.
7045 * sysdeps/mach/hurd/connect.c: Likewise.
7046 * sysdeps/mach/hurd/getsockopt.c: Likewise.
7047 * sysdeps/mach/hurd/setsockopt.c: Likewise.
7049 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7052 * hurd/catch-exc.c: Use integer_t instead of int.
7053 * hurd/hurdfault.c: Likewise.
7055 * sysdeps/mach/hurd/alpha/exc2signal.c
7056 (_hurd_exception2signal): Rewritten.
7057 * sysdeps/mach/hurd/alpha/longjmp-ts.c
7058 (_hurd_longjmp_thread_state): Rewritten.
7060 2002-04-07 Ulrich Drepper <drepper@redhat.com>
7062 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7063 DB_LOOKUP_FCT prototype.
7064 * nss/getXXent_r.c: Likewise.
7065 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7066 * inet/getaliasname_r.c: Likewise.
7067 * inet/getnetbyad_r.c: Likewise.
7068 * inet/getnetbynm_r.c: Likewise.
7069 * inet/getnetent_r.c: Likewise.
7070 * inet/getproto_r.c: Likewise.
7071 * inet/getprtent_r.c: Likewise.
7072 * inet/getprtname_r.c: Likewise.
7073 * inet/getrpcbyname_r.c: Likewise.
7074 * inet/getrpcbynumber_r.c: Likewise.
7075 * inet/getrpcent_r.c: Likewise.
7076 * inet/getservent_r.c: Likewise.
7077 * inet/getsrvbynm_r.c: Likewise.
7078 * inet/getsrvbypt_r.c: Likewise.
7079 * shadow/getspent_r.c: Likewise.
7080 * shadow/getspnam_r.c: Likewise.
7082 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7084 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7085 Use i686-friendly PIC code.
7086 * sysdeps/i386/elf/setjmp.S: Likewise.
7088 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7090 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7092 * elf/Versions: Remove it here.
7094 2002-04-06 Ulrich Drepper <drepper@redhat.com>
7096 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7097 direction. Reported by H . J . Lu <hjl@lucon.org>.
7099 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7101 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7102 test just before the test runs.
7103 * intl/tst-translit.sh: Likewise.
7104 * intl/tst-codeset.sh: Likewise.
7106 * timezone/zic.c: Update from tzcode2002c.
7107 * timezone/asia: Update from tzdata2002c.
7108 * timezone/backward: Likewise.
7109 * timezone/europe: Likewise.
7110 * timezone/northamerica: Likewise.
7111 * timezone/northamerica: Likewise.
7112 * timezone/northamerica: Likewise.
7113 * timezone/southamerica: Likewise.
7114 * timezone/zone.tab: Likewise.
7116 2002-03-23 Jakub Jelinek <jakub@redhat.com>
7118 * sysdeps/generic/brk.c (__curbrk): Declare.
7119 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7120 * sysdeps/generic/dl-sbrk.c: Likewise.
7121 * sysdeps/unix/arm/dl-brk.S: New file.
7122 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7123 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7124 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7125 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7126 * sysdeps/unix/i386/dl-brk.S: New file.
7127 * sysdeps/unix/mips/dl-brk.S: New file.
7128 * sysdeps/unix/sparc/dl-brk.S: New file.
7129 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7130 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7131 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7132 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7134 2002-04-03 Andreas Schwab <schwab@suse.de>
7136 * Makefile (headers): Add gnu/lib-names.h here instead of
7138 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7140 (install-headers): Add dependency on install-headers-nosubdir.
7141 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7142 instead of install-others.
7143 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7146 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7148 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7149 Reported by Sam Roberts <sroberts@uniserve.com>.
7151 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7153 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7154 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7155 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7156 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7158 2002-04-03 David Mosberger <davidm@hpl.hp.com>
7160 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7161 (RTLD_START): Ditto.
7162 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7163 dependency violation.
7165 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7167 * time/mktime.c (__mktime_internal): Move check for year < 70 below
7168 all variable declarations.
7170 2002-04-04 Andreas Schwab <schwab@suse.de>
7172 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7174 2002-04-04 Andreas Jaeger <aj@suse.de>
7176 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7177 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7179 * sysdeps/x86_64/fpu/s_fabs.c: New file.
7180 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7181 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7183 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7185 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7187 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7188 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7190 * configure.in: Handle all mips entries the same.
7192 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7193 * sysdeps/mips/mips3/*: Likewise.
7194 * sysdeps/mips/p40/bits/endian.h: Likewise.
7196 2002-04-04 Ulrich Drepper <drepper@redhat.com>
7198 * misc/dirname.c (dirname): Ignore trailing slashes at end of
7199 non-null result [PR libc/2600].
7201 * misc/tst-dirname.c: Add more tests.
7203 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7205 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7206 define a code_set_name provide one based on the filename.
7208 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7210 2001-12-28 Andreas Jaeger <aj@suse.de>
7212 * time/mktime.c (__mktime_internal): Check for year < 70
7215 2002-04-03 Andreas Jaeger <aj@suse.de>
7217 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7219 Reported by Andi Kleen <ak@suse.de>.
7221 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7223 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7224 * sysdeps/generic/w_lgammaf.c: Likewise.
7225 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7227 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7228 Adjust for new output format of the backtrace functions.
7230 * misc/syslog.c (vsyslog): Only use cleanup handler if
7231 _LIBC_REENTRANT is defined [PR libc/2924].
7233 * libio/Makefile (tests): Add bug-ungetwc2.
7234 * libio/bug-ungetwc2.c: New file.
7236 * manual/install.texi: Typographical and grammatical cleanup.
7237 Patch by Dennis Grace <dgrace@us.ibm.com>.
7239 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7240 parameter if mtflag. Patch by <jeongyun@innovay.com>.
7242 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
7243 always "&". Adjust callers.
7244 Add "_" prefix to several generated definitions.
7245 Patch by paul@serice.net [PR libc/3158].
7247 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7249 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7250 size of _dl_arm_cap_flags.
7251 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7253 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7256 2002-03-22 H.J. Lu <hjl@gnu.org>
7258 * scripts/firstversions.awk: Check the first version.
7260 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7262 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7263 dependencies must be stable to work correctly.
7264 Reported by martin.lubich@datacon.at.
7266 * libio/bug-ungetwc1.c: New file.
7267 * libio/Makefile (tests): Add bug-ungetwc1.
7269 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7270 if stream was last used for writing.
7272 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7273 number [PR libc/3111].
7275 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7277 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7279 2002-04-02 Jakub Jelinek <jakub@redhat.com>
7281 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7282 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7283 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7284 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7285 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7287 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7289 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7292 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7294 * sysdeps/i386/fpu/s_fabs.S: New file.
7295 * sysdeps/i386/fpu/s_fabsf.S: New file.
7296 * sysdeps/i386/fpu/s_fabsl.S: New file.
7297 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7298 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7299 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7301 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7303 * rt/tst-shm.c (do_test): Add one more test for size of shared
7306 2002-03-29 Wolfram Gloger <wg@malloc.de>
7308 * malloc/malloc.c: Add short description and prototypes for
7309 malloc_get_state, malloc_set_state and posix_memalign, for
7310 consistency and to avoid warnings with -Wstrict-prototypes.
7311 Reported by Andreas Jaeger <aj@suse.de>.
7313 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7315 * po/gl.po: Update from translation team.
7317 2002-03-31 Roland McGrath <roland@frob.com>
7319 * hurd/hurdselect.c (_hurd_select): Fix
7320 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7321 Use a union rather than casts to compare mach_msg_type_t as int.
7323 2002-03-25 Roland McGrath <roland@frob.com>
7325 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7326 check off the end of NAME when it's shorter than 2 chars.
7327 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7329 2002-03-17 Roland McGrath <roland@frob.com>
7331 * sysdeps/mach/hurd/i386/sys/io.h: New file.
7332 * sysdeps/mach/hurd/i386/ioperm.c: New file.
7333 * sysdeps/mach/hurd/i386/Dist: Add them.
7334 * sysdeps/mach/hurd/i386/Versions
7335 (libc: GLIBC_2.2.6): New set, add ioperm.
7336 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7337 (mach_interface_list): Check for mach_i386.defs.
7338 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7339 * sysdeps/mach/configure: Regenerated.
7341 2002-03-22 Ulrich Drepper <drepper@redhat.com>
7343 * po/fr.po: Update from translation team.
7345 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
7347 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7348 getpriority from syscalls list.
7350 2002-03-28 Andreas Jaeger <aj@suse.de>
7352 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7353 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7354 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7355 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7357 2002-03-27 Andreas Jaeger <aj@suse.de>
7359 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7360 sigcontext): Follow further kernel change.
7362 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7365 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7366 Change for struct sigcontext change.
7368 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7369 Follow changes in struct sigcontext.
7371 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7372 sysycall, use wrapper instead.
7374 2002-03-26 Andreas Jaeger <aj@suse.de>
7376 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7377 read and write accesses as detailed as possible.
7378 (__memcpy_by2): Likewise.
7379 (__memcpy_g): Likewise.
7380 (memmove): Likewise.
7382 (__memset_ccn_by4): Likewise.
7383 (__memset_ccn_by2): Likewise.
7384 (__memset_gcn_by4): Likewise.
7385 (__memset_gcn_by2): Likewise.
7387 (__memrchr): Likewise.
7388 (rawmemchr): Likewise.
7389 (__strlen_g): Likewise.
7390 (__strcpy_g): Likewise.
7391 (__mempcpy_by4): Likewise.
7392 (__mempcpy_by2): Likewise.
7393 (__mempcpy_byn): Likewise.
7394 (__stpcpy_g): Likewise.
7395 (__strncpy_by4): Likewise.
7396 (__strncpy_by2): Likewise.
7397 (__strncpy_byn): Likewise.
7398 (__strncpy_gg): Likewise.
7399 (__strcat_c): Likewise.
7400 (__strcat_g): Likewise.
7401 (__strncat_g): Likewise.
7402 (__strcmp_gg): Likewise.
7403 (__strncmp_g): Likewise.
7404 (__strchr_c): Likewise.
7405 (__strchr_g): Likewise.
7406 (__strchrnul_c): Likewise.
7407 (__strchrnul_g): Likewise.
7408 (__strrchr_c): Likewise.
7409 (__strrchr_g): Likewise.
7410 (__strrchr_c): Likewise.
7411 (__strrchr_g): Likewise.
7412 (__strcspn_c1): Likewise.
7413 (__strcspn_cg): Likewise.
7414 (__strcspn_g): Likewise.
7415 (__strcspn_g): Likewise.
7416 (__strspn_c1): Likewise.
7417 (__strspn_cg): Likewise.
7418 (__strspn_g): Likewise.
7419 (__strspn_g): Likewise.
7420 (__strpbrk_cg): Likewise.
7421 (__strpbrk_g): Likewise.
7422 (__strstr_cg): Likewise.
7423 (__strstr_g): Likewise.
7425 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
7426 Michal Ludvig <mludvig@suse.cz>.
7428 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7429 compatibilty, adjust for kernel changes.
7431 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7432 sigcontext): Adjust for kernel changes.
7434 2002-03-25 Andreas Jaeger <aj@suse.de>
7436 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7438 Reported by Artur Zaprzala <zybi@talex.com.pl>.
7440 2002-03-24 Andreas Jaeger <aj@suse.de>
7442 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7444 * stdio-common/tst-fdopen.c (main): Remove unused variable.
7446 * iconv/tst-iconv3.c (main): Use correct printf strings.
7448 2002-03-18 Roland McGrath <roland@frob.com>
7450 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7451 (CMGROUP_MAX): New macro.
7453 2002-03-23 Roland McGrath <roland@frob.com>
7455 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7456 * sysdeps/posix/shm_unlink.c: Likewise.
7458 2002-03-22 Roland McGrath <roland@frob.com>
7460 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7461 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7462 under --enable-libio.
7463 * sysdeps/mach/hurd/configure: Regenerated.
7465 2002-03-23 Roland McGrath <roland@frob.com>
7467 * sysdeps/mach/hurd/i386/Makefile
7468 (sysdep_routines, shared-only-routines): Don't add framestate,
7469 reverting 2001-10-02 change.
7470 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7471 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7472 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7473 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7474 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7475 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7476 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7477 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7478 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7479 Do it here instead, only if [$(unwind-find-fde) = yes].
7481 2002-03-23 Andreas Jaeger <aj@suse.de>
7483 * signal/signal.h: Fix typo. Patch by Steve Kemp
7484 <skx@tardis.ed.ac.uk>.
7486 2002-03-22 Andreas Jaeger <aj@suse.de>
7488 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7491 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7492 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7493 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7494 user_fpregs_struct): Rename fwd.
7496 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7497 Follow sigcontext changes.
7499 2002-03-22 Andreas Jaeger <aj@suse.de>
7501 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
7502 changes for NaNs on MIPS.
7503 Patch by Hartvig Ekner <hartvige@mips.com>.
7505 2002-03-21 Ulrich Drepper <drepper@redhat.com>
7507 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7508 Use realloc if too large.
7509 (addgrbyid): Likewise.
7510 * nscd/hstcache.c (addhstbyname): Likewise.
7511 (addhstbyaddr): Likewise.
7512 (addhstbynamev6): Likewise.
7513 (addhstbyaddrv6): Likewise.
7514 * nscd/pwdcache.c (addpwbyname): Likewise.
7515 (addpwbyuid): Likewise.
7517 2002-03-21 Andreas Jaeger <aj@suse.de>
7519 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7520 _fpstate): Add separate struct for x86-64.
7522 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7523 user_fpregs_struct): Change member names to follow kernel.
7525 2002-03-20 Ulrich Drepper <drepper@redhat.com>
7527 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7528 Correctly close the UDP connection right away [PR libc/3120].
7530 2002-03-20 Andreas Jaeger <aj@suse.de>
7532 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7533 user_fpregs_struct): Fix for changed kernel struct.
7534 (struct user_regs_struct): Likewise.
7535 (struct user): Likewise.
7536 Add 32-bit x86 compatibility.
7538 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7540 2002-03-19 Andreas Jaeger <aj@suse.de>
7542 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7544 2002-03-18 Andreas Jaeger <aj@suse.de>
7546 * iconvdata/Makefile: Only run tests when shared libs are
7549 2002-03-17 Andreas Jaeger <aj@suse.de>
7551 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7553 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7555 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7558 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7559 (CAUSE_SHIFT): New macro.
7560 Patch by Hartvig Ekner <hartvige@mips.com>.
7562 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7563 * sysdeps/generic/unwind-pe.h: Likewise.
7565 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7568 * libio/stdio.c (AL2): Define variant when visibility attribute is
7571 * include/libc-symbols.h (_INTVARDEF): Define variant when
7572 visibility attribute is not supported.
7574 2002-03-16 Ulrich Drepper <drepper@redhat.com>
7576 * po/fr.po: Update from translation team.
7578 2002-02-25 Bruno Haible <bruno@clisp.org>
7580 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7582 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7584 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7585 buffers if _IO_file_attach failed.
7587 * libio/fileops.c (_IO_file_open): Close file descriptor if
7588 _IO_SEEKOFF call failed.
7590 2002-03-15 H.J. Lu <hjl@gnu.org>
7591 Ulrich Drepper <drepper@redhat.com>
7593 * configure.in: Check for availability of
7594 init_array/fini_array/preinit_array handling in binutils.
7595 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7596 * config.make.in (have-initfini-array): New variable.
7598 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7600 * stdio-common/tst-printf.c (main): Comment out one test which
7601 checked the compiler's ability to fold floating-point constants
7602 but not really printf.
7603 (rfg3): Make s const.
7604 * stdio-common/tst-printf.sh: Adjust for removed test.
7606 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7607 internal function. Adjust for internal_function calling convention.
7608 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7609 as internal_function.
7611 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7614 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7615 declaration and definition.
7616 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7618 * nss/getXXent_r.c: Likewise.
7619 * nss/nsswitch.h (db_lookup_function): Add internal_function to
7622 * include/time.h: Declare __localtime_r as hidden.
7624 * include/aliases.h: Declare __getaliasent_r as hidden.
7625 * include/grp.h: Declare __getgrent_r as hidden.
7626 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7627 __getservent_r, and __getprotoent_r as hidden.
7628 * include/pwd.h: Declare __getpwent_r as hidden.
7629 * include/shadow.h: Declare __getspent_r as hidden.
7630 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7632 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7633 and __gconv_transliterate as hidden.
7634 Add internal_function to __gconv_get_path declaration.
7635 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7636 definition. Add attribute_hidden to __gconv_read_conf definition.
7638 2002-03-14 Ulrich Drepper <drepper@redhat.com>
7640 * elf/rtld.c: Declare _environ as hidden.
7641 * sysdeps/generic/dl-environ.c: Likewise.
7642 * sysdeps/generic/dl-sysdep.c: Likewise.
7644 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7645 _dl_mcount_internal as hidden.
7647 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7648 * sysdeps/generic/dl-brk.c: New file.
7649 * sysdeps/generic/dl-sbrk.c: New file.
7650 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7651 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7653 * elf/dl-minimal.c (malloc): Declare _end as hidden.
7654 (__errno_location): New function. Declare errno as hidden.
7655 * elf/rtld.c (_dl_argc): Define as hidden.
7656 (_dl_skip_args): Define as hidden.
7657 (_begin, _end): Declare as hidden.
7658 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7659 * sysdeps/generic/entry.h (_start): Declare as hidden.
7660 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7661 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7662 _dl_runtime_resolve and _dl_runtime_profile as hidden.
7663 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7665 2002-03-14 Roland McGrath <roland@frob.com>
7667 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7669 * Makeconfig (%.v.i, %.v): New implicit rules.
7670 (preprocess-versions): Variable removed.
7671 ($(common-objpfx)shlib-versions.v.i): New target giving just the
7672 shlib-versions input files as dependencies.
7673 ($(common-objpfx)soversions.i): Depend on that instead of the input
7674 files. Use it as input instead of using a pipeline.
7675 (postclean-generated): Append soversions.i, shlib-versions.v, and
7676 shlib-versions.v.i here.
7677 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7678 the Versions.def input files as dependencies.
7679 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7680 ($(common-objpfx)Versions.all): Depend on that instead of the input
7681 files. Use it as input instead of using a pipeline.
7682 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7683 (postclean-generated): Append those .v and .v.i files here.
7685 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7687 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7688 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7691 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7693 * sysdeps/generic/mp_clz_tab.c: New file.
7694 * sysdeps/i386/mp_clz_tab.c: New file.
7695 * sysdeps/hppa/mp_clz_tab.c: New file.
7696 * sysdeps/powerpc/mp_clz_tab.c: New file.
7697 * stdlib/Makefile (aux): Revert last patch.
7698 * math/Makefile (gmp-objs): Likewise.
7700 2002-03-13 Paul Eggert <eggert@twinsun.com>
7702 * time/strftime.c: Comment fixes for references to obsolescent
7703 standards, In most cases the simplest fix is to remove the
7704 confusing comments. Cross-referencing all the standards properly
7705 is a bit of a pain, and it should be enough to put that info in
7706 the documentation as I did in my recent time.texi patch.
7708 2002-03-13 Paul Eggert <eggert@twinsun.com>
7710 * manual/time.texi (Formatting Calendar Time):
7711 ISO C99 also specifies the E and O modifiers.
7712 %P is a GNU extension, and is not in ISO C99.
7713 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7714 %T is also in ISO C99.
7715 The RFC 822 example is not valid in arbitrary locales.
7716 Reword the POSIX.2 wording slightly, to make it a bit clearer
7717 that POSIX.2 formats are also supported by later POSIX versions.
7718 If a format was introduced in ISO C99 it is also required by
7721 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7723 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7724 _sys_nerr_internal with INTVARDEF2.
7725 * include/libc-symbols.h (INTVARDEF2): New macro.
7726 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7727 (_sys_nerr_internal): Library.
7729 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7730 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7732 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7734 2002-03-13 Wolfram Gloger <wg@malloc.de>
7736 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7738 2002-03-02 Andreas Schwab <schwab@suse.de>
7740 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7741 'h' flag and positional arg.
7742 * stdio-common/tst-printf.c (rfg3): New function to test
7743 positional arguments.
7744 (main): Fix some warnings.
7746 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7748 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7749 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7751 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7753 * grp/initgroups.c (__nss_group_data): Declare as hidden.
7755 * include/locale.h (_nl_C_locobj): Declare as hidden.
7757 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7758 * time/strptime.c (_nl_C_LC_TIME): Likewise.
7760 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7762 * include/sys/gmon.h: Declare _gmonparam as hidden.
7764 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7765 (__ctype32_wctrans): Likewise.
7766 (__ctype32_width): Likewise.
7768 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7771 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7773 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
7774 hidden. Change all users of these variables.
7776 * posix/regex_internal.h (__re_error_msgid): Renamed from
7777 re_error_msgid. Declare as hidden.
7778 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
7781 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7782 (__printf_function_table): Likewise.
7783 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7785 (__printf_function_table): Likewise.
7787 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7788 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7790 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7791 * nss/nsswitch.c: Declare _nss_*_database as hidden.
7793 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7794 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7796 2002-03-12 Ulrich Drepper <drepper@redhat.com>
7798 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7799 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7800 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7801 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7802 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7803 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7804 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7805 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7806 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7807 _nl_C_LC_CTYPE_width: Declare as hidden.
7808 * include/locale.h: Declare _nl_locale_file_list.
7809 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
7810 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
7811 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
7812 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
7813 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
7814 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
7815 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
7816 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
7817 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
7818 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
7819 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
7820 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
7821 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7822 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7823 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7824 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7825 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7826 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7827 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7828 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
7829 _nl_C_LC_CTYPE_width, and as hidden.
7830 * locale/findlocale.c: Declare _nl_C as hidden.
7831 * locale/newlocale.c: Likewise.
7832 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
7833 _nl_locale_file_list.
7834 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
7835 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
7836 Define _nl_C_locobj as hidden.
7838 * malloc/mtrace.c (_mtrace_file): Define as hidden.
7839 (_mtrace_line): Likewise.
7841 * include/time.h: Declare __mon_yday as hidden.
7842 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
7844 * libio/libioP.h: Declare __libio_codecvt as hidden.
7845 * libio/fileops.c: Declare __libio_translit as hidden.
7846 * libio/iofwide.c: Define __libio_translit as hidden.
7848 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
7849 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
7850 * login/getutline_r.c: Likewise.
7851 * login/utmpname.c: Likewise.
7853 * login/utmp-private.h: Declare __libc_utmp_file_functions,
7854 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
7855 __libc_utmp_file_name as hidden.
7857 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
7858 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
7859 * locale/freelocale.c: Likewise.
7860 * locale/lc-time.c: Likewise.
7862 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
7863 (__libc_ptyname2): Likewise.
7864 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
7866 (__libc_ptyname2): Likewise.
7868 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
7869 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
7870 * sysdeps/generic/init-first.c: Likewise.
7871 * sysdeps/i386/init-first.c: Likewise.
7872 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7873 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7874 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7875 * sysdeps/sh/init-first.c: Likewise.
7876 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7877 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7879 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
7880 (_itowa_upper_digits): Likewise.
7882 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
7883 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
7886 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
7887 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
7888 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
7889 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
7891 * gmon/gmon.c (__bb_head): Define as hidden.
7892 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
7894 * argp/argp-parse.c (_argp_hang): Define as static.
7896 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
7897 handling in latest compilers.
7899 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
7901 * libio/fileops.c (_IO_file_jumps): Likewise.
7902 * libio/stdfiles.c (_IO_list_all): Likewise.
7903 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
7905 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
7907 * include/malloc.h: Add __libc_malloc_initialized declaration
7908 here. Mark variable hidden.
7909 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
7911 * elf/dl-open.c (__libc_argc): Declare as hidden.
7912 (__libc_argv): Likewise.
7913 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
7914 (__libc_argv): Likewise.
7915 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
7916 __libc_argv as hidden.
7917 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7918 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7919 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7920 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7922 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
7923 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
7924 * stdlib/erand48.c: Likewise.
7925 * stdlib/jrand48.c: Likewise.
7926 * stdlib/lcong48.c: Likewise.
7927 * stdlib/lrand48.c: Likewise.
7928 * stdlib/mrand48.c: Likewise.
7929 * stdlib/nrand48.c: Likewise.
7930 * stdlib/seed48.c: Likewise.
7931 * stdlib/srand48.c: Likewise.
7933 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
7934 (_itoa_lower_digits_internal): New declaration.
7935 (_itoa_upper_digits_internal): New declaration.
7936 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
7937 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
7938 (_itoa_upper_digits_internal): New declaration.
7939 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
7941 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
7942 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
7944 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
7945 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7947 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
7948 (_itowa_lower_digits): Likewise.
7949 (_itowa_upper_digits): Likewise.
7950 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
7951 (_itowa_upper_digits): Likewise.
7953 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
7954 not already defined.
7955 (GERMANIC_PLURAL): Declare as hidden.
7957 * posix/getopt.c (__getopt_initialized): Declare as hidden.
7958 (attribute_hidden): Define as empty macro if not already defined.
7960 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
7961 (__gconv_max_path_elem_len): Likewise.
7962 (__gconv_path_envvar): Likewise.
7964 * math/Makefile (gmp-objs): Remove mp_clz_tab.
7965 * stdlib/Makefile (aux): Remove mp_clz_tab.
7966 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
7968 * stdlib/exit.h (__exit_funcs): Declare as hidden.
7970 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
7972 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
7973 _nl_category_names, _nl_category_name_sizes, _nl_current,
7974 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
7976 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
7977 (_nl_current_default_domain): Likewise
7978 (_nl_state_lock): Likewise.
7979 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
7980 (_nl_current_default_domain): Likewise
7981 (_nl_state_lock): Likewise.
7982 * intl/bindtextdom.c (_nl_state_lock): Likewise.
7984 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
7985 (_fpioconst_pow10): Likewise.
7987 * include/time.h (_tmbuf): Add attribute_hidden.
7989 * time/tzset.c (tzstring_list): Define as static.
7991 * include/time.h: Add attribute_hidden to __tzname_cur_max and
7992 __use_tzfile declaration.
7994 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
7995 and __wcsmbs_last_locale declaration.
7997 2002-02-25 Paul Eggert <eggert@twinsun.com>
7999 * timezone/Makefile (tzbases): Move systemv from here...
8000 (tzlinks): to here, since the entries in systemv were all changed
8001 from Zone to Link lines in tz-2001a. Bug reported (and patch
8002 tested) by Peter Breitenlohner.
8004 2002-03-07 Jakub Jelinek <jakub@redhat.com>
8006 * time/tst-posixtz.c (tests): Add new tests.
8007 (main): Test whether tzset() sets daylight properly.
8009 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8011 * time/tzset.c (tz_compute): Move __daylight, __tzname and
8012 __tzname_cur_max setting...
8013 (tzset_internal): ...here.
8015 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8017 * time/tzset.c (compute_change): Don't return any value.
8018 (tz_compute): Likewise. Don't handle southern hemisphere here.
8019 (__tz_convert): But here.
8021 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8023 * manual/examples/mkfsock.c: Include <string.h> as well.
8024 Patch by Alain De Carolis <alaind@wseurope.com>.
8026 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
8028 * posix/regexec.c (re_match): Fix incorrect register sizes.
8029 (re_search): Likewise.
8031 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8033 * posix/regcomp.c (regfree): Remove a disused condition.
8034 * posix/regex_internal.c (re_acquire_state): Likewise.
8035 (re_acquire_state_context): Likewise.
8036 (register_state): Remove a redundant malloc invocation.
8037 * posix/regex_internal.h: (re_state_table_entry): Simplify
8040 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8042 * posix/regcomp.c (regcomp): Add __builtin_expect to error
8043 handling conditions.
8044 (regerror): Likewise.
8045 (regfree): Likewise.
8046 (re_compile_internal): Likewise.
8047 (init_dfa): Likewise.
8048 (init_word_char): Likewise.
8049 (create_initial_state): Likewise.
8050 (analyze): Likewise.
8051 (analyze_tree): Likewise.
8052 (duplicate_node): Likewise.
8053 (calc_eclosure): Likewise.
8054 (calc_eclosure_iter): Likewise.
8056 (parse_reg_exp): Likewise.
8057 (parse_branch): Likewise.
8058 (parse_expression): Likewise.
8059 (parse_subexp): Likewise.
8060 (parse_dup_op): Likewise.
8061 (parse_bracket_exp): Likewise.
8062 (build_equiv_class): Likewise.
8063 (build_charclass): Likewise.
8064 (build_word_op): Likewise.
8065 (fetch_number): Likewise.
8066 (create_tree): Likewise.
8067 (duplicate_tree): Likewise.
8068 * posix/regex.c (BE): New macro.
8069 * posix/regexec.c (re_match): Add __builtin_expect to error
8070 handling conditions.
8071 (re_match_2): Likewise.
8072 (re_search): Likewise.
8073 (re_search_internal): Likewise.
8074 (check_matching): Likewise.
8075 (proceed_next_node): Likewise.
8076 (set_regs): Likewise.
8077 (sift_states_backward): Likewise.
8078 (add_epsilon_backreference): Likewise.
8079 (transit_state): Likewise.
8080 (transit_state_sb): Likewise.
8081 (transit_state_mb): Likewise.
8082 (transit_state_bkref): Likewise.
8083 (transit_state_bkref_loop): Likewise.
8084 (build_trtable): Likewise.
8085 (group_nodes_into_DFAstates): Likewise.
8086 (match_ctx_init): Likewise.
8087 (match_ctx_add_entry): Likewise.
8088 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8089 to error handling conditions.
8090 (re_string_construct_toupper): Likewise.
8091 (build_wcs_buffer): Likewise.
8092 (build_wcs_upper_buffer): Likewise.
8093 (build_upper_buffer): Likewise.
8094 (re_string_translate_buffer): Likewise.
8095 (re_node_set_alloc): Likewise.
8096 (re_node_set_init_1): Likewise.
8097 (re_node_set_init_2): Likewise.
8098 (re_node_set_init_copy): Likewise.
8099 (re_node_set_intersect): Likewise.
8100 (re_node_set_init_union): Likewise.
8101 (re_node_set_merge): Likewise.
8102 (re_node_set_insert): Likewise.
8103 (re_dfa_add_node): Likewise.
8104 (re_acquire_state): Likewise.
8105 (re_acquire_state_context): Likewise.
8106 (create_new_state_common): Likewise.
8107 (register_state): Likewise.
8108 (create_ci_new_state): Likewise.
8109 (create_cd_new_state): Likewise.
8110 (re_string_context_at): Remove redundant condition.
8112 2002-01-16 Roger Sayle <roger@eyesopen.com>
8114 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8116 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8118 2002-03-11 Jakub Jelinek <jakub@redhat.com>
8120 * sysdeps/i386/elf/configure.in: Fix comment.
8122 * sysdeps/sparc/sparc64/configure.in: New file.
8123 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8124 if .dynamic comes before .got.
8125 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8127 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8128 HP_TIMING_ACCUM): Fix typos.
8130 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8132 * string/strfry.c: Add some more randomness to the seed.
8133 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8135 * po/es.po: Update from translation team.
8136 * po/fr.po: Likewise.
8138 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8140 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8141 when determining type of format.
8142 Patch by James Antill <james@anqd.org> [PR libc/2787].
8144 2002-03-04 Jakub Jelinek <jakub@redhat.com>
8146 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8148 2002-03-11 Roland McGrath <roland@frob.com>
8150 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8152 * Versions.def (libc): Add GLIBC_2.2.6.
8153 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8154 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8155 __errno_location instead of __hurd_errno_location, and don't inline it.
8156 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8157 * hurd/errno.c: New file.
8158 * hurd/Makefile (routines): Add errno.
8160 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8162 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8163 ridiculously large widths and precisions [PR libc/3026].
8165 2002-03-11 Andreas Jaeger <aj@suse.de>
8167 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8169 Patch by Susanne Oberhauser <froh@SuSE.de>.
8171 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8173 * inet/rexec.c (ahostbuf): Define as static.
8175 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8176 (__ctype32_wctrans): Likewise.
8177 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8178 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8179 (__ctype32_wctrans): Likewise.
8180 (__ctype32_width): Likewise.
8182 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8183 They were never exported anyway.
8185 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8186 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
8188 * include/sys/gmon.h: Declare _gmonparam.
8190 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8191 symbols for getdents64. They were never exported.
8193 2002-03-09 Roland McGrath <roland@frob.com>
8195 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8196 Reported by Jon Arney <jarney1@cox.net>.
8198 2002-02-23 Roland McGrath <roland@frob.com>
8200 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8202 (__hurd_errno_location): Function removed.
8204 2002-03-06 Andreas Jaeger <aj@suse.de>
8206 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8209 2002-03-04 Andreas Jaeger <aj@suse.de>
8211 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8213 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8216 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8218 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8220 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8222 * sysdeps/x86_64/bits/setjmp.h: New file.
8224 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8226 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8228 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8230 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8231 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8233 2002-02-28 Bo Thorsen <bo@suse.de>
8235 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8238 2002-03-03 Andreas Jaeger <aj@suse.de>
8240 * sysdeps/x86_64/bits/wordsize.h: New file.
8242 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8243 * elf/tst-tlsmod1.c: Likewise.
8245 * posix/regcomp.c: Get regex.h from include dir for internal
8248 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8249 to libc-internal.h and include it.
8250 * include/libc-internal.h: Add __init_misc.
8252 * misc/init-misc.c: Include libc-internal.h for prototypes.
8254 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8256 * misc/error.c [_LIBC]: Include libioP.h for prototype of
8259 2002-03-03 Ulrich Drepper <drepper@redhat.com>
8261 * posix/regcomp.c: Compatibility changes to allow using the code
8264 2002-02-28 Hartvig Ekner <hartvige@mips.com>
8266 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8269 2002-03-02 Ulrich Drepper <drepper@redhat.com>
8271 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8272 of .str elements in the returned data structure.
8274 * elf/elf.h: Add Alpha TLS bits.
8276 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8278 * sysdeps/unix/sysv/linux/nice.c: New file.
8280 2002-03-01 Ulrich Drepper <drepper@redhat.com>
8282 * elf/Makefile (dl-routines): Add dl-origin.
8283 (elide-routines.os): Add dl-origin.
8284 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8285 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8287 * include/libc-symbols.c: Define attribute_hidden depending on
8288 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
8290 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8291 * elf/dl-load.c: Likewise.
8292 * elf/rtld.c: Likewise.
8293 * include/unistd.h: Declare __libc_enable_secure_internal.
8294 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8295 Use INTUSE with __libc_enable_secure.
8296 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8298 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8299 * elf/dl-error.c: Likewise,
8300 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8302 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8303 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8304 function definition. Use INTDEF with _dl_get_origin.
8305 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8307 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8308 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
8310 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8311 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8312 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8314 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8315 * elf/dl-deps.c: Likewise.
8316 * elf/dl-error.c: Likewise.
8317 * elf/dl-fini.c: Likewise.
8318 * elf/dl-init.c: Likewise.
8319 * elf/dl-load.c: Likewise.
8320 * elf/dl-lookup.c: Likewise.
8321 * elf/dl-reloc.c: Likewise.
8322 * elf/dl-version.c: Likewise.
8323 * elf/do-lookup.h: Likewise.
8324 * sysdeps/arm/dl-machine.h: Likewise.
8325 * sysdeps/cris/dl-machine.h: Likewise.
8326 * sysdeps/hppa/dl-machine.h: Likewise.
8327 * sysdeps/i386/dl-machine.h: Likewise.
8328 * sysdeps/m68k/dl-machine.h: Likewise.
8329 * sysdeps/powerpc/dl-machine.h: Likewise.
8330 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8331 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8332 * sysdeps/sh/dl-machine.h: Likewise.
8333 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8334 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8335 * sysdeps/x86_64/dl-machine.h: Likewise.
8336 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
8337 _dl_argv[0]. Use INTUSE with _dl_argv.
8338 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8339 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8341 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8343 * elf/rtld.c (_rtld_global): Remove .protected.
8344 (_rtld_local): Strong alias to _rtld_global.
8345 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8347 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8348 _rtld_local instead of _rtld_global.
8349 (_rtld_local): Add hidden extern, possibly in .sdata section.
8350 * configure.in: Add tests for visibility attribute and .sdata.
8351 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8352 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8353 * sysdeps/arm/dl-machine.h: Likewise.
8354 * sysdeps/generic/ldsodefs.h: Likewise.
8355 * sysdeps/hppa/dl-machine.h: Likewise.
8356 * sysdeps/cris/dl-machine.h: Likewise.
8357 * sysdeps/i386/dl-machine.h: Likewise.
8358 * sysdeps/ia64/dl-machine.h: Likewise.
8359 * sysdeps/m68k/dl-machine.h: Likewise.
8360 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8361 * sysdeps/mips/dl-machine.h: Likewise.
8362 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8363 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8364 * sysdeps/sh/dl-machine.h: Likewise.
8365 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8366 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8367 * sysdeps/x86_64/dl-machine.h: Likewise.
8369 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8371 * login/login.c (login): Always initialize ut_line field
8374 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8376 * sysdeps/i386/Makefile (sysdep_routines): Add
8378 (shared-only-routines): Likewise.
8379 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8380 (shared-only-routines): Likewise.
8381 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8382 (shared-only-routines): Likewise.
8383 * sysdeps/wordsize-32/divdi3.c: New file.
8385 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8387 * locale/iso-4217.def: Remove obsolete currencies for countries
8390 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
8392 * posix/regcomp.c (regcomp): Remove a redundant condition.
8393 (init_word_char): Add a check on malloc failure.
8394 (create_initial_state): Likewise.
8395 (duplicate_node): Likewise.
8396 (calc_eclosure): Likewise.
8397 (calc_eclosure_iter): Likewise.
8398 (parse_expression): Likewise.
8399 (parse_bracket_exp): Remove unnecessary malloc invocations.
8400 (build_equiv_class): Likewise.
8401 (build_charclass): Likewise.
8402 * posix/regex_internal.c (re_node_set_intersect): Add a check
8404 (re_node_set_add_intersect): Likewise.
8405 (re_node_set_merge): Likewise.
8406 (re_acquire_state): Likewise.
8407 (re_acquire_state_context): Likewise.
8408 (create_newstate_common): Likewise.
8409 (register_state): Likewise.
8410 (create_ci_newstate): Likewise.
8411 (create_cd_newstate): Likewise.
8412 * posix/regex_internal.h: Fix prototypes of re_acquire_state
8413 and re_acquire_state_context.
8414 * posix/regexec.c (regexec): Suit it to the error handling of
8416 (re_match): Likewise.
8417 (re_search): Likewise.
8418 (re_search_internal): Add a check on malloc failure.
8419 (acquire_init_state_context): Likewise.
8420 (check_matching): Likewise.
8421 (proceed_next_node): Likewise.
8422 (set_regs): Likewise.
8423 (sift_states_backward): Likewise.
8424 (sift_states_iter_bkref): Likewise.
8425 (add_epsilon_backreference): Likewise.
8426 (transit_state): Likewise.
8427 (transit_state_sb): Likewise.
8428 (transit_state_mb): Likewise.
8429 (transit_state_bkref_loop): Likewise.
8430 (build_trtable): Likewise.
8431 (group_nodes_into_DFAstates): Likewise.
8432 (match_ctx_init): Likewise.
8433 (match_ctx_add_entry): Likewise.
8435 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8437 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8438 l_libname if profiling is enabled [PR libc/2916].
8440 * sysdeps/ia64/dl-tls.h: New file.
8442 2002-02-27 Jakub Jelinek <jakub@redhat.com>
8444 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8445 Work around an Alpha gas bug.
8447 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8449 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8450 uses read to load the catalog.
8451 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8453 2002-02-26 Ulrich Drepper <drepper@redhat.com>
8455 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8456 regex_internal.c, and regex_internal.h.
8457 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8458 * posix/regex.c: Complete rewrite.
8459 * posix/regexec.c: New file.
8460 * posix/regcomp.c: New file.
8461 * posix/regex_internal.c: New file.
8462 * posix/regex_internal.h: New file.
8463 * posix/regex.h (RE_ICASE): New macro.
8464 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8466 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8467 ungetwc. It's a macro.
8468 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8470 Reported by Jason Merrill <jason@redhat.com>.
8472 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8474 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8475 position to fp->_offset if it is set.
8476 * stdio-common/Makefile (tests): Add tst-fdopen.
8477 * stdio-common/tst-fdopen.c: New test.
8479 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8481 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8482 * stdio-common/tst-ungetc.c (main): Add another test.
8484 2002-02-25 Ulrich Drepper <drepper@redhat.com>
8486 * assert/assert-perr.c: Use INTUSE to reference functions and variables
8487 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
8488 aliases. Add prototypes for the new aliases.
8489 * assert/assert.c: Likewise.
8490 * include/libc-symbols.h: Likewise.
8491 * include/stdio.h: Likewise.
8492 * include/netinet/in.h: Likewise.
8493 * include/rpc/auth.h: Likewise.
8494 * include/rpc/auth_unix.h: Likewise.
8495 * include/rpc/key_prot.h: Likewise.
8496 * include/rpc/pmap_prot.h: Likewise.
8497 * include/rpc/pmap_rmt.h: Likewise.
8498 * include/rpc/rpc_msg.h: Likewise.
8499 * include/rpc/xdr.h: Likewise.
8500 * inet/gethstbyad_r.c: Likewise.
8501 * inet/gethstbynm2_r.c: Likewise.
8502 * inet/gethstbynm_r.c: Likewise.
8503 * inet/gethstent_r.c: Likewise.
8504 * inet/in6_addr.c: Likewise.
8505 * libio/__fpurge.c: Likewise.
8506 * libio/filedoalloc.c: Likewise.
8507 * libio/fileops.c: Likewise.
8508 * libio/ftello.c: Likewise.
8509 * libio/ftello64.c: Likewise.
8510 * libio/genops.c: Likewise.
8511 * libio/iofclose.c: Likewise.
8512 * libio/iofdopen.c: Likewise.
8513 * libio/iofflush.c: Likewise.
8514 * libio/iofflush_u.c: Likewise.
8515 * libio/iofgetpos.c: Likewise.
8516 * libio/iofgetpos64.c: Likewise.
8517 * libio/iofgets.c: Likewise.
8518 * libio/iofgets_u.c: Likewise.
8519 * libio/iofopen.c: Likewise.
8520 * libio/iofopncook.c: Likewise.
8521 * libio/iofputs.c: Likewise.
8522 * libio/iofread.c: Likewise.
8523 * libio/iofread_u.c: Likewise.
8524 * libio/iofsetpos.c: Likewise.
8525 * libio/iofsetpos64.c: Likewise.
8526 * libio/ioftell.c: Likewise.
8527 * libio/iofwrite.c: Likewise.
8528 * libio/iogetline.c: Likewise.
8529 * libio/iogets.c: Likewise.
8530 * libio/iogetwline.c: Likewise.
8531 * libio/iolibio.h: Likewise.
8532 * libio/iopadn.c: Likewise.
8533 * libio/iopopen.c: Likewise.
8534 * libio/ioseekoff.c: Likewise.
8535 * libio/ioseekpos.c: Likewise.
8536 * libio/iosetbuffer.c: Likewise.
8537 * libio/iosetvbuf.c: Likewise.
8538 * libio/ioungetc.c: Likewise.
8539 * libio/ioungetwc.c: Likewise.
8540 * libio/iovdprintf.c: Likewise.
8541 * libio/iovsprintf.c: Likewise.
8542 * libio/iovsscanf.c: Likewise.
8543 * libio/libioP.h: Likewise.
8544 * libio/memstream.c: Likewise.
8545 * libio/obprintf.c: Likewise.
8546 * libio/oldfileops.c: Likewise.
8547 * libio/oldiofclose.c: Likewise.
8548 * libio/oldiofdopen.c: Likewise.
8549 * libio/oldiofgetpos.c: Likewise.
8550 * libio/oldiofgetpos64.c: Likewise.
8551 * libio/oldiofopen.c: Likewise.
8552 * libio/oldiofsetpos.c: Likewise.
8553 * libio/oldiofsetpos64.c: Likewise.
8554 * libio/oldiopopen.c: Likewise.
8555 * libio/oldstdfiles.c: Likewise.
8556 * libio/putc.c: Likewise.
8557 * libio/setbuf.c: Likewise.
8558 * libio/setlinebuf.c: Likewise.
8559 * libio/stdfiles.c: Likewise.
8560 * libio/stdio.c: Likewise.
8561 * libio/strops.c: Likewise.
8562 * libio/vasprintf.c: Likewise.
8563 * libio/vscanf.c: Likewise.
8564 * libio/vsnprintf.c: Likewise.
8565 * libio/vswprintf.c: Likewise.
8566 * libio/wfiledoalloc.c: Likewise.
8567 * libio/wfileops.c: Likewise.
8568 * libio/wgenops.c: Likewise.
8569 * libio/wstrops.c: Likewise.
8570 * malloc/mtrace.c: Likewise.
8571 * misc/error.c: Likewise.
8572 * misc/syslog.c: Likewise.
8573 * nss/getXXbyYY_r.c: Likewise.
8574 * nss/getXXent_r.c: Likewise.
8575 * nss/hosts-lookup.c: Likewise.
8576 * stdio-common/getw.c
8577 * stdio-common/printf-prs.c: Likewise.
8578 * stdio-common/printf_fp.c: Likewise.
8579 * stdio-common/printf_size.c: Likewise.
8580 * stdio-common/putw.c: Likewise.
8581 * stdio-common/scanf.c: Likewise.
8582 * stdio-common/sprintf.c: Likewise.
8583 * stdio-common/tmpfile64.c: Likewise.
8584 * stdio-common/vfprintf.c: Likewise.
8585 * stdio-common/vfscanf.c: Likewise.
8586 * stdlib/strfmon.c: Likewise.
8587 * sunrpc/auth_des.c: Likewise.
8588 * sunrpc/auth_none.c: Likewise.
8589 * sunrpc/auth_unix.c: Likewise.
8590 * sunrpc/authdes_prot.c: Likewise.
8591 * sunrpc/authuxprot.c: Likewise.
8592 * sunrpc/clnt_perr.c: Likewise.
8593 * sunrpc/clnt_raw.c: Likewise.
8594 * sunrpc/clnt_tcp.c: Likewise.
8595 * sunrpc/clnt_udp.c: Likewise.
8596 * sunrpc/clnt_unix.c: Likewise.
8597 * sunrpc/key_call.c: Likewise.
8598 * sunrpc/key_prot.c: Likewise.
8599 * sunrpc/openchild.c: Likewise.
8600 * sunrpc/pm_getmaps.c: Likewise.
8601 * sunrpc/pm_getport.c: Likewise.
8602 * sunrpc/pmap_clnt.c: Likewise.
8603 * sunrpc/pmap_prot.c: Likewise.
8604 * sunrpc/pmap_prot2.c: Likewise.
8605 * sunrpc/pmap_rmt.c: Likewise.
8606 * sunrpc/rpc_cmsg.c: Likewise.
8607 * sunrpc/rpc_prot.c: Likewise.
8608 * sunrpc/svc_authux.c: Likewise.
8609 * sunrpc/svc_raw.c: Likewise.
8610 * sunrpc/svc_simple.c: Likewise.
8611 * sunrpc/svc_tcp.c: Likewise.
8612 * sunrpc/svc_udp.c: Likewise.
8613 * sunrpc/svc_unix.c: Likewise.
8614 * sunrpc/xdr.c: Likewise.
8615 * sunrpc/xdr_array.c: Likewise.
8616 * sunrpc/xdr_mem.c: Likewise.
8617 * sunrpc/xdr_rec.c: Likewise.
8618 * sunrpc/xdr_ref.c: Likewise.
8619 * sunrpc/xdr_stdio.c: Likewise.
8620 * sysdeps/generic/_strerror.c: Likewise.
8621 * sysdeps/generic/printf_fphex.c: Likewise.
8622 * sysdeps/generic/tmpfile.c: Likewise.
8623 * sysdeps/gnu/errlist.awk: Likewise.
8624 * sysdeps/gnu/errlist.c: Likewise.
8626 * libio/Makefile (routines): Remove iosprint.
8627 * libio/iosprintf.c: Removed
8630 2002-02-24 Ulrich Drepper <drepper@redhat.com>
8632 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8633 non_dynamic_init and exported now.
8634 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8635 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8637 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8638 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8639 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8641 2002-02-23 Ulrich Drepper <drepper@redhat.com>
8643 * elf/dl-close.c (free_slotinfo): Check for end of list and return
8646 * locale/iso-639.def: Add language codes for Walloon.
8648 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8649 total number of relocations performed.
8651 * elf/sprof.c (load_profdata): If do_test provide information as
8652 to why loading failed.
8653 * elf/dl-profile.c (_dl_start_profile): Initialize all of
8656 * csu/set-init.c: Moved to...
8657 * sysdeps/mach/hurd/set-init.c: ...here. New file.
8658 * csu/Makefile: Don't compile set-init.
8659 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8660 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8662 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8663 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8664 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8666 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
8669 2002-02-22 Ulrich Drepper <drepper@redhat.com>
8671 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8672 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8673 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8674 (_dl_deallocate_tls): New function.
8675 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8678 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8680 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8681 * stdio-common/tst-fseek.c (main): Add test for this.
8683 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
8685 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8687 2002-02-19 Jakub Jelinek <jakub@redhat.com>
8689 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8690 pointer before dereferencing.
8692 2002-02-18 Roland McGrath <roland@frob.com>
8694 * sysdeps/mach/hurd/times.c: Fix typo in last change.
8696 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8697 Use task_policy in place of task_priority.
8699 * sysdeps/generic/bits/mman.h
8700 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8701 * sysdeps/mach/msync.c: New file.
8703 * sysdeps/mach/powerpc/syscall.S: New file.
8705 * mach/msg.c [MACH_MSG_OVERWRITE]
8706 (__mach_msg_trap, __mach_msg_overwrite): New functions.
8707 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8709 * sysdeps/mach/configure.in: Check for clock.defs to put into
8710 mach_interface_list.
8711 * sysdeps/mach/configure: Regenerated.
8713 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8714 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8715 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8716 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8717 (mach-shortcuts): Add device_read_overwrite_request,
8718 device_read_overwrite, vm_read_overwrite, thread_switch.
8720 * configure.in (base_machine): Set to $machine by default.
8721 * configure: Regenerated.
8723 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8724 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8725 * sysdeps/mach/configure: Regenerated.
8726 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8728 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8730 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8732 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8733 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8735 2002-02-17 Roland McGrath <roland@frob.com>
8737 * sysdeps/mach/hurd/times.c
8738 [NO_CREATION_TIME] (startup_time): New static variable.
8739 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8740 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8741 creation_time from task_basic_info.
8742 (__times): Use __gettimeofday instead of __host_get_time.
8744 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8745 Use untyped Mach IPC message format.
8747 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8749 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8750 _S_catch_exception_raise_state_identity,
8751 _hurdsig_fault_catch_exception_raise_state,
8752 _hurdsig_fault_catch_exception_raise_state_identity.
8754 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8756 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8757 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8759 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8760 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8762 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8763 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
8764 them as no-op macros.
8765 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8766 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8768 * sysdeps/powerpc/dl-machine.h
8769 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8771 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8772 Use untyped Mach IPC message format.
8774 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8775 Handle untyped Mach IPC message formats.
8777 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8778 Expect different argument conventions when this is defined.
8779 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8780 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8781 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8782 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8783 for OSF Mach variant.
8784 (faulted): Use mig_reply_error_t for REPLY.
8785 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8786 in __thread_set_exception_ports call.
8787 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8788 __mach_port_set_attributes in place of __mach_port_set_qlimit.
8790 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8791 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8792 on Darwin, which includes bogons.
8794 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8795 variable LOADBASE so it's not declared when it's not used.
8797 2002-02-16 Roland McGrath <roland@frob.com>
8799 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8800 to use BI.creation_time.
8802 * mach/Machrules (MIG): Add -x c to CPP value passed down.
8804 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8805 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8806 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8807 host_page_size instead of vm_statistics.
8809 * sysdeps/mach/Makefile (mach-before-compile): Don't include
8810 mach_interface.h here, since not all variants use that name.
8812 * sysdeps/mach/configure.in: Add some checks for Mach headers
8813 to ensure a sane installation.
8814 (mach_interface_list): Define this variable by checking for .defs
8815 files found in various variants.
8816 * configure.in (mach_interface_list): AC_SUBST this.
8817 * config.make.in (mach-interface-list): New substituted variable.
8818 * mach/Makefile (user-interfaces): Define this using the value
8819 of $(mach-interface-list) instead of mach, mach4.
8820 Updated other references to mach_interface to use it as well.
8822 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
8824 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
8825 mig_reply_error_t for OSF Mach variant.
8827 * mach/Makefile (routines): Remove bootprivport.
8828 * mach/bootprivport.c: File removed. It has never been used.
8830 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
8831 Grok the OSF flavor of message format.
8832 (mach_msg_destroy_port): For MAKE_SEND and
8833 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
8834 no-senders notification.
8836 2002-02-06 Roland McGrath <roland@frob.com>
8838 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
8839 to here if 2.0 compatibility enabled ...
8840 (libc: GLIBC_2.1.3): ... from here.
8842 2002-02-15 Ulrich Drepper <drepper@redhat.com>
8844 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
8846 * elf/dl-close.c (_dl_close): Likewise.
8848 2002-02-14 Ulrich Drepper <drepper@redhat.com>
8850 * elf/Makefile: Add rules to build and run tst-tls8.
8851 * elf/tst-tls8.c: New file.
8852 * elf/tst-tlsmod4.c: New file.
8854 * stdlib/test-a64l.c (tests): Add more test cases.
8856 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
8857 Reported by Walter Harms <WHarms@bfs.de>.
8859 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
8861 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
8862 definitions for struct sigcontext.
8863 Suggested by David Mosberger-Tang.
8865 2002-02-13 Ulrich Drepper <drepper@redhat.com>
8867 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
8868 for removing reference of module in slotinfo list.
8869 (_dl_close): Use remove_slotinfo.
8870 * sysdeps/generic/dl-tls.c: General pretty printing.
8871 (oom): Define only if SHARED.
8872 (_dl_next_tls_modid): Correct starting point for the case we assume
8873 there is a gap. Add missing instruction grouping (doh!). Correct
8874 tests for reaching maximum index.
8875 * elf/Makefile: Add rules to build and run tst-tls7.
8876 * elf/tst-tls7.c: New file.
8877 * elf/tst-tlsmod3.c: New file.
8879 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
8881 * elf/tst-tlsmod2.c: Likewise.
8883 * elf/dl-close.c (_dl_close): When closing an object using TLS
8884 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
8885 true. Increment dl_tls_generation only if we closed any TLS-using
8887 * elf/tst-tls6.c: New file.
8888 * elf/Makefile: Add rules to build and run tst-tls6.
8890 * po/da.po: Update from translation team.
8892 * locale/categories.def: Fix typo [PR libc/2948].
8893 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
8895 * locale/iso-4217.def: Update from official version [PR libc/2950].
8896 * glibcbug.in: Honor TMPDIR [PR libc/2951].
8897 * locale/programs/ld-collate.c (collate_finish): Bail out with a
8898 message if input is too confusion instead of using assert.
8899 (collate_read): Don't crash on unknown symbol [PR libc/2952].
8900 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
8902 * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
8903 * elf/tst-tls2.c: Likewise.
8904 * elf/tst-tls3.c: Likewise.
8906 2002-02-13 Jakub Jelinek <jakub@redhat.com>
8908 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
8910 2002-02-13 Ulrich Drepper <drepper@redhat.com>
8912 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
8913 if this is really necessary.
8915 * elf/dl-close.c (_dl_close): Implement freeing entries in the
8917 (free_mem): Free memory for the slotinfo array if possible.
8919 2002-02-12 Andreas Schwab <schwab@suse.de>
8921 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
8923 2002-02-12 Ulrich Drepper <drepper@redhat.com>
8925 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
8927 (oom): New function.
8928 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
8929 (_dl_determine_tlsoffset): Likewise.
8930 (_dl_allocate_tls): Likewise.
8931 (__TLS_GET_ADDR): Define if not already defined.
8932 (_dl_tls_symaddr): New function.
8933 (allocate_and_init): New function.
8934 (__tls_get_addr): Actually implement handling of generation counter
8935 and deferred allocation.
8936 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
8937 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8939 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
8940 Declare _dl_tls_symaddr.
8941 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
8943 * include/link.h (struct link_map): Remove l_tls_nextimage and
8945 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
8946 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
8947 (_dl_vsym): Likewise.
8948 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
8950 (dl_main): Allow PT_TLS be present for empty segment. Remove
8951 nextimage list handling. Instead add all modules using TLS to
8952 dl_tls_dtv_slotinfo_list.
8953 * elf/dl-open.c (dl_open_worker): After successfully loading all
8954 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
8955 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
8956 empty segment don't do anything. Remove handling of initimage list.
8957 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
8958 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
8959 * elf/dl-minimal.c: Define __libc_memalign.
8960 * elf/dl-support.c: Remove _dl_initimage_list. Add
8961 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8963 * include/stdlib.h: Declare __libc_memalign.
8965 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
8966 * elf/tst-tls4.c: New file.
8967 * elf/tst-tls5.c: New file.
8968 * elf/tst-tlsmod2.c: New file.
8970 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
8972 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
8974 * elf/tst-tls1.c: Use test-skeleton.c.
8975 * elf/tst-tls2.c: Likewise.
8976 * elf/tst-tls3.c: Likewise.
8978 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
8980 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8982 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
8984 2002-02-10 Ulrich Drepper <drepper@redhat.com>
8986 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
8988 * elf/tst-tls3.c: New file.
8989 * elf/tst-tlsmod1.c: New file.
8990 * elf/Makefile: Add rules to build and run tst-tls3.
8992 * sysdeps/i386/dl-machine.h: Include <tls.h>.
8993 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
8996 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
8998 * po/fr.po: Update from translation team.
9000 * elf/tls-macros.h: Add alternative macros for use in PIC.
9002 * elf/dl-lookup.c: Include <tls.h>.
9003 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9005 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9006 required by passing pointer to last element of the list.
9008 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9009 l_tls_initimage to a place where it actually is performed.
9011 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9012 after globfree() calls.
9014 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9015 (openaux): Pass open_mode as new last argument to _dl_map_object.
9016 (_dl_map_object_deps): Add new argument open_mode. Initialize
9017 open_mode element of args variable with it.
9018 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9019 _dl_map_object_deps.
9020 * elf/rtld.c (dl_main): Add zero as last parameter to
9021 _dl_map_object_deps call.
9022 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9023 * elf/nodlopen2.c: New file.
9024 * elf/nodlopenmod2.c: New file.
9025 * elf/Makefile: Add rules to build and run nodlopen2.
9027 * elf/tst-tls1.c: Move TLS helper macros to...
9028 * elf/tls-macros.h: ...here. New file.
9029 * elf/tst-tls2.c: New file.
9030 * elf/Makefile (tests): Add tst-tls2.
9031 (distribute): Add tls-macros.h.
9033 * po/sv.po: Update from translation team.
9035 * elf/tst-tls1.c (main): Add complete set of tests. Split
9036 architecture specific definitions from the actual test code.
9038 * po/tr.po: Update from translation team.
9040 2002-02-09 Ulrich Drepper <drepper@redhat.com>
9042 * elf/Makefile (tests): Add tst-tls1.
9043 * elf/tst-tls1.c: New file.
9045 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9046 alignment of TCB for now.
9048 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9049 initialization image for the application itself.
9051 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9052 loop to initialize TLS block.
9054 2002-02-08 Richard Henderson <rth@redhat.com>
9056 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9057 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9059 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9061 2002-02-09 Jakub Jelinek <jakub@redhat.com>
9063 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9065 2002-02-08 Ulrich Drepper <drepper@redhat.com>
9067 * po/ca.po: Update from translation team.
9068 * po/sk.po: Likewise.
9070 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9071 (dl_main): Move dtv/static TLS handling before relocation.
9072 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
9073 TLS_INIT_TP to allocate and install the dtv/static TLS block.
9074 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9075 so far uses TLS initialize GL(dl_tls_static_size) and
9076 GL(dl_tls_static_align) to account for the TCB.
9077 (_dl_allocate_tls): New function.
9078 * sysdeps/generic/ldsodefs.h (rtld_global): Add
9079 _dl_initial_dtv_malloced.
9081 * configure.in: Test for __builtin_memset more realistically.
9083 * csu/version.c (banner): If TLS support is available say so.
9085 2002-02-04 H.J. Lu <hjl@gnu.org>
9087 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9089 (__dl_runtime_resolve): Likewise.
9091 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9094 2001-11-15 H.J. Lu <hjl@gnu.org>
9096 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9097 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9099 * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9101 2002-02-07 H.J. Lu <hjl@gnu.org>
9103 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9105 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9108 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9110 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9112 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9113 ___tls_get_addr_internal.
9114 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9116 * po/ko.po: Update from translation team.
9118 2002-02-07 Jakub Jelinek <jakub@redhat.com>
9120 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9121 attribute, change __pad{1,2} type to unsigned int.
9122 (struct stat64): Remove packed attribute.
9124 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9126 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9128 2002-02-07 Andreas Schwab <schwab@suse.de>
9130 * configure.in: Fix check for -zcombreloc.
9132 2002-02-06 H.J. Lu <hjl@gnu.org>
9134 * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9135 * configure.in: Check if __builtin_memset really works.
9136 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9137 __GNUC_PREREQ (2, 96) before using __builtin_memset.
9139 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9141 * io/bug-ftw3.c (main): Don't try the test if root.
9143 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
9145 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9147 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9148 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9149 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9151 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9152 a weak alias for __clone.
9153 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9154 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9155 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9156 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9157 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9158 a weak alias for __mmap64.
9160 2002-02-05 H.J. Lu <hjl@gnu.org>
9162 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9163 (atomic_add): Likewise.
9164 (compare_and_swap): Likewise.
9165 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9167 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9169 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9171 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9172 alignment of the TCB and store total size and alignment of static
9173 TLS block in _dl_tls_static_size and _dl_tls_static_align.
9174 tls_index is a typedef.
9175 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9176 _dl_tls_static_align.
9177 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9178 * elf/dl-support.c: Define _dl_tls_static_size and
9179 _dl_tls_static_align.
9181 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9183 * configure.in: Add --without-tls option.
9184 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9185 --without-tls is given.
9187 * sysdeps/generic/dl-tls.c: Include <tls.h>.
9189 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9191 2002-02-06 Roland McGrath <roland@frob.com>
9193 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9194 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9196 * scripts/versions.awk: Improve error message for missing version.
9197 Each version inherits from the last one only if they have the same
9198 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9199 but not GLIBC_x and FOO_y.
9201 * scripts/firstversions.awk: Handle libraries that don't have each
9202 particular version named in the third column of shlib-versions.
9204 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9206 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9208 * Versions.def [ld]: Add GLIBC_2.3.
9209 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9210 * elf/Makefile (dl-routines): Add dl-tls.
9211 (distribute): Add dl-tls.h.
9212 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9213 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9214 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9215 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9216 along with the other info in the link map. Change queueing of init
9217 images for double linked list. Use _dl_next_tls_modid to compute
9219 * elf/rtld.c (_dl_start_final): Store alignment requirement
9220 along with the other info in rtld map and executable map.
9221 (dl_main): Add ld.so to the init image list if necessary. Compute
9222 final module ID with _dl_next_tls_modid.
9223 * include/link.h (struct link_map): Add l_tls_previmage and
9225 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9226 * sysdeps/i386/elf/Versions: New file.
9227 * sysdeps/generic/dl-tls.c: New file.
9228 * sysdeps/generic/dl-tls.h: New file.
9229 * sysdeps/i386/dl-tls.h: New file.
9231 2002-02-06 Roland McGrath <roland@frob.com>
9233 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9234 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9236 2002-01-05 Roland McGrath <roland@frob.com>
9238 * sysdeps/mach/configure.in: New file.
9239 * sysdeps/mach/configure: New generated file.
9241 * mach/Makefile (user-interfaces): Remove default_pager_helper.
9242 It has never been used by anything.
9244 2002-02-06 H.J. Lu <hjl@gnu.org>
9246 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9249 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9251 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9252 attribute((packed)) to counter stupid people misusing gcc options.
9253 (struct stat64): Likewise.
9255 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9257 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
9258 the variables which are used as booleans.
9260 2002-02-06 Andreas Jaeger <aj@suse.de>
9262 * include/libc-symbols.h (INTUSE): Renamed from INT.
9263 * elf/dl-deps.c: Change users.
9264 * sysdeps/generic/dl-sysdep.c: Likewise.
9265 * sysdeps/generic/dl-cache.c: Likewise.
9266 * elf/dl-reloc.c: Likewise.
9267 * elf/rtld.c: Likewise.
9268 * elf/dl-version.c: Likewise.
9269 * elf/dl-load.c: Likewise.
9270 * elf/dl-dst.h: Likewise.
9271 * elf/dl-init.c: Likewise.
9272 * elf/dl-error.c: Likewise.
9273 * elf/dl-fini.c: Likewise.
9274 * elf/dl-runtime.c: Likewise.
9275 * elf/do-lookup.h: Likewise.
9277 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9279 * stdio-common/_itowa.h: Likewise.
9281 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9283 * elf/dl-minimal.c: Define _itoa_lower_digits.
9285 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9288 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9289 loading modules with the DF_STATIC_TLS flag set.
9290 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9292 * include/link.h (struct link_map): Add l_flags field.
9293 * elf/elf.h (DF_STATIC_TLS): New definition.
9295 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9296 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
9298 * elf/rtld.c (process_dl_debug): Correct printing help message.
9299 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9302 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9303 definition and pass &errno in use of this variable.
9304 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9306 2002-02-04 Andreas Schwab <schwab@suse.de>
9308 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9309 * locale/programs/charmap-dir.c: Wrap calls that output messages
9310 with WITH_CUR_LOCALE. Include "localedef.h" first.
9311 * locale/programs/charmap.c: Likewise.
9312 * locale/programs/ld-address.c: Likewise.
9313 * locale/programs/ld-collate.c: Likewise.
9314 * locale/programs/ld-ctype.c: Likewise.
9315 * locale/programs/ld-identification.c: Likewise.
9316 * locale/programs/ld-measurement.c: Likewise.
9317 * locale/programs/ld-messages.c: Likewise.
9318 * locale/programs/ld-monetary.c: Likewise.
9319 * locale/programs/ld-name.c: Likewise.
9320 * locale/programs/ld-numeric.c: Likewise.
9321 * locale/programs/ld-paper.c: Likewise.
9322 * locale/programs/ld-telephone.c: Likewise.
9323 * locale/programs/ld-time.c: Likewise.
9324 * locale/programs/linereader.c: Likewise.
9325 * locale/programs/linereader.h: Likewise.
9326 * locale/programs/localedef.c: Likewise.
9327 * locale/programs/locfile.c: Likewise.
9328 * locale/programs/repertoire.c: Likewise.
9330 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9332 * elf/rtld.c (_dl_start_final): Determine load address to locate
9333 ehdr with GL(dl_rtld_map).l_map_start.
9335 * po/ca.po: Update from translation team.
9337 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9338 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9340 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9342 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9344 2002-02-04 Ulrich Drepper <drepper@redhat.com>
9346 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9347 * include/link.h (struct link_map): Add various members for TLS
9349 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9350 _rtld_tlsoffset, add _dl_initimage_list.
9351 * sysdeps/i386/dl-lookupcfg.h: New file.
9352 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9353 TLS relocation. When using TLS we now use RESOLVE_MAP.
9354 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9357 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9360 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9361 thread-pointer as soon as possible.
9362 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
9363 elements in rtld_global.
9364 * sysdeps/generic/tls.h: New file.
9365 * elf/Makefile (distribute): Add tls.h.
9366 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9367 relocations. Not complete yet.
9369 * resolv/resolv.h: Allow user to define __need_res_state and only
9370 define __res_start structure then.
9371 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9373 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9374 dl_cpuclock_offset initialization to _dl_start_final.
9375 (_dl_show_auxv): Avoid unnecessary sign extension.
9376 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9378 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9380 * config.h.in: Add HAVE_TLS_SUPPORT.
9381 * sysdeps/i386/elf/configure.in: New file.
9383 2002-02-03 Andreas Schwab <schwab@suse.de>
9385 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9386 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
9388 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
9390 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9391 alloca if the memory reqirements are too high.
9393 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9395 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9396 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9397 the former is available anyway and speed isn't important here.
9398 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9399 * elf/dl-version.c (match_symbol): Likewise.
9400 (_dl_check_map_versions): Likewise.
9401 * elf/rtld.c (process_envvars): Likewise.
9402 (print_statistics): Likewise.
9403 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9404 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
9405 bases. Add assert to catch uses of unimplemented features.
9406 (__strsep): Add assert to catch uses of unimplemented features.
9407 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
9408 and avoid inline optimization.
9409 * elf/rtld.c (process_envvars): Likewise.
9410 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9411 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9412 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9414 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9416 * stdio-common/_itoa.h: Minor simplifications of the code.
9417 * stdio-common/_itoa.c: Likewise.
9419 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9420 instead of _dl_printf for debugging info output.
9422 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9423 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9425 2002-02-01 H.J. Lu <hjl@gnu.org>
9427 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9428 (atomic_add): Likewise.
9429 (compare_and_swap): Return 0 only when failed to compare. Use
9432 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9435 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
9437 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9439 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9441 * elf/dl-minimal.c (__strsep): New minimal implementation.
9443 2002-02-02 Paul Eggert <eggert@twinsun.com>
9445 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9446 (__mktime_internal): If no tm_isdst is requested, prefer solutions
9447 with tm_isdst > 0 when the requested time falls within a
9448 spring-forward gap [PR libc/2894].
9450 2002-02-03 Andreas Schwab <schwab@suse.de>
9452 * stdio-common/tst-rndseek.c: Increase timeout.
9454 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9456 Change ld.so to not use functions which are exported. One cannot
9457 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
9459 * include/libc-symbols.h: Define INT and INTDEF.
9460 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9461 _dl_signal_error_internal, _dl_map_object_internal,
9462 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9463 _dl_lookup_versioned_symbol_internal,
9464 _dl_relocate_object_internal, _dl_debug_state_internal,
9465 _dl_start_profile_internal, and _dl_unload_cache_internal.
9466 * include/dlfcn.h: Declare _dl_catch_error_internal.
9467 * elf/rtld.c: Use INT for calls to any of the *_internal functions
9468 above. Add INTDEF to function definitions.
9469 * elf/dl-debug.c: Likewise.
9470 * elf/dl-deps.c: Likewise.
9471 * elf/dl-dst.h: Likewise.
9472 * elf/dl-error.c: Likewise.
9473 * elf/dl-fini.c: Likewise.
9474 * elf/dl-init.c: Likewise.
9475 * elf/dl-load.c: Likewise.
9476 * elf/dl-lookup.c: Likewise.
9477 * elf/dl-misc.c: Likewise.
9478 * elf/dl-open.c: Likewise.
9479 * elf/dl-profile.c: Likewise.
9480 * elf/dl-reloc.c: Likewise.
9481 * elf/dl-runtime.c: Likewise.
9482 * elf/dl-version.c: Likewise.
9483 * elf/do-lookup.h: Likewise.
9484 * sysdeps/generic/dl-cache.c: Likewise.
9485 * sysdeps/generic/dl-sysdep.c: Likewise.
9486 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9487 instead of _dl_init.
9488 * sysdeps/arm/dl-machine.h: Likewise.
9489 * sysdeps/cris/dl-machine.h: Likewise.
9490 * sysdeps/hppa/dl-machine.h: Likewise.
9491 * sysdeps/i386/dl-machine.h: Likewise.
9492 * sysdeps/ia64/dl-machine.h: Likewise.
9493 * sysdeps/m68k/dl-machine.h: Likewise.
9494 * sysdeps/mips/dl-machine.h: Likewise.
9495 * sysdeps/mips/mips64/dl-machine.h: Likewise.
9496 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9497 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9498 * sysdeps/sh/dl-machine.h: Likewise.
9499 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9500 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9501 * sysdeps/x86_64/dl-machine.h: Likewise.
9502 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9504 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9505 and _dl_debug_initialize.
9507 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
9509 * elf/rtld.c (dl_main): Avoid strrchr.
9510 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9511 result of readlink. Search from the back for '/'.
9513 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9514 strncpy if possible.
9516 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
9518 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
9519 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9520 strspn, and strcspn.
9521 (process_envvars): Don't use strcspn.
9523 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9524 (_dl_dst_substitute): Likewise.
9526 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9528 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9529 code which is never used when relocating ld.so itself.
9531 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9532 starting ld.so itself. Move l_addr variable initialization closer
9534 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9536 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9538 * Versions.def (libc): Add GLIBC_PRIVATE.
9539 (libdb, libnss_db, libdb1): Remove.
9540 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9541 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9542 (libpthread): Add GLIBC_PRIVATE.
9543 (libresolv): Likewise, remove GLIBC_2.1.
9544 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9545 GLIBC_2.2.3, GLIBC_2.3.
9546 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9547 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9548 _dl_sym, _dl_vsym): Likewise.
9549 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9550 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9551 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9552 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9553 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9554 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9555 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9556 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9558 (_dl_object_relocation_scope): Remove.
9559 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9560 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9561 __gconv_cache): Move to GLIBC_PRIVATE.
9562 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9563 __internal_setnetgrent): Likewise.
9564 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9565 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9566 * locale/Versions (__collate_element_hash, __collate_element_strings,
9567 __collate_symbol_classes, __collate_symbol_hash,
9568 __collate_symbol_strings, _nl_current_LC_COLLATE,
9569 _nl_current_LC_CTYPE): Likewise.
9570 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9571 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9572 (libnss_nis, libnss_nisplus): Likewise.
9573 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9574 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9575 (libnss_files): Move all symbols to GLIBC_PRIVATE.
9576 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9577 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9578 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9579 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9580 __ns_get16, __ns_samename): Likewise.
9581 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9582 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9584 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9585 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9586 __libc_connect): Likewise.
9587 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9589 * stdlib/Versions (__libc_system): Likewise.
9590 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9591 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9592 * sysdeps/ia64/fpu/Versions: Likewise.
9593 * sysdeps/ia64/Versions: Likewise.
9594 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9595 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9597 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9598 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9599 __libc_sigaction): Likewise.
9600 * termios/Versions (__libc_tcdrain): Likewise.
9602 * misc/sys/cdefs (__attribute_noinline__): Define.
9603 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9604 __attribute_noinline__.
9606 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9607 * elf/dl-xstat64.c: New file.
9608 * elf/dl-fxstat64.c: New file.
9609 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9610 don't export __fxstat64 at multiple versions.
9611 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9612 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9614 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
9616 * locale/program/ld-collate.c (collate_finish): Assign a wide
9617 char collation sequence value to multi character collating
9618 elements, and avoid over writing by non-character elements.
9620 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9622 * elf/Makefile (distribute): Add dl-procinfo.c.
9623 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9624 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9626 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9628 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9630 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9631 _rtld_global struct.
9632 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9633 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9634 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9635 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9636 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9637 _dl_fpu_control_set): Remove unused externs.
9638 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9639 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9640 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9641 related variables in _rtld_global struct.
9642 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9643 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9646 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9648 * sysdeps/generic/dl-procinfo.c: New file.
9650 2002-02-01 Andreas Schwab <schwab@suse.de>
9652 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9654 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9656 * elf/rtld.c (_dl_start): Mark as internal_function.
9657 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9659 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9660 General pretty printing.
9662 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9664 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9665 * elf/dl-reloc.c: Pretty printing.
9666 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9667 procinfo-related variables in rtld_global struct.
9668 * elf/dl-support.c: Likewise.
9669 * elf/rtld.c: Likewise.
9670 * sysdeps/i386/i686/Makefile: Likewise.
9671 * sysdeps/i386/i686/hp-timing.c: Likewise.
9672 * sysdeps/i386/i686/hp-timing.h: Likewise.
9673 * sysdeps/ia64/Makefile: Likewise.
9674 * sysdeps/ia64/hp-timing.c: Likewise.
9675 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9676 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9677 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9678 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9679 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9680 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9681 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9682 * sysdeps/x86_64/Makefile: Likewise.
9684 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9685 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9686 _dl_debug_fd to rtld_global.
9687 * elf/Versions: Likewise.
9688 * elf/dl-close.c: Likewise.
9689 * elf/dl-iteratephdr.c: Likewise.
9690 * elf/dl-lookup.c: Likewise.
9691 * elf/dl-misc.c: Likewise.
9692 * elf/dl-open.c: Likewise.
9693 * elf/dl-support.c: Likewise.
9694 * elf/do-lookup.h: Likewise.
9695 * elf/rtld.c: Likewise.
9696 * sysdeps/generic/dl-cache.c: Likewise.
9697 * sysdeps/generic/dl-sysdep.c: Likewise.
9698 * sysdeps/ia64/Versions: Likewise.
9699 * sysdeps/unix/clock_gettime.c: Likewise.
9700 * sysdeps/unix/clock_settime.c: Likewise.
9701 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9702 * sysdeps/sparc/Versions: Removed.
9703 * sysdeps/i386/i686/Versions : Removed.
9704 * sysdeps/x86_64/Versions: Removed.
9705 * configure.in: Define HAVE_PROTECTED if .protected is available.
9706 * config.h.in: Add entry for HAVE_PROTECTED.
9708 2002-01-31 Jakub Jelinek <jakub@redhat.com.
9710 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9711 code in struct _rtld_global. Export this struct, remove all
9712 exports for the signal variables.
9713 * sysdeps/arm/dl-machine: Likewise.
9714 * sysdeps/generic/dl-origin: Likewise.
9715 * sysdeps/generic/dl-sysdep: Likewise.
9716 * sysdeps/generic/dl-cache: Likewise.
9717 * sysdeps/hppa/dl-fptr: Likewise.
9718 * sysdeps/hppa/dl-machine: Likewise.
9719 * sysdeps/cris/dl-machine: Likewise.
9720 * sysdeps/i386/dl-machine: Likewise.
9721 * sysdeps/ia64/dl-machine: Likewise.
9722 * sysdeps/m68k/dl-machine: Likewise.
9723 * sysdeps/mach/hurd/dl-sysdep: Likewise.
9724 * sysdeps/mips/mips64/dl-machine: Likewise.
9725 * sysdeps/mips/dl-machine: Likewise.
9726 * sysdeps/powerpc/elf/libc-start: Likewise.
9727 * sysdeps/powerpc/dl-machine: Likewise.
9728 * sysdeps/powerpc/dl-start: Likewise.
9729 * sysdeps/sparc/sparc32/dl-machine: Likewise.
9730 * sysdeps/sparc/sparc64/dl-machine: Likewise.
9731 * sysdeps/sh/dl-machine: Likewise.
9732 * sysdeps/s390/s390-32/dl-machine: Likewise.
9733 * sysdeps/s390/s390-64/dl-machine: Likewise.
9734 * sysdeps/unix/sysv/aix/libc-start: Likewise.
9735 * sysdeps/unix/sysv/aix/start-libc: Likewise.
9736 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9737 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9738 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9739 * sysdeps/x86_64/dl-machine: Likewise.
9741 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9743 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9746 2002-01-31 Andreas Schwab <schwab@suse.de>
9748 * sysdeps/posix/readv.c: Check for ssize_t overflow.
9750 2002-01-31 Andreas Schwab <schwab@suse.de>
9752 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9753 reference to _dl_pagesize.
9755 2002-01-30 Ulrich Drepper <drepper@redhat.com>
9757 * Versions.def [ld]: Add GLIBC_2.3.
9758 * elf/dl-addr.c: Move global variables for SHARED code in struct
9759 _rtld_global. Export this struct, remove all exports for the
9761 * elf/dl-close.c: Likewise.
9762 * elf/dl-conflict.c: Likewise.
9763 * elf/dl-debug.c: Likewise.
9764 * elf/dl-deps.c: Likewise.
9765 * elf/dl-dst.h: Likewise.
9766 * elf/dl-error.c: Likewise.
9767 * elf/dl-fini.c: Likewise.
9768 * elf/dl-init.c: Likewise.
9769 * elf/dl-iteratephdr.c: Likewise.
9770 * elf/dl-libc.c: Likewise.
9771 * elf/dl-load.c: Likewise.
9772 * elf/dl-lookup.c: Likewise.
9773 * elf/dl-minimal.c: Likewise.
9774 * elf/dl-object.c: Likewise.
9775 * elf/dl-open.c: Likewise.
9776 * elf/dl-profile.c: Likewise.
9777 * elf/dl-profstub.c: Likewise.
9778 * elf/dl-reloc.c: Likewise.
9779 * elf/dl-runtime.c: Likewise.
9780 * elf/dl-support.c: Likewise.
9781 * elf/dl-sym.c: Likewise.
9782 * elf/dl-version.c: Likewise.
9783 * elf/do-lookup.h: Likewise.
9784 * elf/do-rel.h: Likewise.
9785 * elf/dynamic-link.h: Likewise.
9786 * elf/rtld.c: Likewise.
9787 * sysdeps/generic/dl-cache.c: Likewise.
9788 * sysdeps/generic/dl-sysdep.c: Likewise.
9789 * sysdeps/generic/ldsodefs.h: Likewise.
9790 * sysdeps/generic/libc-start.c: Likewise.
9791 * sysdeps/i386/dl-machine.h: Likewise.
9792 * sysdeps/ia64/dl-fptr.c: Likewise.
9793 * sysdeps/ia64/dl-machine.h: Likewise.
9794 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9795 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9796 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9797 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9798 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9799 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9800 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9801 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9803 2002-01-29 Ulrich Drepper <drepper@redhat.com>
9805 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9807 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9809 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
9811 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
9813 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
9815 2002-01-29 Ben Collins <bcollins@debian.org>
9817 * string/bits/string2.h (__mempcpy): Protect size arg for
9818 addition when using __builtin_memcpy.
9820 2002-01-29 Ulrich Drepper <drepper@redhat.com>
9822 * stdlib/Makefile (tests): Add tst-qsort.
9823 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
9825 * manual/signal.texi (Process Signal Mask): Document that
9826 pthread_sigmask, not sigprocmask, must be used in MT programs.
9827 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
9829 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
9831 * misc/Makefile (tests): Add tst-hsearch.
9832 * misc/tst-hsearch.c: New file.
9834 2002-01-18 Wolfram Gloger <wg@malloc.de>
9836 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
9837 * malloc/malloc.h: Likewise.
9838 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
9839 * malloc/arena.c: New file.
9840 * malloc/hooks.c: New file.
9841 * malloc/tst-mallocstate.c: New file.
9842 * malloc/Makefile: Add new testcase tst-mallocstate.
9843 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
9845 2002-01-28 Ulrich Drepper <drepper@redhat.com>
9847 * stdlib/msort.c: Remove last patch. The optimization violates the
9848 same rule which qsort.c had problems with.
9850 2002-01-27 Paul Eggert <eggert@twinsun.com>
9852 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
9853 to a pivot element that lies outside the array to be sorted, as
9854 ISO C99 requires that the comparison function be called only with
9855 addresses of array elements [PR libc/2880].
9857 2002-01-28 Ulrich Drepper <drepper@redhat.com>
9859 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
9860 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
9862 * timezone/asia: Update from tzdata2002b.
9863 * timezone/australasia: Likewise.
9864 * timezone/backward: Likewise.
9865 * timezone/europe: Likewise.
9866 * timezone/leapseconds: Likewise.
9867 * timezone/iso3166.tab: Likewise.
9868 * timezone/zone.tab: Likewise.
9870 2002-01-23 Richard Henderson <rth@redhat.com>
9872 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
9874 2002-01-28 Ulrich Drepper <drepper@redhat.com>
9876 * string/strxfrm.c: Allocate one more byte for rulearr and clear
9877 this element [PR libc/2855].
9879 * string/strcoll.c: Handle zero-length arguments specially
9882 2002-01-23 Jakub Jelinek <jakub@redhat.com>
9884 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
9885 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
9886 short lengths and constant src.
9887 (strcpy): Don't optimize for gcc 3.0+.
9888 (__stpcpy): For gcc 3.0+, don't use
9889 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
9890 for short string literal src.
9892 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
9894 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
9897 2001-01-22 Paul Eggert <eggert@twinsun.com>
9899 * manual/llio.texi (Linked Channels, Cleaning Streams):
9900 Make it clearer that a just-opened input stream might need cleaning.
9902 2002-01-21 H.J. Lu <hjl@gnu.org>
9904 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9905 Don't use label at end of compound statement.
9907 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
9909 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
9910 Remove test for negative integer arg; sin_pi does it correctly.
9912 2002-01-20 Ulrich Drepper <drepper@redhat.com>
9914 * nscd/Makefile (distribute): Filter out xmalloc.c.
9916 2002-01-19 Ulrich Drepper <drepper@redhat.com>
9918 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
9919 Set offset if read end wasn't the buffer end.
9920 (_IO_file_seekoff_mmap): New function.
9921 (_IO_file_xsgetn_mmap): New function.
9922 (_IO_file_jumps_mmap): Use the two new functions.
9923 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
9925 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
9926 _IO_file_underflow_mmap.
9927 * libio/iofopen.c: Don't position file descriptor at end of file.
9928 * libio/tst-widetext.c: Improve error messages.
9929 * stdio-common/tst-rndseek.c: Likewise.
9931 2002-01-18 Ulrich Drepper <drepper@redhat.com>
9933 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
9934 end of enum for !_GNU_SOURCE.
9935 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
9936 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
9937 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
9938 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
9939 values unless _GNU_SOURCE.
9941 * iconvdata/tcvn5712-1.c: Minor cleanups.
9943 2002-01-18 Andreas Schwab <schwab@suse.de>
9945 * sysdeps/unix/sysv/linux/configure.in
9946 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
9948 2002-01-16 Roger Sayle <roger@eyesopen.com>
9950 * stdlib/msort.c (msort_with_tmp): Replace implementation with
9951 more efficient "Towers of Hanoi" mergesort.
9952 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
9953 for generic, sizeof(int) and sizeof(long) variants respectively.
9955 2002-01-17 Ulrich Drepper <drepper@redhat.com>
9957 * manual/syslog.texi (openlog): Describe possible problems with
9959 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9961 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
9962 * nscd/connections.c (begin_drop_privileges): New function.
9963 (finish_drop_privileges): New function.
9964 (nscd_init): Call the new functions which also install all groups
9965 for the server user.
9966 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
9967 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9969 2002-01-17 H.J. Lu <hjl@gnu.org>
9971 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
9974 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
9976 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
9977 instructions for pointer operations.
9978 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
9980 2002-01-17 Andreas Jaeger <aj@suse.de>
9982 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
9983 __uint128_t build-in.
9985 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
9986 PowerPC, sync with 2.2 branch.
9988 2002-01-16 Ulrich Drepper <drepper@redhat.com>
9990 * posix/getconf.c: Update copyright year.
9991 * nss/getent.c: Likewise.
9992 * nscd/nscd_nischeck.c: Likewise.
9993 * iconv/iconvconfig.c: Likewise.
9994 * iconv/iconv_prog.c: Likewise.
9995 * elf/ldconfig.c: Likewise.
9996 * catgets/gencat.c: Likewise.
9997 * csu/version.c: Likewise.
9998 * elf/ldd.bash.in: Likewise.
9999 * elf/sprof.c (print_version): Likewise.
10000 * locale/programs/locale.c: Likewise.
10001 * locale/programs/localedef.c: Likewise.
10002 * nscd/nscd.c (print_version): Likewise.
10003 * debug/xtrace.sh: Likewise.
10004 * malloc/memusage.sh: Likewise.
10005 * malloc/mtrace.pl: Likewise.
10007 2002-01-16 Andreas Schwab <schwab@suse.de>
10009 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10010 reliably remove "-ia64" from rtld name.
10012 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10014 * iconvdata/gb18030.c: Bug fixes and support for more characters.
10015 Patch by Yu Shao <yshao@redhat.com>.
10017 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
10019 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10020 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10021 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10023 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
10025 * sysdeps/s390/fpu/libm-test-ulps: Update.
10027 2002-01-11 Ulrich Drepper <drepper@redhat.com>
10029 * elf/elf.h: Update x86 relocations.
10031 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10033 * locale/programs/charmap.c (new_width): Check whether byte
10034 sequences for both ends of range have the same length.
10036 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10038 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10040 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10042 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10044 (__full_ieee754_sqrt): Add __attribute_used__.
10046 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10048 * sysdeps/generic/group_member.c (__group_member): Also check
10049 groups[0] [PR libc/2781].
10051 2002-01-08 Ulrich Drepper <drepper@redhat.com>
10053 * Makefile (distribute): Add scripts/cpp.
10054 * elf/Makefile (distribute): Add reldep6mod[01234].c,
10055 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10056 unwind-dw2-fde.h, and dwarf2.h.
10057 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10058 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10059 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10060 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10062 2002-01-07 Roland McGrath <roland@frob.com>
10064 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10065 volatile on type of ARGC so the compiler doesn't get clever.
10067 2002-01-07 Andreas Jaeger <aj@suse.de>
10069 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10070 * sysdeps/i386/bits/byteswap.h: Likewise.
10071 * sysdeps/ia64/bits/byteswap.h: Likewise.
10072 * sysdeps/m68k/bits/byteswap.h: Likewise.
10073 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10074 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10076 2002-01-02 Bruno Haible <bruno@clisp.org>
10078 * intl/plural.y: Fix %expect count.
10080 2002-01-03 Jakub Jelinek <jakub@redhat.com>
10082 * elf/Makefile (routines, shared-only-routines): Add
10083 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10084 * elf/elf.h (PT_GNU_EH_FRAME): Define.
10085 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10086 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10087 Optimize if .eh_frame section contains no FDEs.
10088 (__register_frame, __deregister_frame_info_bases,
10089 __deregister_frame): Likewise.
10090 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10091 DW_CFA_restore handling.
10093 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
10095 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10097 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10098 for x < 0.25 and restore original range reduction method.
10099 (__ieee754_lgammal_r): Make sure signgam is set before returning.
10101 2002-01-07 Ulrich Drepper <drepper@redhat.com>
10103 * libio/fileops.c (_IO_file_underflow_mmap): New function.
10104 (_IO_file_close_mmap): New function.
10105 (_IO_file_jumps_mmap): New variable.
10106 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10107 trying to convert rest of byte buffer.
10108 (_IO_wfile_underflow_mmap): New function.
10109 (_IO_wfile_jumps_mmap): New variable.
10110 * libio/iofopen.c (__fopen_maybe_mmap): New function.
10111 (__fopen_internal): New function. Split out from _IO_new_fopen.
10112 (_IO_new_fopen): Call __fopen_internal.
10113 * libio/iofopen64.c: Just call __fopen_internal.
10114 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10116 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10117 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10118 _IO_file_close_mmap.
10120 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10121 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10123 * stdio-common/Makefile (tests): Add tst-rndseek.
10124 * stdio-common/tst-rndseek.c: New file.
10126 2002-01-05 Roland McGrath <roland@frob.com>
10128 * config.h.in (HAVE_MIG_RETCODE): New #undef.
10129 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10130 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10131 * sysdeps/mach/hurd/configure: Regenerated.
10133 2002-01-03 Ulrich Drepper <drepper@redhat.com>
10135 * elf/elf.h: Add more TLS definitions.
10137 2002-01-02 Ulrich Drepper <drepper@redhat.com>
10139 * include/features.h (__GLIBC_MINOR__): Bump to 3.
10141 2002-01-02 Roland McGrath <roland@frob.com>
10143 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10144 __sigisemptyset. Don't use MASK uninitialized.
10146 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10147 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10148 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10149 __sigdelset, __sigaddset, __sigorset.
10151 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10152 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10154 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10155 _hurd_ports is null.
10157 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10158 for old CMU and new OSF Mach interface flavors.
10159 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10160 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10162 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10164 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10165 Pass extra arguments to task_create for OSF variant.
10166 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10168 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10169 conditional on [HAVE_AUX_VECTOR].
10171 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10172 mach_msg_timeout_t as type of final argument.
10174 * hurd/privports.c (__get_privileged_ports):
10175 Change host_priv_t to mach_port_t in argument type.
10176 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10179 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10180 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
10181 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10182 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10183 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10184 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10186 2002-01-01 Roland McGrath <roland@frob.com>
10188 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10190 2002-01-01 Ulrich Drepper <drepper@redhat.com>
10192 * include/stdlib.h: Define inlines for the _l variants of the strto*
10195 2002-01-01 Roland McGrath <roland@frob.com>
10197 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10199 * mach/Machrules (MIG): Set CPP as well as CC.
10201 2001-12-31 Ulrich Drepper <drepper@redhat.com>
10203 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10204 locale to parse /proc/loadavg [PR libc/2760].
10206 2001-12-31 Jakub Jelinek <jakub@redhat.com>
10208 * elf/dl-conflict.c: Include sys/param.h.
10209 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10210 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10212 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10213 literals to avoid warnings.
10215 2001-12-31 Andreas Jaeger <aj@suse.de>
10217 * configure.in: Don't check for gsed since we do not use it anywhere.
10219 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10221 * io/fts.c: Update from BSD to fix memory leaks.
10223 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10225 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10226 * elf/chroot_canon.c: Likewise.
10227 * elf/dl-object.c: Likewise.
10228 * iconv/iconv_charmap.c: Likewise.
10229 * iconv/iconv_prog.c: Likewise.
10230 * libio/iogetdelim.c: Likewise.
10231 * locale/lc-time.c: Likewise.
10232 * stdlib/canonicalize.c: Likewise.
10233 * sunrpc/svc.c: Likewise.
10234 * sysdeps/generic/glob.c: Likewise.
10236 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10238 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10239 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10240 remove high order bit from the program counter.
10241 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10243 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10245 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10246 unnecessary code and add missing reloc types.
10247 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10248 case for reloc type R_390_NONE.
10250 2001-12-28 Andreas Jaeger <aj@suse.de>
10252 * io/bug-ftw3.c: Include string.h for prototypes.
10254 * crypt/md5test.c (main): Remove unused variable.
10256 * dlfcn/modstatic.c: Add prototype to avoid warning.
10258 2001-12-26 Roland McGrath <roland@frob.com>
10260 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10261 check only (SS->pending & MASK) for the signal to return.
10262 From Jeroen Dekkers <jeroen@dekkers.cx>.
10264 2001-12-22 Roland McGrath <roland@frob.com>
10266 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10267 Use preprocessor #if conditionals instead of `if' to avoid
10268 warnings about divide by zero in dead code.
10270 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10271 _hurd_port_init, and __hurd_self_sigstate.
10273 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10275 2001-12-21 Andreas Jaeger <aj@suse.de>
10277 * elf/dblloadmod1.c: Add prototype to avoid warning.
10278 * elf/dblloadmod2.c: Likewise.
10279 * elf/dblloadmod3.c: Likewise.
10280 * elf/reldepmod5.c: Likewise.
10281 * elf/reldepmod6.c: Likewise.
10283 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10284 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10285 used on all architectures.
10287 * sunrpc/svc_tcp.c: Add noreturn attribute for
10288 svctcp_rendezvous_abort.
10289 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10291 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10294 2001-12-19 Jakub Jelinek <jakub@redhat.com>
10296 * manual/llio.texi (aio_fsync): Fix a typo.
10297 Patch by Tammy Fox <tfox@redhat.com>.
10299 2001-12-18 Jakub Jelinek <jakub@redhat.com>
10301 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10302 stack bias from child stack pointer before passing it to clone syscall.
10304 2001-12-18 Ulrich Drepper <drepper@redhat.com>
10306 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10308 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10309 Reported by Thorsten Kukuk <kukuk@suse.de>.
10311 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10314 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10316 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
10318 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10319 conforming: return EBADF if file descriptor is invalid and EINVAL
10320 if file descriptor is no valid tty.
10321 * login/tst-grantpt.c: New file.
10322 * login/Makefile (tests): Add tst-grantpt.
10324 2001-12-17 Ulrich Drepper <drepper@redhat.com>
10326 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10327 different than implemented in last patch.
10328 * io/bug-ftw3.c: Adjust test for changed handling of
10329 inaccessibility of toplevel dir.
10331 2001-12-16 Roland McGrath <roland@frob.com>
10333 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10334 * grp/initgroups.c (internal_getgrouplist): Likewise.
10336 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10337 `default:' to silence new GCC warning.
10338 Rewrite cast of lvalue to silence new GCC warning.
10340 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10342 * sysdeps/mach/hurd/spawni.c: New file, by me with a
10343 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10345 2001-12-14 Ulrich Drepper <drepper@redhat.com>
10347 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
10348 Patch by Stephen R. van den Berg.
10350 * crypt/md5.h: Define md5_uintptr.
10352 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10354 * libio/tst_swprintf.c (main): Add test for string argument with
10356 * stdio-common/Makefile (tests): Add tst-sprintf.
10357 * stdio-common/tst-sprintf.c: New file.
10359 2001-12-13 Andreas Schwab <schwab@suse.de>
10361 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10362 zero precision with wide character string format.
10364 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
10366 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10367 but have a user supplied buffer, return the empty buffer, not NULL.
10369 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10371 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10372 Patch by Eric Sharkey <sharkey@netrics.com>.
10374 * crypt/md5test.c (main): Add test for multiple calls to
10375 __md5_process_bytes to itererate over input string.
10377 2001-12-12 Ulrich Drepper <drepper@redhat.com>
10379 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10380 from __nis_findfastest. Take timeout value from parameter.
10381 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10382 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10383 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
10385 2001-12-12 Andreas Jaeger <aj@suse.de>
10387 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10388 combreloc test so that it works in this case.
10390 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10392 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
10394 * sysdeps/sh/Makefile: New file.
10395 * sysdeps/sh/_mcount.S: New file.
10396 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10397 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10399 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10401 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10402 limitation [PR libc/2564].
10404 2001-12-11 Jakub Jelinek <jakub@redhat.com>
10406 * elf/Makefile (dl-routines): Add conflict.
10407 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10408 (ld.so): Add _begin local symbol.
10409 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10411 * elf/dl-deps.c (_dl_build_local_scope): New function.
10412 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10414 * elf/do-rel.h (VALIDX): Define.
10415 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10416 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10418 * elf/dl-conflict.c: New file.
10419 * elf/dl-lookup.c (_dl_debug_bindings): New function.
10420 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
10422 (_dl_lookup_symbol_skip): Likewise.
10423 (_dl_lookup_versioned_symbol): Likewise.
10424 (_dl_lookup_versioned_symbol_skip): Likewise.
10425 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10426 define to ElfW(Rel).
10427 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10428 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10430 Don't adjust address dynamic tags if l_addr is 0.
10431 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10432 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10433 (VALIDX, ADDRIDX): Define.
10434 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10435 (dl_main): Print library list for LD_TRACE_PRELINKING.
10436 If prelinking information can be used, skip relocating libraries and
10437 call _dl_resolve_conflicts instead.
10438 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10439 * elf/dl-load.c (_dl_map_object): Don't create fake libs
10440 if LD_TRACE_PRELINKING.
10441 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10443 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10444 (DL_DEBUG_PRELINK): Define.
10445 (_dl_resolve_conflicts): Add prototype.
10447 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10448 .plt for prelinked libraries where prelinking info cannot be used.
10449 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10450 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10451 * sysdeps/arm/bits/link.h: New file.
10452 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10453 content of .got[1].
10454 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10455 (ELF_MACHINE_PLT_REL): Define.
10456 (elf_machine_rela, elf_machine_rela_relative): New functions.
10457 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10458 of adjusting it if prelinked and prelinking cannot be used.
10459 * sysdeps/i386/bits/link.h: New file.
10460 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10461 content of .got[1].
10462 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10463 (ELF_MACHINE_PLT_REL): Define.
10464 (elf_machine_rela, elf_machine_rela_relative): New functions.
10465 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10466 of adjusting it if prelinked and prelinking cannot be used.
10467 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10468 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
10469 to find out map for R_PPC_JMP_SLOT relocs.
10470 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10471 (OPCODE_BA): Define.
10472 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10473 libraries where prelinking info cannot be used.
10474 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10475 (elf_machine_fixup_plt): Call sparc_fixup_plt.
10476 (elf_machine_rela): Set value to 0 if relocating conflicts.
10477 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10478 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10479 (sparc64_fixup_plt): Fix a typo.
10480 (elf_machine_rela): Set value to 0 if relocating conflicts.
10481 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10482 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10483 libraries where prelinking info cannot be used.
10484 * sysdeps/sh/bits/link.h: New file.
10485 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10486 content of .got[1].
10487 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10488 of adjusting it if prelinked and prelinking cannot be used.
10489 * sysdeps/s390/s390-32/bits/link.h: New file.
10490 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10491 Save original content of .got[1].
10492 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10493 of adjusting it if prelinked and prelinking cannot be used.
10494 * sysdeps/s390/s390-64/bits/link.h: New file.
10495 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10496 Save original content of .got[1].
10497 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10498 of adjusting it if prelinked and prelinking cannot be used.
10499 * sysdeps/x86_64/bits/link.h: New file.
10500 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10501 Save original content of .got[1].
10502 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10503 of adjusting it if prelinked and prelinking cannot be used.
10505 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10507 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10508 where appropriate instead of numbers. Little optimizations.
10510 2001-12-10 Roland McGrath <roland@frob.com>
10512 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10515 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10516 set to GLIBC_2.2.5, not GLIBC_2.2.4.
10518 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10519 Fix conditionals so this is set by default for stdio and not for libio.
10520 * sysdeps/mach/hurd/configure: Regenerated.
10522 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
10524 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10526 2001-12-10 Ulrich Drepper <drepper@redhat.com>
10528 * io/Makefile (tests): Add bug-ftw3.
10529 * io/bug-ftw3.c: New file.
10531 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10532 matches and GLOB_NOCHECK is set.
10533 * posix/globtest.sh: Correct expected result for NOCHECK test.
10535 * po/ca.po: Update from translation team.
10537 2001-12-09 Ulrich Drepper <drepper@redhat.com>
10539 Implement transliteration of characters in strings of the locale
10541 * locale/programs/linereader.c: Adjust for additional parameter to
10543 (get_string): If character <Uxxxx> is not found try to transliterate
10545 * locale/programs/ld-ctype.c: Adjust for additional parameter to
10546 lr_token. Add const to charmap parameter of all functions.
10547 (find_translit, find_translit2): New functions.
10548 * locale/programs/charmap.c: Adjust for additional parameter to
10550 * locale/programs/repertoire.c: Likewise.
10551 * locale/programs/linereader.h: Likewise.
10552 * locale/programs/ld-address.c: Likewise. Add const to charmap
10553 parameter of all functions.
10554 * locale/programs/ld-collate.c: Likewise.
10555 * locale/programs/ld-identification.c: Likewise.
10556 * locale/programs/ld-measurement.c: Likewise.
10557 * locale/programs/ld-messages.c: Likewise.
10558 * locale/programs/ld-monetary.c: Likewise.
10559 * locale/programs/ld-name.c: Likewise.
10560 * locale/programs/ld-numeric.c: Likewise.
10561 * locale/programs/ld-paper.c: Likewise.
10562 * locale/programs/ld-paper.c: Likewise.
10563 * locale/programs/ld-telephone.c: Likewise.
10564 * locale/programs/ld-time.c: Likewise.
10565 * locale/programs/locfile.c: Likewise.
10566 * locale/programs/localedef.c: Likewise.
10567 * locale/programs/localedef.h: Likewise.
10568 * locale/programs/locfile.h: Likewise. Add declaration for
10570 * locale/programs/simple-hash.c: Add const to first parameter of
10571 find_entry, iterate_table, and lookup.
10572 * locale/programs/simple-hash.h: Likewise.
10573 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
10575 * include/locale.h: Define __LC_LAST.
10576 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10578 2001-12-07 Geoff Keating <geoffk@redhat.com>
10580 * sysdeps/powerpc/Dist: Update for recent FP changes.
10581 * sysdeps/powerpc/fpu/Dist: Likewise.
10583 2001-12-07 Andreas Schwab <schwab@suse.de>
10585 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10587 2001-12-06 Geoff Keating <geoffk@redhat.com>
10589 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10590 save/restore functions here.
10591 (libm-support): Don't define these functions here.
10592 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10594 * sysdeps/powerpc/fe_nomask.c: Move to...
10595 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10596 * sysdeps/powerpc/fprrest.S: Move to...
10597 * sysdeps/powerpc/fpu/fprrest.S: ... here.
10598 * sysdeps/powerpc/fprsave.S: Move to...
10599 * sysdeps/powerpc/fpu/fprsave.S: ... here.
10601 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10603 * sysdeps/unix/sysv/linux/opensock.c: New file.
10605 2001-12-06 Geoff Keating <geoffk@redhat.com>
10607 * config.make.in (with-fp): Define from configure.
10608 * configure.in: Substitute with_fp.
10609 * configure: Regenerate.
10610 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10611 specified, and don't change FPU environment.
10613 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10615 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10616 * assert/assert.c: Check result of __asprintf call and don't use
10617 string if it failed.
10618 * assert/assert-perr.c: Likewise.
10619 * inet/rcmd.c: Likewise.
10620 * locale/programs/localedef.c (main): Check result of
10621 construct_output_path and exit if it failed.
10622 (construct_output_path): Check result of asprintf and mkdir calls and
10623 fail if they failed.
10624 * posix/getopt.c: Check result of __asprintf calls and fail if
10626 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10628 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10630 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10632 * sysdeps/generic/strncase.c: Likewise.
10633 * string/tester.c: Add tests for strcasecmp and strncasecmp.
10635 2001-12-05 Geoff Keating <geoffk@redhat.com>
10637 * scripts/cpp: Test the exit status from 'type', not 'awk'.
10639 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10640 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10641 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10642 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10643 * sysdeps/powerpc/fclrexcpt.c: Move to...
10644 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10645 * sysdeps/powerpc/fpu_control.h: Move to...
10646 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10648 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10650 * iconvdata/ibm1129.h: Remove duplicate mappings.
10651 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
10652 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10653 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10655 * timezone/zic.c: Fix handling of turnaround times.
10656 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10658 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
10660 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10663 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10665 * posix/regex.c: For use outside glibc defined bounded pointer
10666 macros here. Patch by Jim Meyering <jim@meyering.net>.
10668 * iconvdata/Makefile (modules): Add TCVN5712-1.
10669 * iconvdata/TESTS: Add TCVN5712-1.
10670 * iconvdata/gconv-modules: Likewise.
10671 * iconvdata/tcvn5712-1.c: New file.
10672 * iconvdata/testdata/TCVN-5712: New file.
10673 * iconvdata/testdata/TCVN-5712..UTF8: New file.
10675 2001-12-04 Ulrich Drepper <drepper@redhat.com>
10677 * iconvdata/cp1258.c: Optimize conversion from UCS4.
10679 2001-12-02 Roland McGrath <roland@frob.com>
10681 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10683 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10684 Reported by Jeff Bailey <jbailey@nisa.net>.
10686 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10687 Reported by Jeff Bailey <jbailey@nisa.net>.
10689 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10690 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10691 Reported by Jeff Bailey <jbailey@nisa.net>.
10693 2001-12-01 Roland McGrath <roland@frob.com>
10695 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10696 missing backslash in test arguments.
10697 * sysdeps/mach/hurd/configure: Regenerated.
10699 2001-11-26 Roland McGrath <roland@frob.com>
10701 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10702 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10704 2001-11-30 Ulrich Drepper <drepper@redhat.com>
10706 * iconvdata/Makefile (modules): Add ARMSCII-8.
10707 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10708 * iconvdata/armscii-8.c: New file.
10710 2001-11-29 Jakub Jelinek <jakub@redhat.com>
10712 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10713 don't match, fix {{a,b},c} globbing, clean up.
10714 Patch by Flavio Veloso <flaviovs@magnux.com>.
10715 * posix/globtest.sh: Add new tests.
10717 2001-11-29 Andreas Jaeger <aj@suse.de>
10719 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10720 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10722 * sysdeps/generic/abort.c: Include libioP.h for
10723 _IO_flush_all_lockp prototype.
10725 2001-11-29 Ulrich Drepper <drepper@redhat.com>
10727 * posix/regex.h: Define __restrict_arr correctly.
10729 2001-11-28 Ulrich Drepper <drepper@redhat.com>
10731 * iconvdata/ibm1163.c: New file.
10732 * iconvdata/ibm1163.h: New file.
10733 * iconvdata/ibm1164.c: New file.
10734 * iconvdata/ibm1164.h: New file.
10735 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10736 * iconvdata/Makefile: Likewise.
10737 * iconvdata/testdata/IBM1163: New file.
10738 * iconvdata/testdata/IBM1163..UTF8: New file.
10739 * iconvdata/testdata/IBM1164: New file.
10740 * iconvdata/testdata/IBM1164..UTF8: New file.
10741 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10743 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
10744 * iconvdata/ibm1124.h: Likewise.
10745 * iconvdata/ibm1132.h: Likewise.
10746 * iconvdata/ibm1133.h: Likewise.
10747 * iconvdata/ibm1160.h: Likewise.
10748 * iconvdata/ibm1161.h: Likewise.
10749 * iconvdata/ibm1162.h: Likewise.
10750 * iconvdata/ibm856.h: Likewise.
10751 * iconvdata/ibm922.h: Likewise.
10752 * iconvdata/ibm930.h: Likewise.
10753 * iconvdata/ibm932.h: Likewise.
10754 * iconvdata/ibm933.h: Likewise.
10755 * iconvdata/ibm935.h: Likewise.
10756 * iconvdata/ibm937.h: Likewise.
10757 * iconvdata/ibm939.h: Likewise.
10758 * iconvdata/ibm943.h: Likewise.
10759 * iconvdata/ibm930.c: Pretty printing.
10760 * iconvdata/ibm937.c: Avoid access accross array boundary.
10762 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10763 the current locale's codeset.
10764 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10765 empty input string.
10766 * iconv/iconv_prog.c: Pass empty strings as default value for to-
10767 and from-charset. Don't determine locale's charset here.
10769 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
10770 as the old _IO_flush_all but lock only if parameter is nonzero.
10771 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10772 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10773 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10774 if libio is used [PR libc/2575].
10776 2001-11-28 Jakub Jelinek <jakub@redhat.com>
10778 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10779 __signbitl): Only define for ISO C99.
10781 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
10783 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10784 herrnop to NETDB_INTERNAL if we run out of buffer space.
10786 2001-11-28 Ulrich Drepper <drepper@redhat.com>
10788 * nss/nss_files/files-XXX.c (internal_getent): Correct input
10789 overflow test for platforms with signed char.
10790 Reported by Andrew Haley <aph@cambridge.redhat.com>.
10792 2001-11-28 Bruno Haible <bruno@clisp.org>
10794 * locale/programs/simple-hash.c (lookup_2): Remove function.
10795 (insert_entry_2): Call lookup instead of lookup_2.
10797 2001-03-04 Bruno Haible <bruno@clisp.org>
10799 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10801 2001-10-31 Bruno Haible <bruno@clisp.org>
10803 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10805 2001-03-21 Bruno Haible <bruno@clisp.org>
10807 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10808 chokes on empty macro arguments.
10809 * intl/plural.y: Add #pragma for alloca on AIX 3.
10811 2001-11-27 Ulrich Drepper <drepper@redhat.com>
10813 * intl/dcigettext.c (guess_category_value): Only implement for
10814 glibc. Otherwise rely on function _nl_locale_name which isn't
10815 present in the glibc sources.
10817 2001-09-24 Bruno Haible <bruno@clisp.org>
10819 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
10820 transliteration when building on a glibc system but outside glibc.
10822 2001-09-22 Bruno Haible <bruno@clisp.org>
10824 * intl/plural-eval.c: New file, extracted from dcigettext.c.
10825 * intl/dcigettext.c (plural_eval): Remove function, moved to
10826 intl/plural-eval.c.
10827 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
10828 Include plural-eval.c.
10830 2001-09-22 Bruno Haible <bruno@clisp.org>
10832 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
10833 don't start with a digit; nplurals must be positive.
10835 2001-09-02 Bruno Haible <bruno@clisp.org>
10837 * intl/plural-exp.h: New file, extracted from gettextP.h.
10838 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
10839 * intl/gettextP.h (struct expression, struct parse_args,
10840 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
10841 * intl/loadmsgcat.c: Include plural-exp.h.
10842 (PLURAL_PARSE): Move macro to plural-exp.h.
10843 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
10845 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
10846 EXTRACT_PLURAL_EXPRESSION.
10847 (_nl_unload_domain): Update.
10848 * intl/dcigettext.c: Include plural-exp.h.
10849 * intl/plural.y: Include plural-exp.h, not gettextP.h.
10850 (FREE_EXPRESSION): Move macro to plural-exp.h.
10851 * intl/Makefile (routines): Add plural-exp.
10852 (distribute): Add plural-exp.h.
10854 2001-07-28 Bruno Haible <bruno@clisp.org>
10856 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
10857 isdigit, tolower argument to 'unsigned char'.
10858 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
10860 * intl/localealias.c (read_alias_file): Cast isspace argument to
10863 2001-10-20 Bruno Haible <bruno@clisp.org>
10865 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
10867 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
10868 with the variable 'index' in plural_lookup.
10869 * intl/l10nflist.c (strchr): Likewise.
10870 * intl/localealias.c (strchr): Likewise.
10872 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
10873 * intl/bindtextdom.c: Likewise.
10874 * intl/dcigettext.c: Likewise.
10875 * intl/dgettext.c: Likewise.
10876 * intl/dngettext.c: Likewise.
10877 * intl/explodename.c: Likewise.
10878 * intl/finddomain.c: Likewise.
10879 * intl/gettext.c: Likewise.
10880 * intl/l10nflist.c: Likewise.
10881 * intl/loadmsgcat.c: Likewise.
10882 * intl/localealias.c: Likewise.
10883 * intl/ngettext.c: Likewise.
10884 * intl/textdomain.c: Likewise.
10885 * intl/gettext.h: Assume <limits.h> exists.
10887 2001-11-27 Ulrich Drepper <drepper@redhat.com>
10889 * stdio-common/Makefile (tests): Add scanf11.
10890 * stdio-common/scanf11.c: New file.
10892 2001-11-26 Ulrich Drepper <drepper@redhat.com>
10894 * version.h (RELEASE): Define as development.
10895 (VERSION): Set to 2.2.90.
10897 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
10899 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
10900 * nis/nss_nis/nis-grp.c: Likewise.
10901 * nis/nss_nisplus/nisplus-grp.c: Likewise.
10903 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
10904 * nis/nss_nis/nis-pwd.c: Likewise.
10905 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
10907 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
10908 * nis/nss_nisplus/nisplus-parser.c: Likewise.
10909 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10911 * nscd/grpcache.c: Use strtoul instead of atol.
10912 * nscd/pwdcache.c: Likewise.
10913 * nss/getent.c: Likewise.
10915 2001-11-27 Paul Eggert <eggert@twinsun.com>
10917 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10918 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10920 2001-11-19 Bruno Haible <bruno@clisp.org>
10922 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
10924 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
10925 improves the quality of the hash function, especially for short
10928 2001-11-26 Ulrich Drepper <drepper@redhat.com>
10930 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
10931 are found call conv_error and not input_error [PR libc/2669].
10933 * math/bits/mathcalls.h: Mark ceil and floor as const.
10934 Reported by David Mosberger.
10936 2001-11-21 Jim Meyering <meyering@lucent.com>
10938 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
10939 Define to be __-prefixed.
10940 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
10942 2001-11-26 Andreas Jaeger <aj@suse.de>
10944 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
10947 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
10949 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
10952 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
10953 unused variables. Fix threshold for returning 1.0.
10955 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
10958 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
10959 remove unused variables.
10961 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
10963 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
10964 include local math header files.
10966 2001-11-22 Andreas Jaeger <aj@suse.de>
10968 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
10971 2001-11-21 Andreas Jaeger <aj@suse.de>
10973 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
10975 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
10978 2001-11-15 Andreas Jaeger <aj@suse.de>
10980 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
10981 compilers that support it.
10983 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
10984 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
10985 * stdlib/stdlib.h: Likewise.
10987 2001-11-17 Ulrich Drepper <drepper@redhat.com>
10989 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
10990 statement with gotos.
10991 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
10993 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
10995 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
10997 2001-11-15 Ulrich Drepper <drepper@redhat.com>
10999 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11001 2001-10-02 Jakub Jelinek <jakub@redhat.com>
11002 H.J. Lu <hjl@gnu.org>
11004 * Versions.def (libc): Add GCC_3.0.
11005 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11006 if gcc supports this flag.
11007 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11008 (gcc3): Allow glibc to be compiled with gcc 3.x.
11009 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11010 * config.make.in (static-libgcc, unwind-find-fde): Add.
11011 * Makerules (build-shlib-helper, build-module-helper): Use it.
11012 * scripts/versions.awk: Make sure GLIBC_ versions come first.
11013 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11015 (_fini): Call __deregister_frame_info_bases if
11016 __register_frame_info_bases was used to register.
11017 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11019 (__register_frame_info_bases, __register_frame_info_table_bases,
11020 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11021 * elf/Makefile (routines): Add unwind-dw2-fde.
11022 (shared-only-routines): Add unwind-dw2-fde.
11023 * sysdeps/alpha/gccframe.h: New file.
11024 * sysdeps/arm/gccframe.h: New file.
11025 * sysdeps/generic/framestate.c: New file.
11026 * sysdeps/generic/dwarf2.h: New file.
11027 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11028 * sysdeps/generic/unwind-dw2-fde.c: New file.
11029 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11030 * sysdeps/generic/unwind-dw2-fde.h: New file.
11031 * sysdeps/generic/unwind-dw2.c: New file.
11032 * sysdeps/generic/unwind-pe.h: New file.
11033 * sysdeps/generic/unwind.h: New file.
11034 * sysdeps/hppa/gccframe.h: New file.
11035 * sysdeps/i386/gccframe.h: New file.
11036 * sysdeps/m68k/gccframe.h: New file.
11037 * sysdeps/mips/gccframe.h: New file.
11038 * sysdeps/powerpc/gccframe.h: New file.
11039 * sysdeps/s390/gccframe.h: New file.
11040 * sysdeps/sh/gccframe.h: New file.
11041 * sysdeps/sparc/gccframe.h: New file.
11042 * sysdeps/vax/gccframe.h: New file.
11043 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11044 Set on all architectures except ia64.
11045 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11047 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11048 __deregister_frame_info): Move to elf/Versions.
11049 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11050 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11051 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11052 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11053 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11054 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11055 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11056 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11057 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11058 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11059 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11060 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11061 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11062 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11063 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11064 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11065 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11066 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11068 2001-11-15 Jeff Law <law@redhat.com>
11070 * posix/regex.c (uintptr_t): Do not provide a definition if the
11071 system provided one.
11073 2001-11-13 Roland McGrath <roland@frob.com>
11075 * stdio-common/tmpfile.c: Moved to ...
11076 * sysdeps/generic/tmpfile.c: ... here.
11077 * sysdeps/mach/hurd/tmpfile.c: New file.
11079 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11080 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11081 (fopenport): Define as weak alias.
11083 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11084 * libio/libioP.h: ... to here.
11086 2001-11-12 Ulrich Drepper <drepper@redhat.com>
11088 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11089 program header twice. Construct list with the needed information.
11091 2001-11-10 Ulrich Drepper <drepper@redhat.com>
11093 * po/ca.po: Update from translation team.
11095 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11096 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
11097 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11098 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11100 2001-11-10 Andreas Jaeger <aj@suse.de>
11102 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11103 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11104 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11106 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11108 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11110 * elf/dl-load.c (is_dst): New function.
11111 (_dl_dst_count): Use is_dst to check for DST variable.
11112 (_dl_dst_substitute): Likewise.
11114 2001-11-09 Roland McGrath <roland@frob.com>
11116 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11117 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11118 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11119 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11120 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11121 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11122 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11123 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11124 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11125 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11126 * sysdeps/mach/hurd/powerpc/Dist: New file.
11128 * hurd/privports.c (__get_privileged_ports):
11129 Only contact the proc server if necessary for this call.
11130 Suggested by Neal H Walfield <neal@cs.uml.edu>.
11131 Check error return for mach_port_mod_refs.
11133 2001-11-09 Andreas Schwab <schwab@suse.de>
11135 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11137 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11139 * elf/dl-load.c (lose): Remove some unnecessary code. The new
11140 object is always the last in the list.
11141 (_dl_map_object_from_fd): Delete code to remove from object list
11142 when DF_1_NOOPEN is seen. This is done in lose.
11144 2001-11-08 Ulrich Drepper <drepper@redhat.com>
11146 * elf/dl-object.c (_dl_new_object): Various small optimizations.
11148 2001-11-07 Ulrich Drepper <drepper@redhat.com>
11150 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11151 HWCAP_CHECK macro code.
11153 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11154 Now returns MAP_FAILED on error.
11155 * elf/rtld.c: Adjust caller.
11156 * sysdeps/generic/dl-cache.c: Likewise.
11157 * sysdeps/generic/ldsodefs.h: Adjust description.
11159 * elf/dl-version.c (match_symbol): Optimize error handling for size.
11160 (_dl_check_map_versions): Likewise.
11162 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11164 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11165 _dl_signal_error directly, always use lose. Set fd to -1 after
11167 (lose): Don't call close if fd == -1.
11169 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
11171 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
11172 Also fix typo @code {mbsinit} to @code{mbsinit}.
11174 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11176 * elf/dl-profile.c: Replace state variable with simple flag named
11177 running. Remove commented-out code.
11179 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11180 (_dl_init_paths): Likewise.
11181 (_dl_map_object_from_fd): Likewise.
11182 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11184 2001-11-06 Roland McGrath <roland@frob.com>
11186 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11187 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11189 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11190 sysdeps/powerpc/elf/sysdep.h.
11191 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11193 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11195 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
11197 (process_envvars): Some more optimizations.
11198 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11200 * elf/elf.h: Add dynamic tag definitions for prelinking.
11202 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11203 Rewrite code to remove environment varables for SUID binaries.
11204 Small optimization in LD_PROFILE handling.
11205 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11207 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11209 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11211 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11212 strings. Change type of second parameter.
11213 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11216 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11218 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
11220 * manual/string.texi: Fix typos.
11221 * manual/examples/argp-ex2.c: Likewise.
11223 2001-11-05 Roland McGrath <roland@frob.com>
11225 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11226 the more-specific unix/sysv/linux/powerpc file and breaks everything.
11227 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11228 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11229 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11230 here, put under [__ELF__].
11232 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11234 * manual/charset.texi: Extensive editing work.
11235 * manual/nss.texi: Likewise.
11236 Changes by Dennis Grace <dgrace@us.ibm.com>.
11238 2001-11-04 Roland McGrath <roland@frob.com>
11240 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11241 parameter to dir_mkfile.
11243 2001-11-02 Jakub Jelinek <jakub@redhat.com>
11245 * string/bits/string2.h (__strndup): If n is smaller than len, set
11247 * string/tester.c (test_strndup): New function.
11250 2001-11-01 Ulrich Drepper <drepper@redhat.com>
11252 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11254 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11255 * scripts/cpp: New file.
11257 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11258 for rtld_search_dirs content. Minor optimizations.
11260 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11262 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11263 avoiding unnecessary duplication.
11265 2001-10-31 Jakub Jelinek <jakub@redhat.com>
11267 * elf/dl-load.c (_dl_map_object): If library was found using
11268 LD_LIBRARY_PATH, don't try RUNPATH list.
11270 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
11272 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11273 Correct second argument of register_dump call.
11274 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11277 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11279 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11281 * iconvdata/TESTS: Likewise.
11282 * iconvdata/gconv-modules: Likewise.
11283 * iconvdata/ibm1132.c: New file.
11284 * iconvdata/ibm1132.h: New file.
11285 * iconvdata/ibm1133.c: New file.
11286 * iconvdata/ibm1133.h: New file.
11287 * iconvdata/ibm1162.c: New file.
11288 * iconvdata/ibm1162.h: New file.
11289 * iconvdata/testdata/IBM1132: New file.
11290 * iconvdata/testdata/IBM1132..UTF8: New file.
11291 * iconvdata/testdata/IBM1133: New file.
11292 * iconvdata/testdata/IBM1133..UTF8: New file.
11293 * iconvdata/testdata/IBM1162: New file.
11294 * iconvdata/testdata/IBM1162..UTF8: New file.
11295 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11297 * string/string.h: Fix typo in comment.
11298 * wcsmbs/wchar.h: Likewise.
11300 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
11302 * manual/getopt.texi (getopt_long, getopt_long_only): Include
11303 const in type of longopts parameter.
11305 2001-10-29 Andreas Jaeger <aj@suse.de>
11307 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11309 2001-10-29 Kevin Ryde <user42@zip.com.au>
11311 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11312 output, clarify `#' behaviour on 0.
11313 (Floating-Point Conversions): Clarify that %g only uses %e when
11314 the exponent would be greater than 1.
11316 2001-10-28 Roland McGrath <roland@frob.com>
11318 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11319 * sysdeps/mach/powerpc/machine-sp.h: New file.
11320 * sysdeps/mach/powerpc/sysdep.h: New file.
11321 * sysdeps/mach/powerpc/thread_state.h: New file.
11323 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11324 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
11325 expect to need the same thing on every platform.
11327 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11328 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11330 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11331 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11332 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11333 Move all these assembly-related definitions to ...
11334 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11336 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11337 by Peter Bruin <pjbruin@dds.nl>.
11339 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11340 packing results for a `poll' call.
11342 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11344 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11346 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11347 bracket expression.
11349 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11351 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11353 2001-10-24 H.J. Lu <hjl@gnu.org>
11355 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11356 Use __BEGIN_DECLS/__END_DECLS around prototypes.
11357 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11359 2001-10-21 Jim Meyering <meyering@lucent.com>
11361 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
11362 this code would end up calling gettext even in packages built
11363 with --disable-nls.
11364 * posix/getopt.c (_): Likewise.
11365 * posix/regex.c (_): Likewise.
11367 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11369 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11370 lookup not ip6.int.
11371 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11372 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11374 2001-10-19 Jakub Jelinek <jakub@redhat.com>
11376 * misc/sys/cdefs.h (__attribute_used__): Define.
11377 * elf/rtld.c (_dl_start): Add __attribute_used__.
11378 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11380 2001-10-25 Andreas Schwab <schwab@suse.de>
11382 * stdlib/a64l.c: Expect least significant digit first.
11383 * stdlib/l64a.c: Produce least significant digit first.
11384 * stdlib/Makefile (tests): Add test-a64l.
11385 * stdlib/test-a64l.c: New file.
11386 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11388 2001-10-21 Ulrich Drepper <drepper@redhat.com>
11390 * po/sk.po: Update from translation team.
11392 2001-10-18 Ulrich Drepper <drepper@redhat.com>
11394 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11396 2001-10-18 Andreas Schwab <schwab@suse.de>
11398 * math/libm-test.inc (print_ulps): Print ulp values rounded to
11400 (print_function_ulps): Likewise.
11401 (print_complex_function_ulps): Likewise.
11402 (print_max_error): Likewise.
11403 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
11405 2001-10-16 Andreas Schwab <schwab@suse.de>
11407 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11410 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11411 BSD_SETJMP or BSD__SETJMP is defined, resp.
11412 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11413 a tail call to __sigsetjmp that would require extending the
11415 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11416 * sysdeps/m68k/bsd-setjmp.S: Deleted.
11417 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11418 Reported by Jes Sorensen <jes@trained-monkey.org>.
11420 2001-10-16 Andreas Jaeger <aj@suse.de>
11422 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11423 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
11424 close PR libc/2589.
11426 2001-10-15 Ulrich Drepper <drepper@redhat.com>
11428 * po/ca.po: New file. Contributed by the translation team.
11430 2001-10-15 Ralf Baechle <ralf@gnu.org>
11432 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11433 a varargs prototype. Remove dependency from kernel header files.
11435 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11436 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11438 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11440 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11441 to generate hexadecimal identifier.
11442 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11444 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
11446 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11448 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11450 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11451 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11452 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11454 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11455 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11456 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11457 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11458 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11459 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11461 * timezone/africa: Update from tzdata2001d.
11462 * timezone/asia: Likewise.
11463 * timezone/australasia: Likewise.
11464 * timezone/backward: Likewise.
11465 * timezone/europe: Likewise.
11466 * timezone/leapseconds: Likewise.
11467 * timezone/northamerica: Likewise.
11468 * timezone/southamerica: Likewise.
11469 * timezone/zone.tab: Likewise.
11471 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
11473 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11474 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11476 2001-10-12 Ulrich Drepper <drepper@redhat.com>
11478 * elf/elf.h (PT_TLS): New definition.
11480 2001-10-10 Jeff Bailey <jbailey@nisa.net>
11482 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11485 2001-10-07 Roland McGrath <roland@frob.com>
11487 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11489 2001-10-10 Ulrich Drepper <drepper@redhat.com>
11491 * elf/elf.h: Add more ELFOSABI_* constants.
11493 2001-10-04 Ben Collins <bcollins@debian.org>
11495 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11496 decleration of __need_wchar_t.
11498 2001-10-03 Jakub Jelinek <jakub@redhat.com>
11500 * string/bits/string2.h (__strsep_g): Add prototype.
11501 (__strsep): Use it.
11502 * string/Versions (__strsep): Remove.
11503 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11505 2001-10-07 Ulrich Drepper <drepper@redhat.com>
11507 * manua/llio.texi: Clarify file references added by mmap.
11508 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11510 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
11512 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11513 Add sc_loadrs and sc_rbs_bas to match current kernel.
11515 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11517 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11519 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11521 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11523 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11524 object has been bumped because of relocation dependency, avoid
11525 duplicates in l_scope.
11526 (show_scope): Fix typos.
11527 * elf/Makefile: Add rules to build and run reldep6.
11528 * elf/reldep6.c: New file.
11529 * elf/reldep6mod0.c: New file.
11530 * elf/reldep6mod1.c: New file.
11531 * elf/reldep6mod2.c: New file.
11532 * elf/reldep6mod3.c: New file.
11533 * elf/reldep6mod4.c: New file.
11535 2001-09-26 Jakub Jelinek <jakub@redhat.com>
11537 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11539 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
11540 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11541 for non-lazy binding. Fix .plt[32768+] handling.
11542 (elf_machine_plt_value): Don't add addend.
11543 (elf_machine_rela): Call sparc64_fixup_plt instead of
11544 elf_machine_fixup_plt.
11545 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11546 dynamic linker at 0xfffff800XXXXXXXX.
11548 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11550 2001-09-28 Ulrich Drepper <drepper@redhat.com>
11552 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11554 2001-09-25 Jakub Jelinek <jakub@redhat.com>
11556 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11557 declare __cmsg_data field if its size would be bigger than 0.
11558 (CMSG_DATA): Adjust accordingly.
11559 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11560 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11561 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11562 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11563 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11564 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11565 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11567 2001-09-25 Ulrich Drepper <drepper@redhat.com>
11569 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11570 * iconvdata/testdata/IBM1160: New file.
11571 * iconvdata/testdata/IBM1160..UTF8: New file.
11572 * iconvdata/testdata/IBM1161: New file.
11573 * iconvdata/testdata/IBM1161..UTF8: New file.
11574 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11576 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11578 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11579 UL_SETFSIZE computations better.
11581 * rt/Makefile: Remove use of filter for librt again.
11583 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11584 UL_SETFSIZE computations better.
11586 * string/Versions: Export __strsep for GLIBC_2.2.5.
11587 * string/bits/string2.h: Define all __STRING_INLINE functions if
11588 _FORCE_INLINES is defined.
11589 Use int instead of char of parameter types.
11590 (__strsep): Don't use __strsep_g. Don't define it.
11591 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11592 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11594 (__stpcpy_a_small): Renamed from __stpcpy_small.
11595 (__strcspn_c1): Don't define if _FORCE_INLINES.
11596 (__strspn_c1): Likewise.
11598 2001-09-22 Ben Collins <bcollins@debian.org>
11600 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11601 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
11602 * sysdeps/ia64/bits/sigaction.h: Likewise.
11603 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11605 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
11607 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11609 2001-09-24 Jakub Jelinek <jakub@redhat.com>
11611 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11613 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11615 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11617 2001-09-20 H.J. Lu <hjl@gnu.org>
11619 * include/dlfcn.h (__RTLD_SPROF): New definiton.
11620 * elf/dl-open.c (dl_open_worker): Return immediately after loading
11622 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11623 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11625 2001-09-20 H.J. Lu <hjl@gnu.org>
11627 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11630 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11632 * nss/getent.c: Accept -s parameter to overwrite rules in
11633 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
11635 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11636 with as many ".0" as necessary to form a complete address
11637 inet_network understands.
11639 * nss/getent.c: Various cleanups. Use simpler and fewer function
11642 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11644 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11646 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11648 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11650 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11652 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11653 * iconvdata/ibm1160.c: New file.
11654 * iconvdata/ibm1160.h: New file.
11655 * iconvdata/ibm1161.c: New file.
11656 * iconvdata/ibm1161.h: New file.
11657 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11659 2001-09-19 Jakub Jelinek <jakub@redhat.com>
11661 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11662 difference between base address and first PT_LOAD's virtual address,
11663 not the base address.
11665 2001-09-11 Tom Rix <trix@redhat.com>
11667 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
11668 ifdef for __getopt_clean_environment.
11669 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11671 2001-09-22 Andreas Jaeger <aj@suse.de>
11673 * elf/reldep4.c (main): Add proper prototype to fix warning.
11675 * elf/reldep5.c (main): Remove unused variable.
11677 * math/math_private.h: Add prototypes.
11679 2001-09-21 Andreas Jaeger <aj@suse.de>
11681 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11682 * sysdeps/x86_64/Dist: New file.
11683 * sysdeps/x86_64/soft-fp/Dist: New file.
11685 * sysdeps/gnu/Dist: Remove eval.c.
11687 2001-09-20 Ulrich Drepper <drepper@redhat.com>
11689 * malloc/memusage.c (realloc): Don't count already allocated
11690 memory in the sums.
11691 (me): Always use dlsym() to find the real implementations.
11693 * malloc/memusage.sh: Make -n option actually do something.
11695 2001-09-20 Andreas Jaeger <aj@suse.de>
11697 * elf/elf.h (R_390_NUM): Correct value.
11699 * Versions.def: Add missing versions 2.2.3 for libthread_db and
11702 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11703 for x86-64, install x86-64 into */lib64.
11705 * shlib-versions: Add x86-64.
11707 * elf/elf.h: Add x86-64 relocations.
11709 2001-09-19 Ulrich Drepper <drepper@redhat.com>
11711 * po/fr.po: Update from translation team.
11713 2001-09-19 Andreas Jaeger <aj@suse.de>
11715 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11716 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11717 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11718 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11719 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11720 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11721 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11722 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11723 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11724 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11725 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11726 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11727 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11728 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11729 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11730 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11731 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11732 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11733 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11734 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11735 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11736 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11737 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11738 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11739 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11740 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11741 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11742 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11743 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11744 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11745 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11746 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11747 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11748 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11749 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11750 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11751 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11752 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11753 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11754 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11755 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11756 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11757 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11758 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11759 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11760 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11761 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11762 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11763 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11764 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11765 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11766 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11767 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11768 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11769 * sysdeps/unix/x86_64/sysdep.S: New file.
11770 * sysdeps/unix/x86_64/sysdep.h: New file.
11771 * sysdeps/x86_64/Implies: New file.
11772 * sysdeps/x86_64/Makefile: New file.
11773 * sysdeps/x86_64/Versions: New file.
11774 * sysdeps/x86_64/__longjmp.S: New file.
11775 * sysdeps/x86_64/abort-instr.h: New file.
11776 * sysdeps/x86_64/atomicity.h: New file.
11777 * sysdeps/x86_64/bits/endian.h: New file.
11778 * sysdeps/x86_64/bits/setjmp.h: New file.
11779 * sysdeps/x86_64/bits/string.h: New file.
11780 * sysdeps/x86_64/bp-asm.h: New file.
11781 * sysdeps/x86_64/bsd-_setjmp.S: New file.
11782 * sysdeps/x86_64/bsd-setjmp.S: New file.
11783 * sysdeps/x86_64/dl-machine.h: New file.
11784 * sysdeps/x86_64/elf/initfini.c: New file.
11785 * sysdeps/x86_64/elf/start.S: New file.
11786 * sysdeps/x86_64/ffs.c: New file.
11787 * sysdeps/x86_64/ffsll.c: New file.
11788 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11789 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11790 * sysdeps/x86_64/fpu/e_acosl.c: New file.
11791 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11792 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11793 * sysdeps/x86_64/fpu/e_expl.c: New file.
11794 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11795 * sysdeps/x86_64/fpu/e_log10l.S: New file.
11796 * sysdeps/x86_64/fpu/e_log2l.S: New file.
11797 * sysdeps/x86_64/fpu/e_logl.S: New file.
11798 * sysdeps/x86_64/fpu/e_powl.S: New file.
11799 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11800 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11801 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11802 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11803 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11804 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11805 * sysdeps/x86_64/fpu/fegetenv.c: New file.
11806 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11807 * sysdeps/x86_64/fpu/fegetround.c: New file.
11808 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11809 * sysdeps/x86_64/fpu/fesetenv.c: New file.
11810 * sysdeps/x86_64/fpu/fesetround.c: New file.
11811 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
11812 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
11813 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
11814 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
11815 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
11816 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
11817 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
11818 * sysdeps/x86_64/fpu/s_atanl.c: New file.
11819 * sysdeps/x86_64/fpu/s_cosl.S: New file.
11820 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
11821 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
11822 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
11823 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
11824 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
11825 * sysdeps/x86_64/fpu/s_logbl.c: New file.
11826 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
11827 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
11828 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
11829 * sysdeps/x86_64/fpu/s_rintl.c: New file.
11830 * sysdeps/x86_64/fpu/s_significandl.c: New file.
11831 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
11832 * sysdeps/x86_64/fpu/s_sinl.S: New file.
11833 * sysdeps/x86_64/fpu/s_tanl.S: New file.
11834 * sysdeps/x86_64/gmp-mparam.h: New file.
11835 * sysdeps/x86_64/hp-timing.c: New file.
11836 * sysdeps/x86_64/hp-timing.h: New file.
11837 * sysdeps/x86_64/htonl.S: New file.
11838 * sysdeps/x86_64/memusage.h: New file.
11839 * sysdeps/x86_64/setjmp.S: New file.
11840 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
11841 * sysdeps/x86_64/stackinfo.h: New file.
11842 * sysdeps/x86_64/sysdep.h: New file.
11843 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
11845 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
11848 2001-09-18 Ulrich Drepper <drepper@redhat.com>
11850 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
11851 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
11853 2001-09-18 Andreas Schwab <schwab@suse.de>
11855 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
11856 list, now that l_scope is a pointer.
11858 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
11861 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
11863 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
11864 (elf_machine_rela_relative): Add a missing declaration.
11866 2001-09-18 Jakub Jelinek <jakub@redhat.com>
11868 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
11869 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
11870 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
11871 ldd-rewrite scripts.
11873 2001-09-18 Ulrich Drepper <drepper@redhat.com>
11875 * elf/ldd.bash.in: Update copyright message.
11877 2001-09-17 H.J. Lu <hjl@gnu.org>
11879 * hurd/hurdmalloc.c (bcopy): Removed.
11880 (realloc): Replace bcopy with memcpy.
11881 * hurd/path-lookup.c (file_name_path_scan): Likewise.
11882 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
11883 * sunrpc/rpcinfo.c (pmapdump): Likewise.
11885 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
11886 (gethostbyaddr): Likewise.
11887 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
11889 2001-09-18 Ulrich Drepper <drepper@redhat.com>
11891 * sysdeps/gnu/eval.c: Removed.
11893 2001-09-18 Andreas Jaeger <aj@suse.de>
11895 * sysdeps/i386/fpu/s_logbl.S: Move to ...
11896 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
11898 * sysdeps/i386/fpu/s_rintl.S: Move to ...
11899 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
11901 * sysdeps/i386/fpu/s_significandl.S: Move to ...
11902 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
11904 2001-09-16 Ulrich Drepper <drepper@redhat.com>
11906 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11909 2001-09-14 H.J. Lu <hjl@gnu.org>
11911 * sysdeps/mips/fpu/libm-test-ulps: Updated.
11913 2001-09-14 Ulrich Drepper <drepper@redhat.com>
11915 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
11916 Patch by Florian La Roche <laroche@redhat.com>.
11918 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
11920 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
11923 2001-09-14 Andreas Schwab <schwab@suse.de>
11925 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
11926 Sumner <bls@sgi.com>.
11927 * posix/execlp.c: Likewise.
11929 2001-09-13 Jakub Jelinek <jakub@redhat.com>
11931 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
11932 is already found earlier in the search scope.
11934 2001-09-12 Jakub Jelinek <jakub@redhat.com>
11936 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
11939 2001-09-13 Ulrich Drepper <drepper@redhat.com>
11941 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
11943 2001-09-12 Ulrich Drepper <drepper@redhat.com>
11945 * config.h.in: Enforce optimization to be used.
11946 * Makeconfig (preprocess-versions): Define ASSEMBLER.
11947 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
11948 * posix/Makefile (annexc-CFLAGS): Define to -O.
11949 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
11951 2001-09-11 Ulrich Drepper <drepper@redhat.com>
11953 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
11954 Patch by Stephan Kulow.
11956 2001-09-08 Ben Collins <bcollins@debian.org>
11958 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
11959 usage of RESOLVE() (r_type, not reloc->r_type).
11961 2001-09-08 Ulrich Drepper <drepper@redhat.com>
11963 * elf/dl-object.c: Avoid allocating extra memory block for name.
11964 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
11965 allocated separately.
11966 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
11968 2001-09-08 H.J. Lu <hjl@gnu.org>
11970 * po/zh_TW.po: Fix a typo.
11972 2001-09-07 Tom Rix <trix@redhat.com>
11974 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
11976 2001-08-26 Tom Rix <trix@redhat.com>
11978 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
11979 command line options.
11980 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
11981 * sysdeps/unix/sysv/aix/start.c: Removed.
11982 * sysdeps/unix/sysv/aix/start-libc.c: New file.
11983 * sysdeps/unix/sysv/aix/init-first.c: New file.
11984 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
11986 2001-09-08 Ben Collins <bcollins@debian.org>
11988 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
11989 * sysdeps/generic/dl-machine.h: Likewise.
11990 * sysdeps/hppa/dl-fptr.c: Likewise.
11991 * sysdeps/ia64/dl-fptr.c: Likewise.
11992 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
11993 * sysdeps/mips/dl-machine.h: Likewise.
11994 * sysdeps/mips/mips64/dl-machine.h: Likewise.
11995 * sysdeps/powerpc/dl-machine.c: Likewise.
11997 2001-09-07 Ben Collins <bcollins@debian.org>
11999 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12001 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12003 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12005 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12006 dependencies if necessary.
12008 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12009 loaded directly) determine length if l_initfini list by iterating
12010 over its elements. Minor optimizations.
12011 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12012 for dependency objects.
12013 If object was already loaded check whether any of the dependencies
12014 is already on the relocation dependency list. If yes, remove the
12015 latter. Minor optimizations.
12016 * elf/dl-lookup.c (add_dependency): Add check for self reference of
12017 maps here. Search l_initfini list only if the object was loaded
12018 directly and not only as a dependency.
12019 (_dl_lookup_symbol): Add relocation dependency also if object
12020 is not in global scope. Remove test for self-reference here.
12021 (_dl_lookup_versioned_symbol): Likewise.
12022 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
12023 element of first name record.
12024 * elf/loadtest.c: Add some more test to recognize early if an object
12026 * elf/Makefile: Add rules to build and run reldep5.
12027 * elf/reldep5.c: New file.
12028 * elf/reldepmod5.c: New file.
12029 * elf/reldepmod6.c: New file.
12031 * elf/reldep2.c: Fix typo.
12033 2001-09-07 Ulrich Drepper <drepper@redhat.com>
12035 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12036 elements. Change l_scope to be a pointer only.
12037 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12038 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12039 here add searchlist of newly open file to the dependency's scope.
12040 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12041 only searchlist from its scope. Free own scope array if necessary.
12042 * elf/Makefile (tests): Add dblload and dblunload now.
12044 2001-09-06 Andreas Jaeger <aj@suse.de>
12046 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12049 2001-09-05 Ulrich Drepper <drepper@redhat.com>
12051 * elf/Makefile: Add rules to build new tests. Don't run them yet since
12053 * elf/dblload.c: New file.
12054 * elf/dblloadmod1.c: New file.
12055 * elf/dblloadmod2.c: New file.
12056 * elf/dblloadmod3.c: New file.
12057 * elf/dblunload.c: New file.
12059 2001-09-04 Richard Henderson <rth@redhat.com>
12061 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12062 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12064 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12066 Correct very misleading message for error in failed runtime relocation.
12067 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12068 place of the error.
12069 (_dl_signal_cerror): Likewise.
12070 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12071 * elf/dl-close.c: Likewise.
12072 * elf/dl-deps.c: Likewise.
12073 * elf/dl-load.c: Likewise.
12074 * elf/dl-lookup.c: Likewise.
12075 * elf/dl-open.c: Likewise.
12076 * elf/dl-reloc.c: Likewise.
12077 * elf/dl-sym.c: Likewise.
12078 * elf/dl-version.c: Likewise.
12079 * sysdeps/generic/dl-sysdep.c: Likewise.
12081 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12083 * iconv/strtab.c (strtabinit): Initialize null Strent.
12084 (newstring): Move len == 0 handling...
12085 (strtabadd): ...here.
12086 If len == 1, return null Strent.
12087 When inserting a suffix of an existing string, check if
12088 it is not equal to some suffix already recorded.
12089 Copy left and right members over if adding longer string.
12091 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12093 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12095 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12096 (__syscall_gethostname): Add prototype.
12098 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12100 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12102 2001-09-02 Ulrich Drepper <drepper@redhat.com>
12104 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12106 2001-08-27 Roland McGrath <roland@frob.com>
12108 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12109 short, copy that much into NAME anyway before returning error.
12111 2001-09-01 Richard Henderson <rth@redhat.com>
12113 * sysdeps/alpha/elf/Dist: Remove file.
12114 * sysdeps/alpha/elf/Makefile: Remove file.
12115 * sysdeps/alpha/elf/crtbegin.S: Remove file.
12116 * sysdeps/alpha/elf/crtend.S: Remove file.
12117 * sysdeps/alpha/elf/initfini.c: New file.
12119 2001-09-01 Mark Kettenis <kettenis@gnu.org>
12121 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12122 * iconv/tst-iconv3.c: Likewise.
12124 2001-09-01 Jakub Jelinek <jakub@redhat.com>
12126 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12128 2001-09-01 Ulrich Drepper <drepper@redhat.com>
12130 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12132 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12133 * iconv/iconv_prog.c (insert_cache): New function.
12134 (print_known_names): If cache is used call insert_cache to use the
12135 information from the cache [PR libc/2509].
12137 2001-08-31 Ulrich Drepper <drepper@redhat.com>
12139 * time/strptime.c (strptime_internal): Recognize 'l' format and
12140 handle it like 'I' for symmetry with strftime.
12142 2001-08-31 Richard Henderson <rth@redhat.com>
12144 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12145 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12146 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12147 (print_statistics): Make scalar unsigned long long.
12148 * sysdeps/alpha/hp-timing.h: New file.
12150 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12152 * stdio-common/perror.c (perror): Save errno early, pass it
12153 down to perror_internal.
12154 (perror_internal): Add errnum argument.
12156 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12158 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12159 Don't add old memory content for R_ALPHA_REFQUAD.
12161 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12163 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12166 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12167 instead of open, __close instead of close, __getpagesize instead
12170 * string/argz-stringify.c (__argz_stringify): Use __strnlen
12171 instead of strnlen.
12172 * include/string.h (strndupa): Redefine here to use __strnlen
12173 instead of strnlen.
12174 * string/strndup.c (__strndup): Use __strnlen not strnlen.
12176 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12179 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12181 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12182 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
12183 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12184 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12185 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12186 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12187 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12189 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12191 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12193 2001-08-30 Andreas Jaeger <aj@suse.de>
12195 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12196 contributed Stephen L Moshier.
12198 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12200 * sunrpc/etc.rpc (sgi_fam): Add.
12202 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12204 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12206 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12208 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12209 first is from a previous call.
12210 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12212 2001-08-29 Andreas Schwab <schwab@suse.de>
12214 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12216 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12218 * config.make.in (INSTALL_SCRIPT): Define.
12219 * Makeconfig (INSTALL_SCRIPT): Define.
12220 * Makerules (do-install-script): New macro to install scripts using
12222 (install-bin-script): New rule to install scripts with
12224 (install-bin-script-nosubdir): New rule.
12225 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12226 (distinfo-vars): Add $(install-bin-script).
12227 * Rules (others): Likewise.
12228 * Makefile (glibcbug): Install with install-bin-script.
12229 * debug/Makefile (xtrace): Likewise.
12230 (catchsegv): Likewise.
12231 * elf/Makefile (ldd): Likewise.
12232 * malloc/Makefile (mtrace): Likewise.
12233 * timezone/Makefile (tzselect): Likewise.
12235 2001-08-29 H.J. Lu <hjl@gnu.org>
12237 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12238 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12239 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12241 2001-08-29 Andreas Schwab <schwab@suse.de>
12243 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12245 2001-08-28 H.J. Lu <hjl@gnu.org>
12247 * Makeconfig (combreloc-LDFLAGS): New variable.
12248 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12249 * config.make.in (have-z-combreloc): New variable.
12250 * configure.in: Substitute libc_cv_z_combreloc.
12252 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12254 * po/sv.po: Update from translation team.
12255 * po/fr.po: Likewise.
12256 * po/da.po: Likewise.
12258 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12260 * Makerules: Fix a typo: MD% -> MD5.
12262 2001-08-28 Ulrich Drepper <drepper@redhat.com>
12264 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12265 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12267 2001-08-28 Andreas Jaeger <aj@suse.de>
12269 * manual/libc-texinfo.sh: Add entry about free manuals.
12271 * manual/contrib.texi (Contributors): Fix cross reference.
12273 * manual/libc.texinfo (Copying): Include freemanuals.
12275 * manual/Makefile (appendices): Add freemanuals.
12277 * manual/freemanuals.texi: New file.
12278 Patch by Brian Youmans <3diff@gnu.org>.
12280 * manual/libm-err-tab.pl: Pretty print more platforms, print a
12283 * manual/math.texi (Errors in Math Functions): Fix grammar, start
12284 table on separate page.
12285 Patch by Brian Youmans <3diff@gnu.org>.
12287 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12289 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
12290 the connection went down after we first used it try to connect
12291 again and resend the message before printing to the console.
12292 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12294 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12296 * string/tst-strlen.c (main): Test strnlen (, -1) too.
12297 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12300 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12302 * iconv/strtab.c (searchstring): Use correct length for comparison.
12303 (strtabadd): Account total size correct if new string has old string as
12306 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12308 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12310 2001-08-27 Andreas Jaeger <aj@suse.de>
12312 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12314 * math/libm-test.inc (j0_test): Add extra tests.
12315 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12316 not x, in Hankel approximation.
12317 Patches by Stephen L Moshier.
12319 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12321 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12324 * configure.in: Fix test for .rela.dyn section.
12326 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12328 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12330 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12331 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12332 Pass type_class to _dl_lookup_*.
12333 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12334 Pass around just type_class instead of noexec, noplt pair.
12335 (_dl_lookup_versioned_symbol): Likewise.
12336 (_dl_lookup_symbol_skip): Pass around just type_class instead of
12337 noexec, noplt pair.
12338 (_dl_lookup_versioned_symbol_skip): Likewise.
12339 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12340 * elf/do-lookup.h (do_lookup): Likewise.
12341 * include/link.h (struct link_map): Replace noexec and noplt fields
12342 in l_lookup_cache with type_class field.
12343 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12344 ELF_RTYPE_CLASS_COPY): Define.
12345 Adjust prototypes for _dl_lookup_symbol and
12346 _dl_lookup_versioned_symbol.
12347 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12348 elf_machine_lookup_noexec_p): Remove.
12349 (elf_machine_type_class): Define.
12350 * sysdeps/arm/dl-machine.h: Likewise.
12351 * sysdeps/hppa/dl-machine.h: Likewise.
12352 * sysdeps/cris/dl-machine.h: Likewise.
12353 * sysdeps/i386/dl-machine.h: Likewise.
12354 * sysdeps/ia64/dl-machine.h: Likewise.
12355 * sysdeps/m68k/dl-machine.h: Likewise.
12356 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12357 * sysdeps/mips/dl-machine.h: Likewise.
12358 * sysdeps/powerpc/dl-machine.h: Likewise.
12359 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12360 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12361 * sysdeps/sh/dl-machine.h: Likewise.
12362 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12363 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12365 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12367 * manual/message.texi (Advanced gettext functions): Change
12368 description of plural forms for Slovak.
12369 Reported by Marcel Telka <marcel@telka.sk>.
12371 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12372 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12374 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12376 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12377 typo. Patch by Florian La Roche <laroche@redhat.com>.
12379 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12381 * include/link.h (struct link_map): Add l_lookup_cache element.
12382 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12383 (RESOLVE_MAP): Likewise.
12384 (_dl_relocate_object): Remove cache initialization.
12385 * elf/dl-lookup.c: Rip out cache handling code.
12386 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12389 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12390 remove some __builtin_expect.
12391 (_dl_lookup_versioned_symbol): Likewise.
12393 * config.h.in: Add HAVE_Z_COMBRELOC.
12394 * configure.in: Add test for -z combreloc.
12396 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12397 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
12398 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
12399 case to almost no code.
12401 2001-08-25 Ulrich Drepper <drepper@redhat.com>
12403 * po/tr.po: Update from translation team.
12405 2001-08-24 Andreas Jaeger <aj@suse.de>
12407 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12410 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12412 * elf/rtld.c (print_statistics): Printf % after percent values.
12413 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12415 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12416 don't have to compute the hash value and initialize current_value.
12417 Move reference_name variable to where it is needed.
12418 (_dl_lookup_versioned_symbol): Likewise.
12420 2001-08-24 Roland McGrath <roland@frob.com>
12422 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12423 Just test that strerror returns non-null for a few errno codes.
12425 2001-08-23 Roland McGrath <roland@frob.com>
12427 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12428 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12430 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12432 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12435 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12437 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12440 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12441 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12443 * elf/rtld.c: Include <sys/param.h>.
12444 * elf/dl-reloc.c: Likewise.
12446 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12448 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12449 empty to prevent junk from being generated.
12450 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12452 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12454 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12455 records. Rename endrel to relative, initialize it to r, and use it
12456 in elf_machine_rel_relative calls. Point r after relative relocs.
12458 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12460 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12463 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12465 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12466 necessary. Undefine newly defined macros at the end.
12467 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12468 Rename from elf_machine_rel_relative.
12469 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12470 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12471 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12472 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12474 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12476 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12477 Fix argument types.
12478 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12479 Fix argument types.
12480 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12481 Likewise. Fix argument types.
12482 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12483 Likewise. Fix argument types.
12484 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12485 Fix argument types.
12486 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12487 ElfW(Rel) in argument.
12488 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12491 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
12493 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12495 2001-08-24 Andreas Jaeger <aj@suse.de>
12497 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12498 Stephen L Moshier <moshier@mediaone.net>.
12500 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12502 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12503 first if RELCOUNT is set.
12505 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12506 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12507 elf_machine_rel_relative.
12508 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12509 Minor optimizations.
12510 * sysdeps/arm/dl-machine.h: Likewise.
12511 * sysdeps/cris/dl-machine.h: Likewise.
12512 * sysdeps/hppa/dl-machine.h: Likewise.
12513 * sysdeps/i386/dl-machine.h: Likewise.
12514 * sysdeps/ia64/dl-machine.h: Likewise.
12515 * sysdeps/m68k/dl-machine.h: Likewise.
12516 * sysdeps/mips/dl-machine.h: Likewise.
12517 * sysdeps/powerpc/dl-machine.h: Likewise.
12518 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12519 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12520 * sysdeps/sh/dl-machine.h: Likewise.
12521 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12522 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12524 2001-08-23 Roland McGrath <roland@frob.com>
12526 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12528 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12529 sysdeps/mach version. Implement counting ("recursive") mutexes
12530 on top of cthreads mutexes.
12531 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12533 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12534 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12535 (__libc_cleanup_region_start, __libc_cleanup_region_end,
12536 __libc_clean_end): Define these to call the cleanup function after
12537 normal exit when they're supposed to.
12539 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12540 Take new first arg DOIT, a boolean saying whether to really install
12541 any cleanup handler.
12542 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12543 (__libc_cleanup_end): Likewise.
12544 * sysdeps/generic/bits/libc-lock.h: Same changes.
12545 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12546 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12547 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12549 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12550 * sysdeps/generic/bits/stdio-lock.h
12551 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12553 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12555 * elf/ldconfig.c (search_dir): Remove stale symlinks.
12557 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12559 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12561 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12563 (_dl_lookup_versioned_symbol): Likewise.
12564 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12566 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12567 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12568 (lookup_cache, lookup_cache_versioned): Add declarations.
12570 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12572 * stdlib/tst-random.c (main): Swap parameters in fail call.
12573 Patch by Pete Bevin <pete@petebevin.com>.
12575 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12577 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12579 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12581 * malloc/obstack.c: Indent preprocessor directives.
12582 Patch by Jim Meyering <meyering@ascend.com>.
12584 * po/ja.po: Update from translation team.
12586 2001-08-23 Roland McGrath <roland@frob.com>
12588 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12590 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12591 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12593 2001-08-22 Roland McGrath <roland@frob.com>
12595 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12596 __libc_lock_define_recursive.
12597 * elf/dl-open.c: Don't declare it here any more.
12598 * elf/dl-close.c: Likewise.
12599 * elf/dl-lookup.c: Likewise.
12600 * elf/dl-iteratephdr.c: Likewise.
12601 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12602 __libc_lock_unlock_recursive.
12603 * elf/dl-close.c (_dl_close): Likewise
12604 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12605 * elf/dl-open.c (_dl_open): Likewise
12607 * sysdeps/generic/bits/libc-lock.h
12608 (__libc_lock_define_recursive): New macro.
12609 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12610 (_IO_lock_lock): Use __libc_lock_lock_recursive.
12611 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12613 * conform/conformtest.pl (checknamespace): Sort the output list.
12615 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12616 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12617 definitions conditional on [__USE_XOPEN].
12619 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12620 these unconditionally, not only use [__USE_BSD], so as to match
12621 the sysdeps/unix/sysv/linux files.
12623 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12625 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12628 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12631 2001-08-22 Roland McGrath <roland@frob.com>
12633 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12634 conditionalization of sa_handler/sa_sigaction member types to
12635 match the sysdeps/unix/sysv/linux file.
12637 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12639 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12640 symbol sizes a bit better.
12642 * sysdeps/ia64/strncpy.S: Complete rewrite.
12643 Contributed by Jakub Jelinek <jakub@redhat.com>.
12645 * string/stratcliff.c (main): Add strncpy test.
12647 2001-08-22 Roland McGrath <roland@frob.com>
12649 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12650 and don't declare unsetenv or _environ directly.
12651 (unsetenv): Return int, not void. Use __environ instead of _environ.
12653 2001-08-01 Mark Kettenis <kettenis@gnu.org>
12655 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12656 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12657 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12658 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12659 test for cmsg struct size.
12661 2001-04-23 Paul Eggert <eggert@twinsun.com>
12663 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12664 Rename __argc to ___argc in prototypes to avoid compatibility
12665 problems with systems that reserve the identifier "__argc".
12666 Similarly for __argv.
12668 2001-08-21 Roland McGrath <roland@frob.com>
12670 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12672 * mach/Makefile (tests): Removed.
12673 * mach/hello.c: File removed.
12675 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12677 * po/sv.po: Update from translation team.
12679 * stdio-common/vfscanf.c: Fix handling of %l[].
12680 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12682 * libio/Makefile (tests): Add tst-sscanf.
12683 * libio/tst-sscanf.c: New file.
12685 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12686 * malloc/mtrace.c (tr_where): dli_sname always points to a
12687 non-empty string if != NULL.
12688 Reported by Tim Janik <timj@gtk.org>.
12690 2001-08-22 Jakub Jelinek <jakub@redhat.com>
12692 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12693 buf. Free resources on failure.
12694 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12695 (makefd_xprt): Likewise.
12696 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12697 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12698 * sunrpc/auth_unix.c (authunix_create): Likewise.
12700 2001-08-21 Jakub Jelinek <jakub@redhat.com>
12702 * string/strnlen.c: Remove.
12703 * sysdeps/generic/strnlen.c: New file.
12704 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12706 2001-08-21 Roland McGrath <roland@frob.com>
12708 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12709 as a macro, not an extern inline function.
12711 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12712 * Versions.def (libc): Add GLIBC_2.2.5 set.
12713 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12714 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12716 2001-08-20 Roland McGrath <roland@frob.com>
12718 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12719 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12721 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12723 * string/bits/string2.h: Remove strnlen optimization here.
12724 * sysdeps/i386/i486/bits/string.h: Add it here.
12726 2001-08-21 Wolfram Gloger <wg@malloc.de>
12728 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12730 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12732 * po/gl.po: Update from translation team.
12734 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12736 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12737 * misc/err.c (convert_and_print): Likewise.
12739 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12742 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12744 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12745 change of the gregset_t type.
12746 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12748 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
12750 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12752 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12754 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12756 * string/strnlen.c: Fix the implementation. We cannot use memchr.
12758 2001-08-18 Mark Kettenis <kettenis@gnu.org>
12760 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12761 before calling the cthreads initialization code.
12763 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12765 * argp/argp-help.c: Fix two problems introduced in last change.
12767 * include/dirent.h: Include <dirstream.h> first.
12769 2001-08-19 Ulrich Drepper <drepper@redhat.com>
12771 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12773 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12774 * sunrpc/xdr_rec.c: Likewise.
12775 * sunrpc/xdr_mem.c: Likewise.
12776 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12777 * sunrpc/rpc_cmsg.c: Likewise.
12778 * sunrpc/getrpcport.c (getrpcport): Likewise.
12779 * sunrpc/clnt_simp.c (callrpc): Likewise.
12780 * sunrpc/clnt_gen.c (clnt_create): Likewise.
12781 * string/envz.c: Likewise.
12783 * po/ko.po: Update from translation team.
12785 * argp/argp-help.c: Handle wide oriented stderr stream.
12787 2001-08-18 Ulrich Drepper <drepper@redhat.com>
12789 * sysdeps/generic/strtol.c: Little optimizations. Add some
12792 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12794 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12795 * wcsmbs/wcwidth.c (wcwdith): Likewise.
12796 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12798 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12800 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12802 * time/time.h (struct timespec): Use __time_t for tv_sec element.
12804 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
12805 wchar_t for function declarations and defintions.
12807 * misc/sys/select.h: Define __need_time_t before including <time.h>.
12808 Define suseconds_t if it hasn't happened yet.
12810 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
12812 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
12814 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
12817 * conform/data/stddef.h-data: Remove wint_t.
12819 * conform/conformtest.pl: Change namespace test to take #undef
12820 lines into account.
12822 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
12824 * conform/data/sys/socket.h-data: Add sockatmark.
12826 2001-08-17 Ulrich Drepper <drepper@redhat.com>
12828 * io/fts.c: Update from recent BSD source.
12830 2001-08-17 Roland McGrath <roland@frob.com>
12832 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
12833 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
12836 2001-08-17 Ulrich Drepper <drepper@redhat.com>
12838 * locale/duplocale.c (__duplocale): Also initialize the special
12839 __ctype_* elements.
12841 * conform/data/netdb.h-data: Adjust gai_strerror return type.
12843 2001-08-17 Andreas Jaeger <aj@suse.de>
12845 * misc/getpass.c: Include wchar.h for prototypes.
12846 * malloc/obstack.c: Likewise.
12848 2001-08-17 Ulrich Drepper <drepper@redhat.com>
12850 * sunrpc/svc_simple.c (universal): Use __write instead of write.
12852 * wcsmbs/wcscoll.c: Also define __wcscoll.
12853 * include/wchar.h: Declare __wcscoll.
12855 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
12856 * libio/vwprintf.c: Likewise.
12857 * libio/wprintf.c: Likewise.
12859 * iconv/gconv_cache.c: Use __munmap instead of munmap.
12861 2001-08-16 Ulrich Drepper <drepper@redhat.com>
12863 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
12864 instead of mbrtowc.
12865 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
12866 wcslen, and __wcscoll instead of wcscoll.
12868 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
12870 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
12871 __getuid instead of getuid.
12873 * stdio-common/perror.c (perror): Use __close instead of close.
12874 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
12875 * libio/freopen.c (freopen): Likewise.
12876 * libio/freopen64.c (freopen64): Likewise.
12878 * libio/tst-ungetwc2.c (main): Define str const.
12880 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
12881 * libio/fwprintf.c: Also define __fwprintf.
12882 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
12883 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
12884 * assert/assert-perr.c: Likewise.
12885 * assert/assert.c: Likewise.
12886 * gmon/gmon.c: Likewise.
12887 * inet/rcmd.c: Likewise.
12888 * malloc/obstack.c: Likewise.
12889 * misc/err.c: Likewise.
12890 * misc/error.c: Likewise.
12891 * misc/getpass.c: Likewise.
12892 * posix/getopt.c: Likewise.
12893 * resolv/res_hconf.c: Likewise.
12894 * stdio-common/perror.c: Likewise.
12895 * stdio-common/psignal.c: Likewise.
12896 * stdlib/fmtmsg.c: Likewise.
12897 * sunrpc/auth_unix.c: Likewise.
12898 * sunrpc/clnt_perr.c: Likewise.
12899 * sunrpc/clnt_tcp.c: Likewise.
12900 * sunrpc/clnt_udp.c: Likewise.
12901 * sunrpc/clnt_unix.c: Likewise.
12902 * sunrpc/svc_simple.c: Likewise.
12903 * sunrpc/svc_tcp.c: Likewise.
12904 * sunrpc/svc_udp.c: Likewise.
12905 * sunrpc/svc_unix.c: Likewise.
12906 * sunrpc/xdr.c: Likewise.
12907 * sunrpc/xdr_array.c: Likewise.
12908 * sunrpc/xdr_rec.c: Likewise.
12909 * sunrpc/xdr_ref.c: Likewise.
12910 * sysdeps/generic/wordexp.c: Likewise.
12912 * po/it.po: Update from translation team.
12914 * misc/err.c: Handle wide oriented stderr stream.
12916 2001-08-14 Tom Rix <trix@redhat.com>
12918 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
12919 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
12921 2001-08-13 Tom Rix <trix@redhat.com>
12923 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
12924 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
12927 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
12929 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
12930 Store the access registers to the ucontext structure.
12931 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
12934 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
12935 Load the access registers from the ucontext structure.
12936 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
12939 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
12940 offsets to the new ucontext layout.
12941 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
12943 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
12944 of the ucontext structure.
12945 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12947 2001-08-15 Ulrich Drepper <drepper@redhat.com>
12949 * misc/error.c (error): Handle wide oriented stderr stream correctly.
12950 (error_at_line): Likewise.
12952 * stdio-common/perror.c (perror): Implement according to standard.
12953 The stream orientation must not be changed if the stream was not
12954 oriented before the call.
12955 * stdio-common/Makefile (tests): Add tst-perror.
12956 * stdio-common/tst-perror.c: New file.
12959 See ChangeLog.12 for earlier changes.