1 2002-10-03 Richard Henderson <rth@redhat.com>
3 * sysdeps/alpha/stxncpy.S: Don't access memory beyond the source
5 * sysdeps/alpha/alphaev6/stxncpy.S: Likewise.
7 2002-10-02 Andreas Jaeger <aj@suse.de>
8 Guido Guenther <agx@sigxcpu.org>
10 * sysdeps/mips/fpu/fraiseexcpt.c: Add internal definition.
11 * sysdeps/mips/fpu/fesetenv.c: Likewise.
13 2002-10-03 Jakub Jelinek <jakub@redhat.com>
15 * sysdeps/unix/sysv/linux/net/route.h: Include bits/wordsize.h.
16 (struct rtentry): Make rt_pad4 6 bytes long if __WORDSIZE == 64.
17 * sysdeps/unix/sysv/linux/alpha/Dist: Remove net/route.h.
18 * sysdeps/unix/sysv/linux/alpha/net/route.h: Remove.
19 * sysdeps/unix/sysv/linux/ia64/Dist: Remove net/route.h.
20 * sysdeps/unix/sysv/linux/ia64/net/route.h: Remove.
21 * sysdeps/unix/sysv/linux/s390/Dist: Remove net/route.h.
22 * sysdeps/unix/sysv/linux/s390/net/route.h: Remove.
24 2002-10-03 Ulrich Drepper <drepper@redhat.com>
26 * libio/freopen.c: Don't re-set _wide_data element if the stream
27 is of old style which didn't have the element.
28 * libio/freopen64.c: Likewise.
30 2002-10-02 Ulrich Drepper <drepper@redhat.com>
32 * sysdeps/unix/sysv/linux/x86_64/Dist: Add bits/utmpx.h.
33 * sysdeps/unix/sysv/linux/sparc/Dist: Likewise.
34 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
36 * sysdeps/s390/s390-32/initfini.c: Avoid unterminated string literals.
37 * sysdeps/sh/elf/initfini.c: Likewise.
38 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
39 * sysdeps/hppa/elf/initfini.c: Likewise.
40 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Likewise.
42 2002-10-02 Steven Munroe <sjmunroe@us.ibm.com>
43 Jakub Jelinek <jakub@redhat.com>
45 * login/programs/utmpdump.c (print_entry): Copy up->ut_tv fields
46 to struct timeval temp_tv before printing to be 32-/64-bit agnostic.
47 * sysdeps/powerpc/bits/wordsize.h: Move to...
48 * sysdeps/powerpc/powerpc32/bits/wordsize.h: ...here.
49 (__WORDSIZE_COMPAT32): Define.
50 * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
51 * sysdeps/sparc/sparc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
53 * sysdeps/sparc/sparc64/bits/wordsize.h (__WORDSIZE_COMPAT32):
55 * sysdeps/s390/bits/wordsize.h: Move to...
56 * sysdeps/s390/s390-32/bits/wordsize.h: ...here.
57 * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
58 * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Define.
59 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: New file.
60 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: New file.
61 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: New file.
62 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: New file.
63 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: New file.
64 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: New file.
66 2002-10-02 Jakub Jelinek <jakub@redhat.com>
68 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix comment typo.
69 Temporarily enable R_ALPHA_NONE relocs in ld.so.
70 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Temporarily enable
71 R_IA64_NONE relocs in ld.so.
73 2002-09-27 Steven Munroe <sjmunroe@us.ibm.com>
75 * README.template: Minimum Linux kernel for powerpc64 is 2.4.19.
77 * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (struct ipc_perm):
78 Use __uint32_t and __uint64_t for __seq, __pad1, __unused[12] fields
79 so they are consistent between PPC32 and PPC64.
81 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__WORDSIZE != 32]:
82 (_STAT_VER): Define to _STAT_VER_KERNEL.
83 (stru stat, struct stat64): Define to match the PPC64 kernel.
84 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
85 (libc: GLIBC_2.2): Remove __xstat64, __fxstat64, and __lxstat64.
86 * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: New file.
87 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fxstat64.c: New file.
88 * sysdeps/unix/sysv/linux/powerpc/powerpc64/lxstat64.c: New file.
89 * sysdeps/unix/sysv/linux/powerpc/powerpc64/xstat64.c: New file.
90 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add kernel_stat.h.
92 2002-10-02 Roland McGrath <roland@redhat.com>
94 * sysdeps/unix/sysv/linux/xstatconv.c [STAT_IS_KERNEL_STAT]:
95 Conditionalize the function definitions on this.
96 * sysdeps/unix/sysv/linux/xstat.c (__xstat) [STAT_IS_KERNEL_STAT]:
97 Don't use xstat_conv, just fail if VERS != _STAT_VER_KERNEL.
98 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat) [STAT_IS_KERNEL_STAT]:
100 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat) [STAT_IS_KERNEL_STAT]:
103 2002-10-02 Ulrich Drepper <drepper@redhat.com>
105 * version.h (VERSION): Bump to 2.3.
107 * elf/Makefile (distribute): Add tst-tlsmod1.c, tst-tlsmod2.c,
108 tst-tlsmod3.c, tst-tlsmod4.c, circlemod1.c, circlemod1a.c,
109 circlemod2.c, circlemod2a.c, circlemod3.c, circlemod3a.c,
112 * login/Makefile (distribute): Add utmp-equal.h.
114 * iconvdata/Makefile (distribute): Add TSCII.precomposed and
117 * Make-dist (dist): Create .bz2 file. Add rule to create .bz2 files.
118 Also distribute xtests sources.
120 2002-10-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
122 * elf/elf.h: Change TLS ELF relocation numbers.
123 * elf/tls-macros.h: Fix code sequences for SH TLS_LD and TLS_GD
125 * sysdeps/sh/dl-machine.h (dl_machine_rela) [case R_SH_TLS_TPOFF32]:
127 * sysdeps/sh/elf/initfini.c: Move __fpscr_values to...
128 * sysdeps/sh/elf/start.S: ...here.
130 2002-10-01 Jakub Jelinek <jakub@redhat.com>
132 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ,
133 SIGSTKSZ): Changed to match kernel.
134 * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h: New file.
136 2002-10-01 Carlos O'Donell <carlos@baldric.uwo.ca>
138 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
139 [__USE_GNU] (F_SETLEASE, F_GETLEASE, F_NOTIFY): New macros.
140 [__USE_GNU] (DN_ACCESS, DN_MODIFY, DN_CREATE, DN_DELETE, DN_RENAME,
141 DN_ATTRIB, DN_MULTISHOT): New macros.
143 2002-02-08 Randolph Chung <tausq@debian.org>
145 * sysdeps/hppa/elf/start.S: Define __data_start.
147 2002-10-01 Isamu Hasegawa <isamu@yamato.ibm.com>
149 * posix/regex_internal.c (re_string_reconstruct): Reset the member
151 * posix/regexec.c (re_search_stub): Remove incorrect condition of
153 Round RANGE in case that it is too small.
155 2002-10-01 Roland McGrath <roland@frob.com>
157 * config.h.in (NO_HIDDEN): New #undef.
158 * include/libc-symbols.h [! NO_HIDDEN]: Add this condition to
159 nonempty definitions of hidden_proto et al.
160 * configure.in: Grok --disable-hidden-plt to define NO_HIDDEN.
161 * configure: Regenerated.
162 * sysdeps/mach/hurd/configure.in: Always define NO_HIDDEN.
163 * sysdeps/mach/hurd/configure: Regenerated.
165 2002-09-19 David Mosberger <davidm@hpl.hp.com>
167 * sysdeps/ia64/dl-fptr.c (make_fdesc): Load address of "local" via
168 a 64-bit gp-relative address to enable binaries with large data
171 2002-09-30 Ulrich Drepper <drepper@redhat.com>
173 * stdlib/cxa_finalize.c (__cxa_finalize): Call UNREGISTER_ATFORK
175 * posix/Makefile (distribute): Add fork.h.
176 * sysdeps/generic/fork.h: New file.
178 2002-09-29 Bruno Haible <bruno@clisp.org>
180 * sysdeps/generic/utmp_file.c (LOCKING_FAILED): New macro.
181 (UNLOCK_FILE): Add a label.
182 (getutent_r_file, internal_getut_r, getutline_r_file, pututline_file,
183 updwtmp_file): Shut off the alarm clock when locking failed.
185 2002-09-30 Isamu Hasegawa <isamu@yamato.ibm.com>
187 * posix/regex_internal.h (re_match_context_t): Add a new member.
188 (re_fail_stack_ent_t): New structure.
189 (re_fail_stack_t): Likewise.
190 * posix/regexec.c (re_search_internal): Use the new member of
192 Use fail stack only if it has back references and there are plural
194 (proceed_next_node): Use fail stack if it is indicated.
195 (set_regs): Likewise.
196 (push_fail_stack): New function.
197 (pop_fail_stack): New function.
198 (check_dst_limits): Likewise.
199 (check_dst_limits_calc_pos): Likewise.
200 (search_subexp): Check the limitations on the top of subexpressions.
201 (sift_states_bkref): Check the limitations of the destination node.
202 Reuse the array sctx->sifted_states.
204 2002-09-30 Ulrich Drepper <drepper@redhat.com>
206 * stdio-common/printf_fp.c: Shuffle a few lines around to help the
207 compiler optimizing. No semantical changes intended.
209 2002-09-30 Jakub Jelinek <jakub@redhat.com>
211 * sysdeps/ia64/strncpy.S: Only segfault in .recovery2 if some bits
212 from the next quad are needed.
214 2002-09-30 Roland McGrath <roland@redhat.com>
216 * elf/tls-macros.h (TLS_LD, TLS_GD): Use call insn, not callq.
218 * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD] [! PIC]:
219 Use direct-%fs form of TLS access for errno.
221 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: File removed, since
222 the i386 version has all the same asm now.
224 * sysdeps/i386/elf/configure.in: Add @GOTNTPOFF and @NTPOFF uses to
225 the TLS support check.
226 * sysdeps/i386/elf/configure: Regenerated.
228 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE_TLS && HAVE___THREAD]
229 (SYSCALL_ERROR_HANDLER): Use direct-%gs form of TLS access for errno.
231 * sysdeps/unix/i386/sysdep.S (syscall_error)
232 [USE_TLS && HAVE___THREAD]: Use TLS access for errno.
234 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
235 [USE_TLS && HAVE___THREAD] (SYSCALL_ERROR_HANDLER): Use TLS access.
237 * rt/tst-aio7.c (do_test): Don't read from stdin, which could be the
238 terminal when the test is running in a background job. Instead, make
239 a pipe and read from its read half while never writing anything to it.
241 2002-09-30 Andreas Jaeger <aj@suse.de>
243 * stdlib/tst-bsearch.c (main): Fix format strings.
244 * stdio-common/tst-rndseek.c (do_test): Likewise.
245 * libio/tst_swprintf.c (main): Likewise.
246 * catgets/tst-catgets.c (main): Likewise.
247 * libio/tst-fgetws.c (main): Likewise.
248 * posix/tst-mmap.c (main): Likewise.
249 * posix/bug-regex12.c (main): Likewise.
250 * posix/bug-regex11.c (main): Likewise.
251 * io/tst-getcwd.c (do_test): Likewise.
253 * iconvdata/tst-e2big.c (test): Use %td in printf for ptrdiff_t.
255 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
256 Store 4 bytes into errno, not 8 bytes.
258 2002-09-29 Ulrich Drepper <drepper@redhat.com>
260 * posix/regexec.c (sift_states_bkref): Remove ret variable. Use
263 2002-09-29 Roland McGrath <roland@redhat.com>
265 * test-skeleton.c (timeout_handler): Use WUNTRACED flag in waitpid.
266 Examine the child's status and print something different if it wasn't
267 just killed by our SIGKILL.
268 (main): In the child process call setpgid to put it in its own pgrp.
270 2002-09-29 Ulrich Drepper <drepper@redhat.com>
272 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): The return value
273 semantics for sigtimedwait is different. Rework the return value
274 handling and don't pass in a siginfo variable.
276 2002-09-29 Roland McGrath <roland@redhat.com>
278 * malloc/malloc.c [! MALLOC_DEBUG] (assert): #undef before defining.
280 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.2.6): Add __errno_location.
282 * sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
283 Define errno in .tbss.
284 * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS
285 access for setting errno.
287 * sysdeps/unix/x86_64/sysdep.S: Store 32 bits at errno, not 64 bits.
288 AFAICT, it was just blind luck that the word following errno in .bss
289 was just alignment padding and not some other variable to be clobbered.
291 2002-09-29 Jakub Jelinek <jakub@redhat.com>
293 * sysdeps/unix/sysv/linux/kernel-features.h
294 (__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty.
296 2002-09-29 Jakub Jelinek <jakub@redhat.com>
298 * nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't
301 2002-09-29 Ulrich Drepper <drepper@redhat.com>
303 * nss/Makefile: Move bug-erange from tests to xtests.
305 2002-09-29 Jakub Jelinek <jakub@redhat.com>
307 * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
309 2002-09-29 Jakub Jelinek <jakub@redhat.com>
311 * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
313 (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
314 inline_syscall5, inline_syscall6): Likewise.
315 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
317 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
320 2002-09-29 Roland McGrath <roland@redhat.com>
322 * configure.in (libc_cv_ranlib_necessary check): Put the .o file in
323 the archive, not the .c file.
324 * configure: Regenerated.
326 2002-09-29 Roland McGrath <roland@redhat.com>
328 * configure: Regenerated after aclocal.m4 change.
330 * sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form.
331 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here.
333 * sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP):
334 Define it, because _dl_sym presumes it (for any platform).
336 * sysdeps/x86_64/dl-tls.h: New file.
338 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast.
340 * sysdeps/x86_64/elf/configure.in: New file.
341 * sysdeps/x86_64/elf/configure: New generated file.
343 2002-09-28 Roland McGrath <roland@redhat.com>
345 * elf/rtld.c (_dl_start): Fix conditional for declaring CNT.
347 * aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
350 2002-09-28 Ulrich Drepper <drepper@redhat.com>
352 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit
355 2002-09-28 Jakub Jelinek <jakub@redhat.com>
357 * posix/bug-regex11.c (tests): Add flags field.
358 (main): Avoid warnings. Use test[i].flags. Return nonzero
359 if any of the tests failed.
360 * posix/bug-regex12.c: New file.
361 * posix/Makefile (tests): Add bug-regex12.
363 2002-03-02 Thorsten Kukuk <kukuk@suse.de>
365 * sysdeps/unix/nice.c (nice): Use getpriority() for the return value.
367 2002-09-28 Jeff Bailey <jbailey@gnu.org>
369 * sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete.
370 * sysdeps/unix/sysv/aix/configure.in: Update comment and remove
373 2002-09-28 Roland McGrath <roland@redhat.com>
375 * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for
377 * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
378 * sysdeps/powerpc/powerpc64/dl-machine.c
379 (_dl_reloc_overflow): Likewise.
380 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
381 (elf_machine_rela): Likewise.
383 2002-09-27 Steven Munroe <sjmunroe@us.ibm.com>
385 * include/libc-symbols.h (__hidden_dot_weak1): Fix typo. Replace
386 ASM_GLOBAL_DIRECTIVE with .weak.
388 2002-09-28 Andreas Jaeger <aj@suse.de>
390 * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix
391 number of args to syscall.
392 * sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise.
393 Patch by Guido Guenther <agx@sigxcpu.org>.
395 2002-09-27 Roland McGrath <roland@redhat.com>
397 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite):
398 Define these to __NR_pread64, __NR_pwrite64 if not defined.
400 * sysdeps/unix/sysv/linux/powerpc/lchown.S
401 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition
402 on chown compatibility symbol; use compat_symbol, not symbol_version.
404 2002-09-27 Isamu Hasegawa <isamu@yamato.ibm.com>
406 * posix/regcomp.c (reg_free): Free the debug area.
407 (re_compile_internal): Allocate debug area for the input string.
408 (create_initial_state): Check the back references in initial states
409 if they are really match null string in the initial state.
410 (parse_reg_exp): Mark the dfa that the dfa can have plural matchings.
411 (parse_expression): Likewise.
412 (parse_bracket_exp): Likewise.
413 * posix/regex_internal.c (re_node_set_intersect): Remove unused
415 (re_node_set_contains): Change to return the index of node.
416 * posix/regex_internal.h (re_backref_cache_entry): Change the members.
417 (re_match_context_t): Likewise.
418 (struct re_dfa_t): Likewise.
419 (re_sift_context_t): New structure.
420 * posix/regexec.c (match_ctx_clear_flag): New function.
421 (sift_ctx_init): Likewise.
422 (update_cur_sifted_state): Likewise.
423 (add_epsilon_src_nodes): Likewise.
424 (sub_epsilon_src_nodes): Likewise.
425 (check_subexp_limits): Likewise.
426 (search_subexp): Likewise.
427 (sift_states_bkref): Likewise.
428 (merge_state_array): Likewise.
429 (sift_states_iter_bkref): Remove unused function.
430 (add_epsilon_backreference): Remove unused function.
431 (re_search_internal): Adapt new members and interfaces.
432 (check_matching): Check the back references in initial states
433 if they are really match null string in the initial state.
434 (proceed_next_node): Change the evaluation of back references,
435 since we have real registers here.
436 (set_regs): Adapt new interface of proceed_next_node.
437 (sift_states_backward): Add invocation of update_cur_sifted_state
438 instead of add_epsilon_backreference.
439 Add a sentinel to the outermost while loop.
440 Move the handling of back references to sift_states_bkref function,
441 since we can't handle some back references (e.g. a back reference
442 which match NULL string) here.
443 (transit_state_mb): Handle the new member max_mb_elem_len.
444 (transit_state_bkref_loop): Move the evaluation of back references to
445 search_subexp function, since we can't evaluate some back references
446 (e.g. a back reference which can have plural matchings) here.
447 (match_ctx_init): Adapt the new member.
448 (match_ctx_add_entry): Adapt the new members.
450 2002-09-25 Alan Modra <amodra@bigpond.net.au>
452 * elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for
453 'elf_machine_rel_relative'
454 (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro
455 instead of 'elf_machine_rel_relative'.
456 * sysdeps/hppa/dl-machine.h:
457 Define macro DO_ELF_MACHINE_REL_RELATIVE for
458 'elf_machine_rel_relative' with extra map parameter
460 (elf_machine_rela_relative): Add plt relocation changes.
462 2001-11-14 Matthew Wilcox <willy@debian.org>
464 * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file.
465 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file.
466 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file.
467 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file.
469 2002-09-27 Steven Munroe <sjmunroe@us.ibm.com>
471 * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment.
473 * sysdeps/powerpc/powerpc64/Makefile
474 [$(build-shared) = yes] (pic-ccflag): Define it.
475 [$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
477 2002-09-27 Roland McGrath <roland@redhat.com>
479 * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
482 2002-09-27 Jakub Jelinek <jakub@redhat.com>
484 * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
485 unconditionally. Set dli_fname to _dl_argv[0] only for main program.
487 2002-09-27 Roland McGrath <roland@redhat.com>
489 * elf/dl-addr.c (_dl_addr): Add a cast.
491 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
492 TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.
494 * elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
495 R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
496 R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
497 (R_X86_64_NUM): Update the value.
499 2002-09-24 Jakub Jelinek <jakub@redhat.com>
501 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
502 rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
504 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
505 the same l_addr computation.
506 * sysdeps/sparc/sparc64/configure.in: Removed.
507 * sysdeps/sparc/sparc64/configure: Removed.
508 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
510 2002-09-26 Ulrich Drepper <drepper@redhat.com>
512 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
514 * elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
515 * elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
516 symbol table if necessary.
518 2002-09-26 Roland McGrath <roland@redhat.com>
520 * stdlib/longlong.h: Replaced with current version from GCC mainline,
521 last modified 2002-09-22 Kazu Hirata <kazu@cs.umass.edu>.
523 2002-09-25 Andreas Jaeger <aj@suse.de>
525 * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
526 Patch by Guido Guenther <agx@sigxcpu.org>.
528 2002-09-25 Roland McGrath <roland@redhat.com>
530 * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
532 2002-09-24 Ulrich Drepper <drepper@redhat.com>
534 * sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
536 2002-09-24 Roland McGrath <roland@redhat.com>
538 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
539 __libc_write, __libc_lseek64, to ...
540 (ld: GLIBC_PRIVATE): ... here.
542 * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
543 (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
544 (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
545 * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
546 (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
548 (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
550 * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
551 New macros for x86-64.
553 * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
554 It was indentical to the linux/bits/time.h file.
556 * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
558 * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
560 2002-09-23 Ulrich Drepper <drepper@redhat.com>
562 * po/zh_CN.po: New file.
564 2002-09-23 Roland McGrath <roland@redhat.com>
566 * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
567 for gethostname declaration.
569 * catgets/open_catalog.c (__open_catalog): Don't use a value type
570 as the __builtin_expect expression, just the Boolean value.
572 * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
573 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
574 * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
575 * iconvdata/tst-loading.c (main): Likewise.
576 * catgets/tst-catgets.c (main): Likewise.
577 * stdlib/tst-xpg-basename.c (main): Likewise.
578 * stdlib/tst-bsearch.c (main): Likewise.
579 * stdio-common/test-vfprintf.c (main): Likewise.
580 * stdio-common/tst-rndseek.c (do_test): Likewise.
581 * libio/tst_swprintf.c (main): Likewise.
582 * libio/tst-fgetws.c (main): Likewise.
583 * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
584 * time/tst-posixtz.c (main): Likewise.
585 * time/tst-strptime.c (test_tm): Likewise.
586 * time/tst-strptime.c (main): Likewise.
587 * time/tst-getdate.c (main): Likewise.
588 * posix/tst-mmap.c (main): Likewise.
589 * posix/tst-getaddrinfo.c (do_test): Likewise.
590 * io/tst-getcwd.c (do_test): Likewise.
591 * resolv/tst-aton.c (main): Likewise.
592 * inet/tst-network.c (main): Likewise.
593 * libio/tst-fgetws.c (main): Likewise.
594 * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
595 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
598 * stdlib/msort.c (qsort): Add a cast to silence warning.
599 * stdio-common/vfprintf.c (process_string_arg): Likewise.
600 * libio/oldfileops.c (_IO_old_do_write): Likewise.
601 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
602 * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
603 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
604 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
605 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
606 * sysdeps/unix/grantpt.c (grantpt): Likewise.
607 * libio/tst-widetext.c (main): Likewise.
608 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
609 * rt/tst-aio.c (test_file): Likewise.
610 * rt/tst-aio64.c (test_file): Likewise.
611 * resolv/tst-aton.c (main): Likewise.
613 * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
615 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
616 instead of uint32_t in these macros.
618 2002-09-22 Bruno Haible <bruno@clisp.org>
620 * iconv/iconv_prog.c (main): Provide an error message that identifies
623 * iconvdata/tscii.c: New file.
624 * iconvdata/testdata/TSCII: New file.
625 * iconvdata/testdata/TSCII..UTF8: New file.
626 * iconvdata/TSCII.precomposed: New file.
627 * iconvdata/TSCII.irreversible: New file.
628 * iconvdata/gconv-modules (TSCII): New module.
629 * iconvdata/Makefile (modules): Add TSCII.
630 (distribute): Add tscii.c.
631 * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
633 * iconvdata/tst-tables.sh: Add TSCII.
634 * iconvdata/TESTS: Add TSCII.
636 Revert 2002-04-18 patch.
637 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
638 FROM_DIRECTION): Make the FROM direction stateful again.
639 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
640 FROM_DIRECTION): Likewise.
642 * iconvdata/tst-e2big.c: New file.
643 * iconvdata/Makefile (tests): Add tst-e2big.
645 2002-09-23 Roland McGrath <roland@redhat.com>
647 * elf/Makefile (test-extras): Define this instead of test-srcs.
648 * Makerules (all-nonlib): Include $(test-extras) too.
650 2002-09-21 Carlos O'Donell <carlos@baldric.uwo.ca>
652 * sysdeps/hppa/abort-instr.h: New file.
654 2002-09-22 Roland McGrath <roland@frob.com>
656 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
658 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
660 2002-09-22 Andreas Schwab <schwab@suse.de>
662 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
664 * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
665 (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
668 2002-09-21 Roland McGrath <roland@redhat.com>
670 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
671 Correct the value so it covers all platforms, and is computed
672 from _DL_PLATFORMS_COUNT rather than hard-wired.
673 From Andrew Suffield <asuffield@debian.org>.
675 2002-09-20 Ulrich Drepper <drepper@redhat.com>
677 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
678 locking when using mount tab file.
679 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
680 * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
681 * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
683 * elf/dl-init.c (_dl_init): Fix test of the size of the
684 preinit_array section.
685 (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
686 Reported by Brian Cabral <cabral@ikuni.com>.
688 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
690 * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
691 * sysdeps/powerpc/powerpc32/sysdep.h: New file. Define powerpc32
692 specific macros copied from sysdeps/powerpc/sysdep.h.
693 * sysdeps/powerpc/powerpc64/sysdep.h: New file. Define powerpc64
695 * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
696 [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
697 [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
699 2002-09-19 Bruno Haible <bruno@clisp.org>
701 * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
704 2002-09-17 Bruno Haible <bruno@clisp.org>
706 * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
707 * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
708 also on platforms with !HAVE_UT_TYPE.
709 (proc_utmp_eq): Remove function.
710 (internal_getut_r, pututline_file): Call __utmp_equal instead.
712 2002-09-20 Bruno Haible <bruno@clisp.org>
714 * abi-tags: Add support for FreeBSD with ABI OS value 3.
715 * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
717 2002-09-20 Roland McGrath <roland@redhat.com>
719 * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
720 (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
722 * sysdeps/x86_64/gmp-mparam.h: File removed.
723 * sysdeps/sparc/gmp-mparam.h: File removed.
724 * sysdeps/mips/mips64/gmp-mparam.h: File removed.
725 * sysdeps/ia64/gmp-mparam.h: File removed.
726 * sysdeps/alpha/gmp-mparam.h: File removed.
728 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
730 * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
731 load, so as to work on both 32-bit and 64-bit. Remove unnecessary
732 casts. Align __libc_stack_end to 8 bytes.
734 2002-09-20 Roland McGrath <roland@redhat.com>
736 * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
737 instead of asm for lrintf, __lrintf aliases.
739 * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
740 int array for 32-/64-bit compatibility.
741 From Steven Munroe <sjmunroe@us.ibm.com>.
743 2002-09-17 Bruno Haible <bruno@clisp.org>
745 * sysdeps/generic/ifreq.h (__if_nextreq): New function.
746 * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
747 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
748 * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
749 for iterating through the list of interfaces.
750 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
752 2002-09-20 Roland McGrath <roland@redhat.com>
754 * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
755 Reported by Bruno Haible <bruno@clisp.org>.
757 * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
759 * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
760 * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
761 isatty unmodified. Reported by Bruno Haible <bruno@clisp.org>.
763 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
765 * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
766 * sysdeps/powerpc/bits/wordsize.h: New file.
767 * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
768 array to int array for 32-/64-bit compatibility.
770 2002-09-20 Roland McGrath <roland@redhat.com>
772 * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
774 * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
775 Reported by Bruno Haible <bruno@clisp.org>.
777 * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
778 before doubling RQ_LEN.
779 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
780 Reported by Bruno Haible <bruno@clisp.org>.
782 2002-09-18 Bruno Haible <bruno@clisp.org>
784 * login/logout.c (logout): Don't assume ut_time has the same size as
786 * login/logwtmp.c (logwtmp): Likewise.
788 * sysdeps/pthread/configure: New file, moved here from
789 linuxthreads/sysdeps/unix/sysv/linux/configure.
791 2002-09-19 Ulrich Drepper <drepper@redhat.com>
793 * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
794 (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
795 Reported by Glen Nakamura <glen@imodulo.com>.
797 2002-09-19 Neal H. Walfield <neal@cs.uml.edu>
799 * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
800 thread's sigstate data structure if it has been allocated.
802 2002-09-19 Roland McGrath <roland@redhat.com>
804 * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
805 [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
807 2002-09-18 Ulrich Drepper <drepper@redhat.com>
809 * version.h (VERSION): Bump to 2.2.94.
811 * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
812 * sysdeps/powerpc/powerpc32/fpu/Dist: ...here. New file.
813 * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
814 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
816 * sysdeps/i386/Makefile: Remove obsolete db2 rules.
818 * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
820 * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
822 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
824 2002-09-19 Jakub Jelinek <jakub@redhat.com>
826 * sysdeps/wordsize-32/Makefile: New file.
827 * sysdeps/arm/Makefile: Removed.
828 * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
829 Don't add divdi3 here.
830 * sysdeps/m68k/Makefile: Likewise.
831 * sysdeps/powerpc/powerpc32/Makefile: Likewise.
832 * sysdeps/sh/Makefile: Likewise.
833 * sysdeps/s390/s390-32/Makefile: Likewise.
835 2002-09-18 Roland McGrath <roland@redhat.com>
837 * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
838 the __ctype_* compat symbols, so the relocs generated bind to the
839 right versioned global symbol in the shared object.
841 * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
842 from the value taken from the DT_VERSYM table.
843 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
844 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
845 (RESOLVE_GOTSYM): Likewise.
847 * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
849 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
850 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
851 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
852 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
853 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
854 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
855 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
856 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
858 2002-09-18 Ulrich Drepper <drepper@redhat.com>
860 * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
862 * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
863 define sigaction and __sigaction as wrappers around
864 __libc_sigaction which rejects changing SIGCANCEL.
865 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
867 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
870 * signal/allocrtsig.c: Move to...
871 * sysdeps/generic/allocrtsig.c: ...here. New file.
873 2002-09-17 Jakub Jelinek <jakub@redhat.com>
875 * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
877 * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
878 R_386_TLS_LE): Define.
879 (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
881 * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
882 ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
883 (elf_machine_rel): Handle R_386_TLS_TPOFF.
884 (elf_machine_rela): Likewise.
885 Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
887 2002-09-17 Roland McGrath <roland@redhat.com>
889 * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
890 file-specific variable override so it compiles properly when using
893 2002-09-17 Steven Munroe <sjmunroe@us.ibm.com>
895 Ported to PowerPC64 running Linux.
896 * sysdeps/powerpc/powerpc64/Dist: New file.
897 * sysdeps/powerpc/powerpc64/Implies: New file.
898 * sysdeps/powerpc/powerpc64/Makefile: New file.
899 * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
900 * sysdeps/powerpc/powerpc64/atomicity.h: New file.
901 * sysdeps/powerpc/powerpc64/backtrace.c: New file.
902 * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
903 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
904 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
905 * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
906 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
907 * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
908 * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
909 * sysdeps/powerpc/powerpc64/memset.S: New file.
910 * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
911 * sysdeps/powerpc/powerpc64/register-dump.h: New file.
912 * sysdeps/powerpc/powerpc64/setjmp.S: New file.
913 * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
914 * sysdeps/powerpc/powerpc64/strchr.S: New file.
915 * sysdeps/powerpc/powerpc64/strcmp.S: New file.
916 * sysdeps/powerpc/powerpc64/strcpy.S: New file.
917 * sysdeps/powerpc/powerpc64/strlen.S: New file.
918 * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
919 * sysdeps/powerpc/powerpc64/elf/start.S: New file.
920 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
921 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
922 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
923 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
924 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
925 * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
926 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
927 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
928 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
930 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
931 (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
932 various gcc versions. Dot names required for powerpc64.
933 [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
934 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
935 C_SYMBOL_DOT_NAME(alias).
936 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
937 original strong_alias macro.
938 [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
939 C_SYMBOL_DOT_NAME(alias).
940 [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
941 [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
943 Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
944 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro. Generate
945 .global C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
946 (hidden_def): Append hidden_dot_def1 macro to definition.
947 (hidden_ver): Append hidden_dot_def1 macro to definition.
948 (hidden_data_def): New macro. Same as original hidden_def macro.
949 (hidden_data_ver): New macro. Same as original hidden_ver macro.
950 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro. Generate
951 .weakext C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
952 (hidden_weak): Append hidden_dot_weak1 macro to definition.
953 (hidden_data_weak): New macro. Same as original hidden_weak macro.
954 [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
955 Otherwise defined as __GI_name.
956 (libc_hidden_data_def): New macro. Use hidden_data_def.
957 (libc_hidden_data_weak): New macro. Use hidden_data_weak.
958 (libc_hidden_data_ver): New macro. Use hidden_data_ver.
959 (rtld_hidden_data_def): New macro. Use hidden_data_def.
960 (rtld_hidden_data_weak): New macro. Use hidden_data_weak.
961 (rtld_hidden_data_ver): New macro. Use hidden_data_ver.
962 (libm_hidden_data_def): New macro. Use hidden_data_def.
963 (libm_hidden_data_weak): New macro. Use hidden_data_weak.
964 (libm_hidden_data_ver): New macro. Use hidden_data_ver.
965 * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
967 2002-09-17 Ulrich Drepper <drepper@redhat.com>
969 * include/libc-symbols.h: Change *hidden_proto macros to accept
970 option parameters and pass those to the attribute definition.
971 * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
973 * include/unistd.h: Declare __libc_pause.
975 * include/sys/socket.h: Declare __libc_send, __libc_recv,
976 __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
978 * include/unistd.h: Declare __libc_fork.
980 2002-09-17 Roland McGrath <roland@redhat.com>
982 * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
983 (passwd2des): Define it as an alias.
984 (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
986 2002-09-12 Bruno Haible <bruno@clisp.org>
988 * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
989 * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
991 * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
992 * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
994 2002-09-05 Steven Munroe <sjmunroe@us.ibm.com>
996 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
997 (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
998 __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
999 PowerPC64 does not have separate 64-bit syscalls.
1001 2002-09-16 Roland McGrath <roland@redhat.com>
1003 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
1005 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
1008 * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
1010 * include/unistd.h: Uncomment libc_hidden_proto for _exit.
1011 * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
1012 * sysdeps/generic/_exit.c: Likewise.
1014 2002-09-12 Jakub Jelinek <jakub@redhat.com>
1016 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
1018 * elf/rtld.c (struct dl_start_final_info): New.
1019 (_dl_start_final): Change second argument to struct
1020 dl_start_final_info *. Set start_time from info.
1021 (_dl_start): Remove bootstrap_map variable, add info.
1022 Define bootstrap_map as macro. If not DONT_USE_BOOTSTRAP_MAP,
1023 store HP_TIMING_NOW result into info.start_time.
1025 2002-09-16 Andreas Jaeger <aj@suse.de>
1027 * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
1029 * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
1031 2002-09-15 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1033 * sysdeps/powerpc/abort-instr.h: New file.
1035 2002-09-14 Ulrich Drepper <drepper@redhat.com>
1037 * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
1040 * test-skeleton.c (main): Provide more information in case waitpid
1043 * include/unistd.h: Declare __exit_thread.
1044 * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
1045 Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
1046 * sysdeps/unix/sysv/linux/exit-thread.S: New file.
1047 * sysdeps/unix/sysv/linux/_exit.c: New file.
1048 * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
1049 * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
1052 * configure.in: Add dl_iterate_phdr to test using -nostdlib.
1054 2002-09-12 Jakub Jelinek <jakub@redhat.com>
1056 * sysdeps/i386/dl-machine.h (elf_machine_rel)
1057 (case R_386_TLS_DTPMOD32): Don't use addend.
1058 [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
1059 (elf_machine_rela): Add support for TLS relocs.
1061 2002-09-14 Roland McGrath <roland@redhat.com>
1063 * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
1065 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
1067 * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
1068 specific asm macros for multiple percision integer math.
1070 2002-06-04 Steven Munroe <sjmunroe@us.ibm.com>
1072 * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
1073 * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
1074 Remove per-machine conditionals for FLAG_* cases.
1075 * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
1076 * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
1077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
1079 2002-09-10 Alan Modra <amodra@bigpond.net.au>
1081 * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
1083 (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
1084 lowest address for profiling in __monstartup call.
1085 * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
1087 2002-09-14 Roland McGrath <roland@redhat.com>
1089 * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
1090 instead of __NR_pread.
1091 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1092 * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
1093 instead of __NR_pwrite.
1094 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1096 2002-09-13 Roland McGrath <roland@redhat.com>
1098 * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
1100 2002-09-13 Andreas Jaeger <aj@suse.de>
1102 * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
1103 syscall. Patch by Guido Guenther <agx@sigxcpu.org>.
1105 2002-09-12 Ulrich Drepper <drepper@redhat.com>
1107 * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
1109 2002-09-10 Ulrich Drepper <drepper@redhat.com>
1111 * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
1112 reading the headers.
1114 2002-09-12 Roland McGrath <roland@redhat.com>
1116 * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
1117 (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
1118 find the ELF header.
1120 * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
1121 executable if needed, in case it's actually a shared object.
1123 2002-09-11 Roland McGrath <roland@redhat.com>
1125 * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
1126 l_map_start to adjust l_tls_initimage.
1128 * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
1129 when using h_errno and it's not set to NETDB_INTERNAL.
1130 * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
1132 * Makefile ($(common-objpfx)testrun.sh): New target.
1133 (others): Depend on it.
1134 (postclean-generated): Append it.
1136 * nss/bug-erange.c: New file.
1137 * nss/Makefile (tests): Add it.
1139 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
1140 instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
1142 * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
1143 strncmp, keeps the code smaller for a non-performance-critical case.
1145 * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
1146 no longer wrongly matches arbitrary prefixes of NAME.
1147 Reported by Jakub Jelinek <jakub@redhat.com>.
1149 2002-09-11 Jakub Jelinek <jakub@redhat.com>
1151 * posix/bug-regex11.c (tests): New array.
1152 (main): Rewritten to run more different tests.
1154 2002-09-10 Roland McGrath <roland@redhat.com>
1156 * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
1157 (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
1158 Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
1160 * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
1161 well so we don't get it declared by include/math.h's hidden_proto.
1162 Then do hidden_proto for __isnanf locally so hidden_def works right.
1164 * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
1165 a cast to turn nl_langinfo return value into an integer.
1167 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
1169 * posix/regexec.c (build_trtable): Fix the destination of
1170 newline to prevent wrong states from overwriting.
1171 Append break statements to optimization.
1173 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
1175 * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
1176 (build_range_exp): Add castings to strlen invocations.
1177 (build_collating_symbol): Restore the type of characters from "char"
1178 to "unsigned char", and supplement castings.
1179 (build_collating_symbol): Likewise.
1180 (build_equiv_class): Likewise.
1181 (build_charclass): Likewise.
1182 (seek_collating_symbol_entry): Likewise.
1183 (parse_bracket_exp): Likewise.
1184 (build_word_op): Supplement a casting.
1185 * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
1186 (re_string_allocate): Fix castings.
1187 (re_string_construct): Likewise.
1188 (re_string_construct_common): Likewise.
1189 (re_string_realloc_buffers): Likewise.
1190 (build_wcs_buffer): Likewise.
1191 (build_wcs_upper_buffer): Likewise.
1192 (re_string_skip_chars): Likewise.
1193 (re_string_reconstruct): Likewise.
1194 * posix/regex_internal.h: Restore the type of characters in
1195 re_string_t and bracket_elem_t from "char" to "unsigned char".
1196 (re_string_elem_size_at): Fix castings.
1197 * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
1198 (transit_state_bkref_loop): Restore the type of characters from
1199 "char" to "unsigned char", and append a cast to "char*" pointer in
1201 (check_node_accept_bytes): Likewise.
1202 (find_collation_sequence_value): Likewise.
1204 2002-09-10 Hartvig Ekner <hartvige@mips.com>
1206 * sysdeps/mips/memcpy.S: New file.
1207 * sysdeps/mips/memset.S: New file.
1208 * sysdeps/mips/fpu/e_sqrt.c: New file.
1209 * sysdeps/mips/fpu/e_sqrtf.c: New file.
1211 * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
1212 functional before. Also removed all SHLIB_COMPAT stuff.
1213 * fpu/fegetenv.c: Likewise.
1214 * fpu/fesetenv.c:: Likewise.
1215 * fpu/feupdateenv.c: Likewise.
1216 * fpu/fgetexcptflg.c: Likewise.
1217 * fpu/fraiseexcpt.c: Likewise.
1219 * sysdeps/mips/fpu/fsetexcptflg.c: New file.
1221 2002-09-09 Jakub Jelinek <jakub@redhat.com>
1223 * include/math.h (__finite_internal, __finitef_internal,
1224 __finitel_internal, __isinf_internal, __isnan_internal): Remove.
1226 (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
1227 __isinfl, __isnanl): Add hidden_proto.
1228 (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
1230 * math/Makefile (libm-calls): Add s_isinf and s_isnan.
1231 * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
1232 __is{inf,nan} calls.
1233 * stdio-common/printf_size.c (printf_size): Likewise.
1234 * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
1235 * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
1236 * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
1237 * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
1238 * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
1239 * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
1240 (__finite): Add hidden_def.
1241 * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
1242 (__finitef): Add hidden_def.
1243 * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
1244 (__finitel): Add hidden_def.
1245 * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF. Add
1247 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
1248 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1250 * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
1251 * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF. Add
1253 * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
1254 (__isinfl): Remove INTDEF.
1255 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF. Add
1257 (__isnanl): Remove INTDEF.
1258 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
1260 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
1261 instead of sin and cos.
1262 * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
1264 * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
1265 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
1266 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
1268 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
1270 * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
1271 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
1272 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
1274 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
1276 * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
1278 * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
1279 * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
1280 * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
1282 * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
1283 __finitel_internal): Remove aliases.
1284 (__finite, __finitef, __finitel): Add hidden_def.
1285 * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
1286 __isnanl_internal): Remove aliases.
1287 (__isnan, __isnanf, __isnanl): Add hidden_def.
1288 * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
1289 __isinfl_internal): Remove aliases.
1290 (__isinf, __isinff, __isinfl): Add hidden_def.
1291 * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
1292 __fpclassifyl): Add libm_hidden_def.
1293 * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
1294 * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF. Add hidden_def.
1295 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
1296 (hidden_defx): Define and use.
1297 * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1299 * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
1300 * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
1301 * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
1303 (__isnan, __isnanf): Add hidden_def.
1304 * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
1305 (__finitel): Add libm_hidden_def.
1306 * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
1308 * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
1309 * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
1310 * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1311 * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
1312 * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1313 * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
1314 * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
1315 * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
1316 * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1317 * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
1318 * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1319 * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
1320 * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1321 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
1322 * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1323 * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
1324 * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1325 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
1326 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1327 * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
1328 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1329 * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1330 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1331 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1332 * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1333 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
1334 * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1336 2002-09-09 Steven Munroe <sjmunroe@us.ibm.com>
1338 * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
1340 2002-09-09 Jakub Jelinek <jakub@redhat.com>
1342 * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
1343 LD_DEBUG=statistics or LD_TRACE_PRELINKING.
1345 2002-09-09 Ulrich Drepper <drepper@redhat.com>
1347 * string/stratcliff.c: Some more strncpy tests.
1348 Patch by Daniel Jacobowitz <drow@mvista.com>.
1350 2002-09-08 Roland McGrath <roland@redhat.com>
1352 * resolv/resolv.h: Include <sys/types.h> for u_long even in
1353 the [__need_res_state] case.
1354 Reported by Bruno Haible <bruno@clisp.org>.
1356 2002-09-04 Bruno Haible <bruno@clisp.org>
1358 * sysdeps/generic/bits/ustat.h: Comment fix.
1359 * io/sys/sendfile.h: Comment fix.
1360 * sysdeps/posix/pread.c: Comment fix.
1361 * sysdeps/posix/pread64.c: Comment fix.
1362 * sysdeps/posix/pwrite.c: Comment fix.
1363 * sysdeps/posix/pwrite64.c: Comment fix.
1365 2002-09-06 Roland McGrath <roland@redhat.com>
1367 * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
1368 to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
1369 (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
1370 (_UTSNAME_MACHINE_LENGTH): Likewise.
1371 (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
1373 2002-09-06 Ulrich Drepper <drepper@redhat.com>
1375 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
1376 test for filesystem type name of mount points.
1378 * include/errno.h: Use errno definition with __thread for now only
1381 * test-skeleton.c (main): Improve error message for unexpected
1384 2002-09-05 Roland McGrath <roland@redhat.com>
1386 * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
1387 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1389 2002-09-05 Jakub Jelinek <jakub@redhat.com>
1391 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
1394 2002-09-04 Bruno Haible <bruno@clisp.org>
1396 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
1397 sigset_get_old_mask): Turn into inline functions.
1398 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
1399 sigset_get_old_mask): Likewise.
1400 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
1401 sigset_get_old_mask): Likewise.
1402 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
1405 * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
1407 * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
1408 default definitions.
1409 (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
1410 _sys_nerr_internal instead of _sys_nerr.
1412 * nscd/connections.c (handle_request): Declare CALLER inside #if.
1414 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
1416 * sysdeps/powerpc/__longjmp.S: Moved to...
1417 * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
1418 * sysdeps/powerpc/add_n.S: Moved to...
1419 * sysdeps/powerpc/powerpc32/add_n.S: ...here.
1420 * sysdeps/powerpc/addmul_1.S: Moved to...
1421 * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
1422 * sysdeps/powerpc/atomicity.h: Moved to...
1423 * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
1424 * sysdeps/powerpc/backtrace.c: Moved to...
1425 * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
1426 * sysdeps/powerpc/bp-asm.h: Moved to...
1427 * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
1428 * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
1429 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
1430 * sysdeps/powerpc/bsd-setjmp.S: Moved to...
1431 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
1432 * sysdeps/powerpc/dl-machine.c: Moved to...
1433 * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
1434 * sysdeps/powerpc/dl-machine.h: Moved to...
1435 * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
1436 * sysdeps/powerpc/dl-start.S: Moved to...
1437 * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
1438 * sysdeps/powerpc/gprrest0.S: Moved to...
1439 * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
1440 * sysdeps/powerpc/gprrest1.S: Moved to...
1441 * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
1442 * sysdeps/powerpc/gprsave0.S: Moved to...
1443 * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
1444 * sysdeps/powerpc/gprsave1.S: Moved to...
1445 * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
1446 * sysdeps/powerpc/lshift.S: Moved to...
1447 * sysdeps/powerpc/powerpc32/lshift.S: ...here.
1448 * sysdeps/powerpc/memset.S: Moved to...
1449 * sysdeps/powerpc/powerpc32/memset.S: ...here.
1450 * sysdeps/powerpc/mul_1.S: Moved to...
1451 * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
1452 * sysdeps/powerpc/ppc-mcount.S: Moved to...
1453 * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
1454 * sysdeps/powerpc/register-dump.h: Moved to...
1455 * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
1456 * sysdeps/powerpc/rshift.S: Moved to...
1457 * sysdeps/powerpc/powerpc32/rshift.S: ...here.
1458 * sysdeps/powerpc/setjmp.S: Moved to...
1459 * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
1460 * sysdeps/powerpc/stpcpy.S: Moved to...
1461 * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
1462 * sysdeps/powerpc/strchr.S: Moved to...
1463 * sysdeps/powerpc/powerpc32/strchr.S: ...here.
1464 * sysdeps/powerpc/strcmp.S: Moved to...
1465 * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
1466 * sysdeps/powerpc/strcpy.S: Moved to...
1467 * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
1468 * sysdeps/powerpc/strlen.S: Moved to...
1469 * sysdeps/powerpc/powerpc32/strlen.S: ...here.
1470 * sysdeps/powerpc/sub_n.S: Moved to...
1471 * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
1472 * sysdeps/powerpc/submul_1.S: Moved to...
1473 * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
1474 * sysdeps/powerpc/elf/bzero.S: Moved to...
1475 * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
1476 * sysdeps/powerpc/elf/start.S: Moved to...
1477 * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
1478 * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
1479 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
1480 * sysdeps/powerpc/fpu/fprrest.S: Moved to...
1481 * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
1482 * sysdeps/powerpc/fpu/fprsave.S: Moved to...
1483 * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
1484 * sysdeps/powerpc/fpu/setjmp.S: Moved to...
1485 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
1486 * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
1487 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
1488 * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
1489 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
1490 * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
1491 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
1492 * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
1493 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
1494 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
1495 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1496 * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
1497 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
1498 * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
1499 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
1500 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
1501 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
1502 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
1503 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
1504 Support PowerPC64. Separate powerpc into powerpc/powerpc32 and
1507 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
1509 * FAQ.in: Add powerpc64 to supported targets list. Also state the
1510 minimum gcc version is 3.2
1511 * README: Add powerpc64 to supported targets list.
1512 * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
1513 Add powerpc64 and machine=powerpc/powerpc64.
1514 (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
1515 * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
1516 * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
1517 gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
1518 * sysdeps/powerpc/powerpc32/Dist: New file.
1519 * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
1520 * sysdeps/powerpc/powerpc32/Implies: New file.
1521 * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
1522 ($(with-fp) = no): Move test to powerpc32/Makefile.
1523 ($(subdir) = misc): Move to powerpc32/Makefile.
1524 ($(build-shared) = yes): Move to powerpc32/Makefile.
1525 ($(subdir) = csu): Move to powerpc32/Makefile.
1526 (sysdep-rtld-routines): Remove dl-start. Moved these bits to ...
1527 * sysdeps/powerpc/powerpc32/Makefile: New file.
1528 * sysdeps/powerpc/Versions: Remove libgcc functions.
1529 * sysdeps/powerpc/powerpc32/Versions: New file.
1530 * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
1531 * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
1532 * sysdeps/unix/sysv/linux/configure.in (powerpc*):
1533 Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
1534 libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
1535 ($machine): Add powerpc/powerpc64 to if ... | for
1536 libc_cv_slibdir=/libc64.
1537 (powerpc*): Set ldd_rewrite_script.
1538 * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
1539 * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
1540 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
1542 * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
1543 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
1544 functions. Remove GLIBC_2.2 functions except getrlimit and
1545 setrlimit. Moved them to ...
1546 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
1548 2002-09-04 Ulrich Drepper <drepper@redhat.com>
1550 * libio/tst-atime.c: Include <errno.h>.
1551 (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
1553 2002-09-03 Isamu Hasegawa <isamu@yamato.ibm.com>
1555 * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
1556 warnings of some compilers.
1557 (build_collating_symbol): Change the type of characters from
1558 "unsigned char" to "char", and append a cast to "char*" pointer in
1560 (build_collating_symbol): Likewise.
1561 (build_equiv_class): Likewise.
1562 (build_charclass): Likewise.
1563 (re_compile_pattern): Remove incorrect cast.
1564 (re_compile_fastmap_iter): Change the type of characters from
1565 "unsigned char" to "char", and append a cast to "char*" pointer
1567 (parse_bracket_exp): Likewise.
1568 * posix/regex_internal.c (re_string_construct_common): Likewise.
1569 (re_string_allocate): Likewise.
1570 (re_string_construct): Likewise.
1571 (re_string_realloc_buffers): Likewise.
1572 (build_wcs_buffer): Likewise.
1573 (re_string_reconstruct): Likewise.
1574 * posix/regex_internal.h: Change the type of characters in
1575 re_string_t and bracket_elem_t from "unsigned char" to "char".
1576 * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1577 warnings of some compilers.
1578 (transit_state_bkref_loop): Change the type of characters from
1579 "unsigned char" to "char", and append a cast to "char*" pointer in
1581 (check_node_accept_bytes): Likewise.
1582 (find_collation_sequence_value): Likewise.
1584 2002-09-04 Roland McGrath <roland@redhat.com>
1586 * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1587 from 1024 to 65536, to avoid buffer overrun.
1589 2002-09-03 Gerhard Tonn <ton@de.ibm.com>
1591 * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1593 2002-09-04 Ulrich Drepper <drepper@redhat.com>
1595 * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1598 2002-09-04 Jakub Jelinek <jakub@redhat.com>
1600 * posix/bug-regex11.c: New test.
1601 * posix/Makefile (tests): Add bug-regex11.
1603 2002-09-03 Jakub Jelinek <jakub@redhat.com>
1605 * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1608 2002-09-02 Roland McGrath <roland@redhat.com>
1610 * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1611 __pthread_initialize_minimal and __libc_check_standard_fds to
1612 match the generic version.
1614 * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1615 warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1617 * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1618 warnings on platorms where char is unsigned.
1620 2002-09-02 Ulrich Drepper <drepper@redhat.com>
1622 * version.h (VERSION): Bump to 2.2.93.
1624 * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1626 2002-09-02 Jakub Jelinek <jakub@redhat.com>
1628 * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1631 2002-09-02 Jack Howarth <howarth@bromo.msbb.uc.edu>
1633 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1635 2002-09-02 Jakub Jelinek <jakub@redhat.com>
1637 * locale/localeinfo.h (struct locale_data): Add private.ctype.
1638 * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1639 __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1640 (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1641 (__wcsmbs_load_conv): Remove const from argument.
1642 (_nl_cleanup_ctype): New proto.
1643 (get_gconv_fcts): New function.
1644 * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1645 (__wcsmbs_to_wc): Rename back to...
1647 (__wcsmbs_gconv_fcts): Rename to...
1648 (__wcsmbs_gconv_fcts_c): ... this. Make const. Use to_wc.
1650 (__libc_setlocale_lock): New extern.
1651 (__wcsmbs_load_conv): Remove const from argument.
1652 Initialize new_category->private.ctype instead of a global
1654 (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1655 update_function_ptrs. No locking is necessary.
1656 (_nl_cleanup_ctype): New function.
1657 * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1658 update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1659 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1660 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1661 * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1662 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1663 * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1664 * wcsmbs/wctob.c (wctob): Likewise.
1665 * stdlib/mblen.c (mblen): Likewise.
1666 * stdlib/mbtowc.c (mbtowc): Likewise.
1667 * stdlib/wctomb.c (wctomb): Likewise.
1668 * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1669 Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1670 * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1673 2002-09-02 Roland McGrath <roland@frob.com>
1675 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1677 2002-09-01 Roland McGrath <roland@redhat.com>
1679 * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1680 Variable declarations removed.
1681 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1682 these functions to replace them.
1683 (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1684 functions plus an indirection rather than the old global variables.
1685 * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1687 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1689 * ctype/ctype-info.c: Revert last reversion back the other way.
1690 Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1691 Define real function versions of include/ctype.h inlines here.
1692 * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1693 __ctype_tolower_loc, __ctype_toupper_loc.
1694 * locale/lc-ctype.c: Revert last reversion back the other way.
1695 (_nl_postload_ctype): If current thread uses the global locale,
1696 update its tsd vars.
1697 * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1698 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1699 CTYPE_TOLOWER, CTYPE_TOUPPER.
1701 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1702 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1703 from __libc_tsd_threadvar_location.
1704 (__libc_tsd_set, __libc_tsd_get): Update uses.
1706 2002-09-01 Ulrich Drepper <drepper@redhat.com>
1708 * ctype/ctype.h: Undo the patch before the last one. Put back the
1709 macro definitions for the standard functions to access the
1710 classification and mapping arrays.
1711 * include/ctype.h: Partly revert last patch. Move the macro
1712 definitions for the exported functions back to the public header.
1713 #undef all the macros defined here before redefining.
1714 * ctype/ctype-info.c: Revert last patch.
1715 * locale/lc-ctype.c: Revert last patch.
1717 * ctype/Makefile (routines): Add isctype.
1718 * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1719 * ctype/ctype.h: Add declaration of isctype.
1720 * include/ctype.h: Declare __isctype.
1721 * ctype/isctype.c: New file.
1723 2002-09-01 Roland McGrath <roland@redhat.com>
1725 * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1726 TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1728 * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1730 * locale/findlocale.c (_nl_remove_locale): Don't search in
1731 _nl_locale_file_list if DATA->alloc is ld_archive.
1732 Use _nl_unload_locale to do the rest of the work.
1734 * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1735 of new structure to UNDELETABLE.
1737 * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1738 iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1739 towlower, towupper): Macros removed.
1740 * ctype/ctype.h (__tobody): Put parens around macro argument.
1741 (__isctype): Macro removed.
1742 (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1743 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1744 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1745 tolower, toupper): Macros and inlines removed.
1746 * include/ctype.h [! NOT_IN_libc]
1747 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1748 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1749 tolower, toupper): Define here instead, using _NL_CURRENT.
1750 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1752 * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1753 * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1754 Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1755 (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1756 (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1757 * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1758 conditional on SHLIB_COMPAT. Don't set removed variables at all.
1759 * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1760 * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1761 * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1762 (ISSORTMASK): Update use.
1763 * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1764 * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1765 (_nss_files_getENTNAME_r): Likewise.
1766 * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1769 * Makerules (all-nonlib): Renamed from all-tests.
1770 Include $(others) here too.
1771 * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1772 CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1773 CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1774 CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1775 CPPFLAGS-charmap-dir): Variables removed. Instead, catch all
1776 the program modules via cppflags-iterator.mk.
1777 * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1778 Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1780 2002-08-31 Roland McGrath <roland@redhat.com>
1782 * posix/tst-getconf.sh: If no third arg, work with static linking.
1784 * locale/categories.def (LC_TIME): No more _nl_postload_time.
1786 * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1787 [_NL_CURRENT_INDIRECT].
1789 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1791 * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1793 2002-08-31 Roland McGrath <roland@redhat.com>
1795 * locale/newlocale.c (__newlocale): Don't use strdup for names.
1796 Instead, make the single allocation of the structure larger to hold
1798 * locale/duplocale.c (__duplocale): Don't strdup names individually.
1799 Instead, calculate size for a single allocation and copy into it.
1800 * locale/freelocale.c (__freelocale): Don't free names individually.
1802 * locale/newlocale.c (__newlocale): Don't leak old data or names.
1804 * locale/xlocale.h (__locale_struct): Move __names member last,
1805 for binary compatibility.
1807 * locale/duplocale.c (__duplocale): Free names from the right array.
1809 * locale/uselocale.c (__uselocale): Return previous locale when
1812 * locale/newlocale.c: Commit changes from 2002-08-30
1813 batch where I failed to commit this file:
1814 (__newlocale): Fill in __names array.
1816 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1818 * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1819 errlist-compat.c if versioning==yes.
1821 2002-08-31 Andreas Jaeger <aj@suse.de>
1823 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1824 external functions with hidden attribute.
1825 (elf_machine_rela): Optimize.
1827 * sysdeps/x86_64/memset.S: New file.
1828 * sysdeps/x86_64/bzero.S: New file.
1829 * sysdeps/x86_64/stpcpy.S: New file.
1830 * sysdeps/x86_64/strcat.S: New file.
1831 * sysdeps/x86_64/strchr.S: New file.
1832 * sysdeps/x86_64/strcpy.S: New file.
1833 * sysdeps/x86_64/strcspn.S: New file.
1834 * sysdeps/x86_64/strlen.S: New file.
1835 * sysdeps/x86_64/strpbrk.S: New file.
1836 * sysdeps/x86_64/strspn.S: New file.
1837 * sysdeps/x86_64/strcmp.S: New file.
1838 * sysdeps/x86_64/strtok_r.S: New file.
1839 * sysdeps/x86_64/strtok.S: New file.
1840 * sysdeps/x86_64/memcpy.S: New file.
1841 * sysdeps/x86_64/mempcpy.S: New file.
1843 * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1845 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1847 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1849 * stdio-common/Makefile (generated): Add errlist-compat.c.
1851 * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1853 * locale/localeinfo.h: Pretty printing.
1855 * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1856 form_number handling.
1858 2002-08-31 Andreas Jaeger <aj@suse.de>
1860 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1863 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1866 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1868 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1870 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1871 registers used for passing args.
1873 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1874 all needed registers.
1876 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1879 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1882 2002-08-30 Ulrich Drepper <drepper@redhat.com>
1884 * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1885 always_inline attribute.
1887 2002-08-30 Roland McGrath <roland@redhat.com>
1889 * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1890 presume it's the stub and bail without error.
1892 * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1893 neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1895 * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1897 * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1898 macros replace the i686 versions for 64-bit mode.
1900 * locale/duplocale.c: Include <string.h>.
1902 * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1903 [_LIBC] (category_to_name): Don't define the function. Instead
1904 define a macro using _nl_category_names.
1906 * locale/xlocale.h (struct __locale_struct): New member `__names'.
1907 * locale/xlocale.c (_nl_C_locobj): Update initializer.
1908 * locale/global-locale.c (_nl_global_locale): Likewise.
1909 * locale/duplocale.c (__duplocale): strdup __names elements.
1910 * locale/freelocale.c (__freelocale): Free __names elements.
1911 * locale/localename.c (_nl_current_names): Variable removed.
1912 (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1913 * locale/localeinfo.h (_nl_current_names): Removed decl.
1914 * locale/setlocale.c: Use _nl_global_locale->__names in place of
1915 _nl_current_names throughout.
1917 * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1919 * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1920 and sys_nerr in the output file.
1922 * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1923 * scripts/cpp: Just use the environment variable.
1925 * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1926 * libio/tst-mmap-offend.c (do_test): Likewise.
1927 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1928 * libio/tst-mmap-eofsync.c (do_test): Likewise.
1929 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1931 * locale/localename.c: If the current locale is the global locale, use
1932 _nl_current_names; otherwise use the locale object.
1934 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1936 * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1937 'm' to enable mmap I/O.
1938 * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2. The
1939 former wasn't used (anymore?).
1940 (_IO_FLAGS2_MMAP): New define.
1941 * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1942 * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1943 _IO_FLAGS2_MMAP bit is set.
1944 * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1945 Enable mmap-using mode only if 'm' was set.
1947 2002-08-29 Roland McGrath <roland@frob.com>
1949 * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1951 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1952 Change argument type from int to intptr_t.
1954 * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1955 initializer on [! _HURD_THREADVAR_H] (bad kludge).
1956 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1957 _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1958 * hurd/hurdsig.c (_hurdsig_init): Likewise. Zero other slots.
1960 * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1962 * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1964 * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1966 * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1967 * assert/assert-perr.c: Add libc_hidden_def.
1968 * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1970 * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1972 * sysdeps/gnu/Versions: File removed. Moved all #errlist-compat
1973 sys_errlist stuff to ...
1974 * sysdeps/unix/sysv/linux/Versions: ... here.
1976 * mach/mach.h: Include <features.h>.
1978 2002-08-29 Roland McGrath <roland@redhat.com>
1980 * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1981 * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1982 define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1984 * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1986 * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1987 (norm_add_slashes): alloca -> __alloca
1989 2002-08-29 Jakub Jelinek <jakub@redhat.com>
1991 * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1992 string_malloced, it is unlikely to be set.
1993 Only call free with non-NULL workspace.
1994 * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1995 -mcpu=ultrasparc, not only tune for it.
1996 (ASFLAGS*): Set unconditionally.
1998 * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1999 ElfW(Addr). Don't mask upper 32-bits and lower 12 bits off from
2000 p_vaddr/p_offset when computing LOADADDR.
2002 2002-08-29 Ulrich Drepper <drepper@redhat.com>
2004 * version.h (VERSION): Bump to 2.2.92.
2006 * time/Makefile (tst-ftime_l-ENV): New variable.
2008 * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
2010 * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
2011 <U017A>, <U017D> and <U0179>. Add missing mappings.
2012 Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
2014 * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
2015 Define ARCINDEX. Bump MAXARCS to 1 << 20.
2016 (struct tostruct): Use ACRINDEX as type for link field.
2017 (statuc gmonparam): Likewise for froms.
2018 * gmon/gmon.c (__monstartup): Use currect cast for assignments to
2020 (write_call_graph): Use correct type for from_index and to_index.
2021 * gmon/mcount.c: Use correct types for frompcindex and toindex
2023 Patches by Dan Kegel <dank@kegel.com>.
2025 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
2028 * time/strptime.c (ISSPACE): New #define. Use isspace or
2029 __isspace_l. Replace calls to isspace.
2030 (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
2032 2002-08-29 Roland McGrath <roland@redhat.com>
2034 * string/tst-strxfrm.c: Remove __ from function names.
2036 2002-08-28 Ulrich Drepper <drepper@redhat.com>
2038 * include/wchar.h: Declare __mbsrtowcs_l.
2039 * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
2040 * wcsmbs/mbsrtowcs.c: Add support for compilation with
2041 USE_IN_EXTENDED_LOCALE_MODEL.
2042 * wcsmbs/mbsrtowcs_l: New file.
2043 * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc. Don't
2044 define as static. Change all uses.
2045 (__wcsmbs_getfct): Renamed from getfct. Don't define as static.
2047 * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
2048 * time/strftime.c: When translating for the extended locale model
2049 use the _l functions.
2050 * time/Makefile (tests): Add tst-ftime_l.
2051 * time/tst-ftime_l.c: New file.
2053 2002-08-28 Roland McGrath <roland@redhat.com>
2055 * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
2056 * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
2057 from _nl_find_locale ok if for _nl_C_name.
2059 * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
2060 iterator to refer to each category's _nl_current_LC_FOO symbol, so
2061 we know they are all linked in.
2063 * NEWS: Added 2.2.6 text from 2.2 branch version.
2065 * time/strptime.c (strptime_internal): Remove spurious const.
2067 * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
2068 _nl_select_era_entry): Moved to ...
2069 * time/era.c: ... here, new file.
2070 (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
2071 Add internal_function to definitions. Take an additional argument
2072 giving the `struct locale_data *' to use.
2073 * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
2074 _nl_parse_alt_digit): Moved to ...
2075 * time/alt_digit.c: ... here, new file.
2076 * time/lc-time-cleanup.c: New file.
2077 * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
2078 * locale/localeinfo.h (_nl_postload_time): Remove decl.
2079 (_nl_cleanup_time): Declare it.
2080 (_nl_get_era_entry, _nl_select_era_entry): Update decls.
2081 (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
2082 * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
2083 * time/strftime.c: Pass locale data to helper functions.
2084 * time/strptime.c: Likewise.
2086 * locale/localeinfo.h (struct locale_data): New member `private'
2087 * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
2088 (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
2089 * locale/C-collate.c: Update initializer.
2090 * locale/C-identification.c: Likewise.
2091 * locale/C-measurement.c: Likewise.
2092 * locale/C-telephone.c: Likewise.
2093 * locale/C-address.c: Likewise.
2094 * locale/C-name.c: Likewise.
2095 * locale/C-paper.c: Likewise.
2096 * locale/C-time.c: Likewise.
2097 * locale/C-numeric.c: Likewise.
2098 * locale/C-monetary.c: Likewise.
2099 * locale/C-messages.c : Likewise.
2100 * locale/C-ctype.c: Likewise.
2102 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
2105 2002-08-28 Jakub Jelinek <jakub@redhat.com>
2107 * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
2108 (_rtld_global): Use it.
2110 * sysdeps/gnu/Dist: Remove errlist-compat.c.
2111 * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
2112 object directory. Pass all Versions files to the awk script.
2113 * sysdeps/gnu/errlist-compat.c: Removed.
2114 * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
2115 first Versions file in the search path which has them.
2116 Allow multiple errlist symbol versions to have the same count of
2118 * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
2119 of "errlist-compat.c".
2120 * sysdeps/gnu/errlist.c: Regenerated.
2121 * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
2122 comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
2123 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2124 (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
2125 * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
2126 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
2127 * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
2128 * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
2129 ECANCELLED if not defined by kernel headers.
2130 * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
2131 already defined by kernel headers.
2132 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
2133 * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
2134 aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
2136 * Versions.def (GLIBC_2.3) [librt]: Add.
2138 * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
2140 2002-08-28 Ulrich Drepper <drepper@redhat.com>
2142 * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
2143 missing comma to .type directive.
2145 2002-08-28 Jakub Jelinek <jakub@redhat.com>
2147 * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
2149 * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
2151 (PI_STATIC_AND_HIDDEN): Define if check succeeded.
2153 2002-08-28 Jakub Jelinek <jakub@redhat.com>
2155 * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
2156 check to close_and_out close. Replace return NULL statements where
2157 fd might be >= 0 with goto close_and_out. Close the file descriptor
2158 when it is no longer needed.
2160 2002-08-28 Ulrich Drepper <drepper@redhat.com>
2162 * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
2164 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2165 * sysdeps/arm/dl-machine.h: Likewise.
2166 * sysdeps/cris/dl-machine.h: Likewise.
2167 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
2168 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
2170 2002-08-28 Roland McGrath <roland@redhat.com>
2172 * Makeconfig (default_cflags): Revert unintended change.
2174 2002-08-28 Ulrich Drepper <drepper@redhat.com>
2176 * version.h (VERSION): Bump to 2.2.91.
2178 * configure.in: Disable TLS support by default for now.
2180 * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
2182 * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
2185 * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
2187 * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
2188 fprintf/fwprintf calls.
2190 2002-08-28 Roland McGrath <roland@redhat.com>
2192 * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
2193 to use $(filter ...) instead. Same bug fixed in aix conditionals.
2195 * locale/setlocale.c: Declare postload functions weak.
2197 * elf/tst-tls1-static.c: New file.
2198 * elf/tst-tls2-static.c: New file.
2199 * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
2201 Make uselocale support static linking.
2202 * locale/xlocale.c: Revert changes putting _nl_global_locale here.
2203 This file again just defines _nl_C_locobj.
2204 (_nl_C_locobj): Use a categories.def iterator in the initializer.
2205 * locale/global-locale.c: New file. Define _nl_global_locale here,
2206 using all weak references in the initializer.
2207 * locale/Makefile (aux): Add global-locale.
2208 * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
2209 these unconditional, along with the tsd decl.
2210 [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
2211 Define it under these conditions.
2212 [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
2213 Don't declare _nl_current. Declare _nl_current_LC_FOO as
2214 `extern __thread struct locale_data *const *'.
2215 [NL_CURRENT_INDIRECT]
2216 (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
2217 [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten. Define
2218 the thread variable _nl_current_LC_FOO and also a special absolute
2219 symbol _nl_current_LC_FOO_used.
2220 * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
2221 Set each _nl_current_LC_FOO symbol to point into the new locale,
2222 using weak references to test if _nl_current_LC_FOO_used was linked in.
2223 * locale/setlocale.c [! SHARED]: Replace this conditional ...
2224 [NL_CURRENT_INDIRECT]: ... with this one.
2225 (_nl_current, _nl_C): Variables removed.
2226 [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
2227 weak references to _nl_current_LC_FOO_used.
2228 [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
2229 (free_category): New function, broken out of ...
2230 (free_mem): ... here. Call that.
2231 (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
2234 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
2235 PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
2236 it is already absolute.
2238 * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
2239 [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
2240 [$(build-static) = yes] (tests-static): New variable.
2241 ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
2243 2002-08-26 Christoph Hellwig <hch@lst.de>
2245 * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
2246 formating braindamage, add missing PER_HPUX and PER_OSF1 values.
2248 2002-08-28 Ulrich Drepper <drepper@redhat.com>
2250 * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
2252 * sysdeps/s390/Dist: Add bits/link.h.
2254 * sysdeps/sh/Dist: New file.
2256 * sysdeps/ia64/Dist: Add ia64libgcc.S.
2258 * sysdeps/wordsize-32/Dist: New file.
2260 * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
2261 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
2262 * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
2264 * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
2267 * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
2270 * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
2272 * sysdeps/unix/bsd/sun/Dist: New file.
2274 * sysdeps/unix/bsd/osf/Dist: New file.
2276 * sysdeps/unix/bsd/hp/Dist: New file.
2278 * sysdeps/unix/arm/Dist: New file.
2280 * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
2282 * sysdeps/mach/hurd/Dist: Add set-init.c.
2284 * sysdeps/i386/Dist: Add bits/link.h.
2286 * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
2288 * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
2290 * locale/Makefile (distribute): Add hashval.h.
2292 * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
2294 * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
2296 * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
2297 __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
2298 __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
2299 * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
2301 * libio/stdio.h: Likewise.
2302 * locale/locale.h: Likewise.
2303 * math/math.h: Likewise.
2304 * math/bits/mathcalls.h: Likewise.
2305 * setjmp/setjmp.h: Likewise.
2306 * signal/signal.h: Likewise.
2307 * stdlib/stdlib.h: Likewise.
2308 * string/string.h: Likewise.
2309 * time/time.h: Likewise.
2310 * wcsmbs/wchar.h: Likewise.
2311 * wctype/wctype.h: Likewise.
2313 2002-08-28 Roland McGrath <roland@redhat.com>
2315 * locale/tst-C-locale.c (run_test): Remove __ from function names.
2317 2002-08-28 Jakub Jelinek <jakub@redhat.com>
2318 Roland McGrath <roland@redhat.com>
2320 * locale/hashval.h (compute_hashval): Use prototype defn.
2321 (hashval_t): New macro, defined to unsigned long int
2322 if not already defined.
2323 (compute_hashval): Return hashval_t instead of unsigned long int.
2324 * locale/loadarchive.c (hashval_t): New macro.
2325 * locale/programs/locarchive.c: Include hashval.h directly instead
2327 (compute_hashval, hashval_t): Define these macros first.
2328 (insert_name): Use archive_hashval instead of compute_hashval.
2329 (add_locale, delete_locales_from_archive): Likewise.
2331 2002-08-28 Jakub Jelinek <jakub@redhat.com>
2333 * locale/programs/locarchive.c (insert_name): Suppress warnings about
2334 hash collisions if be_quiet.
2336 2002-08-27 Roland McGrath <roland@redhat.com>
2338 * locale/locale.h (__newlocale, __duplocale, __freelocale,
2339 __uselocale): Don't declare these any more.
2340 * include/locale.h (__uselocale): Declare here instead, using __typeof.
2342 * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
2343 and treat it as an EOF return.
2344 * sysdeps/unix/readdir_r.c: Likewise.
2346 * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
2347 From Alexandre Oliva <aoliva@redhat.com>.
2348 * sysdeps/gnu/errlist-compat.c: Regenerated.
2350 2002-08-27 Brian Youmans <3diff@gnu.org>
2352 * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
2353 wording at request of copyright holder Stephen Moshier.
2354 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2355 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2356 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2357 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2358 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2359 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2360 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2361 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2362 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2363 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2364 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2365 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2366 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2367 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2369 2002-08-28 Jakub Jelinek <jakub@redhat.com>
2371 * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
2372 * ctype/ctype-extn.c (isblank_l): Add weak alias.
2373 * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
2374 * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
2375 * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
2376 * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
2377 * wctype/iswctype_l.c (iswctype_l): Likewise.
2379 2002-08-27 Roland McGrath <roland@redhat.com>
2381 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
2383 * ctype/ctype.h (__exctype_l): Don't declare __ name.
2384 * stdlib/stdlib.h: Don't declare __*_l names.
2385 * include/stdlib.h: Declare them here instead.
2386 * include/string.h: Don't declare __*_l names.
2387 * string/string.h: Declare them here instead.
2388 * time/time.h: Don't declare __*_l names.
2389 * include/time.h: Declare them here instead.
2390 * wcsmbs/wchar.h: Don't declare __*_l names.
2391 * include/wchar.h: Declare them here instead.
2392 * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
2393 Don't declare __*_l names.
2394 * include/wctype.h: Declare them here instead.
2395 * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
2396 * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
2397 * locale/langinfo.h: Don't declare __nl_langinfo_l.
2398 * include/langinfo.h: Declare it here with __typeof.
2400 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
2401 instead, taking an extra __locale_t argument.
2402 * time/Makefile (routines): Add strptime_l.
2403 * time/time.h (__strptime_l, strptime_l): Declare them.
2404 * time/strptime_l.c: New file.
2406 * time/time.h (__strftime_l, strftime_l): Declare them.
2407 * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
2408 * time/strftime_l.c: New file.
2409 * time/wcsftime_l.c: New file.
2410 * time/Makefile (routines): Add strftime_l, wcsftime_l.
2411 * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
2412 strftime_l, wcsftime_l.
2413 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
2414 or __wcsftime_l instead, taking an extra __locale_t argument.
2416 * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
2417 (libc: GLIBC_2.3): ... here.
2419 2002-08-27 Ulrich Drepper <drepper@redhat.com>
2421 * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
2423 * Makefile (distribute): Add LICENSES.
2425 * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
2428 * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
2430 * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
2432 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
2434 * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
2436 * sysdeps/mach/hurd/alpha/Dist: New file.
2438 * sysdeps/arm/Dist: Add bits/link.h.
2440 * sunrpc/Makefile: Distribute thrsvc.
2442 * stdio-common/Makefile: Remove more left-overs from old stdio.
2444 * include/linewrap.h: Removed.
2446 * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
2448 * intl/Makefile (distribute): Add plural-eval.c.
2450 2002-08-27 Roland McGrath <roland@redhat.com>
2452 * manual/sysinfo.texi (Mount Information): Correct file name to macro
2453 assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
2454 Say mtab is in either /var/run or /etc.
2456 2002-08-26 Roland McGrath <roland@redhat.com>
2458 * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
2459 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2461 * sysdeps/gnu/Versions: New file.
2462 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
2463 _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
2464 * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
2465 ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
2466 * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
2467 and _sys_nerr_internal instead of anything else. Make it include
2468 "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
2469 Make it emit some asm magic if [EMIT_ERR_MAX].
2470 * sysdeps/gnu/errlist.c: Regenerated.
2471 * sysdeps/gnu/errlist-compat.awk: New file.
2472 * sysdeps/gnu/errlist-compat.c: New file (generated).
2473 * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
2474 (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
2475 (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
2476 (SYS_ERRLIST, SYS_NERR): Macros removed.
2477 (sys_nerr, _sys_nerr): Remove these weak aliases.
2478 * sysdeps/unix/sysv/linux/errlist.c: File removed.
2479 * sysdeps/unix/sysv/linux/errlist.h: File removed.
2480 * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
2482 * include/libc-symbols.h (declare_symbol): New macro.
2483 * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
2484 * configure.in: New check to define it.
2485 * configure: Regenerated.
2487 2002-08-27 Ulrich Drepper <drepper@redhat.com>
2489 * stdio-common/Makefile (headers): Remove bits/stdio_lim.h. This
2490 file isn't distributed. Add special rules to install bits/stdio_lim.h.
2492 * Make-dist: Remove traces of old stdio.
2493 * Makeconfig: Likewise.
2495 * locale/Makefile (localedef-aux): New variable. Only md5
2496 assigned to it. These files are not ddistributed in this directory.
2498 * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2499 * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
2500 * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
2502 * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
2504 * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
2505 set h_errno to NO_RECOVERY [PR libc/4360].
2507 2002-08-26 Ulrich Drepper <drepper@redhat.com>
2509 * libio/Makefile (tests): Add bug-fopena+.
2510 * libio/bug-fopena+.c: New file.
2511 * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
2512 file for _IO_IS_APPENDING if file isn't opened for reading, too.
2514 * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
2516 * locale/xlocale.c: Fix the last change. The variable still has
2518 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2519 (__libc_tsd_set): Add _data prefix to variable name.
2521 2002-08-26 Roland McGrath <roland@redhat.com>
2523 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
2524 macro with inline function.
2525 (sigset_get_old_mask): Likewise.
2526 * sysdeps/posix/sigblock.c (__sigblock): Update callers.
2527 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2528 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2529 * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
2530 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
2531 (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
2533 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
2534 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
2536 2002-07-06 Bruno Haible <bruno@clisp.org>
2538 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
2539 sigset_get_old_mask): Make it work with larger sigset_t.
2540 * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
2541 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2542 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2544 2002-08-26 Roland McGrath <roland@redhat.com>
2546 * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
2547 * manual/filesys.texi (File Times): Document lutimes and futimes.
2548 * misc/Makefile (routines): Add them.
2549 * misc/Versions (libc: GLIBC_2.3): Likewise.
2550 * sysdeps/generic/lutimes.c: New file.
2551 * sysdeps/generic/futimes.c: New file.
2552 * sysdeps/mach/hurd/lutimes.c: New file.
2553 * sysdeps/mach/hurd/futimes.c: New file.
2555 * manual/filesys.texi (File Times): Add explicit note about null
2556 pointer argument to utimes.
2558 2002-08-26 Roland McGrath <roland@frob.com>
2560 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
2561 (__ifreq): Add a cast. Remove an unused variable.
2563 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2564 _HURD_THREADVAR_LOCALE.
2566 2002-08-26 Jakub Jelinek <jakub@redhat.com>
2568 * posix/regexec.c (re_search_stub): Return correct match length
2570 * posix/bug-regex10.c: New test.
2571 * posix/Makefile (tests): Add bug-regex10.
2573 2002-08-26 Brian Youmans <3diff@gnu.org>
2575 * COPYING.LIB: Replaced with fresh copy from
2576 ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2577 suggested copying permission notice now says version 2.1 instead
2580 * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2582 * crypt/crypt_util.c: Likewise.
2583 * crypt/ufc.c: Likewise.
2584 * elf/dl-conflict.c: Likewise.
2585 * elf/dl-iteratephdr.c: Likewise.
2586 * iconv/iconvconfig.h: Likewise.
2587 * malloc/arena.c: Likewise.
2588 * malloc/hooks.c: Likewise.
2589 * malloc/malloc.c: Likewise.
2590 * posix/glob/Makefile.ami: Likewise.
2591 * posix/glob/Makefile.in: Likewise.
2592 * stdlib/gmp-impl.h: Likewise.
2593 * stdlib/gmp.h: Likewise.
2594 * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2595 * sysdeps/generic/strnlen.c: Likewise.
2596 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2597 * sysdeps/mach/hurd/recvmsg.c: Likewise.
2598 * sysdeps/mach/hurd/sendmsg.c: Likewise.
2599 * sysdeps/mach/hurd/spawni.c: Likewise.
2600 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2601 * sysdeps/mach/powerpc/sysdep.h: Likewise.
2602 * sysdeps/mach/powerpc/thread_state.h: Likewise.
2603 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2604 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2605 * sysdeps/x86_64/gmp-mparam.h: Likewise.
2607 * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2608 Lesser GPL copying permission notice from 2 to 2.1.
2609 * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2610 * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2611 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2612 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2613 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2614 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2615 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2616 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2617 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2618 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2619 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2620 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2621 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2622 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2623 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2624 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2625 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2626 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2627 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2628 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2629 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2630 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2631 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2632 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2633 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2634 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2635 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2636 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2637 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2638 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2639 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2640 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2641 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2642 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2643 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2644 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2645 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2646 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2647 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2648 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2649 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2650 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2651 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2652 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2653 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2654 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2655 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2656 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2657 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2658 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2659 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2660 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2661 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2662 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2663 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2665 * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2666 Moshier and Lesser GPL copying permission notice, per license from
2668 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2669 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2670 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2671 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2672 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2673 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2674 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2675 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2676 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2677 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2678 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2679 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2680 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2681 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2683 * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2684 notice, per license from copyright holder Stephen Moshier.
2685 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2686 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2687 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2688 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2689 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2690 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2691 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2692 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2693 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2695 2002-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2697 * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2698 (shared-only-routines): Likewise.
2700 2002-08-26 Roland McGrath <roland@redhat.com>
2702 * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2703 name of "", store a null pointer instead.
2705 * configure.in (elf): Set to yes for freebsd*, netbsd*.
2706 * configure: Regenerated.
2708 * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2709 Initialize this instead of __libc_tsd_LOCALE_data.
2711 * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2712 ptsname_r to EINVAL.
2714 * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2716 * rt/Makefile: Revert last change, it was inappropriate to presume aio
2717 implementations depend on pthreads.
2718 * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2719 * rt/tst-aio64.c (do_test): Likewise.
2720 * rt/tst-aio2.c (do_test): Likewise.
2721 * rt/tst-aio3.c (do_test): Likewise.
2722 * rt/tst-aio4.c (do_test): Likewise.
2723 * rt/tst-aio5.c (do_test): Likewise.
2724 * rt/tst-aio6.c (do_test): Likewise.
2725 * rt/tst-aio7.c (do_test): Likewise.
2727 * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2728 void so as to avoid compiler warnings.
2730 * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2731 _IO_wide_data_FD, which is never used here.
2734 [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2735 * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2736 * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2738 * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2739 * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2741 * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2742 (closelog): Likewise.
2744 2002-07-06 Bruno Haible <bruno@clisp.org>
2746 * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2748 * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2749 * sysdeps/unix/alpha/pipe.S: ... here.
2750 * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2752 * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2754 * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2755 * sysdeps/unix/i386/fork.S: Likewise.
2756 * sysdeps/unix/i386/pipe.S: Likewise.
2757 * sysdeps/unix/i386/wait.S: Likewise.
2759 * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2760 * sysdeps/unix/arm/fork.S: Likewise.
2762 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2764 (DO_CALL): Swap argument order.
2765 * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2767 (DO_CALL): Swap argument order.
2768 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2770 (DO_CALL): Swap argument order.
2771 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2773 (DO_CALL): Swap argument order.
2774 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2776 (DO_CALL): Swap argument order.
2777 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2779 (DO_CALL): Swap argument order.
2780 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2782 (DO_CALL): Swap argument order.
2784 * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2785 (L): Define right for ELF.
2786 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2787 Now defined in sysdeps/i386/sysdep.h.
2789 * sysdeps/posix/readv.c: Ansify function definition.
2790 * sysdeps/posix/writev.c: Likewise.
2792 * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2793 have the same size. Avoid direct cast from size_t to off_t.
2795 * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2796 nul byte in entry[n].ut_user.
2797 (simulate_logout): Likewise.
2799 * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2800 _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2801 existence of corresponding members of 'struct utmp'.
2802 * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2805 * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2806 allocate a buffer of at least BUFSIZ bytes, not just of
2807 sizeof (struct dirent).
2809 * sysdeps/generic/glob.c: Include <limits.h>.
2810 (NAME_MAX): Define a fallback.
2811 (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2813 * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2814 (main): Allocate enough room for a 'struct dirent64' on the stack.
2815 * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2818 * sysdeps/unix/sysv/linux/init-first.c: Don't include
2821 * inet/htontest.c: Include <sys/types.h>.
2823 * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2825 * include/sys/sysctl.h: Comment fix.
2827 * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2829 * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2831 * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2833 * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2834 (__getpeername): New alias.
2835 (__getsockname): New alias.
2836 (__socket): New alias.
2838 * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2840 * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2841 (__fcntl_internal): New alias.
2842 (__profil): New alias.
2844 2002-08-26 Ulrich Drepper <drepper@redhat.com>
2846 * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2847 entry was for getaddr* lookup or not. Add only matching cache
2848 entry. Change all callers [PR libc/4317].
2850 * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2851 finding the read position [PR libc/4265].
2852 * libio/Makefile (tests): Add bug-rewind2.
2853 * libio/bug-rewind2.c: New file.
2855 * libio/bug-rewind.c: Fix creation of temp file.
2857 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2859 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2860 neither SUCCESS nor TRYAGAIN [PR libc/4259].
2861 * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2862 to ENOENT if no entry is found.
2863 * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2865 * nis/nss_compat/compat-initgroups.c: Likewise.
2866 * nis/nss_compat/compat-pwd.c: Likewise.
2867 * nis/nss_compat/compat-spwd.c: Likewise.
2868 * nis/nss_nis/nis-alias.c: Likewise.
2869 * nis/nss_nis/nis-ethers.c: Likewise.
2870 * nis/nss_nis/nis-grp.c: Likewise.
2871 * nis/nss_nis/nis-hosts.c: Likewise.
2872 * nis/nss_nis/nis-initgroups.c: Likewise.
2873 * nis/nss_nis/nis-netgrp.c: Likewise.
2874 * nis/nss_nis/nis-network.c: Likewise.
2875 * nis/nss_nis/nis-proto.c: Likewise.
2876 * nis/nss_nis/nis-publickey.c: Likewise.
2877 * nis/nss_nis/nis-pwd.c: Likewise.
2878 * nis/nss_nis/nis-rpc.c: Likewise.
2879 * nis/nss_nis/nis-service.c: Likewise.
2880 * nis/nss_nis/nis-spwd.c: Likewise.
2881 * resolv/nss_dns/dns-host.c: Likewise.
2882 * resolv/nss_dns/dns-network.c: Likewise.
2883 * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2884 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2885 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2886 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2887 * nis/nss_nisplus/nisplus-network.c: Likewise.
2888 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2889 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2890 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2891 * nis/nss_nisplus/nisplus-service.c: Likewise.
2892 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2893 * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2894 * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2895 * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2896 * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2898 * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2899 declaring __restore and __restore_rt as hidden (if possible).
2901 2002-08-25 Roland McGrath <roland@redhat.com>
2903 * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2905 * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2906 (getutent_r_file, internal_getut_r): Updated all callers.
2907 (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2909 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2911 * locale/programs/locale.c: Don't print aliases for non-existing
2912 locales for 'locale -a'.
2913 Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2915 2002-07-19 H.J. Lu <hjl@gnu.org>
2917 * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2919 2002-07-16 H.J. Lu <hjl@gnu.org>
2921 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2923 * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2925 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2927 * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2928 not moved ahead of the fputs call.
2929 * elf/tst-tlsmod2.c (in_dso): Likewise.
2930 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2931 * elf/tst-tlsmod4.c (in_dso): Likewise.
2933 2002-08-25 Andreas Schwab <schwab@suse.de>
2935 * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2937 2002-08-25 Roland McGrath <roland@redhat.com>
2939 * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2940 resetting handler, to avoid the possibility of a spurious SIGALRM
2941 delivered to the user's handler.
2942 Reported by Amit D. Chaudhary <amitc@brocade.com>,
2944 * misc/Makefile (CFLAGS-init-misc.c): Variable removed. It served to
2945 set -fkeep-inline-functions, which is not needed for the current file.
2947 * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2948 (_dl_setup_hash): Add attribute_hidden.
2949 (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2950 (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2951 (_dl_new_object, _dl_map_object_deps): Likewise.
2952 (_dl_map_object_deps_internal): Remove decl.
2953 * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2955 * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2956 && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2957 && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2958 (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2959 instead relying on the compiler to produce only GOTOFF variable refs.
2961 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2963 * elf/dl-load.c: Fix typo in comment. Add a few more __builtin_expect.
2965 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2966 inline to avoid defining it in every file which includes this header.
2968 * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2969 defining DONT_USE_BOOTSTRAP_MAP.
2971 * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2972 * libio/tst-mmap-setvbuf.c (main): Likewise.
2973 * libio/tst-widetext.c (main): Likewise.
2975 * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2977 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2978 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2980 * sysdeps/i386/elf/configure.in: Unconditionally define
2981 PI_STATIC_AND_HIDDEN.
2982 * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2983 PI_STATIC_AND_HIDDEN is defined as well.
2984 * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2986 2002-08-24 Ulrich Drepper <drepper@redhat.com>
2988 * sysdeps/ia64/bzero.S: Define __bzero as well.
2990 * locale/programs/charmap.c (charmap_new_char): Don't use
2991 ULONG_MAX as maximum UCS4 value.
2993 * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2995 * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2997 * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2998 * malloc/malloc.c (mALLINFo): Likewise.
3000 * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
3002 * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
3003 examining result of _IO_do_flush call.
3005 * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
3006 Use prec not spec when sizing buffers.
3008 * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
3009 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
3010 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
3011 * stdio-common/vfscanf.c (inchar): Likewise.
3012 * misc/efgcvt_r.c (fcvt_r): Likewise.
3013 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
3014 * elf/readlib.c (process_file): Likewise.
3015 * elf/sprof.c (load_profdata): Likewise.
3016 * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
3017 * locale/programs/linereader.c (get_toplvl_escape): Likewise.
3018 * locale/programs/charmap.c (charmap_read): Likewise.
3019 * libio/fileops.c: Likewise.
3020 * libio/fmemopen.c: Likewise.
3021 * stdlib/strtod.c: Likewise.
3022 * elf/dl-load.c: Likewise.
3023 * iconv/iconvconfig.c: Likewise.
3024 * iconv/iconv_prog.c (process_block): Likewise.
3025 * elf/rtld.c (dl_main): Likewise.
3027 * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
3028 macro to calm down the compiler.
3030 * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
3032 * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
3034 * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
3035 placement of errno definition.
3036 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
3037 * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
3038 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
3039 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
3040 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
3042 * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
3043 from 1024 to 65536, to avoid buffer overrun.
3045 2002-08-16 Paul Eggert <eggert@twinsun.com>
3047 * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
3048 from 1024 to 65536, to avoid buffer overrun.
3049 * resolv/res_query.c (MAXPACKET): Likewise.
3051 2002-08-24 Andreas Jaeger <aj@suse.de>
3053 * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
3055 2002-08-23 Ulrich Drepper <drepper@redhat.com>
3057 * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
3060 * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
3061 Patch by Simon Gee <simong@agile.tv>.
3063 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
3064 Prefer reading /proc/stat since it is more uniform across
3067 * manual/texinfo.tex: Update to latest official version.
3069 * sysvipc/sys/shm.h: Remove SHMLBA definition.
3070 * sysdeps/generic/bits/shm.h: Define SHMLBA here.
3071 * sysdeps/gnu/bits/shm.h: Likewise.
3072 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3073 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3074 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3075 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3076 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3077 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3078 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3079 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
3080 since this is what the kernel says.
3082 * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
3083 since ssize_t is needed as well. Replace const with __const.
3085 2002-08-23 Roland McGrath <roland@redhat.com>
3087 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
3088 __malloc_hook, __realloc_hook, __memalign_hook,
3089 __after_morecore_hook): Variable definitions moved to ...
3090 * malloc/malloc.c: ... here, so as to be before all references.
3092 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
3093 global variable reference in an unused asm parameter, to ensure the
3094 compiler has set up the GOT register before we use it.
3096 * malloc/hooks.c: Move variable definitions ahead of uses.
3097 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
3098 initializers that make reference to variables they define.
3100 2002-08-23 Andreas Jaeger <aj@suse.de>
3102 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
3103 alloca, free, qsort.
3105 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
3107 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
3108 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
3110 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
3112 * sysdeps/generic/fgetxattr.c: New file.
3113 * sysdeps/generic/flistxattr.c: New file.
3114 * sysdeps/generic/fremovexattr.c: New file.
3115 * sysdeps/generic/fsetxattr.c: New file.
3116 * sysdeps/generic/getxattr.c: New file.
3117 * sysdeps/generic/listxattr.c: New file.
3118 * sysdeps/generic/lgetxattr.c: New file.
3119 * sysdeps/generic/llistxattr.c: New file.
3120 * sysdeps/generic/lremovexattr.c: New file.
3121 * sysdeps/generic/lsetxattr.c: New file.
3122 * sysdeps/generic/removexattr.c: New file.
3123 * sysdeps/generic/setxattr.c: New file.
3124 * misc/Makefile (headers): Add sys/xattr.h.
3125 (routines): Add *xattr calls.
3126 * misc/Versions: Add *xattr calls with version 2.3.
3127 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
3128 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3129 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3130 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3131 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3132 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3133 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3134 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3136 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
3138 * sysdeps/powerpc/elf/libc-start.c
3139 (__cache_line_size): Declare.
3140 (__aux_init_cache): New function.
3141 (__libc_start_main): Change type of `auxvec' parameter to
3142 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
3144 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3145 (__cache_line_size): Declare.
3146 (__aux_init_cache): New function.
3147 (DL_PLATFORM_INIT): Define.
3148 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
3149 value to select the correct stride for dcbz.
3151 2002-08-22 Andreas Jaeger <aj@suse.de>
3153 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
3156 2002-08-22 Roland McGrath <roland@redhat.com>
3158 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
3159 position indicated by locrectab against file bounds before rounding to
3160 page size. In mapping loop, always set TO before breaking out of
3161 contiguous range coalescing loop.
3163 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
3164 (or MAP_COPY if available) instead of MAP_SHARED.
3166 * scripts/firstversions.awk: When encountering a version newer than
3167 the specified earliest version, be sure to emit the specified earliest
3168 version first if any renaming of an older version to that has been.
3170 2002-08-21 Roland McGrath <roland@redhat.com>
3172 * configure.in: Make GCC version check require 3.[2-9]* and no others.
3173 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
3174 (Configuring and compiling): Don't mention older GCC versions any more.
3175 * INSTALL: Regenerated.
3177 * manual/install.texi (Configuring and compiling, Installation,
3178 Running make install, Linux): Linux -> GNU/Linux where appropriate.
3180 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
3181 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
3182 and with noinline otherwise. Remove hack alloca use to prevent
3183 inlining, we can ask for it explicitly nowadays.
3185 * dlfcn/bug-dlsym1.c: New file.
3186 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
3187 * dlfcn/Makefile (distribute): Add them.
3188 (tests): Add bug-dlsym1 here.
3189 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
3190 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
3191 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
3193 2002-08-21 Ulrich Drepper <drepper@redhat.com>
3195 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
3196 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
3198 (_dl_start): Don't use local bootstrap_map variable if
3199 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
3200 pass bootstrap_map to _dl_start_final in this case either. Don't
3201 pass start_time to _dl_start_final ever.
3202 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
3204 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
3205 This cripples the scope lists necessary to search for symbols in
3206 dependencies which are not in the global scope.
3208 * include/setjmp.h (__libc_longjmp): Add declaration.
3210 2002-08-21 Andreas Jaeger <aj@suse.de>
3212 * sysdeps/x86_64/_mcount.S: Fix assembler.
3214 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
3215 with biarch support.
3217 2002-08-21 Andreas Jaeger <aj@suse.de>
3219 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
3221 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
3223 * sysdeps/x86_64/machine-gmon.h: New file.
3224 * sysdeps/x86_64/_mcount.S: New file.
3226 2002-08-20 Ulrich Drepper <drepper@redhat.com>
3228 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
3229 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
3230 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
3231 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
3232 to TL_INIT_TP. Otherwise pass 1.
3233 * include/link.h (struct link_map): Add l_tls_tp_initialized.
3234 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
3236 2002-08-15 Jakub Jelinek <jakub@redhat.com>
3238 * locale/programs/localedef.c (add_to_readlist): Error about
3239 circular dependencies only if the locale in question hasn't
3241 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
3242 CTYPE_LOCALE to load_locale.
3243 * locale/programs/locfile.c (locfile_read): Don't include
3244 unneeded but available locales in locale_mask.
3246 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
3247 print any messages about enlarging archive.
3249 2002-08-20 Brian Youmans <3diff@gnu.org>
3251 * manual/contrib.texi: Removed licenses, added acknowledgements
3252 for contributions by Intel, IBM, Craig Metz.
3253 * LICENSES: New file, contains the text of all non-FSF licenses in the
3254 distribution that require putting the notice in the accompanying
3256 * README.template, README: Mention LICENSES.
3258 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
3259 new one modelled on the modern BSD license, per recent letter
3260 of permission from CMU.
3261 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3263 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
3264 from IBM to FSF, per the recent Software Letter. Changed the
3265 distribution terms from GPL to LGPL.
3267 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
3268 copying permission notice (Lesser GPL), per recent IBM Software Letter.
3269 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3270 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
3271 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
3272 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
3273 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
3274 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
3275 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
3276 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
3278 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
3279 from IBM to FSF, per the recent Software Letter. Corrected the
3280 text of the copying permission notice to say Lesser GPL instead
3281 of GPL in warranty disclaimer paragraph.
3282 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3283 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
3284 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3285 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
3286 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
3287 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
3288 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
3289 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3290 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3291 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
3292 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3293 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3294 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
3295 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
3296 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
3297 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
3298 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
3299 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
3300 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
3301 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
3302 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3304 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
3305 permission notice to say Lesser GPL instead of GPL in warranty
3306 disclaimer paragraph.
3307 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3308 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3309 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3310 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3311 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3312 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3313 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3314 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3315 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3316 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3317 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3318 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3319 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3320 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3321 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3322 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3323 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3324 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3325 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3326 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3327 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3328 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3329 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
3331 2002-08-20 Roland McGrath <roland@redhat.com>
3333 Fix ABI compatibility with libc compiled with old tools on powerpc.
3334 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3335 and Jack Howarth <howarth@bromo.med.uc.edu>.
3336 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
3337 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
3338 pass -DHAVE_DOT_HIDDEN for these files.
3339 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
3341 * sysdeps/powerpc/divdi3.c: New file.
3342 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
3343 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
3345 2002-08-20 Jakub Jelinek <jakub@redhat.com>
3347 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
3348 partially overlapping mappings. Remove unneeded (char *) casts.
3349 Never allow duplication of ranges in mapped areas.
3351 2002-08-20 Roland McGrath <roland@redhat.com>
3353 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
3354 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
3356 2002-08-20 Ulrich Drepper <drepper@redhat.com>
3358 * include/unistd.h: Don't hide _exit.
3360 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
3361 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
3362 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
3363 argument 1 to TLS_INIT_TP.
3364 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
3366 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
3368 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
3369 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
3370 memory allocation to...
3371 (allocate_dtv): ...here. New function.
3372 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
3373 call allocate_dtv instead of _dl_allocate_tls_storage.
3374 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
3375 (_dl_get_tls_static_info): New function.
3376 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
3377 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
3379 2002-08-19 Ulrich Drepper <drepper@redhat.com>
3381 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
3382 immediately if result == NULL.
3384 2002-08-16 Jakub Jelinek <jakub@redhat.com>
3386 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3388 2002-08-18 Roland McGrath <roland@frob.com>
3390 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
3391 instead of __file_name_split.
3392 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
3394 * sysdeps/mach/hurd/dl-sysdep.c
3395 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
3396 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
3398 2002-08-16 Jakub Jelinek <jakub@redhat.com>
3400 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
3401 in change before last: MAX -> MIN.
3403 2002-08-15 Roland McGrath <roland@redhat.com>
3405 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
3406 if seek would go past it.
3407 (mmap_remap_check): If file position is at or past EOF after check,
3408 leave read pointers at EOF and don't seek.
3410 * libio/tst-mmap-offend.c: New file.
3411 * libio/Makefile (tests): Add it.
3413 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
3414 the name as passed, rather than the name in the archive dictionary.
3416 2002-08-15 Ulrich Drepper <drepper@redhat.com>
3418 * csu/Makefile: Define elide-routines.os not static-only-routines.
3420 * include/sched.h (__clone): Add varargs at the end.
3422 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
3424 (TLS_INIT_HELPER): If defined, use it.
3425 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
3427 2002-08-15 Roland McGrath <roland@redhat.com>
3429 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
3430 on L->l_prev; it can happen under rtld --verify too.
3432 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
3433 header separately, just map an initial window of 2MB from the file
3434 and remap if that is not large enough to cover the whole header.
3436 2002-08-15 Andreas Jaeger <aj@suse.de>
3438 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
3440 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3441 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3442 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3443 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3444 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3445 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3446 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3447 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3448 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.