1 2002-09-29 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): The return value
4 semantics for sigtimedwait is different. Rework the return value
5 handling and don't pass in an siginfo variable.
7 2002-09-29 Roland McGrath <roland@redhat.com>
9 * malloc/malloc.c [! MALLOC_DEBUG] (assert): #undef before defining.
11 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.2.6): Add __errno_location.
13 * sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
14 Define errno in .tbss.
15 * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS
16 access for setting errno.
18 * sysdeps/unix/x86_64/sysdep.S: Store 32 bits at errno, not 64 bits.
19 AFAICT, it was just blind luck that the word following errno in .bss
20 was just alignment padding and not some other variable to be clobbered.
22 2002-09-29 Jakub Jelinek <jakub@redhat.com>
24 * sysdeps/unix/sysv/linux/kernel-features.h
25 (__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty.
27 2002-09-29 Jakub Jelinek <jakub@redhat.com>
29 * nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't
32 2002-09-29 Ulrich Drepper <drepper@redhat.com>
34 * nss/Makefile: Move bug-erage from tests to xtests.
36 2002-09-29 Jakub Jelinek <jakub@redhat.com>
38 * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
40 2002-09-29 Jakub Jelinek <jakub@redhat.com>
42 * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
44 (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
45 inline_syscall5, inline_syscall6): Likewise.
46 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
48 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
51 2002-09-29 Roland McGrath <roland@redhat.com>
53 * configure.in (libc_cv_ranlib_necessary check): Put the .o file in
54 the archive, not the .c file.
55 * configure: Regenerated.
57 2002-09-29 Roland McGrath <roland@redhat.com>
59 * configure: Regenerated after aclocal.m4 change.
61 * sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form.
62 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here.
64 * sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP):
65 Define it, because _dl_sym presumes it (for any platform).
67 * sysdeps/x86_64/dl-tls.h: New file.
69 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast.
71 * sysdeps/x86_64/elf/configure.in: New file.
72 * sysdeps/x86_64/elf/configure: New generated file.
74 2002-09-28 Roland McGrath <roland@redhat.com>
76 * elf/rtld.c (_dl_start): Fix conditional for declaring CNT.
78 * aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
81 2002-09-28 Ulrich Drepper <drepper@redhat.com>
83 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit
86 2002-09-28 Jakub Jelinek <jakub@redhat.com>
88 * posix/bug-regex11.c (tests): Add flags field.
89 (main): Avoid warnings. Use test[i].flags. Return nonzero
90 if any of the tests failed.
91 * posix/bug-regex12.c: New file.
92 * posix/Makefile (tests): Add bug-regex12.
94 2002-03-02 Thorsten Kukuk <kukuk@suse.de>
96 * sysdeps/unix/nice.c (nice): Use getpriority() for the return value.
98 2002-09-28 Jeff Bailey <jbailey@gnu.org>
100 * sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete.
101 * sysdeps/unix/sysv/aix/configure.in: Update comment and remove
104 2002-09-28 Roland McGrath <roland@redhat.com>
106 * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for
108 * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
109 * sysdeps/powerpc/powerpc64/dl-machine.c
110 (_dl_reloc_overflow): Likewise.
111 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
112 (elf_machine_rela): Likewise.
114 2002-09-27 Steven Munroe <sjmunroe@us.ibm.com>
116 * include/libc-symbols.h (__hidden_dot_weak1): Fix typo. Replace
117 ASM_GLOBAL_DIRECTIVE with .weak.
119 2002-09-28 Andreas Jaeger <aj@suse.de>
121 * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix
122 number of args to syscall.
123 * sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise.
124 Patch by Guido Guenther <agx@sigxcpu.org>.
126 2002-09-27 Roland McGrath <roland@redhat.com>
128 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite):
129 Define these to __NR_pread64, __NR_pwrite64 if not defined.
131 * sysdeps/unix/sysv/linux/powerpc/lchown.S
132 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition
133 on chown compatibility symbol; use compat_symbol, not symbol_version.
135 2002-09-27 Isamu Hasegawa <isamu@yamato.ibm.com>
137 * posix/regcomp.c (reg_free): Free the debug area.
138 (re_compile_internal): Allocate debug area for the input string.
139 (create_initial_state): Check the back references in initial states
140 if they are really match null string in the initial state.
141 (parse_reg_exp): Mark the dfa that the dfa can have plural matchings.
142 (parse_expression): Likewise.
143 (parse_bracket_exp): Likewise.
144 * posix/regex_internal.c (re_node_set_intersect): Remove unused
146 (re_node_set_contains): Change to return the index of node.
147 * posix/regex_internal.h (re_backref_cache_entry): Change the members.
148 (re_match_context_t): Likewise.
149 (struct re_dfa_t): Likewise.
150 (re_sift_context_t): New structure.
151 * posix/regexec.c (match_ctx_clear_flag): New function.
152 (sift_ctx_init): Likewise.
153 (update_cur_sifted_state): Likewise.
154 (add_epsilon_src_nodes): Likewise.
155 (sub_epsilon_src_nodes): Likewise.
156 (check_subexp_limits): Likewise.
157 (search_subexp): Likewise.
158 (sift_states_bkref): Likewise.
159 (merge_state_array): Likewise.
160 (sift_states_iter_bkref): Remove unused function.
161 (add_epsilon_backreference): Remove unused function.
162 (re_search_internal): Adapt new members and interfaces.
163 (check_matching): Check the back references in initial states
164 if they are really match null string in the initial state.
165 (proceed_next_node): Change the evaluation of back references,
166 since we have real registers here.
167 (set_regs): Adapt new interface of proceed_next_node.
168 (sift_states_backward): Add invocation of update_cur_sifted_state
169 instead of add_epsilon_backreference.
170 Add a sentinel to the outermost while loop.
171 Move the handling of back references to sift_states_bkref function,
172 since we can't handle some back references (e.g. a back reference
173 which match NULL string) here.
174 (transit_state_mb): Handle the new member max_mb_elem_len.
175 (transit_state_bkref_loop): Move the evaluation of back references to
176 search_subexp function, since we can't evaluate some back references
177 (e.g. a back reference which can have plural matchings) here.
178 (match_ctx_init): Adapt the new member.
179 (match_ctx_add_entry): Adapt the new members.
181 2002-09-25 Alan Modra <amodra@bigpond.net.au>
183 * elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for
184 'elf_machine_rel_relative'
185 (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro
186 instead of 'elf_machine_rel_relative'.
187 * sysdeps/hppa/dl-machine.h:
188 Define macro DO_ELF_MACHINE_REL_RELATIVE for
189 'elf_machine_rel_relative' with extra map parameter
191 (elf_machine_rela_relative): Add plt relocation changes.
193 2001-11-14 Matthew Wilcox <willy@debian.org>
195 * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file.
196 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file.
197 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file.
198 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file.
200 2002-09-27 Steven Munroe <sjmunroe@us.ibm.com>
202 * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment.
204 * sysdeps/powerpc/powerpc64/Makefile
205 [$(build-shared) = yes] (pic-ccflag): Define it.
206 [$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
208 2002-09-27 Roland McGrath <roland@redhat.com>
210 * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
213 2002-09-27 Jakub Jelinek <jakub@redhat.com>
215 * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
216 unconditionally. Set dli_fname to _dl_argv[0] only for main program.
218 2002-09-27 Roland McGrath <roland@redhat.com>
220 * elf/dl-addr.c (_dl_addr): Add a cast.
222 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
223 TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.
225 * elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
226 R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
227 R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
228 (R_X86_64_NUM): Update the value.
230 2002-09-24 Jakub Jelinek <jakub@redhat.com>
232 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
233 rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
235 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
236 the same l_addr computation.
237 * sysdeps/sparc/sparc64/configure.in: Removed.
238 * sysdeps/sparc/sparc64/configure: Removed.
239 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
241 2002-09-26 Ulrich Drepper <drepper@redhat.com>
243 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
245 * elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
246 * elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
247 symbol table if necessary.
249 2002-09-26 Roland McGrath <roland@redhat.com>
251 * stdlib/longlong.h: Replaced with current version from GCC mainline,
252 last modified 2002-09-22 Kazu Hirata <kazu@cs.umass.edu>.
254 2002-09-25 Andreas Jaeger <aj@suse.de>
256 * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
257 Patch by Guido Guenther <agx@sigxcpu.org>.
259 2002-09-25 Roland McGrath <roland@redhat.com>
261 * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
263 2002-09-24 Ulrich Drepper <drepper@redhat.com>
265 * sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
267 2002-09-24 Roland McGrath <roland@redhat.com>
269 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
270 __libc_write, __libc_lseek64, to ...
271 (ld: GLIBC_PRIVATE): ... here.
273 * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
274 (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
275 (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
276 * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
277 (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
279 (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
281 * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
282 New macros for x86-64.
284 * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
285 It was indentical to the linux/bits/time.h file.
287 * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
289 * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
291 2002-09-23 Ulrich Drepper <drepper@redhat.com>
293 * po/zh_CN.po: New file.
295 2002-09-23 Roland McGrath <roland@redhat.com>
297 * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
298 for gethostname declaration.
300 * catgets/open_catalog.c (__open_catalog): Don't use a value type
301 as the __builtin_expect expression, just the Boolean value.
303 * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
304 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
305 * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
306 * iconvdata/tst-loading.c (main): Likewise.
307 * catgets/tst-catgets.c (main): Likewise.
308 * stdlib/tst-xpg-basename.c (main): Likewise.
309 * stdlib/tst-bsearch.c (main): Likewise.
310 * stdio-common/test-vfprintf.c (main): Likewise.
311 * stdio-common/tst-rndseek.c (do_test): Likewise.
312 * libio/tst_swprintf.c (main): Likewise.
313 * libio/tst-fgetws.c (main): Likewise.
314 * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
315 * time/tst-posixtz.c (main): Likewise.
316 * time/tst-strptime.c (test_tm): Likewise.
317 * time/tst-strptime.c (main): Likewise.
318 * time/tst-getdate.c (main): Likewise.
319 * posix/tst-mmap.c (main): Likewise.
320 * posix/tst-getaddrinfo.c (do_test): Likewise.
321 * io/tst-getcwd.c (do_test): Likewise.
322 * resolv/tst-aton.c (main): Likewise.
323 * inet/tst-network.c (main): Likewise.
324 * libio/tst-fgetws.c (main): Likewise.
325 * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
326 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
329 * stdlib/msort.c (qsort): Add a cast to silence warning.
330 * stdio-common/vfprintf.c (process_string_arg): Likewise.
331 * libio/oldfileops.c (_IO_old_do_write): Likewise.
332 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
333 * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
334 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
335 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
336 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
337 * sysdeps/unix/grantpt.c (grantpt): Likewise.
338 * libio/tst-widetext.c (main): Likewise.
339 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
340 * rt/tst-aio.c (test_file): Likewise.
341 * rt/tst-aio64.c (test_file): Likewise.
342 * resolv/tst-aton.c (main): Likewise.
344 * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
346 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
347 instead of uint32_t in these macros.
349 2002-09-22 Bruno Haible <bruno@clisp.org>
351 * iconv/iconv_prog.c (main): Provide an error message that identifies
354 * iconvdata/tscii.c: New file.
355 * iconvdata/testdata/TSCII: New file.
356 * iconvdata/testdata/TSCII..UTF8: New file.
357 * iconvdata/TSCII.precomposed: New file.
358 * iconvdata/TSCII.irreversible: New file.
359 * iconvdata/gconv-modules (TSCII): New module.
360 * iconvdata/Makefile (modules): Add TSCII.
361 (distribute): Add tscii.c.
362 * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
364 * iconvdata/tst-tables.sh: Add TSCII.
365 * iconvdata/TESTS: Add TSCII.
367 Revert 2002-04-18 patch.
368 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
369 FROM_DIRECTION): Make the FROM direction stateful again.
370 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
371 FROM_DIRECTION): Likewise.
373 * iconvdata/tst-e2big.c: New file.
374 * iconvdata/Makefile (tests): Add tst-e2big.
376 2002-09-23 Roland McGrath <roland@redhat.com>
378 * elf/Makefile (test-extras): Define this instead of test-srcs.
379 * Makerules (all-nonlib): Include $(test-extras) too.
381 2002-09-21 Carlos O'Donell <carlos@baldric.uwo.ca>
383 * sysdeps/hppa/abort-instr.h: New file.
385 2002-09-22 Roland McGrath <roland@frob.com>
387 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
389 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
391 2002-09-22 Andreas Schwab <schwab@suse.de>
393 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
395 * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
396 (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
399 2002-09-21 Roland McGrath <roland@redhat.com>
401 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
402 Correct the value so it covers all platforms, and is computed
403 from _DL_PLATFORMS_COUNT rather than hard-wired.
404 From Andrew Suffield <asuffield@debian.org>.
406 2002-09-20 Ulrich Drepper <drepper@redhat.com>
408 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
409 locking when using mount tab file.
410 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
411 * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
412 * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
414 * elf/dl-init.c (_dl_init): Fix test of the size of the
415 preinit_array section.
416 (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
417 Reported by Brian Cabral <cabral@ikuni.com>.
419 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
421 * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
422 * sysdeps/powerpc/powerpc32/sysdep.h: New file. Define powerpc32
423 specific macros copied from sysdeps/powerpc/sysdep.h.
424 * sysdeps/powerpc/powerpc64/sysdep.h: New file. Define powerpc64
426 * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
427 [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
428 [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
430 2002-09-19 Bruno Haible <bruno@clisp.org>
432 * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
435 2002-09-17 Bruno Haible <bruno@clisp.org>
437 * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
438 * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
439 also on platforms with !HAVE_UT_TYPE.
440 (proc_utmp_eq): Remove function.
441 (internal_getut_r, pututline_file): Call __utmp_equal instead.
443 2002-09-20 Bruno Haible <bruno@clisp.org>
445 * abi-tags: Add support for FreeBSD with ABI OS value 3.
446 * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
448 2002-09-20 Roland McGrath <roland@redhat.com>
450 * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
451 (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
453 * sysdeps/x86_64/gmp-mparam.h: File removed.
454 * sysdeps/sparc/gmp-mparam.h: File removed.
455 * sysdeps/mips/mips64/gmp-mparam.h: File removed.
456 * sysdeps/ia64/gmp-mparam.h: File removed.
457 * sysdeps/alpha/gmp-mparam.h: File removed.
459 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
461 * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
462 load, so as to work on both 32-bit and 64-bit. Remove unnecessary
463 casts. Align __libc_stack_end to 8 bytes.
465 2002-09-20 Roland McGrath <roland@redhat.com>
467 * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
468 instead of asm for lrintf, __lrintf aliases.
470 * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
471 int array for 32-/64-bit compatibility.
472 From Steven Munroe <sjmunroe@us.ibm.com>.
474 2002-09-17 Bruno Haible <bruno@clisp.org>
476 * sysdeps/generic/ifreq.h (__if_nextreq): New function.
477 * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
478 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
479 * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
480 for iterating through the list of interfaces.
481 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
483 2002-09-20 Roland McGrath <roland@redhat.com>
485 * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
486 Reported by Bruno Haible <bruno@clisp.org>.
488 * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
490 * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
491 * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
492 isatty unmodified. Reported by Bruno Haible <bruno@clisp.org>.
494 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
496 * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
497 * sysdeps/powerpc/bits/wordsize.h: New file.
498 * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
499 array to int array for 32-/64-bit compatibility.
501 2002-09-20 Roland McGrath <roland@redhat.com>
503 * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
505 * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
506 Reported by Bruno Haible <bruno@clisp.org>.
508 * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
509 before doubling RQ_LEN.
510 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
511 Reported by Bruno Haible <bruno@clisp.org>.
513 2002-09-18 Bruno Haible <bruno@clisp.org>
515 * login/logout.c (logout): Don't assume ut_time has the same size as
517 * login/logwtmp.c (logwtmp): Likewise.
519 * sysdeps/pthread/configure: New file, moved here from
520 linuxthreads/sysdeps/unix/sysv/linux/configure.
522 2002-09-19 Ulrich Drepper <drepper@redhat.com>
524 * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
525 (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
526 Reported by Glen Nakamura <glen@imodulo.com>.
528 2002-09-19 Neal H. Walfield <neal@cs.uml.edu>
530 * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
531 thread's sigstate data structure if it has been allocated.
533 2002-09-19 Roland McGrath <roland@redhat.com>
535 * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
536 [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
538 2002-09-18 Ulrich Drepper <drepper@redhat.com>
540 * version.h (VERSION): Bump to 2.2.94.
542 * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
543 * sysdeps/powerpc/powerpc32/fpu/Dist: ...here. New file.
544 * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
545 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
547 * sysdeps/i386/Makefile: Remove obsolete db2 rules.
549 * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
551 * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
553 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
555 2002-09-19 Jakub Jelinek <jakub@redhat.com>
557 * sysdeps/wordsize-32/Makefile: New file.
558 * sysdeps/arm/Makefile: Removed.
559 * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
560 Don't add divdi3 here.
561 * sysdeps/m68k/Makefile: Likewise.
562 * sysdeps/powerpc/powerpc32/Makefile: Likewise.
563 * sysdeps/sh/Makefile: Likewise.
564 * sysdeps/s390/s390-32/Makefile: Likewise.
566 2002-09-18 Roland McGrath <roland@redhat.com>
568 * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
569 the __ctype_* compat symbols, so the relocs generated bind to the
570 right versioned global symbol in the shared object.
572 * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
573 from the value taken from the DT_VERSYM table.
574 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
575 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
576 (RESOLVE_GOTSYM): Likewise.
578 * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
580 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
581 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
582 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
583 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
584 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
585 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
586 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
587 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
589 2002-09-18 Ulrich Drepper <drepper@redhat.com>
591 * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
593 * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
594 define sigaction and __sigaction as wrappers around
595 __libc_sigaction which rejects changing SIGCANCEL.
596 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
598 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
601 * signal/allocrtsig.c: Move to...
602 * sysdeps/generic/allocrtsig.c: ...here. New file.
604 2002-09-17 Jakub Jelinek <jakub@redhat.com>
606 * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
608 * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
609 R_386_TLS_LE): Define.
610 (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
612 * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
613 ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
614 (elf_machine_rel): Handle R_386_TLS_TPOFF.
615 (elf_machine_rela): Likewise.
616 Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
618 2002-09-17 Roland McGrath <roland@redhat.com>
620 * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
621 file-specific variable override so it compiles properly when using
624 2002-09-17 Steven Munroe <sjmunroe@us.ibm.com>
626 Ported to PowerPC64 running Linux.
627 * sysdeps/powerpc/powerpc64/Dist: New file.
628 * sysdeps/powerpc/powerpc64/Implies: New file.
629 * sysdeps/powerpc/powerpc64/Makefile: New file.
630 * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
631 * sysdeps/powerpc/powerpc64/atomicity.h: New file.
632 * sysdeps/powerpc/powerpc64/backtrace.c: New file.
633 * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
634 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
635 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
636 * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
637 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
638 * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
639 * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
640 * sysdeps/powerpc/powerpc64/memset.S: New file.
641 * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
642 * sysdeps/powerpc/powerpc64/register-dump.h: New file.
643 * sysdeps/powerpc/powerpc64/setjmp.S: New file.
644 * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
645 * sysdeps/powerpc/powerpc64/strchr.S: New file.
646 * sysdeps/powerpc/powerpc64/strcmp.S: New file.
647 * sysdeps/powerpc/powerpc64/strcpy.S: New file.
648 * sysdeps/powerpc/powerpc64/strlen.S: New file.
649 * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
650 * sysdeps/powerpc/powerpc64/elf/start.S: New file.
651 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
652 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
653 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
657 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
658 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
659 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
661 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
662 (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
663 various gcc versions. Dot names required for powerpc64.
664 [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
665 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
666 C_SYMBOL_DOT_NAME(alias).
667 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
668 original strong_alias macro.
669 [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
670 C_SYMBOL_DOT_NAME(alias).
671 [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
672 [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
674 Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
675 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro. Generate
676 .global C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
677 (hidden_def): Append hidden_dot_def1 macro to definition.
678 (hidden_ver): Append hidden_dot_def1 macro to definition.
679 (hidden_data_def): New macro. Same as original hidden_def macro.
680 (hidden_data_ver): New macro. Same as original hidden_ver macro.
681 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro. Generate
682 .weakext C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
683 (hidden_weak): Append hidden_dot_weak1 macro to definition.
684 (hidden_data_weak): New macro. Same as original hidden_weak macro.
685 [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
686 Otherwise defined as __GI_name.
687 (libc_hidden_data_def): New macro. Use hidden_data_def.
688 (libc_hidden_data_weak): New macro. Use hidden_data_weak.
689 (libc_hidden_data_ver): New macro. Use hidden_data_ver.
690 (rtld_hidden_data_def): New macro. Use hidden_data_def.
691 (rtld_hidden_data_weak): New macro. Use hidden_data_weak.
692 (rtld_hidden_data_ver): New macro. Use hidden_data_ver.
693 (libm_hidden_data_def): New macro. Use hidden_data_def.
694 (libm_hidden_data_weak): New macro. Use hidden_data_weak.
695 (libm_hidden_data_ver): New macro. Use hidden_data_ver.
696 * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
698 2002-09-17 Ulrich Drepper <drepper@redhat.com>
700 * include/libc-symbols.h: Change *hidden_proto macros to accept
701 option parameters and pass those to the attribute definition.
702 * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
704 * include/unistd.h: Declare __libc_pause.
706 * include/sys/socket.h: Declare __libc_send, __libc_recv,
707 __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
709 * include/unistd.h: Declare __libc_fork.
711 2002-09-17 Roland McGrath <roland@redhat.com>
713 * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
714 (passwd2des): Define it as an alias.
715 (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
717 2002-09-12 Bruno Haible <bruno@clisp.org>
719 * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
720 * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
722 * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
723 * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
725 2002-09-05 Steven Munroe <sjmunroe@us.ibm.com>
727 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
728 (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
729 __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
730 PowerPC64 does not have separate 64-bit syscalls.
732 2002-09-16 Roland McGrath <roland@redhat.com>
734 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
736 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
739 * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
741 * include/unistd.h: Uncomment libc_hidden_proto for _exit.
742 * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
743 * sysdeps/generic/_exit.c: Likewise.
745 2002-09-12 Jakub Jelinek <jakub@redhat.com>
747 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
749 * elf/rtld.c (struct dl_start_final_info): New.
750 (_dl_start_final): Change second argument to struct
751 dl_start_final_info *. Set start_time from info.
752 (_dl_start): Remove bootstrap_map variable, add info.
753 Define bootstrap_map as macro. If not DONT_USE_BOOTSTRAP_MAP,
754 store HP_TIMING_NOW result into info.start_time.
756 2002-09-16 Andreas Jaeger <aj@suse.de>
758 * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
760 * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
762 2002-09-15 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
764 * sysdeps/powerpc/abort-instr.h: New file.
766 2002-09-14 Ulrich Drepper <drepper@redhat.com>
768 * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
771 * test-skeleton.c (main): Provide more information in case waitpid
774 * include/unistd.h: Declare __exit_thread.
775 * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
776 Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
777 * sysdeps/unix/sysv/linux/exit-thread.S: New file.
778 * sysdeps/unix/sysv/linux/_exit.c: New file.
779 * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
780 * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
783 * configure.in: Add dl_iterate_phdr to test using -nostdlib.
785 2002-09-12 Jakub Jelinek <jakub@redhat.com>
787 * sysdeps/i386/dl-machine.h (elf_machine_rel)
788 (case R_386_TLS_DTPMOD32): Don't use addend.
789 [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
790 (elf_machine_rela): Add support for TLS relocs.
792 2002-09-14 Roland McGrath <roland@redhat.com>
794 * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
796 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
798 * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
799 specific asm macros for multiple percision integer math.
801 2002-06-04 Steven Munroe <sjmunroe@us.ibm.com>
803 * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
804 * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
805 Remove per-machine conditionals for FLAG_* cases.
806 * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
807 * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
810 2002-09-10 Alan Modra <amodra@bigpond.net.au>
812 * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
814 (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
815 lowest address for profiling in __monstartup call.
816 * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
818 2002-09-14 Roland McGrath <roland@redhat.com>
820 * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
821 instead of __NR_pread.
822 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
823 * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
824 instead of __NR_pwrite.
825 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
827 2002-09-13 Roland McGrath <roland@redhat.com>
829 * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
831 2002-09-13 Andreas Jaeger <aj@suse.de>
833 * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
834 syscall. Patch by Guido Guenther <agx@sigxcpu.org>.
836 2002-09-12 Ulrich Drepper <drepper@redhat.com>
838 * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
840 2002-09-10 Ulrich Drepper <drepper@redhat.com>
842 * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
845 2002-09-12 Roland McGrath <roland@redhat.com>
847 * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
848 (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
851 * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
852 executable if needed, in case it's actually a shared object.
854 2002-09-11 Roland McGrath <roland@redhat.com>
856 * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
857 l_map_start to adjust l_tls_initimage.
859 * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
860 when using h_errno and it's not set to NETDB_INTERNAL.
861 * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
863 * Makefile ($(common-objpfx)testrun.sh): New target.
864 (others): Depend on it.
865 (postclean-generated): Append it.
867 * nss/bug-erange.c: New file.
868 * nss/Makefile (tests): Add it.
870 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
871 instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
873 * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
874 strncmp, keeps the code smaller for a non-performance-critical case.
876 * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
877 no longer wrongly matches arbitrary prefixes of NAME.
878 Reported by Jakub Jelinek <jakub@redhat.com>.
880 2002-09-11 Jakub Jelinek <jakub@redhat.com>
882 * posix/bug-regex11.c (tests): New array.
883 (main): Rewritten to run more different tests.
885 2002-09-10 Roland McGrath <roland@redhat.com>
887 * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
888 (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
889 Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
891 * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
892 well so we don't get it declared by include/math.h's hidden_proto.
893 Then do hidden_proto for __isnanf locally so hidden_def works right.
895 * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
896 a cast to turn nl_langinfo return value into an integer.
898 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
900 * posix/regexec.c (build_trtable): Fix the destination of
901 newline to prevent wrong states from overwriting.
902 Append break statements to optimization.
904 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
906 * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
907 (build_range_exp): Add castings to strlen invocations.
908 (build_collating_symbol): Restore the type of characters from "char"
909 to "unsigned char", and supplement castings.
910 (build_collating_symbol): Likewise.
911 (build_equiv_class): Likewise.
912 (build_charclass): Likewise.
913 (seek_collating_symbol_entry): Likewise.
914 (parse_bracket_exp): Likewise.
915 (build_word_op): Supplement a casting.
916 * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
917 (re_string_allocate): Fix castings.
918 (re_string_construct): Likewise.
919 (re_string_construct_common): Likewise.
920 (re_string_realloc_buffers): Likewise.
921 (build_wcs_buffer): Likewise.
922 (build_wcs_upper_buffer): Likewise.
923 (re_string_skip_chars): Likewise.
924 (re_string_reconstruct): Likewise.
925 * posix/regex_internal.h: Restore the type of characters in
926 re_string_t and bracket_elem_t from "char" to "unsigned char".
927 (re_string_elem_size_at): Fix castings.
928 * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
929 (transit_state_bkref_loop): Restore the type of characters from
930 "char" to "unsigned char", and append a cast to "char*" pointer in
932 (check_node_accept_bytes): Likewise.
933 (find_collation_sequence_value): Likewise.
935 2002-09-10 Hartvig Ekner <hartvige@mips.com>
937 * sysdeps/mips/memcpy.S: New file.
938 * sysdeps/mips/memset.S: New file.
939 * sysdeps/mips/fpu/e_sqrt.c: New file.
940 * sysdeps/mips/fpu/e_sqrtf.c: New file.
942 * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
943 functional before. Also removed all SHLIB_COMPAT stuff.
944 * fpu/fegetenv.c: Likewise.
945 * fpu/fesetenv.c:: Likewise.
946 * fpu/feupdateenv.c: Likewise.
947 * fpu/fgetexcptflg.c: Likewise.
948 * fpu/fraiseexcpt.c: Likewise.
950 * sysdeps/mips/fpu/fsetexcptflg.c: New file.
952 2002-09-09 Jakub Jelinek <jakub@redhat.com>
954 * include/math.h (__finite_internal, __finitef_internal,
955 __finitel_internal, __isinf_internal, __isnan_internal): Remove.
957 (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
958 __isinfl, __isnanl): Add hidden_proto.
959 (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
961 * math/Makefile (libm-calls): Add s_isinf and s_isnan.
962 * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
964 * stdio-common/printf_size.c (printf_size): Likewise.
965 * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
966 * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
967 * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
968 * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
969 * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
970 * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
971 (__finite): Add hidden_def.
972 * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
973 (__finitef): Add hidden_def.
974 * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
975 (__finitel): Add hidden_def.
976 * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF. Add
978 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
979 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
981 * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
982 * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF. Add
984 * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
985 (__isinfl): Remove INTDEF.
986 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF. Add
988 (__isnanl): Remove INTDEF.
989 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
991 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
992 instead of sin and cos.
993 * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
995 * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
996 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
997 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
999 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
1001 * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
1002 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
1003 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
1005 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
1007 * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
1009 * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
1010 * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
1011 * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
1013 * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
1014 __finitel_internal): Remove aliases.
1015 (__finite, __finitef, __finitel): Add hidden_def.
1016 * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
1017 __isnanl_internal): Remove aliases.
1018 (__isnan, __isnanf, __isnanl): Add hidden_def.
1019 * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
1020 __isinfl_internal): Remove aliases.
1021 (__isinf, __isinff, __isinfl): Add hidden_def.
1022 * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
1023 __fpclassifyl): Add libm_hidden_def.
1024 * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
1025 * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF. Add hidden_def.
1026 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
1027 (hidden_defx): Define and use.
1028 * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1030 * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
1031 * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
1032 * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
1034 (__isnan, __isnanf): Add hidden_def.
1035 * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
1036 (__finitel): Add libm_hidden_def.
1037 * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
1039 * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
1040 * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
1041 * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1042 * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
1043 * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1044 * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
1045 * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
1046 * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
1047 * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1048 * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
1049 * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1050 * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
1051 * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1052 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
1053 * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1054 * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
1055 * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1056 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
1057 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1058 * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
1059 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1060 * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1061 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1062 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1063 * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1064 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
1065 * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1067 2002-09-09 Steven Munroe <sjmunroe@us.ibm.com>
1069 * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
1071 2002-09-09 Jakub Jelinek <jakub@redhat.com>
1073 * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
1074 LD_DEBUG=statistics or LD_TRACE_PRELINKING.
1076 2002-09-09 Ulrich Drepper <drepper@redhat.com>
1078 * string/stratcliff.c: Some more strncpy tests.
1079 Patch by Daniel Jacobowitz <drow@mvista.com>.
1081 2002-09-08 Roland McGrath <roland@redhat.com>
1083 * resolv/resolv.h: Include <sys/types.h> for u_long even in
1084 the [__need_res_state] case.
1085 Reported by Bruno Haible <bruno@clisp.org>.
1087 2002-09-04 Bruno Haible <bruno@clisp.org>
1089 * sysdeps/generic/bits/ustat.h: Comment fix.
1090 * io/sys/sendfile.h: Comment fix.
1091 * sysdeps/posix/pread.c: Comment fix.
1092 * sysdeps/posix/pread64.c: Comment fix.
1093 * sysdeps/posix/pwrite.c: Comment fix.
1094 * sysdeps/posix/pwrite64.c: Comment fix.
1096 2002-09-06 Roland McGrath <roland@redhat.com>
1098 * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
1099 to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
1100 (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
1101 (_UTSNAME_MACHINE_LENGTH): Likewise.
1102 (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
1104 2002-09-06 Ulrich Drepper <drepper@redhat.com>
1106 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
1107 test for filesystem type name of mount points.
1109 * include/errno.h: Use errno definition with __thread for now only
1112 * test-skeleton.c (main): Improve error message for unexpected
1115 2002-09-05 Roland McGrath <roland@redhat.com>
1117 * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
1118 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1120 2002-09-05 Jakub Jelinek <jakub@redhat.com>
1122 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
1125 2002-09-04 Bruno Haible <bruno@clisp.org>
1127 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
1128 sigset_get_old_mask): Turn into inline functions.
1129 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
1130 sigset_get_old_mask): Likewise.
1131 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
1132 sigset_get_old_mask): Likewise.
1133 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
1136 * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
1138 * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
1139 default definitions.
1140 (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
1141 _sys_nerr_internal instead of _sys_nerr.
1143 * nscd/connections.c (handle_request): Declare CALLER inside #if.
1145 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
1147 * sysdeps/powerpc/__longjmp.S: Moved to...
1148 * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
1149 * sysdeps/powerpc/add_n.S: Moved to...
1150 * sysdeps/powerpc/powerpc32/add_n.S: ...here.
1151 * sysdeps/powerpc/addmul_1.S: Moved to...
1152 * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
1153 * sysdeps/powerpc/atomicity.h: Moved to...
1154 * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
1155 * sysdeps/powerpc/backtrace.c: Moved to...
1156 * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
1157 * sysdeps/powerpc/bp-asm.h: Moved to...
1158 * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
1159 * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
1160 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
1161 * sysdeps/powerpc/bsd-setjmp.S: Moved to...
1162 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
1163 * sysdeps/powerpc/dl-machine.c: Moved to...
1164 * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
1165 * sysdeps/powerpc/dl-machine.h: Moved to...
1166 * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
1167 * sysdeps/powerpc/dl-start.S: Moved to...
1168 * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
1169 * sysdeps/powerpc/gprrest0.S: Moved to...
1170 * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
1171 * sysdeps/powerpc/gprrest1.S: Moved to...
1172 * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
1173 * sysdeps/powerpc/gprsave0.S: Moved to...
1174 * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
1175 * sysdeps/powerpc/gprsave1.S: Moved to...
1176 * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
1177 * sysdeps/powerpc/lshift.S: Moved to...
1178 * sysdeps/powerpc/powerpc32/lshift.S: ...here.
1179 * sysdeps/powerpc/memset.S: Moved to...
1180 * sysdeps/powerpc/powerpc32/memset.S: ...here.
1181 * sysdeps/powerpc/mul_1.S: Moved to...
1182 * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
1183 * sysdeps/powerpc/ppc-mcount.S: Moved to...
1184 * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
1185 * sysdeps/powerpc/register-dump.h: Moved to...
1186 * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
1187 * sysdeps/powerpc/rshift.S: Moved to...
1188 * sysdeps/powerpc/powerpc32/rshift.S: ...here.
1189 * sysdeps/powerpc/setjmp.S: Moved to...
1190 * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
1191 * sysdeps/powerpc/stpcpy.S: Moved to...
1192 * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
1193 * sysdeps/powerpc/strchr.S: Moved to...
1194 * sysdeps/powerpc/powerpc32/strchr.S: ...here.
1195 * sysdeps/powerpc/strcmp.S: Moved to...
1196 * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
1197 * sysdeps/powerpc/strcpy.S: Moved to...
1198 * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
1199 * sysdeps/powerpc/strlen.S: Moved to...
1200 * sysdeps/powerpc/powerpc32/strlen.S: ...here.
1201 * sysdeps/powerpc/sub_n.S: Moved to...
1202 * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
1203 * sysdeps/powerpc/submul_1.S: Moved to...
1204 * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
1205 * sysdeps/powerpc/elf/bzero.S: Moved to...
1206 * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
1207 * sysdeps/powerpc/elf/start.S: Moved to...
1208 * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
1209 * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
1210 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
1211 * sysdeps/powerpc/fpu/fprrest.S: Moved to...
1212 * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
1213 * sysdeps/powerpc/fpu/fprsave.S: Moved to...
1214 * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
1215 * sysdeps/powerpc/fpu/setjmp.S: Moved to...
1216 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
1217 * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
1218 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
1219 * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
1220 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
1221 * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
1222 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
1223 * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
1224 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
1225 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
1226 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1227 * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
1228 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
1229 * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
1230 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
1231 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
1232 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
1233 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
1234 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
1235 Support PowerPC64. Separate powerpc into powerpc/powerpc32 and
1238 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
1240 * FAQ.in: Add powerpc64 to supported targets list. Also state the
1241 minimum gcc version is 3.2
1242 * README: Add powerpc64 to supported targets list.
1243 * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
1244 Add powerpc64 and machine=powerpc/powerpc64.
1245 (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
1246 * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
1247 * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
1248 gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
1249 * sysdeps/powerpc/powerpc32/Dist: New file.
1250 * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
1251 * sysdeps/powerpc/powerpc32/Implies: New file.
1252 * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
1253 ($(with-fp) = no): Move test to powerpc32/Makefile.
1254 ($(subdir) = misc): Move to powerpc32/Makefile.
1255 ($(build-shared) = yes): Move to powerpc32/Makefile.
1256 ($(subdir) = csu): Move to powerpc32/Makefile.
1257 (sysdep-rtld-routines): Remove dl-start. Moved these bits to ...
1258 * sysdeps/powerpc/powerpc32/Makefile: New file.
1259 * sysdeps/powerpc/Versions: Remove libgcc functions.
1260 * sysdeps/powerpc/powerpc32/Versions: New file.
1261 * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
1262 * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
1263 * sysdeps/unix/sysv/linux/configure.in (powerpc*):
1264 Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
1265 libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
1266 ($machine): Add powerpc/powerpc64 to if ... | for
1267 libc_cv_slibdir=/libc64.
1268 (powerpc*): Set ldd_rewrite_script.
1269 * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
1270 * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
1271 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
1273 * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
1274 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
1275 functions. Remove GLIBC_2.2 functions except getrlimit and
1276 setrlimit. Moved them to ...
1277 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
1279 2002-09-04 Ulrich Drepper <drepper@redhat.com>
1281 * libio/tst-atime.c: Include <errno.h>.
1282 (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
1284 2002-09-03 Isamu Hasegawa <isamu@yamato.ibm.com>
1286 * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
1287 warnings of some compilers.
1288 (build_collating_symbol): Change the type of characters from
1289 "unsigned char" to "char", and append a cast to "char*" pointer in
1291 (build_collating_symbol): Likewise.
1292 (build_equiv_class): Likewise.
1293 (build_charclass): Likewise.
1294 (re_compile_pattern): Remove incorrect cast.
1295 (re_compile_fastmap_iter): Change the type of characters from
1296 "unsigned char" to "char", and append a cast to "char*" pointer
1298 (parse_bracket_exp): Likewise.
1299 * posix/regex_internal.c (re_string_construct_common): Likewise.
1300 (re_string_allocate): Likewise.
1301 (re_string_construct): Likewise.
1302 (re_string_realloc_buffers): Likewise.
1303 (build_wcs_buffer): Likewise.
1304 (re_string_reconstruct): Likewise.
1305 * posix/regex_internal.h: Change the type of characters in
1306 re_string_t and bracket_elem_t from "unsigned char" to "char".
1307 * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1308 warnings of some compilers.
1309 (transit_state_bkref_loop): Change the type of characters from
1310 "unsigned char" to "char", and append a cast to "char*" pointer in
1312 (check_node_accept_bytes): Likewise.
1313 (find_collation_sequence_value): Likewise.
1315 2002-09-04 Roland McGrath <roland@redhat.com>
1317 * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1318 from 1024 to 65536, to avoid buffer overrun.
1320 2002-09-03 Gerhard Tonn <ton@de.ibm.com>
1322 * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1324 2002-09-04 Ulrich Drepper <drepper@redhat.com>
1326 * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1329 2002-09-04 Jakub Jelinek <jakub@redhat.com>
1331 * posix/bug-regex11.c: New test.
1332 * posix/Makefile (tests): Add bug-regex11.
1334 2002-09-03 Jakub Jelinek <jakub@redhat.com>
1336 * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1339 2002-09-02 Roland McGrath <roland@redhat.com>
1341 * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1342 __pthread_initialize_minimal and __libc_check_standard_fds to
1343 match the generic version.
1345 * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1346 warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1348 * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1349 warnings on platorms where char is unsigned.
1351 2002-09-02 Ulrich Drepper <drepper@redhat.com>
1353 * version.h (VERSION): Bump to 2.2.93.
1355 * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1357 2002-09-02 Jakub Jelinek <jakub@redhat.com>
1359 * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1362 2002-09-02 Jack Howarth <howarth@bromo.msbb.uc.edu>
1364 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1366 2002-09-02 Jakub Jelinek <jakub@redhat.com>
1368 * locale/localeinfo.h (struct locale_data): Add private.ctype.
1369 * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1370 __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1371 (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1372 (__wcsmbs_load_conv): Remove const from argument.
1373 (_nl_cleanup_ctype): New proto.
1374 (get_gconv_fcts): New function.
1375 * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1376 (__wcsmbs_to_wc): Rename back to...
1378 (__wcsmbs_gconv_fcts): Rename to...
1379 (__wcsmbs_gconv_fcts_c): ... this. Make const. Use to_wc.
1381 (__libc_setlocale_lock): New extern.
1382 (__wcsmbs_load_conv): Remove const from argument.
1383 Initialize new_category->private.ctype instead of a global
1385 (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1386 update_function_ptrs. No locking is necessary.
1387 (_nl_cleanup_ctype): New function.
1388 * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1389 update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1390 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1391 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1392 * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1393 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1394 * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1395 * wcsmbs/wctob.c (wctob): Likewise.
1396 * stdlib/mblen.c (mblen): Likewise.
1397 * stdlib/mbtowc.c (mbtowc): Likewise.
1398 * stdlib/wctomb.c (wctomb): Likewise.
1399 * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1400 Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1401 * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1404 2002-09-02 Roland McGrath <roland@frob.com>
1406 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1408 2002-09-01 Roland McGrath <roland@redhat.com>
1410 * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1411 Variable declarations removed.
1412 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1413 these functions to replace them.
1414 (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1415 functions plus an indirection rather than the old global variables.
1416 * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1418 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1420 * ctype/ctype-info.c: Revert last reversion back the other way.
1421 Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1422 Define real function versions of include/ctype.h inlines here.
1423 * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1424 __ctype_tolower_loc, __ctype_toupper_loc.
1425 * locale/lc-ctype.c: Revert last reversion back the other way.
1426 (_nl_postload_ctype): If current thread uses the global locale,
1427 update its tsd vars.
1428 * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1429 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1430 CTYPE_TOLOWER, CTYPE_TOUPPER.
1432 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1433 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1434 from __libc_tsd_threadvar_location.
1435 (__libc_tsd_set, __libc_tsd_get): Update uses.
1437 2002-09-01 Ulrich Drepper <drepper@redhat.com>
1439 * ctype/ctype.h: Undo the patch before the last one. Put back the
1440 macro definitions for the standard functions to access the
1441 classification and mapping arrays.
1442 * include/ctype.h: Partly revert last patch. Move the macro
1443 definitions for the exported functions back to the public header.
1444 #undef all the macros defined here before redefining.
1445 * ctype/ctype-info.c: Revert last patch.
1446 * locale/lc-ctype.c: Revert last patch.
1448 * ctype/Makefile (routines): Add isctype.
1449 * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1450 * ctype/ctype.h: Add declaration of isctype.
1451 * include/ctype.h: Declare __isctype.
1452 * ctype/isctype.c: New file.
1454 2002-09-01 Roland McGrath <roland@redhat.com>
1456 * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1457 TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1459 * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1461 * locale/findlocale.c (_nl_remove_locale): Don't search in
1462 _nl_locale_file_list if DATA->alloc is ld_archive.
1463 Use _nl_unload_locale to do the rest of the work.
1465 * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1466 of new structure to UNDELETABLE.
1468 * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1469 iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1470 towlower, towupper): Macros removed.
1471 * ctype/ctype.h (__tobody): Put parens around macro argument.
1472 (__isctype): Macro removed.
1473 (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1474 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1475 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1476 tolower, toupper): Macros and inlines removed.
1477 * include/ctype.h [! NOT_IN_libc]
1478 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1479 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1480 tolower, toupper): Define here instead, using _NL_CURRENT.
1481 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1483 * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1484 * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1485 Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1486 (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1487 (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1488 * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1489 conditional on SHLIB_COMPAT. Don't set removed variables at all.
1490 * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1491 * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1492 * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1493 (ISSORTMASK): Update use.
1494 * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1495 * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1496 (_nss_files_getENTNAME_r): Likewise.
1497 * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1500 * Makerules (all-nonlib): Renamed from all-tests.
1501 Include $(others) here too.
1502 * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1503 CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1504 CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1505 CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1506 CPPFLAGS-charmap-dir): Variables removed. Instead, catch all
1507 the program modules via cppflags-iterator.mk.
1508 * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1509 Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1511 2002-08-31 Roland McGrath <roland@redhat.com>
1513 * posix/tst-getconf.sh: If no third arg, work with static linking.
1515 * locale/categories.def (LC_TIME): No more _nl_postload_time.
1517 * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1518 [_NL_CURRENT_INDIRECT].
1520 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1522 * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1524 2002-08-31 Roland McGrath <roland@redhat.com>
1526 * locale/newlocale.c (__newlocale): Don't use strdup for names.
1527 Instead, make the single allocation of the structure larger to hold
1529 * locale/duplocale.c (__duplocale): Don't strdup names individually.
1530 Instead, calculate size for a single allocation and copy into it.
1531 * locale/freelocale.c (__freelocale): Don't free names individually.
1533 * locale/newlocale.c (__newlocale): Don't leak old data or names.
1535 * locale/xlocale.h (__locale_struct): Move __names member last,
1536 for binary compatibility.
1538 * locale/duplocale.c (__duplocale): Free names from the right array.
1540 * locale/uselocale.c (__uselocale): Return previous locale when
1543 * locale/newlocale.c: Commit changes from 2002-08-30
1544 batch where I failed to commit this file:
1545 (__newlocale): Fill in __names array.
1547 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1549 * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1550 errlist-compat.c if versioning==yes.
1552 2002-08-31 Andreas Jaeger <aj@suse.de>
1554 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1555 external functions with hidden attribute.
1556 (elf_machine_rela): Optimize.
1558 * sysdeps/x86_64/memset.S: New file.
1559 * sysdeps/x86_64/bzero.S: New file.
1560 * sysdeps/x86_64/stpcpy.S: New file.
1561 * sysdeps/x86_64/strcat.S: New file.
1562 * sysdeps/x86_64/strchr.S: New file.
1563 * sysdeps/x86_64/strcpy.S: New file.
1564 * sysdeps/x86_64/strcspn.S: New file.
1565 * sysdeps/x86_64/strlen.S: New file.
1566 * sysdeps/x86_64/strpbrk.S: New file.
1567 * sysdeps/x86_64/strspn.S: New file.
1568 * sysdeps/x86_64/strcmp.S: New file.
1569 * sysdeps/x86_64/strtok_r.S: New file.
1570 * sysdeps/x86_64/strtok.S: New file.
1571 * sysdeps/x86_64/memcpy.S: New file.
1572 * sysdeps/x86_64/mempcpy.S: New file.
1574 * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1576 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1578 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1580 * stdio-common/Makefile (generated): Add errlist-compat.c.
1582 * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1584 * locale/localeinfo.h: Pretty printing.
1586 * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1587 form_number handling.
1589 2002-08-31 Andreas Jaeger <aj@suse.de>
1591 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1594 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1597 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1599 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1601 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1602 registers used for passing args.
1604 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1605 all needed registers.
1607 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1610 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1613 2002-08-30 Ulrich Drepper <drepper@redhat.com>
1615 * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1616 always_inline attribute.
1618 2002-08-30 Roland McGrath <roland@redhat.com>
1620 * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1621 presume it's the stub and bail without error.
1623 * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1624 neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1626 * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1628 * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1629 macros replace the i686 versions for 64-bit mode.
1631 * locale/duplocale.c: Include <string.h>.
1633 * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1634 [_LIBC] (category_to_name): Don't define the function. Instead
1635 define a macro using _nl_category_names.
1637 * locale/xlocale.h (struct __locale_struct): New member `__names'.
1638 * locale/xlocale.c (_nl_C_locobj): Update initializer.
1639 * locale/global-locale.c (_nl_global_locale): Likewise.
1640 * locale/duplocale.c (__duplocale): strdup __names elements.
1641 * locale/freelocale.c (__freelocale): Free __names elements.
1642 * locale/localename.c (_nl_current_names): Variable removed.
1643 (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1644 * locale/localeinfo.h (_nl_current_names): Removed decl.
1645 * locale/setlocale.c: Use _nl_global_locale->__names in place of
1646 _nl_current_names throughout.
1648 * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1650 * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1651 and sys_nerr in the output file.
1653 * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1654 * scripts/cpp: Just use the environment variable.
1656 * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1657 * libio/tst-mmap-offend.c (do_test): Likewise.
1658 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1659 * libio/tst-mmap-eofsync.c (do_test): Likewise.
1660 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1662 * locale/localename.c: If the current locale is the global locale, use
1663 _nl_current_names; otherwise use the locale object.
1665 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1667 * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1668 'm' to enable mmap I/O.
1669 * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2. The
1670 former wasn't used (anymore?).
1671 (_IO_FLAGS2_MMAP): New define.
1672 * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1673 * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1674 _IO_FLAGS2_MMAP bit is set.
1675 * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1676 Enable mmap-using mode only if 'm' was set.
1678 2002-08-29 Roland McGrath <roland@frob.com>
1680 * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1682 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1683 Change argument type from int to intptr_t.
1685 * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1686 initializer on [! _HURD_THREADVAR_H] (bad kludge).
1687 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1688 _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1689 * hurd/hurdsig.c (_hurdsig_init): Likewise. Zero other slots.
1691 * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1693 * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1695 * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1697 * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1698 * assert/assert-perr.c: Add libc_hidden_def.
1699 * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1701 * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1703 * sysdeps/gnu/Versions: File removed. Moved all #errlist-compat
1704 sys_errlist stuff to ...
1705 * sysdeps/unix/sysv/linux/Versions: ... here.
1707 * mach/mach.h: Include <features.h>.
1709 2002-08-29 Roland McGrath <roland@redhat.com>
1711 * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1712 * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1713 define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1715 * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1717 * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1718 (norm_add_slashes): alloca -> __alloca
1720 2002-08-29 Jakub Jelinek <jakub@redhat.com>
1722 * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1723 string_malloced, it is unlikely to be set.
1724 Only call free with non-NULL workspace.
1725 * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1726 -mcpu=ultrasparc, not only tune for it.
1727 (ASFLAGS*): Set unconditionally.
1729 * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1730 ElfW(Addr). Don't mask upper 32-bits and lower 12 bits off from
1731 p_vaddr/p_offset when computing LOADADDR.
1733 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1735 * version.h (VERSION): Bump to 2.2.92.
1737 * time/Makefile (tst-ftime_l-ENV): New variable.
1739 * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1741 * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1742 <U017A>, <U017D> and <U0179>. Add missing mappings.
1743 Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1745 * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1746 Define ARCINDEX. Bump MAXARCS to 1 << 20.
1747 (struct tostruct): Use ACRINDEX as type for link field.
1748 (statuc gmonparam): Likewise for froms.
1749 * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1751 (write_call_graph): Use correct type for from_index and to_index.
1752 * gmon/mcount.c: Use correct types for frompcindex and toindex
1754 Patches by Dan Kegel <dank@kegel.com>.
1756 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1759 * time/strptime.c (ISSPACE): New #define. Use isspace or
1760 __isspace_l. Replace calls to isspace.
1761 (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1763 2002-08-29 Roland McGrath <roland@redhat.com>
1765 * string/tst-strxfrm.c: Remove __ from function names.
1767 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1769 * include/wchar.h: Declare __mbsrtowcs_l.
1770 * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1771 * wcsmbs/mbsrtowcs.c: Add support for compilation with
1772 USE_IN_EXTENDED_LOCALE_MODEL.
1773 * wcsmbs/mbsrtowcs_l: New file.
1774 * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc. Don't
1775 define as static. Change all uses.
1776 (__wcsmbs_getfct): Renamed from getfct. Don't define as static.
1778 * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1779 * time/strftime.c: When translating for the extended locale model
1780 use the _l functions.
1781 * time/Makefile (tests): Add tst-ftime_l.
1782 * time/tst-ftime_l.c: New file.
1784 2002-08-28 Roland McGrath <roland@redhat.com>
1786 * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1787 * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1788 from _nl_find_locale ok if for _nl_C_name.
1790 * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1791 iterator to refer to each category's _nl_current_LC_FOO symbol, so
1792 we know they are all linked in.
1794 * NEWS: Added 2.2.6 text from 2.2 branch version.
1796 * time/strptime.c (strptime_internal): Remove spurious const.
1798 * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1799 _nl_select_era_entry): Moved to ...
1800 * time/era.c: ... here, new file.
1801 (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1802 Add internal_function to definitions. Take an additional argument
1803 giving the `struct locale_data *' to use.
1804 * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1805 _nl_parse_alt_digit): Moved to ...
1806 * time/alt_digit.c: ... here, new file.
1807 * time/lc-time-cleanup.c: New file.
1808 * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1809 * locale/localeinfo.h (_nl_postload_time): Remove decl.
1810 (_nl_cleanup_time): Declare it.
1811 (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1812 (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1813 * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1814 * time/strftime.c: Pass locale data to helper functions.
1815 * time/strptime.c: Likewise.
1817 * locale/localeinfo.h (struct locale_data): New member `private'
1818 * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1819 (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1820 * locale/C-collate.c: Update initializer.
1821 * locale/C-identification.c: Likewise.
1822 * locale/C-measurement.c: Likewise.
1823 * locale/C-telephone.c: Likewise.
1824 * locale/C-address.c: Likewise.
1825 * locale/C-name.c: Likewise.
1826 * locale/C-paper.c: Likewise.
1827 * locale/C-time.c: Likewise.
1828 * locale/C-numeric.c: Likewise.
1829 * locale/C-monetary.c: Likewise.
1830 * locale/C-messages.c : Likewise.
1831 * locale/C-ctype.c: Likewise.
1833 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1836 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1838 * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1839 (_rtld_global): Use it.
1841 * sysdeps/gnu/Dist: Remove errlist-compat.c.
1842 * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1843 object directory. Pass all Versions files to the awk script.
1844 * sysdeps/gnu/errlist-compat.c: Removed.
1845 * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1846 first Versions file in the search path which has them.
1847 Allow multiple errlist symbol versions to have the same count of
1849 * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1850 of "errlist-compat.c".
1851 * sysdeps/gnu/errlist.c: Regenerated.
1852 * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1853 comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1854 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1855 (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1856 * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1857 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1858 * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1859 * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1860 ECANCELLED if not defined by kernel headers.
1861 * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1862 already defined by kernel headers.
1863 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1864 * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1865 aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1867 * Versions.def (GLIBC_2.3) [librt]: Add.
1869 * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1871 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1873 * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1874 missing comma to .type directive.
1876 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1878 * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1880 * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1882 (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1884 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1886 * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1887 check to close_and_out close. Replace return NULL statements where
1888 fd might be >= 0 with goto close_and_out. Close the file descriptor
1889 when it is no longer needed.
1891 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1893 * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1895 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1896 * sysdeps/arm/dl-machine.h: Likewise.
1897 * sysdeps/cris/dl-machine.h: Likewise.
1898 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1899 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1901 2002-08-28 Roland McGrath <roland@redhat.com>
1903 * Makeconfig (default_cflags): Revert unintended change.
1905 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1907 * version.h (VERSION): Bump to 2.2.91.
1909 * configure.in: Disable TLS support by default for now.
1911 * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1913 * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1916 * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1918 * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1919 fprintf/fwprintf calls.
1921 2002-08-28 Roland McGrath <roland@redhat.com>
1923 * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1924 to use $(filter ...) instead. Same bug fixed in aix conditionals.
1926 * locale/setlocale.c: Declare postload functions weak.
1928 * elf/tst-tls1-static.c: New file.
1929 * elf/tst-tls2-static.c: New file.
1930 * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1932 Make uselocale support static linking.
1933 * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1934 This file again just defines _nl_C_locobj.
1935 (_nl_C_locobj): Use a categories.def iterator in the initializer.
1936 * locale/global-locale.c: New file. Define _nl_global_locale here,
1937 using all weak references in the initializer.
1938 * locale/Makefile (aux): Add global-locale.
1939 * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1940 these unconditional, along with the tsd decl.
1941 [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1942 Define it under these conditions.
1943 [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1944 Don't declare _nl_current. Declare _nl_current_LC_FOO as
1945 `extern __thread struct locale_data *const *'.
1946 [NL_CURRENT_INDIRECT]
1947 (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1948 [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten. Define
1949 the thread variable _nl_current_LC_FOO and also a special absolute
1950 symbol _nl_current_LC_FOO_used.
1951 * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1952 Set each _nl_current_LC_FOO symbol to point into the new locale,
1953 using weak references to test if _nl_current_LC_FOO_used was linked in.
1954 * locale/setlocale.c [! SHARED]: Replace this conditional ...
1955 [NL_CURRENT_INDIRECT]: ... with this one.
1956 (_nl_current, _nl_C): Variables removed.
1957 [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1958 weak references to _nl_current_LC_FOO_used.
1959 [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1960 (free_category): New function, broken out of ...
1961 (free_mem): ... here. Call that.
1962 (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1965 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1966 PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1967 it is already absolute.
1969 * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1970 [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1971 [$(build-static) = yes] (tests-static): New variable.
1972 ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1974 2002-08-26 Christoph Hellwig <hch@lst.de>
1976 * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1977 formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1979 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1981 * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1983 * sysdeps/s390/Dist: Add bits/link.h.
1985 * sysdeps/sh/Dist: New file.
1987 * sysdeps/ia64/Dist: Add ia64libgcc.S.
1989 * sysdeps/wordsize-32/Dist: New file.
1991 * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1992 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1993 * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1995 * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1998 * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
2001 * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
2003 * sysdeps/unix/bsd/sun/Dist: New file.
2005 * sysdeps/unix/bsd/osf/Dist: New file.
2007 * sysdeps/unix/bsd/hp/Dist: New file.
2009 * sysdeps/unix/arm/Dist: New file.
2011 * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
2013 * sysdeps/mach/hurd/Dist: Add set-init.c.
2015 * sysdeps/i386/Dist: Add bits/link.h.
2017 * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
2019 * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
2021 * locale/Makefile (distribute): Add hashval.h.
2023 * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
2025 * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
2027 * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
2028 __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
2029 __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
2030 * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
2032 * libio/stdio.h: Likewise.
2033 * locale/locale.h: Likewise.
2034 * math/math.h: Likewise.
2035 * math/bits/mathcalls.h: Likewise.
2036 * setjmp/setjmp.h: Likewise.
2037 * signal/signal.h: Likewise.
2038 * stdlib/stdlib.h: Likewise.
2039 * string/string.h: Likewise.
2040 * time/time.h: Likewise.
2041 * wcsmbs/wchar.h: Likewise.
2042 * wctype/wctype.h: Likewise.
2044 2002-08-28 Roland McGrath <roland@redhat.com>
2046 * locale/tst-C-locale.c (run_test): Remove __ from function names.
2048 2002-08-28 Jakub Jelinek <jakub@redhat.com>
2049 Roland McGrath <roland@redhat.com>
2051 * locale/hashval.h (compute_hashval): Use prototype defn.
2052 (hashval_t): New macro, defined to unsigned long int
2053 if not already defined.
2054 (compute_hashval): Return hashval_t instead of unsigned long int.
2055 * locale/loadarchive.c (hashval_t): New macro.
2056 * locale/programs/locarchive.c: Include hashval.h directly instead
2058 (compute_hashval, hashval_t): Define these macros first.
2059 (insert_name): Use archive_hashval instead of compute_hashval.
2060 (add_locale, delete_locales_from_archive): Likewise.
2062 2002-08-28 Jakub Jelinek <jakub@redhat.com>
2064 * locale/programs/locarchive.c (insert_name): Suppress warnings about
2065 hash collisions if be_quiet.
2067 2002-08-27 Roland McGrath <roland@redhat.com>
2069 * locale/locale.h (__newlocale, __duplocale, __freelocale,
2070 __uselocale): Don't declare these any more.
2071 * include/locale.h (__uselocale): Declare here instead, using __typeof.
2073 * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
2074 and treat it as an EOF return.
2075 * sysdeps/unix/readdir_r.c: Likewise.
2077 * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
2078 From Alexandre Oliva <aoliva@redhat.com>.
2079 * sysdeps/gnu/errlist-compat.c: Regenerated.
2081 2002-08-27 Brian Youmans <3diff@gnu.org>
2083 * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
2084 wording at request of copyright holder Stephen Moshier.
2085 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2086 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2087 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2088 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2089 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2090 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2091 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2092 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2093 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2094 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2095 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2096 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2097 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2098 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2100 2002-08-28 Jakub Jelinek <jakub@redhat.com>
2102 * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
2103 * ctype/ctype-extn.c (isblank_l): Add weak alias.
2104 * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
2105 * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
2106 * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
2107 * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
2108 * wctype/iswctype_l.c (iswctype_l): Likewise.
2110 2002-08-27 Roland McGrath <roland@redhat.com>
2112 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
2114 * ctype/ctype.h (__exctype_l): Don't declare __ name.
2115 * stdlib/stdlib.h: Don't declare __*_l names.
2116 * include/stdlib.h: Declare them here instead.
2117 * include/string.h: Don't declare __*_l names.
2118 * string/string.h: Declare them here instead.
2119 * time/time.h: Don't declare __*_l names.
2120 * include/time.h: Declare them here instead.
2121 * wcsmbs/wchar.h: Don't declare __*_l names.
2122 * include/wchar.h: Declare them here instead.
2123 * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
2124 Don't declare __*_l names.
2125 * include/wctype.h: Declare them here instead.
2126 * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
2127 * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
2128 * locale/langinfo.h: Don't declare __nl_langinfo_l.
2129 * include/langinfo.h: Declare it here with __typeof.
2131 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
2132 instead, taking an extra __locale_t argument.
2133 * time/Makefile (routines): Add strptime_l.
2134 * time/time.h (__strptime_l, strptime_l): Declare them.
2135 * time/strptime_l.c: New file.
2137 * time/time.h (__strftime_l, strftime_l): Declare them.
2138 * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
2139 * time/strftime_l.c: New file.
2140 * time/wcsftime_l.c: New file.
2141 * time/Makefile (routines): Add strftime_l, wcsftime_l.
2142 * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
2143 strftime_l, wcsftime_l.
2144 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
2145 or __wcsftime_l instead, taking an extra __locale_t argument.
2147 * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
2148 (libc: GLIBC_2.3): ... here.
2150 2002-08-27 Ulrich Drepper <drepper@redhat.com>
2152 * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
2154 * Makefile (distribute): Add LICENSES.
2156 * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
2159 * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
2161 * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
2163 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
2165 * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
2167 * sysdeps/mach/hurd/alpha/Dist: New file.
2169 * sysdeps/arm/Dist: Add bits/link.h.
2171 * sunrpc/Makefile: Distribute thrsvc.
2173 * stdio-common/Makefile: Remove more left-overs from old stdio.
2175 * include/linewrap.h: Removed.
2177 * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
2179 * intl/Makefile (distribute): Add plural-eval.c.
2181 2002-08-27 Roland McGrath <roland@redhat.com>
2183 * manual/sysinfo.texi (Mount Information): Correct file name to macro
2184 assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
2185 Say mtab is in either /var/run or /etc.
2187 2002-08-26 Roland McGrath <roland@redhat.com>
2189 * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
2190 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2192 * sysdeps/gnu/Versions: New file.
2193 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
2194 _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
2195 * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
2196 ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
2197 * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
2198 and _sys_nerr_internal instead of anything else. Make it include
2199 "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
2200 Make it emit some asm magic if [EMIT_ERR_MAX].
2201 * sysdeps/gnu/errlist.c: Regenerated.
2202 * sysdeps/gnu/errlist-compat.awk: New file.
2203 * sysdeps/gnu/errlist-compat.c: New file (generated).
2204 * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
2205 (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
2206 (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
2207 (SYS_ERRLIST, SYS_NERR): Macros removed.
2208 (sys_nerr, _sys_nerr): Remove these weak aliases.
2209 * sysdeps/unix/sysv/linux/errlist.c: File removed.
2210 * sysdeps/unix/sysv/linux/errlist.h: File removed.
2211 * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
2213 * include/libc-symbols.h (declare_symbol): New macro.
2214 * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
2215 * configure.in: New check to define it.
2216 * configure: Regenerated.
2218 2002-08-27 Ulrich Drepper <drepper@redhat.com>
2220 * stdio-common/Makefile (headers): Remove bits/stdio_lim.h. This
2221 file isn't distributed. Add special rules to install bits/stdio_lim.h.
2223 * Make-dist: Remove traces of old stdio.
2224 * Makeconfig: Likewise.
2226 * locale/Makefile (localedef-aux): New variable. Only md5
2227 assigned to it. These files are not ddistributed in this directory.
2229 * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2230 * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
2231 * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
2233 * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
2235 * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
2236 set h_errno to NO_RECOVERY [PR libc/4360].
2238 2002-08-26 Ulrich Drepper <drepper@redhat.com>
2240 * libio/Makefile (tests): Add bug-fopena+.
2241 * libio/bug-fopena+.c: New file.
2242 * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
2243 file for _IO_IS_APPENDING if file isn't opened for reading, too.
2245 * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
2247 * locale/xlocale.c: Fix the last change. The variable still has
2249 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2250 (__libc_tsd_set): Add _data prefix to variable name.
2252 2002-08-26 Roland McGrath <roland@redhat.com>
2254 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
2255 macro with inline function.
2256 (sigset_get_old_mask): Likewise.
2257 * sysdeps/posix/sigblock.c (__sigblock): Update callers.
2258 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2259 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2260 * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
2261 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
2262 (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
2264 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
2265 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
2267 2002-07-06 Bruno Haible <bruno@clisp.org>
2269 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
2270 sigset_get_old_mask): Make it work with larger sigset_t.
2271 * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
2272 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2273 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2275 2002-08-26 Roland McGrath <roland@redhat.com>
2277 * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
2278 * manual/filesys.texi (File Times): Document lutimes and futimes.
2279 * misc/Makefile (routines): Add them.
2280 * misc/Versions (libc: GLIBC_2.3): Likewise.
2281 * sysdeps/generic/lutimes.c: New file.
2282 * sysdeps/generic/futimes.c: New file.
2283 * sysdeps/mach/hurd/lutimes.c: New file.
2284 * sysdeps/mach/hurd/futimes.c: New file.
2286 * manual/filesys.texi (File Times): Add explicit note about null
2287 pointer argument to utimes.
2289 2002-08-26 Roland McGrath <roland@frob.com>
2291 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
2292 (__ifreq): Add a cast. Remove an unused variable.
2294 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2295 _HURD_THREADVAR_LOCALE.
2297 2002-08-26 Jakub Jelinek <jakub@redhat.com>
2299 * posix/regexec.c (re_search_stub): Return correct match length
2301 * posix/bug-regex10.c: New test.
2302 * posix/Makefile (tests): Add bug-regex10.
2304 2002-08-26 Brian Youmans <3diff@gnu.org>
2306 * COPYING.LIB: Replaced with fresh copy from
2307 ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2308 suggested copying permission notice now says version 2.1 instead
2311 * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2313 * crypt/crypt_util.c: Likewise.
2314 * crypt/ufc.c: Likewise.
2315 * elf/dl-conflict.c: Likewise.
2316 * elf/dl-iteratephdr.c: Likewise.
2317 * iconv/iconvconfig.h: Likewise.
2318 * malloc/arena.c: Likewise.
2319 * malloc/hooks.c: Likewise.
2320 * malloc/malloc.c: Likewise.
2321 * posix/glob/Makefile.ami: Likewise.
2322 * posix/glob/Makefile.in: Likewise.
2323 * stdlib/gmp-impl.h: Likewise.
2324 * stdlib/gmp.h: Likewise.
2325 * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2326 * sysdeps/generic/strnlen.c: Likewise.
2327 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2328 * sysdeps/mach/hurd/recvmsg.c: Likewise.
2329 * sysdeps/mach/hurd/sendmsg.c: Likewise.
2330 * sysdeps/mach/hurd/spawni.c: Likewise.
2331 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2332 * sysdeps/mach/powerpc/sysdep.h: Likewise.
2333 * sysdeps/mach/powerpc/thread_state.h: Likewise.
2334 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2335 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2336 * sysdeps/x86_64/gmp-mparam.h: Likewise.
2338 * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2339 Lesser GPL copying permission notice from 2 to 2.1.
2340 * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2341 * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2342 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2343 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2344 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2345 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2346 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2347 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2348 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2349 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2350 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2351 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2352 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2353 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2354 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2355 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2356 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2357 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2358 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2359 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2360 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2361 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2362 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2363 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2364 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2365 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2366 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2367 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2368 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2369 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2370 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2371 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2372 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2373 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2374 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2375 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2376 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2377 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2378 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2379 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2380 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2381 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2382 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2383 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2384 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2385 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2386 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2387 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2388 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2389 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2390 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2391 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2392 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2393 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2394 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2396 * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2397 Moshier and Lesser GPL copying permission notice, per license from
2399 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2400 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2401 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2402 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2403 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2404 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2405 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2406 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2407 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2408 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2409 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2410 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2411 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2412 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2414 * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2415 notice, per license from copyright holder Stephen Moshier.
2416 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2417 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2418 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2419 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2420 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2421 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2422 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2423 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2424 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2426 2002-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2428 * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2429 (shared-only-routines): Likewise.
2431 2002-08-26 Roland McGrath <roland@redhat.com>
2433 * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2434 name of "", store a null pointer instead.
2436 * configure.in (elf): Set to yes for freebsd*, netbsd*.
2437 * configure: Regenerated.
2439 * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2440 Initialize this instead of __libc_tsd_LOCALE_data.
2442 * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2443 ptsname_r to EINVAL.
2445 * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2447 * rt/Makefile: Revert last change, it was inappropriate to presume aio
2448 implementations depend on pthreads.
2449 * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2450 * rt/tst-aio64.c (do_test): Likewise.
2451 * rt/tst-aio2.c (do_test): Likewise.
2452 * rt/tst-aio3.c (do_test): Likewise.
2453 * rt/tst-aio4.c (do_test): Likewise.
2454 * rt/tst-aio5.c (do_test): Likewise.
2455 * rt/tst-aio6.c (do_test): Likewise.
2456 * rt/tst-aio7.c (do_test): Likewise.
2458 * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2459 void so as to avoid compiler warnings.
2461 * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2462 _IO_wide_data_FD, which is never used here.
2465 [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2466 * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2467 * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2469 * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2470 * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2472 * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2473 (closelog): Likewise.
2475 2002-07-06 Bruno Haible <bruno@clisp.org>
2477 * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2479 * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2480 * sysdeps/unix/alpha/pipe.S: ... here.
2481 * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2483 * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2485 * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2486 * sysdeps/unix/i386/fork.S: Likewise.
2487 * sysdeps/unix/i386/pipe.S: Likewise.
2488 * sysdeps/unix/i386/wait.S: Likewise.
2490 * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2491 * sysdeps/unix/arm/fork.S: Likewise.
2493 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2495 (DO_CALL): Swap argument order.
2496 * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2498 (DO_CALL): Swap argument order.
2499 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2501 (DO_CALL): Swap argument order.
2502 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2504 (DO_CALL): Swap argument order.
2505 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2507 (DO_CALL): Swap argument order.
2508 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2510 (DO_CALL): Swap argument order.
2511 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2513 (DO_CALL): Swap argument order.
2515 * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2516 (L): Define right for ELF.
2517 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2518 Now defined in sysdeps/i386/sysdep.h.
2520 * sysdeps/posix/readv.c: Ansify function definition.
2521 * sysdeps/posix/writev.c: Likewise.
2523 * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2524 have the same size. Avoid direct cast from size_t to off_t.
2526 * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2527 nul byte in entry[n].ut_user.
2528 (simulate_logout): Likewise.
2530 * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2531 _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2532 existence of corresponding members of 'struct utmp'.
2533 * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2536 * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2537 allocate a buffer of at least BUFSIZ bytes, not just of
2538 sizeof (struct dirent).
2540 * sysdeps/generic/glob.c: Include <limits.h>.
2541 (NAME_MAX): Define a fallback.
2542 (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2544 * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2545 (main): Allocate enough room for a 'struct dirent64' on the stack.
2546 * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2549 * sysdeps/unix/sysv/linux/init-first.c: Don't include
2552 * inet/htontest.c: Include <sys/types.h>.
2554 * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2556 * include/sys/sysctl.h: Comment fix.
2558 * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2560 * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2562 * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2564 * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2565 (__getpeername): New alias.
2566 (__getsockname): New alias.
2567 (__socket): New alias.
2569 * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2571 * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2572 (__fcntl_internal): New alias.
2573 (__profil): New alias.
2575 2002-08-26 Ulrich Drepper <drepper@redhat.com>
2577 * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2578 entry was for getaddr* lookup or not. Add only matching cache
2579 entry. Change all callers [PR libc/4317].
2581 * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2582 finding the read position [PR libc/4265].
2583 * libio/Makefile (tests): Add bug-rewind2.
2584 * libio/bug-rewind2.c: New file.
2586 * libio/bug-rewind.c: Fix creation of temp file.
2588 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2590 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2591 neither SUCCESS nor TRYAGAIN [PR libc/4259].
2592 * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2593 to ENOENT if no entry is found.
2594 * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2596 * nis/nss_compat/compat-initgroups.c: Likewise.
2597 * nis/nss_compat/compat-pwd.c: Likewise.
2598 * nis/nss_compat/compat-spwd.c: Likewise.
2599 * nis/nss_nis/nis-alias.c: Likewise.
2600 * nis/nss_nis/nis-ethers.c: Likewise.
2601 * nis/nss_nis/nis-grp.c: Likewise.
2602 * nis/nss_nis/nis-hosts.c: Likewise.
2603 * nis/nss_nis/nis-initgroups.c: Likewise.
2604 * nis/nss_nis/nis-netgrp.c: Likewise.
2605 * nis/nss_nis/nis-network.c: Likewise.
2606 * nis/nss_nis/nis-proto.c: Likewise.
2607 * nis/nss_nis/nis-publickey.c: Likewise.
2608 * nis/nss_nis/nis-pwd.c: Likewise.
2609 * nis/nss_nis/nis-rpc.c: Likewise.
2610 * nis/nss_nis/nis-service.c: Likewise.
2611 * nis/nss_nis/nis-spwd.c: Likewise.
2612 * resolv/nss_dns/dns-host.c: Likewise.
2613 * resolv/nss_dns/dns-network.c: Likewise.
2614 * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2615 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2616 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2617 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2618 * nis/nss_nisplus/nisplus-network.c: Likewise.
2619 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2620 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2621 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2622 * nis/nss_nisplus/nisplus-service.c: Likewise.
2623 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2624 * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2625 * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2626 * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2627 * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2629 * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2630 declaring __restore and __restore_rt as hidden (if possible).
2632 2002-08-25 Roland McGrath <roland@redhat.com>
2634 * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2636 * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2637 (getutent_r_file, internal_getut_r): Updated all callers.
2638 (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2640 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2642 * locale/programs/locale.c: Don't print aliases for non-existing
2643 locales for 'locale -a'.
2644 Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2646 2002-07-19 H.J. Lu <hjl@gnu.org>
2648 * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2650 2002-07-16 H.J. Lu <hjl@gnu.org>
2652 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2654 * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2656 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2658 * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2659 not moved ahead of the fputs call.
2660 * elf/tst-tlsmod2.c (in_dso): Likewise.
2661 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2662 * elf/tst-tlsmod4.c (in_dso): Likewise.
2664 2002-08-25 Andreas Schwab <schwab@suse.de>
2666 * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2668 2002-08-25 Roland McGrath <roland@redhat.com>
2670 * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2671 resetting handler, to avoid the possibility of a spurious SIGALRM
2672 delivered to the user's handler.
2673 Reported by Amit D. Chaudhary <amitc@brocade.com>,
2675 * misc/Makefile (CFLAGS-init-misc.c): Variable removed. It served to
2676 set -fkeep-inline-functions, which is not needed for the current file.
2678 * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2679 (_dl_setup_hash): Add attribute_hidden.
2680 (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2681 (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2682 (_dl_new_object, _dl_map_object_deps): Likewise.
2683 (_dl_map_object_deps_internal): Remove decl.
2684 * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2686 * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2687 && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2688 && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2689 (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2690 instead relying on the compiler to produce only GOTOFF variable refs.
2692 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2694 * elf/dl-load.c: Fix typo in comment. Add a few more __builtin_expect.
2696 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2697 inline to avoid defining it in every file which includes this header.
2699 * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2700 defining DONT_USE_BOOTSTRAP_MAP.
2702 * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2703 * libio/tst-mmap-setvbuf.c (main): Likewise.
2704 * libio/tst-widetext.c (main): Likewise.
2706 * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2708 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2709 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2711 * sysdeps/i386/elf/configure.in: Unconditionally define
2712 PI_STATIC_AND_HIDDEN.
2713 * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2714 PI_STATIC_AND_HIDDEN is defined as well.
2715 * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2717 2002-08-24 Ulrich Drepper <drepper@redhat.com>
2719 * sysdeps/ia64/bzero.S: Define __bzero as well.
2721 * locale/programs/charmap.c (charmap_new_char): Don't use
2722 ULONG_MAX as maximum UCS4 value.
2724 * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2726 * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2728 * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2729 * malloc/malloc.c (mALLINFo): Likewise.
2731 * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2733 * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2734 examining result of _IO_do_flush call.
2736 * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2737 Use prec not spec when sizing buffers.
2739 * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2740 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2741 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2742 * stdio-common/vfscanf.c (inchar): Likewise.
2743 * misc/efgcvt_r.c (fcvt_r): Likewise.
2744 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2745 * elf/readlib.c (process_file): Likewise.
2746 * elf/sprof.c (load_profdata): Likewise.
2747 * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2748 * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2749 * locale/programs/charmap.c (charmap_read): Likewise.
2750 * libio/fileops.c: Likewise.
2751 * libio/fmemopen.c: Likewise.
2752 * stdlib/strtod.c: Likewise.
2753 * elf/dl-load.c: Likewise.
2754 * iconv/iconvconfig.c: Likewise.
2755 * iconv/iconv_prog.c (process_block): Likewise.
2756 * elf/rtld.c (dl_main): Likewise.
2758 * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2759 macro to calm down the compiler.
2761 * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2763 * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2765 * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2766 placement of errno definition.
2767 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2768 * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2769 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2770 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2771 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2773 * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2774 from 1024 to 65536, to avoid buffer overrun.
2776 2002-08-16 Paul Eggert <eggert@twinsun.com>
2778 * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2779 from 1024 to 65536, to avoid buffer overrun.
2780 * resolv/res_query.c (MAXPACKET): Likewise.
2782 2002-08-24 Andreas Jaeger <aj@suse.de>
2784 * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2786 2002-08-23 Ulrich Drepper <drepper@redhat.com>
2788 * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2791 * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2792 Patch by Simon Gee <simong@agile.tv>.
2794 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2795 Prefer reading /proc/stat since it is more uniform across
2798 * manual/texinfo.tex: Update to latest official version.
2800 * sysvipc/sys/shm.h: Remove SHMLBA definition.
2801 * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2802 * sysdeps/gnu/bits/shm.h: Likewise.
2803 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2804 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2805 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2806 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2807 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2808 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2809 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2810 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2811 since this is what the kernel says.
2813 * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2814 since ssize_t is needed as well. Replace const with __const.
2816 2002-08-23 Roland McGrath <roland@redhat.com>
2818 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2819 __malloc_hook, __realloc_hook, __memalign_hook,
2820 __after_morecore_hook): Variable definitions moved to ...
2821 * malloc/malloc.c: ... here, so as to be before all references.
2823 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2824 global variable reference in an unused asm parameter, to ensure the
2825 compiler has set up the GOT register before we use it.
2827 * malloc/hooks.c: Move variable definitions ahead of uses.
2828 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2829 initializers that make reference to variables they define.
2831 2002-08-23 Andreas Jaeger <aj@suse.de>
2833 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2834 alloca, free, qsort.
2836 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2838 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2839 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2841 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2843 * sysdeps/generic/fgetxattr.c: New file.
2844 * sysdeps/generic/flistxattr.c: New file.
2845 * sysdeps/generic/fremovexattr.c: New file.
2846 * sysdeps/generic/fsetxattr.c: New file.
2847 * sysdeps/generic/getxattr.c: New file.
2848 * sysdeps/generic/listxattr.c: New file.
2849 * sysdeps/generic/lgetxattr.c: New file.
2850 * sysdeps/generic/llistxattr.c: New file.
2851 * sysdeps/generic/lremovexattr.c: New file.
2852 * sysdeps/generic/lsetxattr.c: New file.
2853 * sysdeps/generic/removexattr.c: New file.
2854 * sysdeps/generic/setxattr.c: New file.
2855 * misc/Makefile (headers): Add sys/xattr.h.
2856 (routines): Add *xattr calls.
2857 * misc/Versions: Add *xattr calls with version 2.3.
2858 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2859 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2860 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2861 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2862 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2863 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2864 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2865 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2867 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
2869 * sysdeps/powerpc/elf/libc-start.c
2870 (__cache_line_size): Declare.
2871 (__aux_init_cache): New function.
2872 (__libc_start_main): Change type of `auxvec' parameter to
2873 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
2875 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2876 (__cache_line_size): Declare.
2877 (__aux_init_cache): New function.
2878 (DL_PLATFORM_INIT): Define.
2879 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2880 value to select the correct stride for dcbz.
2882 2002-08-22 Andreas Jaeger <aj@suse.de>
2884 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2887 2002-08-22 Roland McGrath <roland@redhat.com>
2889 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2890 position indicated by locrectab against file bounds before rounding to
2891 page size. In mapping loop, always set TO before breaking out of
2892 contiguous range coalescing loop.
2894 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2895 (or MAP_COPY if available) instead of MAP_SHARED.
2897 * scripts/firstversions.awk: When encountering a version newer than
2898 the specified earliest version, be sure to emit the specified earliest
2899 version first if any renaming of an older version to that has been.
2901 2002-08-21 Roland McGrath <roland@redhat.com>
2903 * configure.in: Make GCC version check require 3.[2-9]* and no others.
2904 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2905 (Configuring and compiling): Don't mention older GCC versions any more.
2906 * INSTALL: Regenerated.
2908 * manual/install.texi (Configuring and compiling, Installation,
2909 Running make install, Linux): Linux -> GNU/Linux where appropriate.
2911 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2912 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2913 and with noinline otherwise. Remove hack alloca use to prevent
2914 inlining, we can ask for it explicitly nowadays.
2916 * dlfcn/bug-dlsym1.c: New file.
2917 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2918 * dlfcn/Makefile (distribute): Add them.
2919 (tests): Add bug-dlsym1 here.
2920 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2921 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2922 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2924 2002-08-21 Ulrich Drepper <drepper@redhat.com>
2926 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
2927 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2929 (_dl_start): Don't use local bootstrap_map variable if
2930 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
2931 pass bootstrap_map to _dl_start_final in this case either. Don't
2932 pass start_time to _dl_start_final ever.
2933 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2935 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2936 This cripples the scope lists necessary to search for symbols in
2937 dependencies which are not in the global scope.
2939 * include/setjmp.h (__libc_longjmp): Add declaration.
2941 2002-08-21 Andreas Jaeger <aj@suse.de>
2943 * sysdeps/x86_64/_mcount.S: Fix assembler.
2945 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2946 with biarch support.
2948 2002-08-21 Andreas Jaeger <aj@suse.de>
2950 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2952 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2954 * sysdeps/x86_64/machine-gmon.h: New file.
2955 * sysdeps/x86_64/_mcount.S: New file.
2957 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2959 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
2960 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2961 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2962 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2963 to TL_INIT_TP. Otherwise pass 1.
2964 * include/link.h (struct link_map): Add l_tls_tp_initialized.
2965 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2967 2002-08-15 Jakub Jelinek <jakub@redhat.com>
2969 * locale/programs/localedef.c (add_to_readlist): Error about
2970 circular dependencies only if the locale in question hasn't
2972 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2973 CTYPE_LOCALE to load_locale.
2974 * locale/programs/locfile.c (locfile_read): Don't include
2975 unneeded but available locales in locale_mask.
2977 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2978 print any messages about enlarging archive.
2980 2002-08-20 Brian Youmans <3diff@gnu.org>
2982 * manual/contrib.texi: Removed licenses, added acknowledgements
2983 for contributions by Intel, IBM, Craig Metz.
2984 * LICENSES: New file, contains the text of all non-FSF licenses in the
2985 distribution that require putting the notice in the accompanying
2987 * README.template, README: Mention LICENSES.
2989 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2990 new one modelled on the modern BSD license, per recent letter
2991 of permission from CMU.
2992 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2994 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2995 from IBM to FSF, per the recent Software Letter. Changed the
2996 distribution terms from GPL to LGPL.
2998 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2999 copying permission notice (Lesser GPL), per recent IBM Software Letter.
3000 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3001 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
3002 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
3003 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
3004 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
3005 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
3006 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
3007 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
3009 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
3010 from IBM to FSF, per the recent Software Letter. Corrected the
3011 text of the copying permission notice to say Lesser GPL instead
3012 of GPL in warranty disclaimer paragraph.
3013 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3014 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
3015 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3016 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
3017 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
3018 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
3019 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
3020 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3021 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3022 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
3023 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3024 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3025 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
3026 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
3027 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
3028 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
3029 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
3030 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
3031 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
3032 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
3033 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3035 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
3036 permission notice to say Lesser GPL instead of GPL in warranty
3037 disclaimer paragraph.
3038 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3039 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3040 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3041 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3042 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3043 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3044 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3045 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3046 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3047 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3048 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3049 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3050 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3051 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3052 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3053 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3054 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3055 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3056 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3057 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3058 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3059 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3060 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
3062 2002-08-20 Roland McGrath <roland@redhat.com>
3064 Fix ABI compatibility with libc compiled with old tools on powerpc.
3065 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3066 and Jack Howarth <howarth@bromo.med.uc.edu>.
3067 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
3068 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
3069 pass -DHAVE_DOT_HIDDEN for these files.
3070 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
3072 * sysdeps/powerpc/divdi3.c: New file.
3073 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
3074 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
3076 2002-08-20 Jakub Jelinek <jakub@redhat.com>
3078 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
3079 partially overlapping mappings. Remove unneeded (char *) casts.
3080 Never allow duplication of ranges in mapped areas.
3082 2002-08-20 Roland McGrath <roland@redhat.com>
3084 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
3085 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
3087 2002-08-20 Ulrich Drepper <drepper@redhat.com>
3089 * include/unistd.h: Don't hide _exit.
3091 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
3092 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
3093 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
3094 argument 1 to TLS_INIT_TP.
3095 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
3097 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
3099 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
3100 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
3101 memory allocation to...
3102 (allocate_dtv): ...here. New function.
3103 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
3104 call allocate_dtv instead of _dl_allocate_tls_storage.
3105 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
3106 (_dl_get_tls_static_info): New function.
3107 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
3108 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
3110 2002-08-19 Ulrich Drepper <drepper@redhat.com>
3112 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
3113 immediately if result == NULL.
3115 2002-08-16 Jakub Jelinek <jakub@redhat.com>
3117 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3119 2002-08-18 Roland McGrath <roland@frob.com>
3121 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
3122 instead of __file_name_split.
3123 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
3125 * sysdeps/mach/hurd/dl-sysdep.c
3126 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
3127 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
3129 2002-08-16 Jakub Jelinek <jakub@redhat.com>
3131 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
3132 in change before last: MAX -> MIN.
3134 2002-08-15 Roland McGrath <roland@redhat.com>
3136 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
3137 if seek would go past it.
3138 (mmap_remap_check): If file position is at or past EOF after check,
3139 leave read pointers at EOF and don't seek.
3141 * libio/tst-mmap-offend.c: New file.
3142 * libio/Makefile (tests): Add it.
3144 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
3145 the name as passed, rather than the name in the archive dictionary.
3147 2002-08-15 Ulrich Drepper <drepper@redhat.com>
3149 * csu/Makefile: Define elide-routines.os not static-only-routines.
3151 * include/sched.h (__clone): Add varargs at the end.
3153 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
3155 (TLS_INIT_HELPER): If defined, use it.
3156 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
3158 2002-08-15 Roland McGrath <roland@redhat.com>
3160 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
3161 on L->l_prev; it can happen under rtld --verify too.
3163 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
3164 header separately, just map an initial window of 2MB from the file
3165 and remap if that is not large enough to cover the whole header.
3167 2002-08-15 Andreas Jaeger <aj@suse.de>
3169 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
3171 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3172 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3173 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3174 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3175 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3176 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3177 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3178 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3179 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3180 Patch by Andreas Gruenbacher <agruen@suse.de>.
3182 * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
3184 2002-08-14 Roland McGrath <roland@redhat.com>
3186 * locale/locarchive.h (struct locale_category_data): Give this name to
3187 the type of locale_data_t's elements.
3188 * locale/programs/locarchive.c (cmpcategorysize): New static function.
3189 (add_locale): Use that to sort the categories by size and put all
3190 those that fit into two pages into the LC_ALL block, instead of
3191 hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
3192 (show_archive_content): Detect categories inside LC_ALL block
3193 directly, instead of hard-coding.
3194 (oldlocrecentcmp): Compare just on file locations used.
3196 2002-08-14 Jakub Jelinek <jakub@redhat.com>
3198 * locale/programs/locarchive.c (struct oldlocrecent): New type.
3199 (oldlocrecentcmp): New function.
3200 (enlarge_archive): Re-add locales in the order they were added
3202 (add_locale): Put all the small locale files together, if the small
3203 locale file block would occupy less pages if page size aligned, align
3205 (show_archive_content): Adjust for locale archives optimized for speed.
3207 2002-08-14 Roland McGrath <roland@frob.com>
3209 * configure.in: Use "MISSING" as not-found value for MIG.
3210 * sysdeps/mach/configure.in: Fatal if mig not found.
3211 * configure, sysdeps/mach/configure: Regenerated.
3213 2002-08-13 Jakub Jelinek <jakub@redhat.com>
3215 * locale/loadarchive.c (archfname): Add missing slash.
3217 * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
3218 * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
3220 2002-08-12 Roland McGrath <roland@redhat.com>
3222 * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
3223 * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
3224 * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
3225 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3226 * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
3227 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
3228 * sysdeps/generic/waitpid.c: Likewise.
3230 * include/net/if.h: New file. Use libc_hidden_proto
3231 for if_nametoindex and if_indextoname.
3232 * sysdeps/generic/if_index.c: Add libc_hidden_def.
3233 * sysdeps/mach/hurd/if_index.c: Likewise.
3234 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
3236 * include/grp.h (setgroups): Add libc_hidden_proto.
3237 * sysdeps/generic/setgroups.c: Add libc_hidden_def.
3238 * sysdeps/mach/hurd/setgroups.c: Likewise.
3239 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
3240 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3242 2002-08-13 Jakub Jelinek <jakub@redhat.com>
3244 * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
3245 * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
3246 * sysdeps/generic/setegid.c (setegid): Likewise.
3247 * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
3248 * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
3249 * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
3250 * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
3251 * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
3252 * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
3253 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
3254 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
3255 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
3256 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
3257 * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
3258 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
3259 Remove fallback if __ASSUME_SETRESUID_SYSCALL.
3261 * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
3262 __lxstat_internal, __lxstat64_internal): Remove.
3263 (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
3265 * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
3266 Remove INTDEF where present, remove #undef at the beginning.
3267 * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
3268 * sysdeps/generic/lxstat.c (__lxstat): Likewise.
3269 * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
3270 * sysdeps/generic/xstat.c (__xstat): Likewise.
3271 * sysdeps/generic/xstat64.c (__xstat64): Likewise.
3272 * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
3273 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3274 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3275 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3276 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3277 * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
3278 * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
3279 * sysdeps/unix/fxstat.c (__fxstat): Likewise.
3280 * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
3281 * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
3282 * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
3283 * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
3284 * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
3285 * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
3286 * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
3287 * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
3288 * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
3289 * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
3290 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
3291 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
3292 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
3293 * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3294 * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3295 * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3296 * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3297 * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3298 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3299 * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
3300 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3301 * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3302 * sysdeps/unix/xstat.c (__xstat): Likewise.
3304 * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
3305 * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
3306 * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
3307 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3308 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
3309 * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
3310 * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
3312 * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
3313 * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
3314 * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
3315 * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
3316 * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
3317 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
3318 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
3319 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
3321 * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
3322 * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
3323 * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
3324 * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
3325 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3326 * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
3327 * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
3328 * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
3330 * include/string.h (strcoll): Add libc_hidden_proto.
3331 * string/strcoll.c (strcoll): Add libc_hidden_def.
3333 * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
3335 2002-08-11 Philip Blundell <philb@gnu.org>
3337 * sysdeps/arm/Makefile: New file.
3339 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3341 * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3342 by another '|', end of regex or enclosing ')', clear branch.
3343 * posix/bug-regex9.c: New test.
3344 * posix/Makefile (tests): Add bug-regex9.
3346 2002-08-12 Roland McGrath <roland@redhat.com>
3348 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3349 start count condition, use TOTAL instead of variable that was never
3350 set. Fix outer loop termination condition to TOTAL >= after update.
3352 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3353 dl_tls_static_align and dl_tls_static_nelem.
3355 2002-08-11 Roland McGrath <roland@redhat.com>
3357 * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3358 of the TLS macros, otherwise the compiler might not have initialized
3359 the PIC register yet when we use the PLT via asm.
3360 * elf/tst-tlsmod3.c (in_dso2): Likewise.
3361 * elf/tst-tlsmod2.c (in_dso): Likewise.
3363 * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3365 * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3366 Evaluate argument exactly once. Remove __volatile__ from asm's.
3368 * include/unistd.h: Use libc_hidden_proto for getdomainname
3370 * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3371 * sysdeps/mach/hurd/getdomain.c: Likewise.
3372 * sysdeps/unix/getlogin_r.c: Likewise.
3373 * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3374 * sysdeps/generic/getlogin_r.c: Likewise.
3376 * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3377 * sunrpc/rtime.c: Add libc_hidden_def.
3379 * include/string.h: Use libc_hidden_proto for basename.
3380 * string/basename.c [_LIBC]: Add libc_hidden_def.
3382 * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3384 * locale/loadarchive.c: munmap -> __munmap throughout.
3386 * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3387 * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3388 * sysdeps/generic/gai_strerror.c: Likewise.
3390 * include/sys/errno.h: New file.
3392 * include/signal.h: No libc_hidden_proto for raise,
3393 __libc_current_sigrtmin, __libc_current_sigrtmax.
3394 These need to be overridden by linuxthreads.
3395 * sysdeps/posix/raise.c: Reverted.
3396 * sysdeps/generic/raise.c: Reverted.
3397 * signal/allocrtsig.c: Reverted.
3399 * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
3401 2002-08-10 Roland McGrath <roland@redhat.com>
3403 * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3404 * locale/localeinfo.h: Declare it.
3405 * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3406 current locale if it's not in the file list.
3407 Call _nl_archive_subfreeres.
3409 2002-08-10 Andreas Jaeger <aj@suse.de>
3411 * sysdeps/i386/strchr.S: Add comment.
3413 2002-08-10 Roland McGrath <roland@redhat.com>
3415 * include/wchar.h (putwc): Use libc_hidden_proto.
3416 * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3417 sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3418 * stdio-common/dprintf.c: Add libc_hidden_def.
3419 * stdio-common/fprintf.c: Likewise.
3420 * stdio-common/sprintf.c: Likewise.
3421 * stdio-common/sscanf.c: Likewise.
3422 * libio/iofwrite.c: Likewise.
3423 * libio/memstream.c: Likewise.
3424 * libio/putwc.c: Likewise.
3425 * stdio-common/perror.c: Likewise.
3426 * sysdeps/posix/remove.c: Likewise.
3427 * sysdeps/generic/remove.c: Likewise.
3428 * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h".
3429 * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
3431 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3433 * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3434 towlower, towupper): Add prototypes here too. Add libc_hidden_proto.
3435 * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3436 towlower, towupper): Add libc_hidden_weak.
3438 * include/bits/dlfcn.h: New file.
3439 * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3441 * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3442 * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3443 * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3444 * include/pwd.h (_nss_files_parse_pwent): Likewise.
3445 * include/shadow.h (_nss_files_parse_spent): Likewise.
3446 * include/netdb.h (_nss_files_parse_protoent,
3447 _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3448 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3449 (LINE_PARSER): Use it.
3450 * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3451 * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3453 * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3456 * manual/debug.texi (%MENU%): Remove trailing dot.
3457 Reported by <hayastan132@hotmail.com>.
3459 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3462 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3465 2002-08-09 Roland McGrath <roland@redhat.com>
3467 * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3468 name to find codeset name (if any) and normalize it. If the
3469 normalized name differs, look up only that in the archive.
3470 * locale/programs/locarchive.c (add_locale_to_archive): If the name
3471 contains a codeset, normalize the codeset store only the normalized
3472 name in the archive. If not, add an alias containing the locale's
3473 normalized codeset name. Apply codeset name normalization when
3474 matching entries in the alias file.
3476 * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3477 decrement HEAD->namehash_used here.
3478 (add_locale): Only need to insert name string when name_offset != 0.
3480 * locale/programs/localedef.c (options): Add -A/--alias-file.
3481 (alias_file): New variable.
3482 (parse_opt): Grok -A, set that.
3483 * locale/programs/localedef.h: Declare it.
3485 * locale/locarchive.h (struct locrecent): Add `refs' member.
3486 * locale/programs/locarchive.c (insert_name): New function, broken out
3488 (add_locale_to_archive): ... here. Call that.
3489 (add_alias): New function.
3490 (add_locale): New static function, add_locale_to_archive renamed.
3491 (add_locale_to_archive): Call that and use add_alias to add an alias
3492 for the name with codeset if the given name lacks it.
3493 (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3495 * locale/Makefile (routines): Add loadarchive.
3496 * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3497 (_nl_load_locale_from_archive): New function.
3498 * locale/localeinfo.h: Declare it.
3499 * locale/findlocale.c (_nl_find_locale): If using default locale path,
3500 try _nl_load_locale_from_archive first.
3502 * locale/loadlocale.c (_nl_intern_locale_data): New function,
3503 broken out of _nl_load_locale.
3504 (_nl_load_locale): Call that.
3505 * locale/localeinfo.h: Declare it.
3506 (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3507 (struct locale_data): Remove unused member `options'.
3508 * locale/findlocale.c (_nl_remove_locale): Update uses.
3509 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3510 * locale/C-collate.c: Update initializer.
3511 * locale/C-identification.c: Likewise.
3512 * locale/C-measurement.c: Likewise.
3513 * locale/C-telephone.c: Likewise.
3514 * locale/C-address.c: Likewise.
3515 * locale/C-name.c: Likewise.
3516 * locale/C-paper.c: Likewise.
3517 * locale/C-time.c: Likewise.
3518 * locale/C-numeric.c: Likewise.
3519 * locale/C-monetary.c: Likewise.
3520 * locale/C-messages.c : Likewise.
3521 * locale/C-ctype.c: Likewise.
3523 * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3524 use CHAR_BIT instead of BITSPERBYTE.
3526 * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3527 _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3528 * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3529 (_nl_remove_locale): Likewise.
3530 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3532 * locale/findlocale.c (_nl_default_locale_path): New variable.
3533 (_nl_find_locale): If LOCALE_PATH is null, default to that.
3534 * locale/localeinfo.h: Declare it.
3535 * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3536 in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale.
3537 * locale/newlocale.c (__newlocale): Likewise.
3539 * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3540 * inet/rexec.c (rexec_af): Add libc_hidden_def.
3541 * sysdeps/generic/morecore.c: Likewise.
3542 * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3543 (__libc_current_sigrtmax): Likewise.
3545 2002-08-08 Roland McGrath <roland@redhat.com>
3547 * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3548 * catgets/open_catalog.c (__open_catalog): Likewise.
3550 * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3551 from typo INITIAL_NUM_NANES.
3552 (create_archive): Update use.
3554 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3556 * sysdeps/unix/sysv/linux/sigwait.c: New file.
3558 2002-08-08 Roland McGrath <roland@frob.com>
3560 * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3562 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3564 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3565 else and undefine after including wcstol_l.c.
3566 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3568 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3570 * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3572 2002-08-08 Alexandre Oliva <aoliva@redhat.com>
3574 * configure.in: Make the test for broken_alias_attribute stricter.
3576 2002-05-24 Robert Love <rml@tech9.net>
3578 * posix/Makefile (routines): Add sched_getaffinity and
3580 * posix/sched.h: Add declarations for sched_getaffinity and
3582 * sysdeps/generic/sched_getaffinity.c: New file.
3583 * sysdeps/generic/sched_setaffinity.c: New file.
3584 * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3587 2002-08-06 Andreas Schwab <schwab@suse.de>
3589 * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3591 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3593 * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3596 * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3597 It is known to be defined.
3599 * include/string.h: Define index and rindex only if _ISOMAC is not
3602 * elf/rtld.c: Include <errno.h>.
3603 * sysdeps/generic/libc-tls.c: Likewise.
3605 2002-08-07 Roland McGrath <roland@redhat.com>
3607 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3609 (precsize_aton): Likewise.
3611 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3612 the static symbols added in the last change (doofus is me).
3614 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3615 loop to notice missing categories in a composite name.
3617 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3618 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3619 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3620 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3622 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3624 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3626 2002-08-07 Roland McGrath <roland@redhat.com>
3628 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3629 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3630 Reported by Jakub Jelinek <jakub@redhat.com>.
3632 2002-08-07 Jakub Jelinek <jakub@redhat.com>
3634 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3637 2002-08-06 Roland McGrath <roland@redhat.com>
3639 * include/getopt.h: Put private decls inside [_GETOPT_H].
3640 Use libc_hidden_proto for getopt_long, getopt_long_only.
3641 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3642 Add libc_hidden_def.
3644 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3645 Define as a macro for __dl_iterate_phdr.
3647 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3648 made static. Add __ name as a strong alias.
3649 (internal_endnetgrent): Likewise.
3650 (internal_getnetgrent_r): Likewise.
3652 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3654 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3655 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3656 all *_l functions with no __ prefix.
3657 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3658 * ctype/ctype_l.c: Likewise.
3659 * locale/nl_langinfo.c: Likewise.
3660 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3661 * stdlib/stdlib.h [__USE_GNU]: Likewise.
3662 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3663 * wctype/wctype.h [__USE_GNU]: Likewise.
3664 * string/strcoll_l.c (strcoll_l): Define as weak alias.
3665 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3666 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3667 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3668 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3669 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3670 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3671 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3672 (__wcscasecmp_l): Add libc_hidden_def.
3673 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3674 (__wcsncasecmp_l): Add libc_hidden_def.
3675 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3676 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3677 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3678 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3679 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3680 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3681 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3682 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3683 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3684 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3685 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3686 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3687 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3688 * wctype/wctype_l.c (wctype_l) Define as weak alias.
3690 2002-08-05 Roland McGrath <roland@redhat.com>
3692 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3693 netname2user, host2netname, user2netname, key_gendes.
3694 * sunrpc/netname.c: Add libc_hidden_def.
3695 * sunrpc/key_call.c: Likewise.
3697 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3699 * inet/getnameinfo.c: Add libc_hidden_def.
3700 * sysdeps/generic/getaddrinfo.c: Likewise.
3701 * sysdeps/posix/getaddrinfo.c: Likewise.
3703 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3704 * wcsmbs/wmemchr.c: Add libc_hidden_def.
3705 * wcsmbs/wmemset.c: Add libc_hidden_def.
3707 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3708 (index, rindex): Define as macros for strchr, strrchr.
3710 * string/envz.c (envz_strip): index -> strchr
3712 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3713 * sunrpc/rpc_prot.c: Add libc_hidden_def.
3715 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3716 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3718 * include/stdlib.h: Use libc_hidden_proto for wctomb.
3719 * stdlib/wctomb.c: Add libc_hidden_def.
3721 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3722 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3723 * resolv/herror.c: Likewise.
3724 * inet/rcmd.c: Add libc_hidden_def.
3725 * inet/ruserpass.c: Likewise.
3726 * inet/getnetgrent_r.c: Likewise.
3728 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3729 svc_unregister, remove *_internal decls. Use libc_hidden_proto
3730 for svcerr_auth, svcerr_noprog, svcerr_progvers.
3731 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3733 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3734 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3736 * sysdeps/posix/system.c (do_system): New function, guts broken out of
3738 (__libc_system): Call it, putting just the line == NULL test here.
3740 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3741 variables work right.
3743 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3744 * elf/dl-close.c (_dl_close): Likewise.
3746 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3747 in6addr_any, in6addr_loopback. Remove decls for
3748 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3749 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3750 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3751 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3752 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3753 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3754 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3756 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3758 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3760 * inet/ether_aton_r.c: Add libc_hidden_def.
3761 * inet/ether_ntoa_r.c: Likewise.
3763 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3765 * sunrpc/svc.c: Add libc_hidden_def.
3766 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3767 pmap_set, pmap_unset.
3768 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3769 * sunrpc/pm_getport.c: Likewise.
3770 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3771 * sunrpc/publickey.c: Add libc_hidden_def.
3773 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3775 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
3776 the other memset call in this function.
3778 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3779 at correct index. Clear BSS region now that memalign is used.
3781 2002-08-05 Roland McGrath <roland@redhat.com>
3783 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3784 * sysdeps/generic/uname.c: Add libc_hidden_def.
3785 * sysdeps/mach/hurd/uname.c: Likewise.
3787 2002-08-05 Jakub Jelinek <jakub@redhat.com>
3789 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3790 wcspbrk): Add libc_hidden_proto.
3791 * time/strftime.c (my_strftime): Add libc_hidden_def.
3792 (strftime): Remove libc_hidden_def.
3793 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3794 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3795 * wcsmbs/wcsspn.c (wcsspn): Likewise.
3796 * wcsmbs/wcscmp.c (wcscmp): Likewise.
3797 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3798 * wcsmbs/wcscoll.c (wcscoll): Likewise.
3800 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3801 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3802 __rpc_thread_createerr): Add libc_hidden_proto.
3803 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3804 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3805 __rpc_thread_createerr): Add libc_hidden_def.
3807 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3808 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3809 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3810 clnt_perror, clnt_sperror): Add libc_hidden_def.
3811 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3813 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3815 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3816 * sunrpc/des_soft.c (des_setparity): Likewise.
3818 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3819 Add libc_hidden_proto.
3820 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3821 Add libc_hidden_def.
3823 2002-08-05 Roland McGrath <roland@redhat.com>
3825 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3826 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3827 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3828 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3829 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3830 old data, abandoning the original memory allocated by rtld at startup,
3831 instead of calling realloc normally.
3833 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3835 * po/fr.po: Update from translation team.
3837 2002-08-04 Roland McGrath <roland@redhat.com>
3839 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3840 then generate a dummy module under the given name, obeying the
3841 normal rules for the "caller" field.
3843 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3844 actually iterate over the elements. Fix typo p_type -> p_vaddr.
3846 * include/pthread.h: Don't declare __pthread_initialize_minimal as
3847 weak here; we declare it weak or strong in the one place we use it.
3848 * sysdeps/generic/libc-start.c: ... which is here.
3849 Don't make the decl weak if [USE_TLS], since static programs need TLS
3850 setup even when single-threaded.
3852 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3854 * elf/Makefile (test-srcs): Add $(modules-names) to it.
3855 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3856 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3857 all these variables.
3859 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3861 * include/stdio.h: Don't define macro magic to redirect function
3862 calls if _ISOMAC is defined.
3864 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3867 2002-08-04 Roland McGrath <roland@redhat.com>
3869 * stdlib/lrand48_r.c: Add libc_hidden_def.
3871 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3872 TCB with __libc_memalign instead of mmap.
3873 (_dl_deallocate_tls): Free it with free instead of munmap.
3875 * Makerules (cpp-srcs-left): When setting this to run
3876 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3877 words. Combine the two loops into one on the concatenated list,
3878 including those as well as $(test-srcs).
3880 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3881 since we align here with optimally minimal waste anyway.
3882 (malloc): Just call that.
3884 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3887 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3888 to compute memory location for l_tls_initimage.
3889 * elf/rtld.c (_dl_start): Likewise.
3890 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3892 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3893 because the .d file is generated in the non-shared case and
3894 so fails to catch them otherwise.
3896 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3897 split out of _dl_allocate_tls.
3898 (_dl_allocate_tls_init): Likewise.
3899 (_dl_allocate_tls): Call those.
3900 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3901 * elf/rtld.c (dl_main): Call them separately instead of calling
3902 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
3903 is finished, so that the initializer data has been relocated before we
3904 copy it into the main thread's TLS block.
3906 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3907 loop conditions, prevented the last used module from being initialized.
3909 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3911 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3912 if glob resp. globfree are not macros.
3913 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3914 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3915 Add libc_hidden_ver.
3916 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3918 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3919 instead of libc_hidden_weak.
3920 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3921 libc_hidden_ver instead of libc_hidden_def.
3922 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3923 libc_hidden_ver instead of libc_hidden_def.
3924 (wcstoll, wcstoq): Remove libc_hidden_weak.
3925 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3927 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3929 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3931 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3934 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3936 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
3937 to access _sys_siglist.
3938 * string/strsignal.c: Likewise.
3939 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3940 * sysdeps/gnu/siglist.c: Likewise.
3941 * sysdeps/unix/siglist.c: Likewise.
3942 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3944 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3946 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3948 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3950 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3952 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3953 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3954 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3956 * include/time.h: Add libc_hidden_proto for __gmtime_r.
3957 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3959 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3960 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3961 and __gconv_get_cache respectively.
3962 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3963 defined static. Change all users.
3964 (__gconv_get_cache): New function.
3965 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3966 (__gconv_get_alias_db): New function.
3967 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3968 (__conv_modules_db): Likewise.
3969 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3970 and __gconv_get_alias_db.
3971 * iconv/iconv_prog.c: Use the new functions instead of accessing the
3974 * include/stdlib.h: Add prototype and libc_hidden_proto for
3976 * sysdeps/generic/morecore.c: Include <stdlib.h>.
3978 * malloc/obstack.c: Remove fputs macro.
3980 * malloc/mtrace.c: Remove fopen macro.
3982 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3984 * manual/debug.texi: Fix spelling to programmatically.
3985 Reported by <hayastan132@hotmail.com>.
3987 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3989 * include/libio.h: Add libc_hidden_proto for __uflow.
3990 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3991 fgetpos to _IO_* names.
3992 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3993 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3994 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3995 putwc_unlocked, vswscanf.
3996 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3997 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3998 * libio/fseek.c: Likewise.
3999 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
4001 * libio/genops.c (__uflow): Add libc_hidden_def.
4002 * libio/iofflush_u.c (fflush_unlocked): Likewise.
4003 * libio/iofgets_u.c (fgets_unlocked): Likewise.
4004 * libio/iofputs_u.c (fputs_unlocked): Likewise.
4005 * libio/iofputws_u.c (fputws_unlocked): Likewise.
4006 * libio/iofread_u.c (fread_unlocked): Likewise.
4007 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4008 * libio/iovswscanf.c (vswscanf): Likewise.
4009 * libio/putwc_u.c (putwc_unlocked): Likewise.
4010 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
4011 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
4012 * malloc/mtrace.c: Likewise.
4014 * sunrpc/clnt_perr.c: Remove fputs macro.
4015 * sunrpc/svc_simple.c: Likewise.
4016 * sunrpc/svc_tcp.c: Likewise.
4017 * sunrpc/svc_udp.c: Likewise.
4018 * sunrpc/xdr_rec.c: Likewise.
4019 * sunrpc/xdr_ref.c: Likewise.
4021 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
4022 iconv_prog, linereader, and charmap-dir.
4023 * locale/Makefile: Likewise for locale and charmap-dir.
4024 * malloc/Makefile: Likewise for memusagestat.
4025 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
4026 * sunrpc/Makefile: Likewise for rpc_main.
4027 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
4028 * timezone/Makefile: Likewise for zic.
4030 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
4032 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
4033 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
4034 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
4035 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
4038 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
4040 * libio/genops.c (__underflow): Add libc_hidden_def.
4041 * libio/wgenops.c (__wuflow): Likewise.
4042 (__wunderflow): Likewise.
4044 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
4045 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
4047 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
4048 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
4050 * include/string.h: Add libc_hidden_proto for __strverscmp.
4051 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
4053 * include/unistd.h: Add libc_hidden_proto for __sysconf.
4054 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
4055 * sysdeps/posix/sysconf.c: Likewise.
4056 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
4057 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
4059 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
4060 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4061 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4062 __iswxdigit_l, __towlower_l, __towupper_l.
4063 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
4064 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
4066 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
4067 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
4068 * sysdeps/mach/hurd/xmknod.c: Likewise.
4069 * sysdeps/unix/xmknod.c: Likewise.
4070 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4071 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4072 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4074 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
4076 2002-08-03 Roland McGrath <roland@redhat.com>
4078 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
4080 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
4081 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
4082 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
4083 * sysdeps/mach/hurd/setpriority.c: Likewise.
4084 * sysdeps/mach/hurd/getpriority.c: Likewise.
4085 * sysdeps/generic/setpriority.c: Likewise.
4086 * sysdeps/generic/getpriority.c: Likewise.
4088 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
4089 * malloc/mcheck.c: Add libc_hidden_def.
4091 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
4092 * misc/hsearch_r.c: Add libc_hidden_def.
4094 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
4095 * posix/fnmatch.c: Add libc_hidden_weak.
4097 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
4098 execl, execle, execlp, execvp, getpid, getsid.
4099 * sysdeps/generic/alarm.c: Add libc_hidden_def.
4100 * sysdeps/unix/alarm.c: Likewise.
4101 * posix/confstr.c: Likewise.
4102 * posix/execvp.c: Likewise.
4103 * posix/execlp.c: Likewise.
4104 * posix/execle.c: Likewise.
4105 * posix/execl.c: Likewise.
4106 * sysdeps/generic/getsid.c: Likewise.
4107 * sysdeps/mach/hurd/getsid.c: Likewise.
4108 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
4109 * sysdeps/mach/hurd/getpid.c: Likewise.
4111 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
4112 qecvt_r, qfcvt_r, lrand48_r.
4113 * misc/efgcvt_r.c: Add libc_hidden_def.
4115 * include/wordexp.h: Use libc_hidden_proto for wordfree.
4116 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
4118 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
4119 * locale/nl_langinfo.c: Add libc_hidden_def.
4121 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
4122 * sysdeps/generic/glob.c: Add libc_hidden_def.
4123 * sysdeps/generic/glob64.c: Likewise.
4124 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
4126 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
4128 * elf/Makefile (CFLAGS-vismod2.c): New variable.
4130 * locale/setlocale.c (_nl_current_names): Variable moved ...
4131 * locale/localename.c (_nl_current_names): ... here, new file.
4132 Make it global, with attribute_hidden.
4133 * locale/localeinfo.h: Declare it.
4134 * locale/Makefile (aux): Add localename.
4135 * locale/localename.c (__current_locale_name): New function.
4136 * include/locale.h (__current_locale_name): Declare it.
4137 * intl/dcigettext.c (guess_category_value): Use that instead of
4140 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
4141 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
4142 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
4143 * locale/newlocale.c: Add alias to __ name.
4144 * locale/duplocale.c: Likewise.
4145 * locale/freelocale.c: Likewise.
4146 * locale/uselocale.c: New file.
4147 * locale/Makefile (routines): Add it.
4148 * locale/Versions (libc: GLIBC_2.3): New set.
4149 Add newlocale, duplocale, freelocale, uselocale.
4150 (libc: GLIBC_PRIVATE): Add __uselocale.
4152 * locale/localeinfo.h [SHARED]
4153 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
4154 (_NL_CURRENT_DATA): Define using that.
4155 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
4156 (_NL_CURRENT_DEFINE): Define to empty.
4157 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
4158 conditionalized on this.
4159 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
4160 taking initializer of _nl_C_locobj.
4161 [SHARED] (_nl_global_locale): New variable, using that initializer.
4162 (_nl_C_locobj): Use new macro for initialzier.
4163 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
4164 [! SHARED] (CATEGORY_USED): New macro.
4165 [SHARED] (CATEGORY_USED, _nl_C): New macros.
4166 (setdata, setlocale): Use that macro instead of examining _nl_current.
4167 (setdata): Set the slot in _nl_global_locale.
4168 Conditionalize setting of _nl_current on [! SHARED].
4169 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
4170 declaration as an extern.
4171 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
4173 * include/locale.h: Use libc_hidden_proto for setlocale.
4174 * locale/setlocale.c: Add libc_hidden_def.
4176 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
4178 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
4179 * misc/hsearch_r.c: Add libc_hidden_def.
4180 * misc/lsearch.c: Likewise.
4182 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
4184 * misc/getttyent.c: Add libc_hidden_def.
4186 * include/mcheck.h: Use libc_hidden_proto for mcheck.
4187 * malloc/mcheck.c: Add libc_hidden_def.
4189 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
4190 * include/argz.h: Use libc_hidden_proto for argz_delete.
4191 * string/argz-delete.c: Add libc_hidden_def.
4192 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
4194 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
4195 HIDDEN_JUMPTARGET for _exit.
4196 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
4197 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
4198 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4199 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
4201 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
4202 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
4203 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
4204 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
4206 * include/stdlib.h: Use libc_hidden_proto for abort,
4207 __strtof_internal, __strtod_internal, __strtold_internal,
4208 __strtol_internal, __strtoll_internal, __strtoul_internal,
4209 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
4210 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
4211 __strtoul_l_internal, __strtoull_l_internal.
4212 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
4213 __wcstod_internal, __wcstold_internal, __wcstol_internal,
4214 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
4215 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
4216 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
4218 * sysdeps/generic/abort.c: Add libc_hidden_def.
4219 * stdlib/strtod.c: Likewise.
4220 * sysdeps/generic/strtol.c: Likewise.
4221 * sysdeps/wordsize-64/strtol.c: Likewise.
4222 * sysdeps/wordsize-64/wcstol.c: Likewise.
4223 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
4225 * include/stdlib.h: Use libc_hidden_proto for qsort.
4226 * stdlib/msort.c: Add libc_hidden_def.
4228 * include/utime.h: Use libc_hidden_proto for utime.
4229 * sysdeps/generic/utime.c: Add libc_hidden_def.
4230 * sysdeps/unix/utime.c: Likewise.
4232 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
4233 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
4234 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4235 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
4236 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
4238 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
4239 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
4240 and __libc_current_sigrtmax.
4241 * signal/sigismem.c: Add libc_hidden_def.
4242 * signal/sigfillset.c: Likewise.
4243 * signal/sigempty.c: Likewise.
4244 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
4245 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
4246 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
4247 * sysdeps/posix/raise.c: Likewise.
4248 * sysdeps/generic/raise.c: Likewise.
4250 2002-08-03 Ulrich Drepper <drepper@redhat.com>
4252 * include/string.h: Use libc_hidden_proto for __stpcpy.
4253 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
4254 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
4255 * sysdeps/generic/stpcpy.c: Likewise.
4256 * sysdeps/i386/stpcpy.S: Likewise.
4257 * sysdeps/i386/i586/stpcpy.S: Likewise.
4258 * sysdeps/powerpc/stpcpy.S: Likewise.
4259 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
4260 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4262 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
4263 __strncasecmp_l, __strdup, __strndup, __strerror_r.
4264 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
4266 * string/strdup.c (__strdup): Likewise.
4267 * string/strndup.c (__strndup): Likewise.
4268 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
4269 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
4271 2002-08-03 Jakub Jelinek <jakub@redhat.com>
4273 * include/libio.h: New file.
4274 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
4275 * libio/iolibio.h: #include <libio.h>, not "libio.h".
4276 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
4277 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
4278 * sysdeps/unix/common/syscalls.list: Likewise.
4279 * sysdeps/unix/inet/syscalls.list: Likewise.
4280 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
4281 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4282 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4283 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4284 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4285 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4286 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4287 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4288 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4289 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
4290 * sysdeps/unix/syscalls.list: Likewise.
4292 2002-08-03 Jakub Jelinek <jakub@redhat.com>
4293 Ulrich Drepper <drepper@redhat.com>
4295 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
4296 the arguments is big enough to cause an overflow.
4298 2002-08-03 Ulrich Drepper <drepper@redhat.com>
4300 * assert/assert.c: Use hidden_def not INTDEF.
4302 2002-08-03 Jakub Jelinek <jakub@redhat.com>
4304 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
4307 2002-08-03 Roland McGrath <roland@redhat.com>
4309 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
4310 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
4312 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
4313 * misc/syslog.c: Add libc_hidden_def.
4314 * misc/err.c: Likewise.
4315 * stdlib/exit.c: Likewise.
4316 * stdlib/bsearch.c: Likewise.
4317 * sysdeps/generic/getenv.c: Likewise.
4319 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
4321 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
4322 libc_hidden_weak for every system call symbol defined.
4324 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
4325 timelocal, localtime, strftime.
4326 * time/asctime.c: Add libc_hidden_def.
4327 * time/mktime.c: Likewise.
4328 * time/localtime.c: Likewise.
4329 * time/strftime.c: Likewise.
4330 * time/strptime.c: Likewise.
4331 * sysdeps/generic/time.c: Likewise.
4332 * sysdeps/unix/time.c: Likewise.
4333 * sysdeps/unix/sysv/i386/time.S: Likewise.
4334 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4336 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
4337 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
4338 * resolv/inet_ntop.c: Likewise.
4339 * resolv/inet_pton.c: Likewise.
4340 * inet/inet_mkadr.c: Add libc_hidden_def.
4341 * inet/inet_netof.c: Likewise.
4342 * resolv/inet_addr.c: Likewise.
4344 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4345 clauses from conditionals for now. Will have to be fixed later
4346 for older compilers.
4348 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4350 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4352 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4353 broken alias attribute handling.
4354 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4356 2002-08-02 Roland McGrath <roland@frob.com>
4358 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4359 since it sets the variables we use in a -D switch.
4361 2002-08-02 Roland McGrath <roland@redhat.com>
4363 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4364 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4365 matches long int, not int.
4367 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4368 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4369 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4370 * wctype/wctrans.c (wctrans): Likewise.
4371 * wctype/wctype.c (__wctype): Likewise.
4372 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4374 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4376 * assert/assert.c (__assert_fail): Fix typo in comment.
4378 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4379 * sunrpc/rpc_thread.c: Define it without static.
4380 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4382 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4384 * assert/assert.c (__assert_fail): Remove undef.
4385 Replace INTDEF with libc_hidden_def.
4386 * assert/__assert.c (__assert): Remove INTUSE.
4387 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4389 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4390 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4391 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4392 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4393 libm_hiden_ver): Define.
4394 * include/assert.h (__assert_fail_internal): Remove.
4395 (__assert_fail): Add prototype. Add hidden_proto.
4396 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4398 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4399 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
4400 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4401 Add libc_hidden_proto.
4402 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4403 __fcntl): Add libc_hidden_proto. Remove macros.
4404 (__open_internal, __fcntl_internal): Remove.
4405 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4406 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4407 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4409 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4411 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4412 Add libc_hidden_def.
4413 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4414 * sysdeps/generic/open.c (__open): Remove undef.
4415 Add libc_hidden_def. Remove INTDEF.
4416 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4417 Add libc_hidden_def.
4418 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4419 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4420 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4421 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4422 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4423 (__libc_fcntl): Add libc_hidden_def.
4424 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4425 (__open): Remove INTDEF2. Add libc_hidden_weak.
4426 (__libc_open): Add libc_hidden_def.
4427 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4428 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4429 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4430 Add libc_hidden_def.
4431 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4432 Add libc_hidden_def.
4433 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4435 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4436 (__libc_fcntl): Add libc_hidden_def.
4437 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4438 __getpgid_internal, __chown_internal): Remove.
4439 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4440 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4442 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4443 __getpid_internal, __open_internal, __write_internal): Remove.
4444 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4445 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4446 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4447 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4448 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4449 Replace INTDEF with libc_hidden_def.
4450 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4451 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4452 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4453 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4454 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4455 Add libc_hidden_proto.
4456 * include/sys/poll.h (__poll): Add libc_hidden_proto.
4457 * include/sys/select.h (__select): Likewise.
4458 * include/sys/socket.h (__send): Likewise.
4459 * include/sys/statfs.h (__statfs): Likewise.
4460 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4461 __getpid, __getpgid, __setpgid, __close, __read, __write,
4462 __getpagesize, __sbrk): Likewise.
4463 (__chown_internal, __dup2_internal, __getpid_internal,
4464 __getpgid_internal, __close_internal, __write_internal,
4465 __getpagesize_internal): Remove.
4466 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4468 * include/printf.h (__printf_fp): Add libc_hidden_proto.
4469 * include/sched.h (__sched_setscheduler): Likewise.
4470 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4471 * include/stdlib.h (__secure_getenv): Likewise.
4472 * include/signal.h (__sigaction, __sigsuspend): Likewise.
4473 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4474 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4475 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4476 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4477 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4478 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4479 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4480 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4481 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4482 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4483 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4484 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4485 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4486 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4487 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4488 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4489 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4490 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4491 * libio/genops.c (__overflow): Add libc_hidden_def.
4492 * libio/iovdprintf.c: Remove libio.h include.
4493 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4494 libc_hidden_weak): Define to nothing if not defined.
4495 (__overflow, __woverflow): Add libc_hidden_proto.
4496 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4497 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4498 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4499 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4500 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4501 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4502 and libc_hidden_def.
4503 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4504 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4505 (__getpgid): Add libc_hidden_proto.
4506 (__bsd_getpgrp): Remove INTUSE.
4507 * resolv/res_init.c (__res_ninit, __res_randomid): Add
4509 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4510 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4511 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4512 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4513 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4514 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4515 __rpc_thread_createerr): Add libc_hidden_def.
4516 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4518 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4519 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4520 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4521 * sysdeps/generic/chown.c (__chown): Likewise.
4522 * sysdeps/generic/close.c (__close): Likewise.
4523 * sysdeps/generic/dup2.c (__dup2): Likewise.
4524 * sysdeps/generic/pipe.c (__pipe): Likewise.
4525 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4526 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4527 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4528 * sysdeps/generic/read.c (__libc_read): Likewise.
4529 (__read): Add libc_hidden_weak.
4530 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4531 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4532 * sysdeps/generic/select.c (__select): Likewise.
4533 * sysdeps/generic/send.c (__send): Likewise.
4534 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4535 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4536 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4537 * sysdeps/generic/statfs.c (__statfs): Likewise.
4538 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4539 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4540 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4541 Remove undef and INTDEF.
4542 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4543 * sysdeps/generic/getpid.c (__getpid): Likewise.
4544 * sysdeps/generic/write.c (__libc_write): Likewise.
4545 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4546 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4547 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4548 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4549 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
4550 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4551 Remove undef and INTDEF.
4552 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4553 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4554 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4555 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4556 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4557 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4558 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4559 (__pipe): Add libc_hidden_def.
4560 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4562 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4563 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4564 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4565 (__read): Add libc_hidden_weak.
4566 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4567 (__libc_pwrite64): Add libc_hidden_def.
4568 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4569 * sysdeps/mach/hurd/select.c (__select): Likewise.
4570 * sysdeps/mach/hurd/send.c (__send): Likewise.
4571 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4572 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4573 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4574 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4575 * sysdeps/posix/dup2.c: Likewise.
4576 Remove undef and INTDEF.
4577 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4578 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4579 (__pwrite64): Add libc_hidden_weak.
4580 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4581 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4582 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4583 * sysdeps/standalone/close.c (__close): Likewise.
4584 * sysdeps/standalone/write.c (__libc_write): Likewise.
4585 (__write): Add libc_hidden_weak.
4586 * sysdeps/standalone/read.c (__read): Likewise.
4587 (__libc_read): Add libc_hidden_def.
4588 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4589 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4590 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4591 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4592 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4593 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4594 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4595 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4596 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4597 __GI___sigaction): Add.
4598 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4599 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4600 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4601 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4602 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4603 __GI___setpgid): Add.
4604 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4605 Remove undef and INTDEF.
4606 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4607 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4608 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4609 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4610 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4611 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4612 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4613 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4614 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4615 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4616 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4617 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4618 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4619 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4620 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4621 __GI___statfs, __GI___send): Add.
4622 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4623 libc_hidden_ver resp. libc_hidden_def.
4624 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4626 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4627 Likewise. Remove undef and INTDEF.
4628 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4629 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4630 __GI___statfs, __GI___send): Add.
4631 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4633 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4635 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4636 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4637 libc_hidden_ver resp. libc_hidden_def.
4638 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4640 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4641 Add libc_hidden_weak.
4642 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4643 Add libc_hidden_def.
4644 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4645 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4647 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4648 resp. libc_hidden_def.
4649 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4651 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
4653 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4654 Likewise. Remove undef.
4655 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4657 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4658 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4660 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4662 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4663 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4664 Likewise. Remove undef and INTDEF.
4665 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4667 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4669 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4671 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4672 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4673 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4675 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4676 Add libc_hidden_def.
4677 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4678 __GI___statfs): Add.
4679 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4681 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4682 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4683 Remove undef and INTDEF.
4684 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4685 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4687 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4688 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4690 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4692 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4693 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4694 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4696 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4697 libc_hidden_def. Remove undef and INTDEF.
4698 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4699 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4701 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4702 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4703 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4704 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4705 Remove undef and INTDEF.
4706 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4707 broken visibility attribute handling.
4708 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4710 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4712 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4713 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4715 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4718 2002-06-29 Todd Fries <todd@openbsd.org>
4720 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4722 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4724 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4726 2002-07-30 Roland McGrath <roland@redhat.com>
4728 * resolv/resolv.h (_res): Define macro unconditionally.
4729 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4730 * include/resolv.h: ... here.
4731 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4732 as a __thread variable.
4733 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4734 a __thread variable instead of a global.
4735 * resolv/res_data.c [_LIBC]: Don't #undef _res.
4737 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4740 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4742 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4743 decls of memset and memcpy.
4745 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4746 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4748 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4750 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4751 (__libc_tsd_define): Define using __thread.
4753 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4754 (__rpc_thread_variables): Use __libc_tsd_get.
4755 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4756 __rpc_thread_variables, which might allocate what we're about to free.
4758 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4759 thread-local variable.
4760 * resolv/netdb.h (h_errno): Define macro unconditionally.
4761 [_LIBC] (__set_h_errno): Macro moved to ...
4762 * include/netdb.h: ... here.
4763 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4764 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4765 [! _LIBC_REENTRANT]: #undef h_errno here.
4767 * include/errno.h: Protect from multiple inclusion.
4769 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4770 before defining them, since Linux's <linux/posix_types.h> might have
4773 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4775 * malloc/malloc.c (public_cALLOc): Check for overflow on
4777 * sunrpc/xdr_array.c (xdr_array): Likewise.
4778 * sunrpc/rpc/types.h (mem_free): Add comment.
4779 Patch by Solar Designer <solar@openwall.com>.
4781 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4783 * sysdeps/unix/sysv/linux/kernel-features.h
4784 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4786 2002-08-01 Roland McGrath <roland@redhat.com>
4788 * libio/fileops.c (_IO_file_sync_mmap): New function.
4789 (_IO_file_jumps_mmap): Use it.
4790 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
4791 repeat the stat check and resize the mapped buffer as necessary.
4793 2002-07-31 Roland McGrath <roland@redhat.com>
4795 * libio/fileops.c (decide_maybe_mmap): New static function.
4796 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4797 mmap the file contents. Then switch the jump tables to the mmap
4798 tables if it worked, or the vanilla file tables if not.
4799 (_IO_file_underflow_maybe_mmap): New function.
4800 (_IO_file_seekoff_maybe_mmap): New function.
4801 (_IO_file_xsgetn_maybe_mmap): New function.
4802 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4803 * libio/libioP.h: Declare those.
4804 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4805 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4806 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4807 If the stream is read-only, set its jump tables to those new ones.
4808 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4809 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4810 We need the tables set before _IO_file_attach.
4812 * libio/tst-mmap-eofsync.c: New file.
4813 * libio/tst-mmap-fflushsync.c: New file.
4814 * libio/bug-mmap-fflush.c: New file.
4815 * libio/tst-mmap2-eofsync.c: New file.
4816 * libio/Makefile (tests): Add them.
4818 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4819 _IO_file_underflow_mmap fails, it already set the appropriate bit.
4821 2002-07-31 Jeff Bailey <jbailey@gnu.org>
4823 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4824 Declarations moved to <bits/sys_errlist.h>. Include that file.
4825 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4826 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
4827 declare sys_errlist and sys_nerr.
4828 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
4829 provide declarations.
4831 2002-07-31 Roland McGrath <roland@redhat.com>
4833 * elf/rtld.c (dl_main): Fix typo in error message.
4835 2002-07-31 Roland McGrath <roland@frob.com>
4837 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4838 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
4839 sysdeps/mach/hurd/dl-sysdep.c change.
4841 2002-07-28 Ulrich Drepper <drepper@redhat.com>
4843 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4844 -r`/build/include for kernel headers.
4846 * po/fi.po: New file.
4848 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
4850 * configure.in (static_nss): Set to `yes' if --disable-shared.
4852 2002-07-23 Bruno Haible <bruno@clisp.org>
4854 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4857 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4859 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4860 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4863 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4865 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4868 2002-07-21 Bruno Haible <bruno@clisp.org>
4870 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4871 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4872 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4873 trans_sysdep_tab_offset.
4874 (struct sysdep_segment): New type.
4875 (struct sysdep_string): New type.
4876 (SEGMENTS_END): New macro.
4877 * intl/gettextP.h (struct sysdep_string_desc): New type.
4878 (struct loaded_domain): New fields malloced, n_sysdep_strings,
4879 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4880 orig_tab, trans_tab, hash_tab to const pointers because they point
4881 into read-only memory.
4882 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4883 (PRI*): Define fallback values.
4884 (get_sysdep_segment_value): New function.
4885 (_nl_load_domain): Distinguish major and minor revision parts. Add
4886 support for minor revision 1 with system dependent strings.
4887 (_nl_unload_domain): Also free the 'malloced' field.
4888 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4889 now done in loadmsgcat.c. Add support for system dependent strings.
4891 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4893 * posix/bug-regex7.c: New file.
4894 * posix/bug-regex8.c: New file.
4895 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4897 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4899 * posix/bug-regex4.c (main): Fix typos.
4900 * posix/bug-regex6.c (main): Likewise.
4902 2002-07-27 Ulrich Drepper <drepper@redhat.com>
4904 * posix/bug-regex6.c (main): Fix warnings.
4906 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4908 * iconv/iconv_prog.c (main): Improve error message for the cases
4909 where -t and/or -f parameter are missing.
4911 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
4913 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4914 (re_search): Likewise.
4915 (re_match_2): Likewise.
4916 (re_search_2): Likewise.
4917 (re_search_stub): New function.
4918 (re_search_2_stub): New function.
4919 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4921 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
4923 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4924 (re_string_eoi): Use STOP instead of LEN.
4925 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4926 (re_string_construct): Likewise.
4927 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4928 * posix/regexec.c (re_search_internal): Add a new argument STOP
4929 so that it can handle the argument STOP of re_search_2 and re_match_2
4931 (regexec): Adapt to new I/F of re_search_internal.
4932 (re_search_stub): Likewise.
4934 2002-07-25 Ulrich Drepper <drepper@redhat.com>
4936 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4938 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4940 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4941 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4944 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4945 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4946 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4947 alias for adjtimex syscall.
4949 * elf/dl-minimal.c: Define __assert_fail_internal.
4950 * assert/assert.c: Likewise.
4951 * include/assert.h: Define __assert_file macro if !SHARED and not
4954 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4956 * locale/Makefile: Likewise.
4957 * nscd/Makefile: Likewise.
4958 * catgets/Makefile: Likewise.
4960 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4962 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4963 compute current position.
4965 * stdio-common/tst-fseek.c (main): Improve error messages.
4967 * libio/tst-freopen.c (main): Remove unused variable.
4969 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4970 succesful seek call. Simplify error checking.
4972 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4974 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4975 * sysdeps/ia64/fpu/libm_support.h: Likewise.
4977 2002-07-19 Roland McGrath <roland@frob.com>
4979 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4980 __libc_enable_secure is set.
4982 2002-07-24 Roland McGrath <roland@frob.com>
4984 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4985 This implementation supports only IPv4.
4986 * inet/ifaddrs.h: New file.
4987 * sysdeps/generic/ifaddrs.c: New file.
4988 * sysdeps/gnu/ifaddrs.c: New file.
4989 * inet/test-ifaddrs.c: New file.
4990 * inet/Makefile (routines): Add ifaddrs.
4991 (headers): Add ifaddrs.h here.
4992 (tests): Add test-ifaddrs.
4993 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4995 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4996 socket call to get an AF_INET socket, instead of using __opensock.
4997 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4999 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
5000 if not -1 use it instead of calling __opensock.
5001 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
5002 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
5003 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
5005 * sysdeps/mach/hurd/ifreq.h: New file.
5006 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
5007 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
5008 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
5010 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
5011 which gets moved around. Calculate size of mmap'd buffer instead.
5013 2002-07-24 Philip Blundell <philb@gnu.org>
5015 * sysdeps/unix/arm/brk.S: Improve schedule.
5016 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
5017 efficient instruction.
5018 (__socket): Optimize return sequence.
5020 2002-07-24 Ulrich Drepper <drepper@redhat.com>
5022 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
5023 sockets on old kernels.
5025 2002-07-22 Philip Blundell <philb@gnu.org>
5027 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
5028 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
5031 2002-07-24 Ulrich Drepper <drepper@redhat.com>
5033 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
5034 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
5036 * locale/programs/locarchive.c (add_locale_to_archive): Correct
5037 test to detect duplicate locales.
5039 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
5040 position would be before beginning of file.
5041 (_IO_file_seekoff_mmap): Likewise.
5042 * libio/Makefile (tests): Add bug-fseek.
5043 * libio/bug-fseek.c: New file.
5045 * intl/explodename.c: Remove support for CEN-style locale variables.
5046 It was never used and shouldn't be since it's not portable.
5047 * intl/finddomain.c: Likewise.
5048 * intl/l10nflist.c: Likewise.
5049 * intl/loadinfo.h: Likewise.
5050 * locale/findlocale.c: Likewise.
5052 2002-07-24 Roland McGrath <roland@frob.com>
5054 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
5055 position, calculate it to take into account an active pushback buffer.
5057 * libio/Makefile (tests): Add bug-ungetc.
5058 * libio/bug-ungetc.c: New file.
5060 2002-07-23 Ulrich Drepper <drepper@redhat.com>
5062 * sysdeps/generic/libc-tls.c: New file.
5063 * csu/Makefile (routines): Add libc-tls.
5064 (static-only-routines): Add libc-tls.
5065 * elf/dl-support.c (_dl_phdr): New variable.
5066 (_dl_phnum): New variable.
5067 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
5068 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
5069 for !SHARED. First look through auxiliary vector. If TLS always
5070 call __pthread_initialize_minimal.
5072 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
5073 in mmap call is never zero.
5075 2002-07-23 Andreas Jaeger <aj@suse.de>
5077 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
5078 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5080 2002-07-22 Ulrich Drepper <drepper@redhat.com>
5082 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
5083 creation and removal of the temp file.
5085 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
5087 * test-skeleton.c (create_temp_file): New function.
5089 2002-07-22 Andreas Jaeger <aj@suse.de>
5091 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
5094 2002-07-21 Roland McGrath <roland@frob.com>
5096 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
5097 put -I../include before -I../stdlib so we get the right errno.h et al.
5098 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
5099 (CFLAGS-wcstof.c): Likewise.
5100 (CFLAGS-wcstold.c): Likewise.
5101 (CFLAGS-wcstod_l.c): Likewise.
5102 (CFLAGS-wcstof_l.c): Likewise.
5103 (CFLAGS-wcstold_l.c): Likewise.
5105 2002-07-19 Roland McGrath <roland@frob.com>
5107 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
5109 2002-07-20 Ulrich Drepper <drepper@redhat.com>
5111 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
5112 __ASSUME_AT_XID is defined.
5113 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
5115 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
5116 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
5118 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
5119 (CFLAGS-wcstof.c): Likewise.
5120 (CFLAGS-wcstold.c): Likewise.
5121 (CFLAGS-wcstod_l.c): Likewise.
5122 (CFLAGS-wcstof_l.c): Likewise.
5123 (CFLAGS-wcstold_l.c): Likewise.
5125 2002-07-18 Jakub Jelinek <jakub@redhat.com>
5127 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
5128 __priority_which_t): Always typedef to int for C++.
5130 2002-07-19 Ulrich Drepper <drepper@redhat.com>
5132 * configure.in: Add test for __thread support in compiler.
5133 * config.h.in: Add HAVE___THREAD.
5134 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
5135 * include/sys/errno.h: Moved to...
5136 * stdlib/sys/errno.h: ...here. New file.
5137 * stdlib/errno.h: New file. Moved from...
5138 * include/errno.h: ...here. Changed into an internal header defining
5139 libc-local things like __set_errno.
5140 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
5142 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
5143 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
5145 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
5147 (_dl_start_final): ...here. Add code to initialize tls elements from
5149 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
5150 if USE_TLS && HAVE___THREAD.
5151 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
5152 * sysdeps/mach/hurd/bits/errno.h: Likewise.
5153 * sysdeps/standalone/arm/bits/errno.h: Likewise.
5154 * sysdeps/standalone/bits/errno.h: Likewise.
5155 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
5156 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
5157 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
5158 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
5159 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
5160 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
5161 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
5162 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
5163 use GL(dl_rtld_map), use map parameter.
5164 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5165 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
5166 USE_TLS && HAVE___THREAD.
5167 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
5168 definitions. If USE_TLS && HAVE___THREAD store errooor value using
5170 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5172 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
5173 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
5174 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
5175 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5176 * sysdeps/unix/sysv/linux/readv.c: Likewise.
5177 * sysdeps/unix/sysv/linux/writev.c: Likewise.
5179 2002-07-17 Ulrich Drepper <drepper@redhat.com>
5181 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
5182 MS_INVALIDATE values.
5184 2002-07-17 Andreas Schwab <schwab@suse.de>
5185 Ulrich Drepper <drepper@redhat.com>
5187 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
5188 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5189 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5190 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5192 2002-07-01 H.J. Lu <hjl@gnu.org>
5194 * elf/circleload1.c (load_dso): Call "circlemod1" and check
5197 * elf/circlemod1.c (circlemod1): Return int.
5198 * elf/circlemod2.c (circlemod2): Likewise.
5199 * elf/circlemod2a.c (circlemod2): Likewise.
5200 * elf/circlemod3.c (circlemod3): Likewise.
5201 (circlemod3a): A new function.
5203 2002-07-16 Ulrich Drepper <drepper@redhat.com>
5205 * catgets/tst-catgets.c (main): Don't expect results for
5206 untranslated messages.
5208 * glibcbug.in: Fix little typo. Remove STDIO.
5210 * config.h.in: Fail if __FAST_MATH__ is defined.
5211 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
5212 (CPPFLAGS-test-idouble.c): Likewise.
5213 (CPPFLAGS-test-ildouble.c): Likewise.
5215 2002-07-15 Ulrich Drepper <drepper@redhat.com>
5217 * intl/tst-gettext.sh: Pass -f option to msgfmt.
5218 * intl/tst-gettext.c: Correctly handle untranslated messages in
5221 * po/de.po: Update from translation team.
5223 2002-07-02 H.J. Lu <hjl@gnu.org>
5225 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
5227 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
5229 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
5232 2002-07-15 Ulrich Drepper <drepper@redhat.com>
5234 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
5235 TLS fail if USE_TLS is not defined.
5237 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
5238 and adjust state for seek position. [PR libc/4070]
5239 * libio/Makefile (tests): Add bug-rewind.
5240 * libio/bug-rewind.c: New file.
5242 2002-07-12 Philip Blundell <philb@gnu.org>
5244 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
5245 (__backtrace): Use it.
5246 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
5248 2002-07-12 Philip Blundell <philb@gnu.org>
5250 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
5251 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
5252 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5253 (elf_machine_rela): Remove unused variable.
5255 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
5256 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
5259 2002-07-12 Ulrich Drepper <drepper@redhat.com>
5261 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
5263 2002-07-14 Andreas Jaeger <aj@suse.de>
5265 * sysdeps/x86_64/bits/link.h: Add biarch support.
5267 2002-07-13 Andreas Jaeger <aj@suse.de>
5269 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
5270 Use correct indices.
5271 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
5273 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
5275 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
5276 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
5277 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
5278 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
5279 * sysdeps/s390/s390-32/bits/link.h: Remove.
5280 * sysdeps/s390/s390-64/bits/link.h: Remove.
5281 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
5282 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
5283 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
5284 * sysdeps/s390/bits/wordsize.h: New file.
5285 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
5287 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
5288 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
5289 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
5290 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
5291 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
5292 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
5293 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
5294 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
5295 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
5296 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
5297 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
5298 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
5300 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
5301 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
5302 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
5303 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
5304 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
5305 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
5306 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
5308 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
5309 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
5311 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
5312 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
5313 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
5315 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
5316 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
5317 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
5318 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
5319 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
5320 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
5321 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
5322 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
5324 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
5325 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
5326 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
5328 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
5329 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
5331 2002-07-11 Ulrich Drepper <drepper@redhat.com>
5333 * Versions.def (libc): Add GLIBC_2.3.
5334 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
5335 * stdlib/canonicalize.c: Add compatibility version for realpath
5336 and make new code available in GLIBC_2.3.
5338 2002-07-06 Bruno Haible <bruno@clisp.org>
5340 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5342 2002-07-11 Ulrich Drepper <drepper@redhat.com>
5344 * resolv/res_hconf.c (_res_hconf_init): Move code into new
5345 function do_init. Use __libc_once.
5346 (do_init): New function.
5348 * iconvdata/iso8859-11.h: Removed.
5349 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5350 (distribute): Remove iso8859-11.h.
5351 * iconvdata/tst-tables.sh: Add ISO-8859-11.
5353 * stdio-common/vfscanf.c (inchar): Restore errno from previous
5354 underflow operation if c == (W)EOF.
5356 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5358 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5359 non-zero, adjust exponent.
5360 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5361 Remove NO_LONG_DOUBLE aliases.
5362 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5363 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5364 (__log1pl): Raise divide by zero and invalid exceptions when needed.
5365 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5367 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5368 Fix BITS_PER_MP_LIMB 32 extraction.
5369 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5370 exceptions for qNaNs.
5371 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5372 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5373 Raise exceptions when needed. Don't recurse unnecessarily.
5374 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5375 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5376 exceptions for qNaNs.
5377 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5378 to fix *quo return value sign.
5379 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5381 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5383 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5385 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5386 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5389 2002-07-10 Ulrich Drepper <drepper@redhat.com>
5391 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5394 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5395 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
5397 * Versions.def (libthread_db): Add GLIBC_2.3.
5399 2002-07-09 Jakub Jelinek <jakub@redhat.com>
5401 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5402 new stream if possible.
5403 * libio/freopen64.c (freopen64): Likewise.
5404 * libio/Makefile (tests): Add tst-freopen.
5405 * libio/tst-freopen.c: New file.
5407 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5409 * libio/stdio.h (obstack_printf): Add format attribute.
5410 (obstack_vprintf): Likewise.
5412 2002-07-04 Jakub Jelinek <jakub@redhat.com>
5414 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5415 resp. 16 bytes on 32-bit resp. 64-bit platforms.
5416 (re_charset_t, re_string_t): Reorder structure members for 64-bit
5419 2002-07-04 Jakub Jelinek <jakub@redhat.com>
5421 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5422 (init_dfa): ...here.
5424 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
5426 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5427 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5428 nodes in parse trees.
5429 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5430 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5431 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5432 nodes which can epsilon transit.
5433 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5434 to IS_EPSILON_NODE macro.
5435 * posix/regexec.c (update_regs): New function to update registers
5436 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5437 (proceed_next_node): Use the entities of the nodes to determine
5438 whether the node can transit to.
5439 (set_regs): Use update_regs function to update registers.
5441 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5443 * posix/bug-regex4.c (main): Remove duplicate setlocale.
5444 * posix/bug-regex6.c: New file.
5445 * posix/Makefile (tests): Add bug-regex6.
5446 (bug-regex6-ENV): Set LOCPATH.
5448 2002-07-10 Ulrich Drepper <drepper@redhat.com>
5450 * Versions.def [libpthread]: Add GLIBC_2.2.6.
5451 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5453 2002-07-06 Bruno Haible <bruno@clisp.org>
5455 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5457 2002-07-06 Bruno Haible <bruno@clisp.org>
5459 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5462 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5464 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5466 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5468 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5470 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5471 * sysdeps/generic/bits/ustat.h: Likewise.
5473 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5475 2002-07-08 Andreas Jaeger <aj@suse.de>
5477 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5479 2002-07-08 Andreas Jaeger <aj@suse.de>
5481 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5483 2002-07-06 Andreas Jaeger <aj@suse.de>
5485 * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5486 * sysdeps/x86_64/fpu/s_copysign.S: New file.
5487 * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5488 * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5489 * sysdeps/x86_64/fpu/s_finitel.S: New file.
5490 * sysdeps/x86_64/fpu/s_fmax.S: New file.
5491 * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5492 * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5493 * sysdeps/x86_64/fpu/s_fmin.S: New file.
5494 * sysdeps/x86_64/fpu/s_fminf.S: New file.
5495 * sysdeps/x86_64/fpu/s_fminl.S: New file.
5497 2002-06-05 Brian Youmans <3diff@gnu.org>
5499 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5500 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5501 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5502 * sysdeps/ia64/fpu/e_asin.S: Likewise.
5503 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5504 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5505 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5506 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5507 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5508 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5509 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5510 * sysdeps/ia64/fpu/e_exp.S: Likewise.
5511 * sysdeps/ia64/fpu/e_expf.S: Likewise.
5512 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5513 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5514 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5515 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5516 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5517 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5518 * sysdeps/ia64/fpu/e_log.S: Likewise.
5519 * sysdeps/ia64/fpu/e_logf.S: Likewise.
5520 * sysdeps/ia64/fpu/e_pow.S: Likewise.
5521 * sysdeps/ia64/fpu/e_powf.S: Likewise.
5522 * sysdeps/ia64/fpu/e_powl.S: Likewise.
5523 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5524 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5525 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5526 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5527 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5528 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5529 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5530 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5531 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5532 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5533 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5534 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5535 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5536 * sysdeps/ia64/fpu/libm_error.c: Likewise.
5537 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5538 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5539 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5540 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5541 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5542 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5543 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5544 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5545 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5546 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5547 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5548 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5549 * sysdeps/ia64/fpu/s_logb.S: Likewise.
5550 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5551 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5552 * sysdeps/ia64/fpu/s_modf.S: Likewise.
5553 * sysdeps/ia64/fpu/s_modff.S: Likewise.
5554 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5555 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5556 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5557 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5558 * sysdeps/ia64/fpu/s_rint.S: Likewise.
5559 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5560 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5561 * sysdeps/ia64/fpu/s_round.S: Likewise.
5562 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5563 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5564 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5565 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5566 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5567 * sysdeps/ia64/fpu/s_significand.S: Likewise.
5568 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5569 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5570 * sysdeps/ia64/fpu/s_tan.S: Likewise.
5571 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5572 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5573 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5574 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5575 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5576 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5577 reflect IBM donation of math library to FSF
5578 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5579 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5580 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5581 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5582 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5583 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5584 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5585 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5586 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5587 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5588 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5589 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5590 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5591 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5592 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5593 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5594 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5595 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5596 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5597 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5598 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5599 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5600 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5601 * sysdeps/vax/__longjmp.c: Likewise.
5602 * sysdeps/vax/setjmp.c: Likewise.
5603 * libio/filedoalloc.c: Fixed BSD copying permission notice to
5604 remove advertising clause
5605 * sysdeps/vax/htonl.s: Likewise.
5606 * sysdeps/vax/htons.s: Likewise.
5607 * libio/wfiledoalloc.c: Likewise.
5608 * stdlib/random.c: Likewise.
5609 * stdlib/random_r.c: Likewise.
5610 * sysdeps/mach/sys/reboot.h: Likewise.
5611 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5612 * sysdeps/posix/getaddrinfo.c: Likewise.
5613 * sunrpc/des_impl.c: Updated license permission notice to Lesser
5614 GPL and corrected pointer to point to the correct license.
5616 2002-07-04 Andreas Jaeger <aj@suse.de>
5618 * scripts/config.guess: New upstream version.
5619 * scripts/config.sub: Likewise.
5621 2002-07-02 Andreas Schwab <schwab@suse.de>
5623 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5624 in parallel to bumping up the buffer pointer.
5626 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5628 * math/libm-test.inc (acos_test): Add missing L suffix for
5630 (cpow_test): Likewise.
5631 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5632 error for acos (0.0625).
5634 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5636 * locale/iso-639.def: Add entry for Ganda.
5637 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5639 (address_finish): Handle entries with two letter ISO 639 code.
5641 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5642 directory if it existed before.
5643 * iconv/iconvconfig.c: Implement --prefix option.
5645 * math/libm-test.inc (cexp_test): Add missing L suffix for
5646 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
5647 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5650 2002-05-29 H.J. Lu <hjl@gnu.org>
5652 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5655 2002-05-28 H.J. Lu <hjl@gnu.org>
5657 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5658 are not dlopened on the dependency list of a dlopened object.
5660 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5662 * elf/dl-lookup.c (add_dependency): It is not necessary to add
5663 dependencies if they are created between objects which are created
5664 while processing RTLD_NOW for objects loaded as part of the same
5667 2002-06-14 H.J. Lu <hjl@gnu.org>
5669 * elf/Makefile (tests): Add circleload1.
5670 (modules-names): Add circlemod1, circlemod2, circlemod3,
5671 circlemod1a, circlemod2a and circlemod3a.
5672 ($(objpfx)circleload1): New target.
5673 ($(objpfx)circleload1.out): Likewise.
5674 ($(objpfx)circlemod1.so): Likewise.
5675 ($(objpfx)circlemod2.so): Likewise.
5676 ($(objpfx)circlemod1a.so): Likewise.
5677 ($(objpfx)circlemod2a.so): Likewise.
5678 * elf/circleload1.c: New file.
5679 * elf/circlemod1.c: New file.
5680 * elf/circlemod1a.c: New file.
5681 * elf/circlemod2.c: New file.
5682 * elf/circlemod2a.c: New file.
5683 * elf/circlemod3.c: New file.
5684 * elf/circlemod3a.c: New file.
5686 2002-06-18 Amos Waterland <apw@us.ibm.com>
5688 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5690 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5691 add check for fd not open for writing.
5693 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5694 completed element(s) and do not suspend thread if so. Patch
5695 heavily modified by drepper.
5697 * rt/tst-aio7.c: New file. Regression test for problems which the
5698 above three changes fix.
5699 * rt/Makefile (tests): Add tst-aio7.
5701 2002-06-29 Ulrich Drepper <drepper@redhat.com>
5703 * rt/tst-aio6.c: Fix comment.
5705 * catgets/gencat.c (read_input_file): Handle more than one slash
5706 at end of line correctly [PR libc/3926].
5707 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5709 * catgets/sample.SJIS: Add test case for above bug.
5710 * catgets/test-gencat.c: Adjust test code.
5711 * catgets/test-gencat.sh: Adjust expected results.
5713 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5714 to skip relative relocations.
5715 Patch by Geoff Keating <geoffk@redhat.com>.
5717 2002-05-26 Bruno Haible <bruno@clisp.org>
5719 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5720 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5721 All callers changed.
5722 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5723 STANDARD_FROM_LOOP_ERR_HANDLER.
5724 (utf8_internal_loop): Likewise.
5725 (ucs2_internal_loop): Likewise.
5726 (internal_ucs2_loop): Perform error handling like in
5727 STANDARD_FROM_LOOP_ERR_HANDLER.
5728 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5729 in STANDARD_FROM_LOOP_ERR_HANDLER.
5730 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5732 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5733 in STANDARD_FROM_LOOP_ERR_HANDLER.
5734 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5736 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5737 in STANDARD_FROM_LOOP_ERR_HANDLER.
5738 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5740 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5741 STANDARD_FROM_LOOP_ERR_HANDLER.
5742 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5743 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5744 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5745 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5746 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5747 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5748 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5749 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5750 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5751 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5752 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5753 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5754 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5755 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5756 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5757 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5758 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5759 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5760 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5761 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5762 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5763 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5764 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5765 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5766 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5767 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5768 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5769 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5770 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
5771 an error, still set result = __GCONV_ILLEGAL_INPUT.
5772 (BODY for TO_LOOP): Likewise.
5773 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5774 STANDARD_FROM_LOOP_ERR_HANDLER.
5775 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5776 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5777 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5779 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5780 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5781 STANDARD_FROM_LOOP_ERR_HANDLER.
5782 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5783 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5784 STANDARD_FROM_LOOP_ERR_HANDLER.
5785 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5786 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5787 STANDARD_FROM_LOOP_ERR_HANDLER.
5788 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5789 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5790 STANDARD_FROM_LOOP_ERR_HANDLER.
5791 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5792 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5793 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5795 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5796 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5797 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5798 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5800 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5802 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5803 labels in assembler instructions.
5805 2002-06-25 Ulrich Drepper <drepper@redhat.com>
5807 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5808 not enough content is available.
5809 * libio/tst-eof.c: New file.
5810 * libio/Makefile (tests): Add tst-eof.
5812 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5814 * libio/tst-atime.c: New file.
5815 * libio/Makefile (tests): Add tst-atime.
5817 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5818 handling of overly long words.
5820 2002-06-25 Andreas Jaeger <aj@suse.de>
5822 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5823 to not use 32-bit pc relative relocations.
5824 (elf_machine_dynamic): Likewise.
5826 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5828 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5829 (__GETDENTS): Check for failed getdents64 syscall.
5830 * dirent/Makefile (tests): Add bug-readdir1.
5831 * dirent/bug-readdir1.c: New file.
5833 2002-06-17 Jakub Jelinek <jakub@redhat.com>
5835 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5837 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5838 code. Print TLS modid and offset for modules containing PT_TLS
5841 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5843 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5844 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5845 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5846 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5848 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5850 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5851 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5852 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5853 * nss/getXXent_r.c (NEW, NEW1): Define.
5854 (NEW (REENTRANT_GETNAME)): Strong alias to
5855 INTERNAL (REENTRANT_GETNAME).
5856 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5858 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5860 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5861 (_IO_file_jumps_mmap): Use it.
5862 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5863 * libio/libioP.h: Remove _IO_wdefault_setbuf and
5864 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
5866 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5867 (_IO_wfile_jumps_mmap): Don't use it anymore.
5868 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5869 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5870 _IO_wdefault_setbuf.
5871 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5872 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5873 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5875 2002-06-05 Jakub Jelinek <jakub@redhat.com>
5877 * libio/Makefile (tests): Add tst-mmap-setvbuf.
5878 * libio/tst-mmap-setvbuf.c: New test.
5880 2002-06-21 Andreas Jaeger <aj@suse.de>
5882 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5884 2002-06-18 Jakub Jelinek <jakub@redhat.com>
5886 * include/unistd.h (__fork_internal): Remove.
5887 (__fork): Don't define to __fork_internal.
5888 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5889 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5890 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5891 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5892 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5894 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5896 * po/hr.po: New file.
5898 2002-06-11 Wolfram Gloger <wg@malloc.de>
5900 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5901 Reported by Michael Meissner <meissner@redhat.com>.
5903 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5905 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5906 Patch by Hans Boehm <hans_boehm@hp.com>.
5908 2002-06-20 Andreas Jaeger <aj@suse.de>
5910 * math/libm-test.inc: Use exact values as input parameters,
5911 compute output parameters with 36 digits for 128-bit long doubles.
5912 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5913 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5914 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5916 2002-06-13 Stephen L Moshier <steve@moshier.net>
5918 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5919 argument or result is subnormal.
5921 2002-06-19 Ulrich Drepper <drepper@redhat.com>
5923 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5925 * sysdeps/i386/fpu/s_remquof.S: Likewise.
5926 * sysdeps/i386/fpu/s_remquol.S: Likewise.
5928 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5930 2002-06-17 David Mosberger <davidm@hpl.hp.com>
5932 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5933 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5934 Reported by Peter A. Buhr.
5936 2002-06-15 Roland McGrath <roland@frob.com>
5938 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5941 * sysdeps/mach/hurd/getcwd.c
5942 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5944 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5945 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5947 * sysdeps/alpha/divrem.h: Use local label instead of global one for
5948 jump to local subroutine.
5950 2002-06-14 Roland McGrath <roland@frob.com>
5952 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5953 * sysdeps/mach/hurd/Makeconfig: ... here.
5955 2002-06-13 Andreas Schwab <schwab@suse.de>
5957 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5958 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5959 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5961 2002-06-13 Roland McGrath <roland@frob.com>
5963 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5964 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5965 Use intptr_t instead of int for argc in stack layout.
5966 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5967 (_dl_init_first): Likewise.
5968 (_hurd_stack_setup): Likewise.
5969 (init1): Add a cast.
5970 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5972 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5973 argument to pfinet_siocgifconf RPC.
5975 2002-06-13 Andreas Schwab <schwab@suse.de>
5977 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5980 2002-06-12 Roland McGrath <roland@frob.com>
5982 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5984 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5985 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5987 2002-06-11 Roland McGrath <roland@frob.com>
5989 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5990 file on [!RTLD_STAT64].
5991 * sysdeps/mach/hurd/fxstat64.c: Likewise.
5993 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5994 (__fdopen): Use INTUSE.
5995 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5997 * stdio-common/tmpfile64.c: File removed.
5998 * sysdeps/generic/tmpfile64.c: New file.
5999 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
6000 if not already defined.
6001 (tmpfile): Use it in place of __GT_FILE.
6003 * include/unistd.h: Declare __chown_internal.
6005 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
6006 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
6008 2002-06-09 Roland McGrath <roland@frob.com>
6010 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
6011 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
6012 value of HURD_INTERFACE_VERSION >= 20020609.
6013 * sysdeps/mach/hurd/configure: Regenerated.
6014 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
6015 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
6016 convert a struct stat64 into a struct stat and return 0 or -1
6017 with errno set to EOVERFLOW.
6018 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
6019 for struct statfs64 to struct statfs.
6020 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
6021 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
6022 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
6023 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
6024 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
6025 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
6026 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
6027 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
6028 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
6029 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
6030 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
6031 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
6032 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
6033 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
6034 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
6035 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
6036 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
6037 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
6038 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
6039 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
6040 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
6041 Use struct stat64 for io_stat argument.
6042 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
6043 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
6045 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
6046 * hurd/fd-write.c (_hurd_fd_write): Likewise.
6047 * hurd/hurd/fd.h: Update decls.
6048 * sysdeps/mach/hurd/getcwd.c
6049 (_hurd_canonicalize_directory_name_internal): Use ino64_t
6050 and struct dirent64.
6051 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
6052 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
6053 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
6054 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
6056 2002-06-08 Roland McGrath <roland@frob.com>
6058 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
6059 instead of unsigned long int for __allocation and __size members.
6061 2002-06-09 Jakub Jelinek <jakub@redhat.com>
6063 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6064 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6065 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6066 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6068 2002-06-07 Roland McGrath <roland@frob.com>
6070 * sysdeps/mach/hurd/bits/environments.h: File removed.
6072 2002-06-07 Jakub Jelinek <jakub@redhat.com>
6074 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
6075 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
6076 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
6077 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
6078 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
6079 (sendfile64): Likewise.
6080 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
6081 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
6082 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
6084 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
6086 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
6089 2002-06-04 Bruno Haible <bruno@clisp.org>
6091 * sysdeps/cris/stackinfo.h: New file.
6093 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
6094 to an integer type before performing bit operations on it.
6096 2002-06-05 Roland McGrath <roland@frob.com>
6098 * sysdeps/generic/sendfile.c: Include <errno.h>.
6099 * sysdeps/generic/sendfile64.c: Likewise.
6101 * io/Makefile (routines): Add sendfile and sendfile64.
6102 (headers): Add sys/sendfile.h to the list.
6103 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
6104 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
6105 * io/sys/sendfile.h: ... here.
6106 * sysdeps/generic/sendfile.c: New file.
6107 * sysdeps/generic/sendfile64.c: New file.
6109 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
6110 Move sendfile, sendfile64 to ...
6111 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
6112 * sysdeps/mach/hurd/sendfile.c: New file.
6113 * sysdeps/mach/hurd/sendfile64.c: New file.
6115 * sysdeps/mach/nanosleep.c: New file.
6117 2002-06-04 Roland McGrath <roland@frob.com>
6119 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
6120 * sysdeps/alpha/elf/configure: New file (generated).
6122 2002-06-02 Roland McGrath <roland@frob.com>
6124 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
6126 2002-06-01 Roland McGrath <roland@frob.com>
6128 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
6129 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
6131 2002-05-19 Ulrich Drepper <drepper@redhat.com>
6133 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
6135 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
6136 Remove nstimes setting.
6137 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
6138 * resolv/res_send.c (res_nsend): Don't close unconditionally if
6139 there is mix of IPv6 and IPv4 nameservers.
6140 Use nsmap array to find free slots and preserve nameserver ordering.
6143 2002-05-30 Ulrich Drepper <drepper@redhat.com>
6145 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
6146 use this header with LFS.
6148 * po/sk.po: Update from translation team.
6150 2002-05-28 Andreas Schwab <schwab@suse.de>
6152 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
6153 message when finding object of wrong class.
6155 2002-05-28 Jakub Jelinek <jakub@redhat.com>
6157 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
6158 Patch by <radu@netsoft.ro>.
6160 2002-05-30 Ulrich Drepper <drepper@redhat.com>
6162 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
6164 * sysdeps/unix/sysv/linux/readahead.c: New file.
6165 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
6166 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
6167 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
6168 Add sendfile64 alias to sendfile syscall.
6169 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6170 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6171 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6172 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
6175 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
6176 special section for PIC register loading.
6177 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
6179 * config.h.in: Define HAVE_HIDDEN.
6180 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
6182 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
6184 2002-05-28 Roland McGrath <roland@frob.com>
6186 * sysdeps/mach/alpha/setfpucw.c: New file.
6188 2002-05-26 Roland McGrath <roland@frob.com>
6190 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
6191 Use integer_t instead of int for IOC_VOID case.
6193 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
6195 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
6197 2002-05-26 Bruno Haible <bruno@clisp.org>
6199 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
6200 end of the ISO-8859-7 from idx table.
6202 2002-05-27 Ulrich Drepper <drepper@redhat.com>
6204 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
6206 2002-05-24 David S. Miller <davem@redhat.com>
6208 * string/bits/string2.h (memset): Do not try to optimize when
6209 not _STRING_ARCH_unaligned if GCC will do the right thing.
6211 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
6213 * posix/regex.c: Define `inline' as a macro into nothing for the
6214 compilers which lack the keyword.
6215 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
6216 for the compatibility of gawk.
6217 * posix/regcomp.c: Add fake implementation of isblank() for the
6218 environments which lack the function.
6219 Don't use free_charset() in case of non-i18n envs.
6220 (build_range_exp): Don't use i18n related code in case of non-i18n
6222 (build_collating_symbol): Likewise.
6223 (build_equiv_class): Likewise.
6224 (build_charclass): Likewise.
6225 (re_compile_fastmap_iter): Likewise.
6226 (parse_bracket_exp): Likewise.
6227 (build_word_op): Likewise.
6228 (regfree): Don't use free_charset() in case of non-i18n envs.
6229 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
6230 re_token_type_t in case of non-i18n envs.
6231 Don't define re_charset_t in case of non-i18n envs.
6232 Change the type of wcs of re_string_t from wchar_t to wint_t,
6233 since we store also WEOF.
6234 * posix/regex_internal.c: (re_string_realloc_buffers): Change
6235 the type of wcs of re_string_t from wchar_t to wint_t.
6236 (re_string_reconstruct): Likewise.
6237 (create_ci_newstate): Don't use i18n related code in case of
6239 (create_cd_newstate): Likewise.
6241 2002-05-24 Ulrich Drepper <drepper@redhat.com>
6243 * iconv/loop.c: Fix typo.
6245 2002-05-23 Jakub Jelinek <jakub@redhat.com>
6247 * inet/ether_line.c (ether_line): Fix a typo causing only
6248 lower 4 bits of each ethernet address byte being assigned.
6249 Don't modify what line points to.
6250 * inet/tst-ether_aton.c (main): Add ether_line tests.
6252 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
6254 * manual/filesys.texi: Don't make readlink example leak memory
6255 when readlink fails.
6257 2002-05-20 Ulrich Drepper <drepper@redhat.com>
6259 * iconv/loop.c: Fix condition for defining unaligned loop. Add
6260 some more security checks.
6262 2002-05-17 David S. Miller <davem@redhat.com>
6264 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
6266 2002-05-16 David S. Miller <davem@redhat.com>
6268 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
6269 (elf_machine_dynamic): Use it to force PIC register to be loaded.
6270 (elf_machine_load_address): Likewise.
6271 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
6273 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
6274 is unaligned, do not forget to fully initialize %g1 magic value.
6276 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
6277 register definitions and provide 32-bit variants of structures
6278 during 64-bit builds.
6280 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
6281 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
6282 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
6283 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
6284 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
6285 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
6286 Do not clear implicit one bit here, it must be done post-rounding.
6287 Only pad to the left using left shift if value uses less than the
6288 available fractional bits.
6290 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6292 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
6293 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
6294 (shared-only-routines): Likewise.
6295 * sysdeps/powerpc/libgcc-compat.c: New file.
6296 * sysdeps/wordsize-32/cmpdi2.c: Removed.
6297 * sysdeps/wordsize-32/fixdfdi.c: Removed.
6298 * sysdeps/wordsize-32/fixsfdi.c: Removed.
6299 * sysdeps/wordsize-32/shdi3.c: Removed.
6301 2002-05-16 Bruno Haible <bruno@clisp.org>
6303 * MakeTAGS (libc.pot): Don't sort the output.
6304 * po/header.pot: Update to match xgettext 0.11 output.
6306 2002-05-16 Bruno Haible <bruno@clisp.org>
6308 * MakeTAGS (subdirs): Remove duplicates.
6310 2002-05-19 Ulrich Drepper <drepper@redhat.com>
6312 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
6313 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
6316 2002-05-19 Andreas Jaeger <aj@suse.de>
6318 * sysdeps/unix/sysv/linux/configure.in: Warn against an
6319 installation in /usr/local.
6321 2002-05-16 Bruno Haible <bruno@clisp.org>
6323 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
6324 string as argument of #error.
6326 2002-05-15 Ulrich Drepper <drepper@redhat.com>
6328 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
6329 don't define static. Remove old __realpath function. TC1 of
6330 POSIX 2001 will allow the second parameter to be NULL.
6331 * stdlib/test-canon.c: Comment out test for NULL as second
6332 parameter of realpath.
6334 * time/offtime.c (__offtime): Set errno if overflow is detected.
6336 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
6337 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
6340 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6343 2002-05-15 Roland McGrath <roland@frob.com>
6345 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6347 2002-05-12 Bruno Haible <bruno@clisp.org>
6349 * iconvdata/testdata/EUC-JISX0213: New file.
6350 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6351 * iconvdata/testdata/SHIFT_JISX0213: New file.
6352 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6353 * iconvdata/testdata/ISO-2022-JP-3: New file.
6354 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6355 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6356 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6357 contains comments indicating precomposed characters.
6359 2002-04-21 Bruno Haible <bruno@clisp.org>
6361 * iconvdata/iso-2022-jp-3.c: New file.
6362 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6363 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6364 (LDFLAGS-ISO-2022-JP-3.so): New variable.
6365 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6366 (distribute): Add iso-2022-jp-3.c.
6368 2002-05-12 Bruno Haible <bruno@clisp.org>
6370 * iconvdata/tst-table-to.c (main): Restore handling of
6371 transliterations, broken by last patch.
6373 2002-05-12 Bruno Haible <bruno@clisp.org>
6375 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6377 2002-05-12 Bruno Haible <bruno@clisp.org>
6379 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6380 when there is not enough room in the output buffer.
6381 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6383 2002-04-20 Bruno Haible <bruno@clisp.org>
6385 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6387 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6388 Also make this macro work if FROM_DIRECTION evaluates to 0.
6389 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6390 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6391 of consume_incomplete.
6392 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6393 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6395 * iconvdata/cp1258.c: Likewise.
6396 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6397 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6399 * iconvdata/ibm933.c: Likewise.
6400 * iconvdata/ibm935.c: Likewise.
6401 * iconvdata/ibm937.c: Likewise.
6402 * iconvdata/ibm939.c: Likewise.
6403 * iconvdata/iso-2022-cn.c: Define
6404 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6405 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6406 * iconvdata/iso-2022-cn-ext.c: Likewise.
6407 * iconvdata/iso-2022-jp.c: Define
6408 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6409 {MIN,MAX}_NEEDED_{FROM,TO}.
6410 * iconvdata/tcvn5712-1.c: Define
6411 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6412 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6413 * iconvdata/euc-jisx0213.c: Define
6414 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6415 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6416 * iconvdata/shift_jisx0213.c: Likewise.
6418 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6420 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6421 shdi3, fixdfdi, fixsfdi in csu dir.
6422 (shared-only-routines): Likewise.
6423 * sysdeps/wordsize-32/cmpdi2.c: New file.
6424 * sysdeps/wordsize-32/shdi3.c: New file.
6425 * sysdeps/wordsize-32/fixdfdi.c: New file.
6426 * sysdeps/wordsize-32/fixsfdi.c: New file.
6427 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6428 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6429 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6431 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6432 Only use va_arg if the argument will be used [PR libc/3259].
6434 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
6436 * catgets/catgets.c (catopen): Free buffer if internal catalog
6439 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6441 * debug/xtrace.sh: Make more robust. For realtime tracking use
6442 non-buffering methods.
6443 * debug/pcprofiledump.c: Implement -u option.
6444 Patch by Roger Luethi <rl@hellgate.ch>.
6446 2002-05-11 Jakub Jelinek <jakub@redhat.com>
6448 * include/netinet/in.h (bindresvport_internal): Add prototype.
6449 * include/rpc/auth.h (authunix_create_internal,
6450 authunix_create_default_internal, authnone_create_internal,
6451 authdes_pk_create_internal): Add prototypes.
6452 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6453 clntudp_create_internal, clntudp_bufcreate_internal,
6454 clntunix_create_internal): Add prototypes.
6455 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6456 svc_getreq_internal, svc_getreq_common_internal,
6457 svc_getreqset_internal, svc_getreq_poll_internal,
6458 svc_register_internal, svc_unregister_internal,
6459 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6460 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6461 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6462 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6463 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6464 * inet/rcmd.c (rcmd_af): Use __listen.
6465 (rresvport_af): Use __bind.
6466 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6467 authunix_create, authunix_create_default, authnone_create,
6468 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6469 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6470 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6471 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6472 _authenticate, add INTDEF after such function definitions.
6473 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6474 __setsockopt, __getsockname instead of non-__ variants.
6475 * sunrpc/pmap_rmt.c: Likewise.
6476 * sunrpc/rtime.c: Likewise.
6477 * sunrpc/svc_udp.c: Likewise.
6478 * sunrpc/clnt_unix.c: Likewise.
6479 * sunrpc/svc_unix.c: Likewise.
6480 * sunrpc/bindrsvprt.c: Likewise.
6481 * sunrpc/svc_tcp.c: Likewise.
6482 * sunrpc/auth_none.c: Likewise.
6483 * sunrpc/clnt_raw.c: Likewise.
6484 * sunrpc/clnt_tcp.c: Likewise.
6485 * sunrpc/auth_unix.c: Likewise.
6486 * sunrpc/key_call.c: Likewise.
6487 * sunrpc/clnt_gen.c: Likewise.
6488 * sunrpc/pm_getmaps.c: Likewise.
6489 * sunrpc/clnt_simp.c: Likewise.
6490 * sunrpc/pmap_clnt.c: Likewise.
6491 * sunrpc/svc_run.c: Likewise.
6492 * sunrpc/svc.c: Likewise.
6493 * sunrpc/svc_simple.c: Likewise.
6494 * sunrpc/pm_getport.c: Likewise.
6495 * sunrpc/auth_des.c: Likewise.
6496 * sunrpc/svc_auth.c: Likewise.
6497 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6498 __register_frame_info_table_bases, __deregister_frame_info_bases):
6500 (__register_frame_info_bases_internal,
6501 __register_frame_info_table_bases_internal,
6502 __deregister_frame_info_bases_internal): Add prototypes.
6503 (__register_frame_info, __register_frame): Use INTUSE in call to
6504 __register_frame_info_bases.
6505 (__register_frame_info_table): Similarly.
6506 (__deregister_frame_info, __deregister_frame): Similarly.
6507 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6508 sendto as weak alias.
6509 * sysdeps/mach/hurd/sendto.c: Likewise.
6510 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6511 recvfrom as weak alias.
6512 * sysdeps/mach/hurd/recvfrom.c: Likewise.
6513 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6514 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6515 recvmsg as weak alias.
6516 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6517 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6518 sendmsg as weak alias.
6519 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6520 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6521 setsockopt, add setsockopt as weak alias.
6522 * sysdeps/mach/hurd/setsockopt.c: Likewise.
6523 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6525 * sysdeps/mach/hurd/bind.c: Likewise.
6526 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6528 * sysdeps/mach/hurd/listen.c: Likewise.
6529 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6530 getsockname, add getsockname as weak alias.
6531 * sysdeps/mach/hurd/getsockname.c: Likewise.
6532 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6533 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6534 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6535 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6536 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6537 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6539 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6540 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6541 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6542 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6543 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6544 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6545 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6546 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6547 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6548 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6549 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6550 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6552 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6554 * locale/programs/localedef.h (show_archive_content): Add verbose
6556 * locale/programs/localedef.c (main): Adjust caller.
6557 * locale/programs/locarchive.c (struct nameent, struct dataent): New
6559 (nameentcmp, dataentcmp): New functions.
6561 (show_archive_content): Print verbose listing with --list-archive -v.
6563 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6565 * locale/programs/locarchive.c (open_archive): Take extra argument
6566 readonly. If true open file with O_RDONLY and don't create the
6567 archive if it doesn't exist.
6569 (close_archive): Don't do anything if fd element is -1.
6570 * locale/programs/localedef.h (open_archive): Adjust prototype.
6571 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6574 * malloc/malloc.c (__posix_memalign): Correct check for size of
6575 alignment value [PR libc/3444].
6577 * include/stdio.h: Remove references to old stdio implementation.
6579 * libio/Makefile (bug-ungetwc2-ENV): Define.
6581 2002-05-13 Roland McGrath <roland@frob.com>
6583 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6585 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6587 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
6589 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6590 Allocate three, not two, more than LEN when appending '/.'.
6591 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
6592 if NAME ends with '/.' if it is shorter than 2 chars.
6594 2002-05-12 Roland McGrath <roland@frob.com>
6596 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6597 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6599 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6600 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6602 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6604 * sysdeps/ia64/Makefile: Remove extra endif.
6605 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6607 2002-05-10 Andreas Schwab <schwab@suse.de>
6609 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6611 2002-05-09 Andreas Jaeger <aj@suse.de>
6613 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6614 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6615 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6617 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6618 * sysdeps/wordsize-64/glob.c: ...here.
6619 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6620 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6621 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6623 2002-05-08 Roland McGrath <roland@frob.com>
6625 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6626 O_NOTRANS flag in "." lookup.
6628 2002-05-05 Ulrich Drepper <drepper@redhat.com>
6630 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6632 2002-05-04 Ulrich Drepper <drepper@redhat.com>
6634 * locale/duplocale.c (__duplocale): Update special members only
6635 when allocation succeeded.
6637 2002-05-03 Roland McGrath <roland@frob.com>
6639 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6640 we can only build libc.so.0.3(GLIBC_2.2.6) now.
6642 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6644 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6645 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6646 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6647 * sysdeps/ia64/ia64libgcc.S: New file.
6649 2002-05-02 Ulrich Drepper <drepper@redhat.com>
6651 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6653 * malloc/memusage.c: Distinguish anonymous mmap.
6655 2002-05-01 Roland McGrath <roland@frob.com>
6657 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6658 and use INTDEF on it.
6659 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6661 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6663 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6665 2002-05-01 Ulrich Drepper <drepper@redhat.com>
6667 * malloc/memusage.c: Add support for tracking mmap & friends.
6668 * malloc/memusage.sh: Implement -m/--mmap option.
6670 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6672 * locale/programs/locarchive.c (create_archive): Add archivefname
6673 argument, create fname from it.
6674 (enlarge_archive): Honour output_prefix.
6675 (open_archive): Likewise.
6677 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6679 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6680 too many stpcpy macros.
6682 2002-04-26 Bruno Haible <bruno@clisp.org>
6684 * locale/programs/ld-collate.c (collate_read): Cast first argument
6687 2002-04-26 Bruno Haible <bruno@clisp.org>
6689 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6690 __dcngettext_internal): New declarations.
6691 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6692 attribute declarations.
6694 2002-04-30 Roland McGrath <roland@frob.com>
6696 Removed old GNU stdio implementation; GNU libio is now the only option.
6697 * configure.in: Removed --enable-libio option and @stdio@ subst var.
6698 Define USE_IN_LIBIO unconditionally.
6699 * configure: Regenerated.
6700 * Makeconfig (stdio): Set to libio by default.
6701 * config.make.in (stdio): Variable removed.
6702 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6703 * sysdeps/unix/sysv/linux/configure: Regenerated.
6704 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6705 * sysdeps/mach/hurd/configure: Regenerated.
6706 * stdio/.cvsignore: File removed.
6707 * stdio/Makefile: File removed.
6708 * stdio/Versions: File removed.
6709 * stdio/__fbufsize.c: File removed.
6710 * stdio/__flbf.c: File removed.
6711 * stdio/__fpending.c: File removed.
6712 * stdio/__fpurge.c: File removed.
6713 * stdio/__freadable.c: File removed.
6714 * stdio/__freading.c: File removed.
6715 * stdio/__fsetlocking.c: File removed.
6716 * stdio/__fwritable.c: File removed.
6717 * stdio/__fwriting.c: File removed.
6718 * stdio/clearerr.c: File removed.
6719 * stdio/fclose.c: File removed.
6720 * stdio/fcloseall.c: File removed.
6721 * stdio/feof.c: File removed.
6722 * stdio/ferror.c: File removed.
6723 * stdio/fflush.c: File removed.
6724 * stdio/fgetc.c: File removed.
6725 * stdio/fgetpos.c: File removed.
6726 * stdio/fgets.c: File removed.
6727 * stdio/fileno.c: File removed.
6728 * stdio/fmemopen.c: File removed.
6729 * stdio/fopen.c: File removed.
6730 * stdio/fopncook.c: File removed.
6731 * stdio/fputc.c: File removed.
6732 * stdio/fputs.c: File removed.
6733 * stdio/fread.c: File removed.
6734 * stdio/freopen.c: File removed.
6735 * stdio/fseek.c: File removed.
6736 * stdio/fsetpos.c: File removed.
6737 * stdio/ftell.c: File removed.
6738 * stdio/fwrite.c: File removed.
6739 * stdio/getc.c: File removed.
6740 * stdio/getchar.c: File removed.
6741 * stdio/getdelim.c: File removed.
6742 * stdio/gets.c: File removed.
6743 * stdio/glue.c: File removed.
6744 * stdio/internals.c: File removed.
6745 * stdio/linewrap.c: File removed.
6746 * stdio/linewrap.h: File removed.
6747 * stdio/memstream.c: File removed.
6748 * stdio/newstream.c: File removed.
6749 * stdio/obstream.c: File removed.
6750 * stdio/putc.c: File removed.
6751 * stdio/putchar.c: File removed.
6752 * stdio/puts.c: File removed.
6753 * stdio/rewind.c: File removed.
6754 * stdio/setbuf.c: File removed.
6755 * stdio/setbuffer.c: File removed.
6756 * stdio/setlinebuf.c: File removed.
6757 * stdio/setvbuf.c: File removed.
6758 * stdio/stdio.h: File removed.
6759 * stdio/ungetc.c: File removed.
6760 * stdio/vasprintf.c: File removed.
6761 * stdio/vscanf.c: File removed.
6762 * stdio/vsnprintf.c: File removed.
6763 * stdio/vsprintf.c: File removed.
6764 * stdio/vsscanf.c: File removed.
6765 * sysdeps/generic/defs.c: File removed.
6766 * sysdeps/generic/fdopen.c: File removed.
6767 * sysdeps/generic/pipestream.c: File removed.
6768 * sysdeps/generic/stdio_init.c: File removed.
6769 * sysdeps/generic/sysd-stdio.c: File removed.
6770 * sysdeps/generic/vdprintf.c: File removed.
6771 * sysdeps/mach/hurd/defs.c: File removed.
6772 * sysdeps/mach/hurd/fdopen.c: File removed.
6773 * sysdeps/mach/hurd/pipestream.c: File removed.
6774 * sysdeps/mach/hurd/stdio_init.c: File removed.
6775 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6776 * sysdeps/mach/hurd/vdprintf.c: File removed.
6777 * sysdeps/posix/defs.c: File removed.
6778 * sysdeps/posix/fdopen.c: File removed.
6779 * sysdeps/posix/pipestream.c: File removed.
6780 * sysdeps/posix/stdio_init.c: File removed.
6781 * sysdeps/posix/vdprintf.c: File removed.
6782 * sysdeps/unix/pipestream.c: File removed.
6783 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6784 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6785 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6787 2002-04-29 Roland McGrath <roland@frob.com>
6789 * include/libc-symbols.h (link_warning): Use `unused' attribute.
6791 2002-04-28 Ulrich Drepper <drepper@redhat.com>
6793 * sysdeps/generic/tls.h: Describe what must be defined.
6795 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6796 glob_in_dir [PR libc/3385].
6797 * posix/globtest.sh: Add test case.
6799 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6802 2002-04-27 Ulrich Drepper <drepper@redhat.com>
6804 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6805 _internal symbol handling.
6806 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6808 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6810 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6811 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6813 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
6815 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6816 not _LIBC and RE_ENABLE_I18N.
6817 (build_range_exp): Implement for not _LIBC.
6818 (build_collating_symbol): Likewise.
6819 (parse_bracket_exp): Unify redundant error handlings.
6820 Don't erase mbcset for non matching list in multibyte envs.
6821 (build_word_op): Add '_' to matching list for \w operator.
6822 * posix/regex_internal.c (re_string_construct): Invoke
6823 build_upper_buffer in case of not RE_ENABLE_I18N.
6824 (re_string_reconstruct): Don't touch cur_state in case of not
6826 * posix/regex_internal.h (attribute_hidden): New macro in case of
6828 (re_charset_t): Define range_starts/ends in case of not _LIBC.
6829 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6831 (transit_state_mb): Likewise.
6832 (check_node_accept_bytes): Implement the code evaluating range
6833 expression in case of not _LIBC.
6834 (find_collation_sequence_value): Hide in case of not _LIBC.
6836 2002-04-26 Jakub Jelinek <jakub@redhat.com>
6838 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6840 (__old_semctl, __new_semctl): Only use va_arg if the argument will
6843 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6845 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6847 * sysdeps/ia64/strncpy.S: Fix recovery code.
6848 Patch by David Mosberger <davidm@hpl.hp.com>.
6850 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6852 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6855 2002-04-14 Bruno Haible <bruno@clisp.org>
6857 * posix/regex.c (re_max_failures): Add back symbol for binary
6860 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
6862 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6863 of buffer building functions.
6864 * posix/regex_internal.c (re_string_allocate): New function.
6865 (re_string_realloc_buffers): New function.
6866 (re_string_skip_chars): New function.
6867 (re_string_reconstruct): New function.
6868 (re_string_construct): Adapt it to new interface of buffer building
6870 (re_string_construct_common): Likewise.
6871 (build_wcs_buffer): Likewise.
6872 (build_wcs_upper_buffer): Likewise.
6873 (build_upper_buffer): Likewise.
6874 (re_string_translate_buffer): Likewise.
6875 (re_string_context_at): Adapt it to variable length buffers.
6876 * posix/regex_internal.h (re_string_t): Add new fields to handle
6877 variable length buffers.
6878 (re_match_context_t): Likewise.
6879 * posix/regexec.c (re_search_internal): Adapt it to new interface
6880 of re_string_t and re_match_context_t.
6881 (acquire_init_state_context): Likewise.
6882 (check_matching): Likewise.
6883 (check_halt_state_context): Likewise.
6884 (proceed_next_node): Likewise.
6885 (set_regs): Likewise.
6886 (sift_states_backward): Likewise.
6887 (clean_state_log_if_need): Likewise.
6888 (sift_states_iter_mb): Likewise.
6889 (sift_states_iter_bkref): Likewise.
6890 (add_epsilon_backreference): Likewise.
6891 (transit_state): Likewise.
6892 (transit_state_sb): Likewise.
6893 (transit_state_mb): Likewise.
6894 (transit_state_bkref): Likewise.
6895 (transit_state_bkref_loop): Likewise.
6896 (check_node_accept): Likewise.
6897 (match_ctx_init): Likewise.
6898 (extend_buffers): New function.
6900 2002-04-21 Bruno Haible <bruno@clisp.org>
6902 * iconvdata/tst-table.sh: For the second check, use the truncated
6903 GB18030 charmap table, like for the first check.
6905 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6907 * elf/dl-load.c (open_verify): Correct __lseek parameters.
6908 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6910 2002-04-23 H.J. Lu <hjl@gnu.org>
6912 * include/math.h (isfinite): Fix a typo.
6914 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6916 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6917 which is created by the test suite.
6919 2002-04-20 Bruno Haible <bruno@clisp.org>
6921 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6922 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6924 2002-04-20 Bruno Haible <bruno@clisp.org>
6926 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6927 to avoid gcc warning.
6929 2002-04-20 Bruno Haible <bruno@clisp.org>
6931 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6932 of data->__statep->__count.
6934 2002-04-20 Bruno Haible <bruno@clisp.org>
6936 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6938 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6940 2002-04-24 Roland McGrath <roland@frob.com>
6942 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6943 use END macro instead of our own .end directive.
6944 Use `callsys' insn mnemonic instead of `call_pal'.
6946 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6948 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6949 macro; we need this for Hurd.
6951 Log entry was missing for 2002/03/24 commit of rev 1.8,
6952 goes with 2002-03-17 changes.
6953 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6954 (sysdep_routines): Append ioperm here.
6955 (sysdep_headers): Append sys/io.h here.
6957 2002-04-23 Roland McGrath <roland@frob.com>
6959 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6960 * sysdeps/mach/hurd/sendto.c: Likewise.
6961 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6962 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6963 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6965 2002-04-22 Roland McGrath <roland@frob.com>
6967 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6968 failure from i386_io_perm_* RPCs to ENOSYS.
6970 2002-04-22 Andreas Jaeger <aj@suse.de>
6972 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6974 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6976 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6977 register instead of destroying %rbx.
6979 2002-04-21 Ulrich Drepper <drepper@redhat.com>
6981 * string/string.h: Declare strerror_r also for XPG6.
6983 2002-04-19 Roland McGrath <roland@frob.com>
6985 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6987 2002-04-20 Ulrich Drepper <drepper@redhat.com>
6989 * Makefile: Add handling of xtests and xcheck targets.
6990 * MakeTAGS: Likewise.
6991 * Makeconfig: Likewise.
6992 * Makerules: Likewise.
6994 * manual/Makefile: Likewise.
6995 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6996 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
6998 2002-04-11 Zack Weinberg <zack@codesourcery.com>
7000 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
7002 * sunrpc/auth_none.c: Include bits/libc-lock.h.
7003 Delete #ifdef _RPC_THREAD_SAFE_ block.
7004 (authnone_private): Make a struct, not a pointer to struct.
7005 (authnone_private_guard): New once-control variable.
7006 (authnone_create_once): New function, split out of
7007 authnone_create. No need to allocate memory.
7008 (authnone_create): Just call authnone_create_once via
7009 __libc_once, then return &authnone_private->no_client.
7010 (authnone_marshal): Access private data via CLIENT argument,
7011 not authnone_private pointer.
7012 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
7013 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
7016 2002-04-12 H.J. Lu <hjl@gnu.org>
7018 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
7020 2002-04-18 Bruno Haible <bruno@clisp.org>
7022 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7023 FROM_DIRECTION): Make the FROM direction stateless.
7024 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7025 FROM_DIRECTION): Likewise.
7027 2002-04-15 Bruno Haible <bruno@clisp.org>
7029 * iconvdata/JISX0213.TXT: New file.
7030 * iconvdata/jisx0213.h: New file.
7031 * iconvdata/jisx0213.c: New file.
7032 * iconvdata/euc-jisx0213.c: New file.
7033 * iconvdata/shift_jisx0213.c: New file.
7034 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
7035 * iconvdata/EUC-JISX0213.precomposed: New file.
7036 * iconvdata/SHIFT_JISX0213.precomposed: New file.
7037 * iconvdata/SHIFT_JISX0213.irreversible: New file.
7038 * iconvdata/tst-table-to.c (main): Make it work for encodings for
7039 which the "to" direction is stateful.
7040 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
7041 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
7043 (libJISX0213-routines): New variable.
7044 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
7045 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
7046 (LDFLAGS-libJISX0213.so): New variable.
7047 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
7048 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
7049 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
7051 2002-04-15 Bruno Haible <bruno@clisp.org>
7053 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
7054 uint32_t. Update to Unicode 3.2.
7055 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
7056 (BODY for TO_LOOP): Handle the ASCII range specially.
7057 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
7058 * iconvdata/testdata/BIG5HKSCS: Remove a character.
7059 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
7061 2002-04-15 Bruno Haible <bruno@clisp.org>
7063 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
7064 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
7066 2002-04-15 Bruno Haible <bruno@clisp.org>
7068 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
7069 (ucs4_to_cns11643): Update.
7070 * iconvdata/cns11643.c: Update to Unicode 3.2.
7071 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
7072 __cns11643_from_ucs4p2_tab): Regenerated.
7073 (__cns11643_from_ucs4p2c_tab): New array.
7074 * iconvdata/cvs11643l1.c: Update comments.
7075 * iconvdata/EUC-TW.irreversible: Remove two entries.
7077 2002-04-15 Bruno Haible <bruno@clisp.org>
7079 * locale/C-translit.h.in: Update to Unicode 3.2.
7080 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
7081 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
7083 2002-04-15 Bruno Haible <bruno@clisp.org>
7085 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
7086 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
7088 2002-04-15 Bruno Haible <bruno@clisp.org>
7090 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
7091 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
7092 always one byte, not 0 bytes in some cases and 2 bytes in others.
7094 * iconvdata/tst-table-from.c (main): Correct the usage message.
7096 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
7098 * posix/regcomp.c (parse_expression): Fix incorrect error code.
7099 (parse_dup_op): Fix error handling like "a{}".
7100 (parse_bracket_exp): Add error handling.
7101 (fetch_number): Add error handling for "a{<very_large_number>}".
7103 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
7105 * posix/regcomp.c (parse_bracket_symbol): Add error handling
7106 in case that the symbol name is too long.
7107 (build_charclass): Handle [:lower:]/[:uppper:] correctly
7108 in case of REG_ICASE.
7110 2002-04-19 Andreas Jaeger <aj@suse.de>
7112 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
7113 <hartvige@mips.com>.
7115 2002-04-15 H.J. Lu <hjl@gnu.org>
7117 * include/math.h (__finitel_internal): Declare only if
7118 __NO_LONG_DOUBLE_MATH is not defined.
7119 (__isinfl_internal): Likewise.
7120 (__isnanl_internal): Likewise.
7122 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
7123 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7124 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7125 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7126 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7127 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7128 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7130 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
7133 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
7134 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
7136 2002-04-15 Bruno Haible <bruno@clisp.org>
7138 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
7139 (BODY for TO_LOOP): Likewise.
7140 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
7141 * iconvdata/tst-table.sh: Add support for encodings which contain
7142 precomposed Unicode characters, known to the iconv converter in both
7143 directions but not listed in the charmap.
7144 * iconvdata/IBM856.irreversible: New file.
7145 * iconvdata/IBM922.irreversible: New file.
7146 * iconvdata/IBM1132.irreversible: New file.
7147 * iconvdata/IBM1133.irreversible: New file.
7148 * iconvdata/IBM1160.irreversible: New file.
7149 * iconvdata/IBM1161.irreversible: New file.
7150 * iconvdata/IBM1163.irreversible: New file.
7151 * iconvdata/IBM1164.irreversible: New file.
7152 * iconvdata/ARMSCII-8.irreversible: New file.
7153 * iconvdata/TCVN5712-1.precomposed: New file.
7154 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
7155 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
7156 ARMSCII-8, TCVN5712-1.
7157 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
7158 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
7159 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
7160 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
7162 2002-04-17 Jakub Jelinek <jakub@redhat.com>
7164 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
7165 for EVENING69. Include offsets in TZ environment variable.
7167 2002-04-18 Ulrich Drepper <drepper@redhat.com>
7169 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
7170 avoid compiler warnings.
7172 * locale/programs/localedef.c (main): Always call
7173 construct_output_path.
7175 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
7177 * locale/programs/locfile.c (to_archive): New variable. To collect
7178 data which has to be added to the locale archive.
7179 (write_all_categories): Take new third parameter with locale name.
7180 Unless no_archive flag set add new locale data to the archive
7181 (write_locale_data): Unless no-archive flag set store generated data
7182 in to_archive data structure instead of generation output file.
7183 Add new parameter with locale category index.
7184 * locale/programs/locfile.h: Add new parameters in declaractions of
7185 write_all_categories and write_locale_data.
7186 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
7187 --add-to-archive, and --delete-from-archive options. Pass extra
7188 parameter to write_all_categories.
7189 * locale/programs/localedef.h: Add prototypes for functions in
7191 * locale/locarchive.h: New file.
7192 * locale/programs/locarchive.c: New file.
7193 * locale/Makefile (distribute): Add programs/locarchive.c and
7195 (localedef-modules): Add md5 and locarchive.
7196 Add vpath to crypt subdir for md5.c.
7198 * locale/programs/ld-address.c: Pass locale category ID as new second
7199 parameter to write_locale_data.
7200 * locale/programs/ld-collate.c: Likewise.
7201 * locale/programs/ld-ctype.c: Likewise.
7202 * locale/programs/ld-identification.c: Likewise.
7203 * locale/programs/ld-measurement.c: Likewise.
7204 * locale/programs/ld-messages.c: Likewise.
7205 * locale/programs/ld-monetary.c: Likewise.
7206 * locale/programs/ld-name.c: Likewise.
7207 * locale/programs/ld-numeric.c: Likewise.
7208 * locale/programs/ld-paper.c: Likewise.
7209 * locale/programs/ld-telephone.c: Likewise.
7210 * locale/programs/ld-time.c: Likewise.
7212 * locale/simple-hash.c: Move compute_hashval function from here...
7213 * locale/hashval.h: ...to here. New file.
7214 * locale/simple-hash.h: Add prototype for compute_hashval.
7216 * include/libintl.h: Minor cleanups.
7218 2002-04-16 Ulrich Drepper <drepper@redhat.com>
7220 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
7222 2002-04-15 Ulrich Drepper <drepper@redhat.com>
7224 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
7226 2002-04-14 Bruno Haible <bruno@clisp.org>
7228 * locale/programs/charmap.c (charmap_read): Don't access result if
7231 2002-02-17 Andreas Schwab <schwab@suse.de>
7233 * elf/reldep7.c: New file.
7234 * elf/reldep7mod1.c: New file.
7235 * elf/reldep7mod2.c: New file.
7236 * elf/Makefile: Add rules to build and run reldep7.
7238 2002-04-14 Jakub Jelinek <jakub@redhat.com>
7240 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
7241 the end of the function. Pass original flags to recursive call if
7242 add_dependency failed.
7243 (_dl_lookup_versioned_symbol): Likewise.
7245 2002-04-13 Jakub Jelinek <jakub@redhat.com>
7247 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
7248 early, but check whether it overflowed afterwards.
7249 * time/tst-mktime.c (main): Add new tests.
7251 2002-04-14 Ulrich Drepper <drepper@redhat.com>
7253 * debug/xtrace.sh: Fix program name in help message.
7254 Patch by Roger Luethi <rl@hellgate.ch>.
7256 * include/sys/stat.h: Add prototypes for __lxstat_internal and
7257 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
7259 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
7260 * sysdeps/mach/hurd/lxstat.c: Likewise.
7261 * sysdeps/unix/common/lxstat.c: Likewise.
7262 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
7263 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
7264 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
7265 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7266 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
7267 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
7268 * sysdeps/mach/hurd/lxstat64.c: Likewise.
7269 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
7270 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7272 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
7273 prototypes. Add __mbrlen and __mbrtowc macros.
7274 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
7275 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
7277 * include/unistd.h: Add prototype for __write_internal and add
7278 __libc_write macro is SHARED.
7279 * sysdeps/generic/write.c: Use INTDEF for __write.
7280 * sysdeps/mach/hurd/write.c: Likewise.
7281 * sysdeps/unix/sysv/aix/write.c: Likewise.
7282 * sysdeps/unix/syscalls.list: Add __libc_write alias.
7284 * assert/assert.c: Replace STR_N_SIZE with something usable in
7286 * assert/assert-perr.c: Likewise.
7288 * include/sys/socket.h: Declare __libc_sa_len_internal and define
7289 SA_LEN macro to use it if not NOT_IN_libc.
7290 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
7292 * include/fcntl.h: Declare __open_internal and define __open and
7293 __libc_open macros if not NOT_IN_libc.
7294 * sysdeps/generic/open.c: Use INTDEF for __open.
7295 * sysdeps/mach/hurd/open.c: Likewise.
7296 * sysdeps/unix/sysv/aix/open.c: Likewise.
7297 * sysdeps/unix/syscalls.list: Add __open_internal alias.
7299 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
7302 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
7303 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
7304 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7305 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7307 * include/wctype.h: Declare __iswalpha_l_internal,
7308 __iswdigit_l_internal, __iswspace_l_internal,
7309 __iswxdigit_l_internal, and __iswctype_internal. Define
7310 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
7311 __iswxdigit_l macros if not NOT_IN_libc.
7312 * wctype/iswctype.c: Use INTDEF for __iswctype.
7313 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
7315 * include/math.h: Declare __isinf_internal, __isinfl_internal,
7316 __isnan_internal, and __isnanl_internal.
7317 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
7318 __isnan, and __isnanl.
7319 * stdio-common/printf_size.c: Likewise.
7320 * sysdeps/generic/printf_fphex.c: Likewise.
7321 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
7322 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7323 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
7324 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
7325 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7326 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7327 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7328 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7329 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7330 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7331 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7332 * sysdeps/m68k/s_isinfl.c: Likewise.
7333 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
7334 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7336 * include/sys/time.h: Declare __gettimeofday_internal and define
7337 __gettimeofday macro if not NOT_IN_libc.
7338 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
7339 * sysdeps/mach/gettimeofday.c: Likewise.
7340 * sysdeps/posix/gettimeofday.c: Likewise.
7341 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7342 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7343 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7344 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7346 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7347 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7348 Remove __lstat and __fstat inline functions.
7349 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7350 * sysdeps/mach/hurd/fxstat.c: Likewise.
7351 * sysdeps/unix/fxstat.c: Likewise.
7352 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7353 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7354 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7355 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7356 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7357 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7358 * sysdeps/mach/hurd/fxstat64.c: Likewise.
7359 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7360 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7362 * include/unistd.h: Declare __getpid_internal and define
7363 __getpid macro if not NOT_IN_libc.
7364 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7365 * sysdeps/generic/getpid.c: Likewise.
7366 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7367 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7369 * include/unistd.h: Declare __getpgid_internal and define
7370 __getpgid macro if not NOT_IN_libc.
7371 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7372 * sysdeps/mach/hurd/getpgid.c: Likewise.
7373 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7374 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7375 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7376 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7378 * include/unistd.h: Declare __getpagesize_internal and define
7379 __getpagesize macro if not NOT_IN_libc.
7380 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7382 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7383 * sysdeps/mach/getpagesize.c: Likewise.
7384 * sysdeps/posix/getpagesize.c: Likewise.
7385 * sysdeps/unix/getpagesize.c: Likewise.
7386 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7387 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7388 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7389 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7391 2002-04-13 Andreas Jaeger <aj@suse.de>
7393 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7394 as clobber to reduce register pressure.
7395 (__strpbrk_cg): Likewise.
7396 (__mempcpy_by4): Likewise.
7397 (__strstr_cg): Likewise.
7398 Add prototype for __memrchr.
7400 2002-04-13 Andreas Schwab <schwab@suse.de>
7402 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7403 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7404 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7406 2002-04-13 Ulrich Drepper <drepper@redhat.com>
7408 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
7409 check whether the caller prefers getting the most recent version of
7410 a symbol of the earliest version.
7411 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
7412 _dl_do_lookup to also take the new parameter and pass it on.
7413 Change 'explicit' parameter of _dl_lookup_symbol and
7414 _dl_lookup_versioned_symbol to flags. Adjust tests.
7415 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7416 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7417 _dl_lookup_versioned_symbol.
7418 * elf/dl-reloc.c: Likewise.
7419 * elf/dl-runtime.c: Likewise.
7420 * elf/dl-sym.c: Likewise.
7421 * sysdeps/mips/dl-machine.h: Likewise.
7423 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7425 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7427 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7429 2002-04-10 Andreas Jaeger <aj@suse.de>
7431 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7433 * include/argz.h: Remove extra char from last patch.
7435 2002-04-09 Ulrich Drepper <drepper@redhat.com>
7437 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7438 * sysdeps/unix/sysv/aix/chown.c: Likewise.
7439 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7440 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7441 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7442 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7444 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7446 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7447 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7448 * intl/ngettext.c: Likewise.
7450 * include/sys/socket.h: Declare __connect_internal and define
7451 __connect macro if not NOT_IN_libc.
7452 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7453 * sysdeps/unix/sysv/aix/connect.c: Likewise.
7454 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7456 * include/unistd.h: Declare __close_internal and define __close macro
7458 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7459 WJUMP3): Add extra parenthesis to avoid expanding element names with
7460 macors like __close.
7461 * sysdeps/unix/syscalls.list: Add __close_internal alias.
7463 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7465 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7466 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7467 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7469 * include/unistd.h: Declare __fork_internal and define __fork macro
7471 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7472 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7473 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7475 * include/stdio_ext.h: Declare __fsetlocking_internal and define
7476 __fsetlocking macro to use it if not NOT_IN_libc.
7477 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7479 * libio/__fbufsize.c: Correct copyright.
7480 * libio/__flbf.c: Likewise.
7481 * libio/__fpending.c: Likewise.
7482 * libio/__fpurge.c: Likewise.
7483 * libio/__freadable.c: Likewise.
7484 * libio/__freading.c: Likewise.
7485 * libio/__fsetlocking.c: Likewise.
7486 * libio/__fwritable.c: Likewise.
7487 * libio/__fwriting.c: Likewise.
7489 * include/stdio.h: Declare __asprintf_internal and define __asprintf
7490 macro to use it if not NOT_IN_libc.
7491 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7493 * include/mntent.h: Declare __setmntent_internal,
7494 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
7495 __getmntent_r, and __endmntent macros to use these functions if not
7497 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7500 * include/math.h: Declare __finite_internal, __finitef_internal, and
7501 __finitel_internal. Redefine isfinite macro if in libc or libm using
7503 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7504 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7505 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7506 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7507 * sysdeps/i386/fpu/s_finitef.S: Likewise.
7508 * sysdeps/i386/fpu/s_finitel.S: Likewise.
7509 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7510 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7511 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7512 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7514 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
7515 to use this function if not NOT_IN_libc.
7516 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7517 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7518 * sysdeps/mach/hurd/fcntl.c: Likewise.
7519 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7520 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7522 * include/argz.h: Declare __argz_count_internal and
7523 __argz_stringify_internal.
7524 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7526 * string/argz-count.c: Use INTDEF for __argz_count.
7527 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7529 * include/stdlib.h: Declare __cxa_atexit_internal and define
7530 __cxa_atexit macro if not NOT_IN_libc.
7531 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7532 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7534 * assert/assert.c: Use INTDEF for __assert_fail.
7535 * assert/__assert.c: Use INTUSE for call to __assert_fail.
7536 * include/assert.h: Declare __assert_fail_internal.
7538 * extra-lib.mk: Mark assignment to lib with override.
7540 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7542 * Makerules: Use cppflags-iterator.mk to add defines for all test
7545 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
7547 * elf/elf.h: Define R_SH_TLS_xxx macros.
7548 * elf/rtld.c: Remove an extra parenthesis.
7549 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7551 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7552 * sysdeps/sh/dl-lookupcfg.h: New file.
7553 * sysdeps/sh/dl-tls.h: New file.
7554 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7555 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7556 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7557 R_SH_TLS_TPOFF32 relocations.
7559 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7561 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7563 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7564 * include/stdlib.h: Likewise.
7566 2002-04-08 Jakub Jelinek <jakub@redhat.com>
7568 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7569 instead of _RTLD_LOCAL.
7570 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7571 * include/unistd.h: Likewise.
7572 * sysdeps/generic/ldsodefs.h: Likewise.
7574 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7575 if in libc or ld.so.
7577 2002-04-08 Andreas Jaeger <aj@suse.de>
7579 * elf/cache.c (print_entry): Support x86-64.
7581 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7583 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7584 with one accessing the locale data structures directly.
7585 * stdio-common/printf-prs.c: Include localeinfo.h for new
7586 MB_CUR_MAX definition.
7588 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7589 is the name of the source file without extension.
7590 * Makefile (distribute): Add cppflags-iterator.mk.
7591 * cppflags-iterator.mk: New file.
7592 * extra-lib.mk: For the sources of the library run
7593 cppflags-iterator.mk.
7595 * include/libintl.h: Declare __dcgettext_internal and
7596 _libc_intl_domainname_internal. Define __dcgettext using these
7597 two symbols if used in libc itself.
7598 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7599 _libc_intl_domainname_internal.
7600 * argp/argp-parse.c: Likewise.
7601 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7602 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7603 * intl/gettext.c: Likewise.
7604 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7606 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7608 * posix/regex_internal.c (gettext): Likewise.
7610 2002-04-08 Andreas Jaeger <aj@suse.de>
7612 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7614 * sysdeps/x86_64/fpu/s_llrint.S: New file.
7615 * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7616 * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7617 * sysdeps/x86_64/fpu/s_lrint.S: New file.
7618 * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7619 * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7621 2002-04-08 Roland McGrath <roland@frob.com>
7623 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7624 widening __hurd_fail value.
7626 2002-04-07 Roland McGrath <roland@frob.com>
7628 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7629 <mach/machine/alpha_instruction.h>.
7630 (_hurd_setup_sighandler): Take proper arguments for current decls.
7631 Update code to use _hurdsig_catch_fault.
7632 Use `callsys' instruction instead of `call_pal'.
7633 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7635 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7636 (ALIGN, at, AT, fp): New macros.
7638 2002-04-06 Roland McGrath <roland@frob.com>
7640 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7642 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7643 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7645 * sysdeps/mach/hurd/bind.c: Use prototype definition.
7646 * sysdeps/mach/hurd/connect.c: Likewise.
7647 * sysdeps/mach/hurd/getsockopt.c: Likewise.
7648 * sysdeps/mach/hurd/setsockopt.c: Likewise.
7650 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7653 * hurd/catch-exc.c: Use integer_t instead of int.
7654 * hurd/hurdfault.c: Likewise.
7656 * sysdeps/mach/hurd/alpha/exc2signal.c
7657 (_hurd_exception2signal): Rewritten.
7658 * sysdeps/mach/hurd/alpha/longjmp-ts.c
7659 (_hurd_longjmp_thread_state): Rewritten.
7661 2002-04-07 Ulrich Drepper <drepper@redhat.com>
7663 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7664 DB_LOOKUP_FCT prototype.
7665 * nss/getXXent_r.c: Likewise.
7666 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7667 * inet/getaliasname_r.c: Likewise.
7668 * inet/getnetbyad_r.c: Likewise.
7669 * inet/getnetbynm_r.c: Likewise.
7670 * inet/getnetent_r.c: Likewise.
7671 * inet/getproto_r.c: Likewise.
7672 * inet/getprtent_r.c: Likewise.
7673 * inet/getprtname_r.c: Likewise.
7674 * inet/getrpcbyname_r.c: Likewise.
7675 * inet/getrpcbynumber_r.c: Likewise.
7676 * inet/getrpcent_r.c: Likewise.
7677 * inet/getservent_r.c: Likewise.
7678 * inet/getsrvbynm_r.c: Likewise.
7679 * inet/getsrvbypt_r.c: Likewise.
7680 * shadow/getspent_r.c: Likewise.
7681 * shadow/getspnam_r.c: Likewise.
7683 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7685 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7686 Use i686-friendly PIC code.
7687 * sysdeps/i386/elf/setjmp.S: Likewise.
7689 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7691 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7693 * elf/Versions: Remove it here.
7695 2002-04-06 Ulrich Drepper <drepper@redhat.com>
7697 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7698 direction. Reported by H . J . Lu <hjl@lucon.org>.
7700 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7702 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7703 test just before the test runs.
7704 * intl/tst-translit.sh: Likewise.
7705 * intl/tst-codeset.sh: Likewise.
7707 * timezone/zic.c: Update from tzcode2002c.
7708 * timezone/asia: Update from tzdata2002c.
7709 * timezone/backward: Likewise.
7710 * timezone/europe: Likewise.
7711 * timezone/northamerica: Likewise.
7712 * timezone/northamerica: Likewise.
7713 * timezone/northamerica: Likewise.
7714 * timezone/southamerica: Likewise.
7715 * timezone/zone.tab: Likewise.
7717 2002-03-23 Jakub Jelinek <jakub@redhat.com>
7719 * sysdeps/generic/brk.c (__curbrk): Declare.
7720 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7721 * sysdeps/generic/dl-sbrk.c: Likewise.
7722 * sysdeps/unix/arm/dl-brk.S: New file.
7723 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7724 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7725 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7726 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7727 * sysdeps/unix/i386/dl-brk.S: New file.
7728 * sysdeps/unix/mips/dl-brk.S: New file.
7729 * sysdeps/unix/sparc/dl-brk.S: New file.
7730 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7731 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7732 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7733 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7735 2002-04-03 Andreas Schwab <schwab@suse.de>
7737 * Makefile (headers): Add gnu/lib-names.h here instead of
7739 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7741 (install-headers): Add dependency on install-headers-nosubdir.
7742 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7743 instead of install-others.
7744 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7747 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7749 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7750 Reported by Sam Roberts <sroberts@uniserve.com>.
7752 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7754 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7755 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7756 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7757 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7759 2002-04-03 David Mosberger <davidm@hpl.hp.com>
7761 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7762 (RTLD_START): Ditto.
7763 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7764 dependency violation.
7766 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7768 * time/mktime.c (__mktime_internal): Move check for year < 70 below
7769 all variable declarations.
7771 2002-04-04 Andreas Schwab <schwab@suse.de>
7773 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7775 2002-04-04 Andreas Jaeger <aj@suse.de>
7777 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7778 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7780 * sysdeps/x86_64/fpu/s_fabs.c: New file.
7781 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7782 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7784 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7786 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7788 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7789 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7791 * configure.in: Handle all mips entries the same.
7793 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7794 * sysdeps/mips/mips3/*: Likewise.
7795 * sysdeps/mips/p40/bits/endian.h: Likewise.
7797 2002-04-04 Ulrich Drepper <drepper@redhat.com>
7799 * misc/dirname.c (dirname): Ignore trailing slashes at end of
7800 non-null result [PR libc/2600].
7802 * misc/tst-dirname.c: Add more tests.
7804 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7806 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7807 define a code_set_name provide one based on the filename.
7809 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7811 2001-12-28 Andreas Jaeger <aj@suse.de>
7813 * time/mktime.c (__mktime_internal): Check for year < 70
7816 2002-04-03 Andreas Jaeger <aj@suse.de>
7818 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7820 Reported by Andi Kleen <ak@suse.de>.
7822 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7824 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7825 * sysdeps/generic/w_lgammaf.c: Likewise.
7826 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7828 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7829 Adjust for new output format of the backtrace functions.
7831 * misc/syslog.c (vsyslog): Only use cleanup handler if
7832 _LIBC_REENTRANT is defined [PR libc/2924].
7834 * libio/Makefile (tests): Add bug-ungetwc2.
7835 * libio/bug-ungetwc2.c: New file.
7837 * manual/install.texi: Typographical and grammatical cleanup.
7838 Patch by Dennis Grace <dgrace@us.ibm.com>.
7840 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7841 parameter if mtflag. Patch by <jeongyun@innovay.com>.
7843 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
7844 always "&". Adjust callers.
7845 Add "_" prefix to several generated definitions.
7846 Patch by paul@serice.net [PR libc/3158].
7848 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7850 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7851 size of _dl_arm_cap_flags.
7852 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7854 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7857 2002-03-22 H.J. Lu <hjl@gnu.org>
7859 * scripts/firstversions.awk: Check the first version.
7861 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7863 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7864 dependencies must be stable to work correctly.
7865 Reported by martin.lubich@datacon.at.
7867 * libio/bug-ungetwc1.c: New file.
7868 * libio/Makefile (tests): Add bug-ungetwc1.
7870 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7871 if stream was last used for writing.
7873 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7874 number [PR libc/3111].
7876 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7878 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7880 2002-04-02 Jakub Jelinek <jakub@redhat.com>
7882 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7883 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7884 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7885 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7886 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7888 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7890 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7893 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7895 * sysdeps/i386/fpu/s_fabs.S: New file.
7896 * sysdeps/i386/fpu/s_fabsf.S: New file.
7897 * sysdeps/i386/fpu/s_fabsl.S: New file.
7898 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7899 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7900 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7902 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7904 * rt/tst-shm.c (do_test): Add one more test for size of shared
7907 2002-03-29 Wolfram Gloger <wg@malloc.de>
7909 * malloc/malloc.c: Add short description and prototypes for
7910 malloc_get_state, malloc_set_state and posix_memalign, for
7911 consistency and to avoid warnings with -Wstrict-prototypes.
7912 Reported by Andreas Jaeger <aj@suse.de>.
7914 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7916 * po/gl.po: Update from translation team.
7918 2002-03-31 Roland McGrath <roland@frob.com>
7920 * hurd/hurdselect.c (_hurd_select): Fix
7921 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7922 Use a union rather than casts to compare mach_msg_type_t as int.
7924 2002-03-25 Roland McGrath <roland@frob.com>
7926 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7927 check off the end of NAME when it's shorter than 2 chars.
7928 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7930 2002-03-17 Roland McGrath <roland@frob.com>
7932 * sysdeps/mach/hurd/i386/sys/io.h: New file.
7933 * sysdeps/mach/hurd/i386/ioperm.c: New file.
7934 * sysdeps/mach/hurd/i386/Dist: Add them.
7935 * sysdeps/mach/hurd/i386/Versions
7936 (libc: GLIBC_2.2.6): New set, add ioperm.
7937 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7938 (mach_interface_list): Check for mach_i386.defs.
7939 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7940 * sysdeps/mach/configure: Regenerated.
7942 2002-03-22 Ulrich Drepper <drepper@redhat.com>
7944 * po/fr.po: Update from translation team.
7946 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
7948 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7949 getpriority from syscalls list.
7951 2002-03-28 Andreas Jaeger <aj@suse.de>
7953 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7954 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7955 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7956 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7958 2002-03-27 Andreas Jaeger <aj@suse.de>
7960 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7961 sigcontext): Follow further kernel change.
7963 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7966 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7967 Change for struct sigcontext change.
7969 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7970 Follow changes in struct sigcontext.
7972 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7973 sysycall, use wrapper instead.
7975 2002-03-26 Andreas Jaeger <aj@suse.de>
7977 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7978 read and write accesses as detailed as possible.
7979 (__memcpy_by2): Likewise.
7980 (__memcpy_g): Likewise.
7981 (memmove): Likewise.
7983 (__memset_ccn_by4): Likewise.
7984 (__memset_ccn_by2): Likewise.
7985 (__memset_gcn_by4): Likewise.
7986 (__memset_gcn_by2): Likewise.
7988 (__memrchr): Likewise.
7989 (rawmemchr): Likewise.
7990 (__strlen_g): Likewise.
7991 (__strcpy_g): Likewise.
7992 (__mempcpy_by4): Likewise.
7993 (__mempcpy_by2): Likewise.
7994 (__mempcpy_byn): Likewise.
7995 (__stpcpy_g): Likewise.
7996 (__strncpy_by4): Likewise.
7997 (__strncpy_by2): Likewise.
7998 (__strncpy_byn): Likewise.
7999 (__strncpy_gg): Likewise.
8000 (__strcat_c): Likewise.
8001 (__strcat_g): Likewise.
8002 (__strncat_g): Likewise.
8003 (__strcmp_gg): Likewise.
8004 (__strncmp_g): Likewise.
8005 (__strchr_c): Likewise.
8006 (__strchr_g): Likewise.
8007 (__strchrnul_c): Likewise.
8008 (__strchrnul_g): Likewise.
8009 (__strrchr_c): Likewise.
8010 (__strrchr_g): Likewise.
8011 (__strrchr_c): Likewise.
8012 (__strrchr_g): Likewise.
8013 (__strcspn_c1): Likewise.
8014 (__strcspn_cg): Likewise.
8015 (__strcspn_g): Likewise.
8016 (__strcspn_g): Likewise.
8017 (__strspn_c1): Likewise.
8018 (__strspn_cg): Likewise.
8019 (__strspn_g): Likewise.
8020 (__strspn_g): Likewise.
8021 (__strpbrk_cg): Likewise.
8022 (__strpbrk_g): Likewise.
8023 (__strstr_cg): Likewise.
8024 (__strstr_g): Likewise.
8026 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
8027 Michal Ludvig <mludvig@suse.cz>.
8029 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
8030 compatibilty, adjust for kernel changes.
8032 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8033 sigcontext): Adjust for kernel changes.
8035 2002-03-25 Andreas Jaeger <aj@suse.de>
8037 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
8039 Reported by Artur Zaprzala <zybi@talex.com.pl>.
8041 2002-03-24 Andreas Jaeger <aj@suse.de>
8043 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
8045 * stdio-common/tst-fdopen.c (main): Remove unused variable.
8047 * iconv/tst-iconv3.c (main): Use correct printf strings.
8049 2002-03-18 Roland McGrath <roland@frob.com>
8051 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
8052 (CMGROUP_MAX): New macro.
8054 2002-03-23 Roland McGrath <roland@frob.com>
8056 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
8057 * sysdeps/posix/shm_unlink.c: Likewise.
8059 2002-03-22 Roland McGrath <roland@frob.com>
8061 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
8062 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
8063 under --enable-libio.
8064 * sysdeps/mach/hurd/configure: Regenerated.
8066 2002-03-23 Roland McGrath <roland@frob.com>
8068 * sysdeps/mach/hurd/i386/Makefile
8069 (sysdep_routines, shared-only-routines): Don't add framestate,
8070 reverting 2001-10-02 change.
8071 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8072 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8073 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8074 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8075 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8076 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8077 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8078 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8079 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
8080 Do it here instead, only if [$(unwind-find-fde) = yes].
8082 2002-03-23 Andreas Jaeger <aj@suse.de>
8084 * signal/signal.h: Fix typo. Patch by Steve Kemp
8085 <skx@tardis.ed.ac.uk>.
8087 2002-03-22 Andreas Jaeger <aj@suse.de>
8089 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
8092 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8093 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
8094 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8095 user_fpregs_struct): Rename fwd.
8097 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8098 Follow sigcontext changes.
8100 2002-03-22 Andreas Jaeger <aj@suse.de>
8102 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
8103 changes for NaNs on MIPS.
8104 Patch by Hartvig Ekner <hartvige@mips.com>.
8106 2002-03-21 Ulrich Drepper <drepper@redhat.com>
8108 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
8109 Use realloc if too large.
8110 (addgrbyid): Likewise.
8111 * nscd/hstcache.c (addhstbyname): Likewise.
8112 (addhstbyaddr): Likewise.
8113 (addhstbynamev6): Likewise.
8114 (addhstbyaddrv6): Likewise.
8115 * nscd/pwdcache.c (addpwbyname): Likewise.
8116 (addpwbyuid): Likewise.
8118 2002-03-21 Andreas Jaeger <aj@suse.de>
8120 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8121 _fpstate): Add separate struct for x86-64.
8123 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8124 user_fpregs_struct): Change member names to follow kernel.
8126 2002-03-20 Ulrich Drepper <drepper@redhat.com>
8128 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
8129 Correctly close the UDP connection right away [PR libc/3120].
8131 2002-03-20 Andreas Jaeger <aj@suse.de>
8133 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8134 user_fpregs_struct): Fix for changed kernel struct.
8135 (struct user_regs_struct): Likewise.
8136 (struct user): Likewise.
8137 Add 32-bit x86 compatibility.
8139 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
8141 2002-03-19 Andreas Jaeger <aj@suse.de>
8143 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
8145 2002-03-18 Andreas Jaeger <aj@suse.de>
8147 * iconvdata/Makefile: Only run tests when shared libs are
8150 2002-03-17 Andreas Jaeger <aj@suse.de>
8152 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
8154 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
8156 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
8159 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
8160 (CAUSE_SHIFT): New macro.
8161 Patch by Hartvig Ekner <hartvige@mips.com>.
8163 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
8164 * sysdeps/generic/unwind-pe.h: Likewise.
8166 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
8169 * libio/stdio.c (AL2): Define variant when visibility attribute is
8172 * include/libc-symbols.h (_INTVARDEF): Define variant when
8173 visibility attribute is not supported.
8175 2002-03-16 Ulrich Drepper <drepper@redhat.com>
8177 * po/fr.po: Update from translation team.
8179 2002-02-25 Bruno Haible <bruno@clisp.org>
8181 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
8183 2002-03-15 Ulrich Drepper <drepper@redhat.com>
8185 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
8186 buffers if _IO_file_attach failed.
8188 * libio/fileops.c (_IO_file_open): Close file descriptor if
8189 _IO_SEEKOFF call failed.
8191 2002-03-15 H.J. Lu <hjl@gnu.org>
8192 Ulrich Drepper <drepper@redhat.com>
8194 * configure.in: Check for availability of
8195 init_array/fini_array/preinit_array handling in binutils.
8196 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
8197 * config.make.in (have-initfini-array): New variable.
8199 2002-03-15 Ulrich Drepper <drepper@redhat.com>
8201 * stdio-common/tst-printf.c (main): Comment out one test which
8202 checked the compiler's ability to fold floating-point constants
8203 but not really printf.
8204 (rfg3): Make s const.
8205 * stdio-common/tst-printf.sh: Adjust for removed test.
8207 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
8208 internal function. Adjust for internal_function calling convention.
8209 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
8210 as internal_function.
8212 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
8215 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
8216 declaration and definition.
8217 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
8219 * nss/getXXent_r.c: Likewise.
8220 * nss/nsswitch.h (db_lookup_function): Add internal_function to
8223 * include/time.h: Declare __localtime_r as hidden.
8225 * include/aliases.h: Declare __getaliasent_r as hidden.
8226 * include/grp.h: Declare __getgrent_r as hidden.
8227 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
8228 __getservent_r, and __getprotoent_r as hidden.
8229 * include/pwd.h: Declare __getpwent_r as hidden.
8230 * include/shadow.h: Declare __getspent_r as hidden.
8231 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
8233 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
8234 and __gconv_transliterate as hidden.
8235 Add internal_function to __gconv_get_path declaration.
8236 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
8237 definition. Add attribute_hidden to __gconv_read_conf definition.
8239 2002-03-14 Ulrich Drepper <drepper@redhat.com>
8241 * elf/rtld.c: Declare _environ as hidden.
8242 * sysdeps/generic/dl-environ.c: Likewise.
8243 * sysdeps/generic/dl-sysdep.c: Likewise.
8245 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
8246 _dl_mcount_internal as hidden.
8248 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
8249 * sysdeps/generic/dl-brk.c: New file.
8250 * sysdeps/generic/dl-sbrk.c: New file.
8251 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
8252 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
8254 * elf/dl-minimal.c (malloc): Declare _end as hidden.
8255 (__errno_location): New function. Declare errno as hidden.
8256 * elf/rtld.c (_dl_argc): Define as hidden.
8257 (_dl_skip_args): Define as hidden.
8258 (_begin, _end): Declare as hidden.
8259 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
8260 * sysdeps/generic/entry.h (_start): Declare as hidden.
8261 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
8262 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
8263 _dl_runtime_resolve and _dl_runtime_profile as hidden.
8264 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
8266 2002-03-14 Roland McGrath <roland@frob.com>
8268 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
8270 * Makeconfig (%.v.i, %.v): New implicit rules.
8271 (preprocess-versions): Variable removed.
8272 ($(common-objpfx)shlib-versions.v.i): New target giving just the
8273 shlib-versions input files as dependencies.
8274 ($(common-objpfx)soversions.i): Depend on that instead of the input
8275 files. Use it as input instead of using a pipeline.
8276 (postclean-generated): Append soversions.i, shlib-versions.v, and
8277 shlib-versions.v.i here.
8278 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
8279 the Versions.def input files as dependencies.
8280 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
8281 ($(common-objpfx)Versions.all): Depend on that instead of the input
8282 files. Use it as input instead of using a pipeline.
8283 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
8284 (postclean-generated): Append those .v and .v.i files here.
8286 2002-03-14 Jakub Jelinek <jakub@redhat.com>
8288 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
8289 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
8292 2002-03-14 Jakub Jelinek <jakub@redhat.com>
8294 * sysdeps/generic/mp_clz_tab.c: New file.
8295 * sysdeps/i386/mp_clz_tab.c: New file.
8296 * sysdeps/hppa/mp_clz_tab.c: New file.
8297 * sysdeps/powerpc/mp_clz_tab.c: New file.
8298 * stdlib/Makefile (aux): Revert last patch.
8299 * math/Makefile (gmp-objs): Likewise.
8301 2002-03-13 Paul Eggert <eggert@twinsun.com>
8303 * time/strftime.c: Comment fixes for references to obsolescent
8304 standards, In most cases the simplest fix is to remove the
8305 confusing comments. Cross-referencing all the standards properly
8306 is a bit of a pain, and it should be enough to put that info in
8307 the documentation as I did in my recent time.texi patch.
8309 2002-03-13 Paul Eggert <eggert@twinsun.com>
8311 * manual/time.texi (Formatting Calendar Time):
8312 ISO C99 also specifies the E and O modifiers.
8313 %P is a GNU extension, and is not in ISO C99.
8314 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
8315 %T is also in ISO C99.
8316 The RFC 822 example is not valid in arbitrary locales.
8317 Reword the POSIX.2 wording slightly, to make it a bit clearer
8318 that POSIX.2 formats are also supported by later POSIX versions.
8319 If a format was introduced in ISO C99 it is also required by
8322 2002-03-13 Ulrich Drepper <drepper@redhat.com>
8324 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
8325 _sys_nerr_internal with INTVARDEF2.
8326 * include/libc-symbols.h (INTVARDEF2): New macro.
8327 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
8328 (_sys_nerr_internal): Library.
8330 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
8331 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
8333 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
8335 2002-03-13 Wolfram Gloger <wg@malloc.de>
8337 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
8339 2002-03-02 Andreas Schwab <schwab@suse.de>
8341 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8342 'h' flag and positional arg.
8343 * stdio-common/tst-printf.c (rfg3): New function to test
8344 positional arguments.
8345 (main): Fix some warnings.
8347 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8349 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8350 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8352 2002-03-13 Ulrich Drepper <drepper@redhat.com>
8354 * grp/initgroups.c (__nss_group_data): Declare as hidden.
8356 * include/locale.h (_nl_C_locobj): Declare as hidden.
8358 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8359 * time/strptime.c (_nl_C_LC_TIME): Likewise.
8361 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8363 * include/sys/gmon.h: Declare _gmonparam as hidden.
8365 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8366 (__ctype32_wctrans): Likewise.
8367 (__ctype32_width): Likewise.
8369 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8372 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8374 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
8375 hidden. Change all users of these variables.
8377 * posix/regex_internal.h (__re_error_msgid): Renamed from
8378 re_error_msgid. Declare as hidden.
8379 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
8382 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8383 (__printf_function_table): Likewise.
8384 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8386 (__printf_function_table): Likewise.
8388 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8389 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8391 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8392 * nss/nsswitch.c: Declare _nss_*_database as hidden.
8394 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8395 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8397 2002-03-12 Ulrich Drepper <drepper@redhat.com>
8399 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8400 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8401 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8402 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8403 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8404 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8405 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8406 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8407 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8408 _nl_C_LC_CTYPE_width: Declare as hidden.
8409 * include/locale.h: Declare _nl_locale_file_list.
8410 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8411 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8412 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8413 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8414 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8415 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8416 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8417 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8418 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8419 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8420 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8421 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8422 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8423 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8424 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8425 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8426 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8427 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8428 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8429 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8430 _nl_C_LC_CTYPE_width, and as hidden.
8431 * locale/findlocale.c: Declare _nl_C as hidden.
8432 * locale/newlocale.c: Likewise.
8433 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
8434 _nl_locale_file_list.
8435 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8436 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8437 Define _nl_C_locobj as hidden.
8439 * malloc/mtrace.c (_mtrace_file): Define as hidden.
8440 (_mtrace_line): Likewise.
8442 * include/time.h: Declare __mon_yday as hidden.
8443 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8445 * libio/libioP.h: Declare __libio_codecvt as hidden.
8446 * libio/fileops.c: Declare __libio_translit as hidden.
8447 * libio/iofwide.c: Define __libio_translit as hidden.
8449 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8450 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8451 * login/getutline_r.c: Likewise.
8452 * login/utmpname.c: Likewise.
8454 * login/utmp-private.h: Declare __libc_utmp_file_functions,
8455 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8456 __libc_utmp_file_name as hidden.
8458 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8459 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8460 * locale/freelocale.c: Likewise.
8461 * locale/lc-time.c: Likewise.
8463 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8464 (__libc_ptyname2): Likewise.
8465 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8467 (__libc_ptyname2): Likewise.
8469 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8470 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8471 * sysdeps/generic/init-first.c: Likewise.
8472 * sysdeps/i386/init-first.c: Likewise.
8473 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8474 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8475 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8476 * sysdeps/sh/init-first.c: Likewise.
8477 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8478 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8480 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8481 (_itowa_upper_digits): Likewise.
8483 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8484 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8487 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8488 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8489 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8490 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8492 * gmon/gmon.c (__bb_head): Define as hidden.
8493 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8495 * argp/argp-parse.c (_argp_hang): Define as static.
8497 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8498 handling in latest compilers.
8500 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8502 * libio/fileops.c (_IO_file_jumps): Likewise.
8503 * libio/stdfiles.c (_IO_list_all): Likewise.
8504 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8506 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8508 * include/malloc.h: Add __libc_malloc_initialized declaration
8509 here. Mark variable hidden.
8510 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8512 * elf/dl-open.c (__libc_argc): Declare as hidden.
8513 (__libc_argv): Likewise.
8514 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8515 (__libc_argv): Likewise.
8516 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8517 __libc_argv as hidden.
8518 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8519 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8520 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8521 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8523 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8524 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8525 * stdlib/erand48.c: Likewise.
8526 * stdlib/jrand48.c: Likewise.
8527 * stdlib/lcong48.c: Likewise.
8528 * stdlib/lrand48.c: Likewise.
8529 * stdlib/mrand48.c: Likewise.
8530 * stdlib/nrand48.c: Likewise.
8531 * stdlib/seed48.c: Likewise.
8532 * stdlib/srand48.c: Likewise.
8534 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8535 (_itoa_lower_digits_internal): New declaration.
8536 (_itoa_upper_digits_internal): New declaration.
8537 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8538 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8539 (_itoa_upper_digits_internal): New declaration.
8540 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8542 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8543 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8545 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8546 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8548 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8549 (_itowa_lower_digits): Likewise.
8550 (_itowa_upper_digits): Likewise.
8551 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8552 (_itowa_upper_digits): Likewise.
8554 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8555 not already defined.
8556 (GERMANIC_PLURAL): Declare as hidden.
8558 * posix/getopt.c (__getopt_initialized): Declare as hidden.
8559 (attribute_hidden): Define as empty macro if not already defined.
8561 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8562 (__gconv_max_path_elem_len): Likewise.
8563 (__gconv_path_envvar): Likewise.
8565 * math/Makefile (gmp-objs): Remove mp_clz_tab.
8566 * stdlib/Makefile (aux): Remove mp_clz_tab.
8567 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
8569 * stdlib/exit.h (__exit_funcs): Declare as hidden.
8571 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8573 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8574 _nl_category_names, _nl_category_name_sizes, _nl_current,
8575 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8577 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8578 (_nl_current_default_domain): Likewise
8579 (_nl_state_lock): Likewise.
8580 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8581 (_nl_current_default_domain): Likewise
8582 (_nl_state_lock): Likewise.
8583 * intl/bindtextdom.c (_nl_state_lock): Likewise.
8585 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8586 (_fpioconst_pow10): Likewise.
8588 * include/time.h (_tmbuf): Add attribute_hidden.
8590 * time/tzset.c (tzstring_list): Define as static.
8592 * include/time.h: Add attribute_hidden to __tzname_cur_max and
8593 __use_tzfile declaration.
8595 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8596 and __wcsmbs_last_locale declaration.
8598 2002-02-25 Paul Eggert <eggert@twinsun.com>
8600 * timezone/Makefile (tzbases): Move systemv from here...
8601 (tzlinks): to here, since the entries in systemv were all changed
8602 from Zone to Link lines in tz-2001a. Bug reported (and patch
8603 tested) by Peter Breitenlohner.
8605 2002-03-07 Jakub Jelinek <jakub@redhat.com>
8607 * time/tst-posixtz.c (tests): Add new tests.
8608 (main): Test whether tzset() sets daylight properly.
8610 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8612 * time/tzset.c (tz_compute): Move __daylight, __tzname and
8613 __tzname_cur_max setting...
8614 (tzset_internal): ...here.
8616 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8618 * time/tzset.c (compute_change): Don't return any value.
8619 (tz_compute): Likewise. Don't handle southern hemisphere here.
8620 (__tz_convert): But here.
8622 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8624 * manual/examples/mkfsock.c: Include <string.h> as well.
8625 Patch by Alain De Carolis <alaind@wseurope.com>.
8627 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
8629 * posix/regexec.c (re_match): Fix incorrect register sizes.
8630 (re_search): Likewise.
8632 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8634 * posix/regcomp.c (regfree): Remove a disused condition.
8635 * posix/regex_internal.c (re_acquire_state): Likewise.
8636 (re_acquire_state_context): Likewise.
8637 (register_state): Remove a redundant malloc invocation.
8638 * posix/regex_internal.h: (re_state_table_entry): Simplify
8641 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8643 * posix/regcomp.c (regcomp): Add __builtin_expect to error
8644 handling conditions.
8645 (regerror): Likewise.
8646 (regfree): Likewise.
8647 (re_compile_internal): Likewise.
8648 (init_dfa): Likewise.
8649 (init_word_char): Likewise.
8650 (create_initial_state): Likewise.
8651 (analyze): Likewise.
8652 (analyze_tree): Likewise.
8653 (duplicate_node): Likewise.
8654 (calc_eclosure): Likewise.
8655 (calc_eclosure_iter): Likewise.
8657 (parse_reg_exp): Likewise.
8658 (parse_branch): Likewise.
8659 (parse_expression): Likewise.
8660 (parse_subexp): Likewise.
8661 (parse_dup_op): Likewise.
8662 (parse_bracket_exp): Likewise.
8663 (build_equiv_class): Likewise.
8664 (build_charclass): Likewise.
8665 (build_word_op): Likewise.
8666 (fetch_number): Likewise.
8667 (create_tree): Likewise.
8668 (duplicate_tree): Likewise.
8669 * posix/regex.c (BE): New macro.
8670 * posix/regexec.c (re_match): Add __builtin_expect to error
8671 handling conditions.
8672 (re_match_2): Likewise.
8673 (re_search): Likewise.
8674 (re_search_internal): Likewise.
8675 (check_matching): Likewise.
8676 (proceed_next_node): Likewise.
8677 (set_regs): Likewise.
8678 (sift_states_backward): Likewise.
8679 (add_epsilon_backreference): Likewise.
8680 (transit_state): Likewise.
8681 (transit_state_sb): Likewise.
8682 (transit_state_mb): Likewise.
8683 (transit_state_bkref): Likewise.
8684 (transit_state_bkref_loop): Likewise.
8685 (build_trtable): Likewise.
8686 (group_nodes_into_DFAstates): Likewise.
8687 (match_ctx_init): Likewise.
8688 (match_ctx_add_entry): Likewise.
8689 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8690 to error handling conditions.
8691 (re_string_construct_toupper): Likewise.
8692 (build_wcs_buffer): Likewise.
8693 (build_wcs_upper_buffer): Likewise.
8694 (build_upper_buffer): Likewise.
8695 (re_string_translate_buffer): Likewise.
8696 (re_node_set_alloc): Likewise.
8697 (re_node_set_init_1): Likewise.
8698 (re_node_set_init_2): Likewise.
8699 (re_node_set_init_copy): Likewise.
8700 (re_node_set_intersect): Likewise.
8701 (re_node_set_init_union): Likewise.
8702 (re_node_set_merge): Likewise.
8703 (re_node_set_insert): Likewise.
8704 (re_dfa_add_node): Likewise.
8705 (re_acquire_state): Likewise.
8706 (re_acquire_state_context): Likewise.
8707 (create_new_state_common): Likewise.
8708 (register_state): Likewise.
8709 (create_ci_new_state): Likewise.
8710 (create_cd_new_state): Likewise.
8711 (re_string_context_at): Remove redundant condition.
8713 2002-01-16 Roger Sayle <roger@eyesopen.com>
8715 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8717 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8719 2002-03-11 Jakub Jelinek <jakub@redhat.com>
8721 * sysdeps/i386/elf/configure.in: Fix comment.
8723 * sysdeps/sparc/sparc64/configure.in: New file.
8724 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8725 if .dynamic comes before .got.
8726 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8728 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8729 HP_TIMING_ACCUM): Fix typos.
8731 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8733 * string/strfry.c: Add some more randomness to the seed.
8734 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8736 * po/es.po: Update from translation team.
8737 * po/fr.po: Likewise.
8739 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8741 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8742 when determining type of format.
8743 Patch by James Antill <james@anqd.org> [PR libc/2787].
8745 2002-03-04 Jakub Jelinek <jakub@redhat.com>
8747 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8749 2002-03-11 Roland McGrath <roland@frob.com>
8751 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8753 * Versions.def (libc): Add GLIBC_2.2.6.
8754 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8755 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8756 __errno_location instead of __hurd_errno_location, and don't inline it.
8757 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8758 * hurd/errno.c: New file.
8759 * hurd/Makefile (routines): Add errno.
8761 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8763 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8764 ridiculously large widths and precisions [PR libc/3026].
8766 2002-03-11 Andreas Jaeger <aj@suse.de>
8768 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8770 Patch by Susanne Oberhauser <froh@SuSE.de>.
8772 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8774 * inet/rexec.c (ahostbuf): Define as static.
8776 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8777 (__ctype32_wctrans): Likewise.
8778 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8779 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8780 (__ctype32_wctrans): Likewise.
8781 (__ctype32_width): Likewise.
8783 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8784 They were never exported anyway.
8786 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8787 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
8789 * include/sys/gmon.h: Declare _gmonparam.
8791 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8792 symbols for getdents64. They were never exported.
8794 2002-03-09 Roland McGrath <roland@frob.com>
8796 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8797 Reported by Jon Arney <jarney1@cox.net>.
8799 2002-02-23 Roland McGrath <roland@frob.com>
8801 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8803 (__hurd_errno_location): Function removed.
8805 2002-03-06 Andreas Jaeger <aj@suse.de>
8807 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8810 2002-03-04 Andreas Jaeger <aj@suse.de>
8812 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8814 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8817 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8819 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8821 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8823 * sysdeps/x86_64/bits/setjmp.h: New file.
8825 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8827 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8829 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8831 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8832 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8834 2002-02-28 Bo Thorsen <bo@suse.de>
8836 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8839 2002-03-03 Andreas Jaeger <aj@suse.de>
8841 * sysdeps/x86_64/bits/wordsize.h: New file.
8843 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8844 * elf/tst-tlsmod1.c: Likewise.
8846 * posix/regcomp.c: Get regex.h from include dir for internal
8849 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8850 to libc-internal.h and include it.
8851 * include/libc-internal.h: Add __init_misc.
8853 * misc/init-misc.c: Include libc-internal.h for prototypes.
8855 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8857 * misc/error.c [_LIBC]: Include libioP.h for prototype of
8860 2002-03-03 Ulrich Drepper <drepper@redhat.com>
8862 * posix/regcomp.c: Compatibility changes to allow using the code
8865 2002-02-28 Hartvig Ekner <hartvige@mips.com>
8867 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8870 2002-03-02 Ulrich Drepper <drepper@redhat.com>
8872 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8873 of .str elements in the returned data structure.
8875 * elf/elf.h: Add Alpha TLS bits.
8877 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8879 * sysdeps/unix/sysv/linux/nice.c: New file.
8881 2002-03-01 Ulrich Drepper <drepper@redhat.com>
8883 * elf/Makefile (dl-routines): Add dl-origin.
8884 (elide-routines.os): Add dl-origin.
8885 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8886 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8888 * include/libc-symbols.c: Define attribute_hidden depending on
8889 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
8891 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8892 * elf/dl-load.c: Likewise.
8893 * elf/rtld.c: Likewise.
8894 * include/unistd.h: Declare __libc_enable_secure_internal.
8895 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8896 Use INTUSE with __libc_enable_secure.
8897 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8899 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8900 * elf/dl-error.c: Likewise,
8901 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8903 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8904 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8905 function definition. Use INTDEF with _dl_get_origin.
8906 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8908 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8909 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
8911 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8912 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8913 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8915 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8916 * elf/dl-deps.c: Likewise.
8917 * elf/dl-error.c: Likewise.
8918 * elf/dl-fini.c: Likewise.
8919 * elf/dl-init.c: Likewise.
8920 * elf/dl-load.c: Likewise.
8921 * elf/dl-lookup.c: Likewise.
8922 * elf/dl-reloc.c: Likewise.
8923 * elf/dl-version.c: Likewise.
8924 * elf/do-lookup.h: Likewise.
8925 * sysdeps/arm/dl-machine.h: Likewise.
8926 * sysdeps/cris/dl-machine.h: Likewise.
8927 * sysdeps/hppa/dl-machine.h: Likewise.
8928 * sysdeps/i386/dl-machine.h: Likewise.
8929 * sysdeps/m68k/dl-machine.h: Likewise.
8930 * sysdeps/powerpc/dl-machine.h: Likewise.
8931 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8932 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8933 * sysdeps/sh/dl-machine.h: Likewise.
8934 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8935 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8936 * sysdeps/x86_64/dl-machine.h: Likewise.
8937 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
8938 _dl_argv[0]. Use INTUSE with _dl_argv.
8939 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8940 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8942 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8944 * elf/rtld.c (_rtld_global): Remove .protected.
8945 (_rtld_local): Strong alias to _rtld_global.
8946 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8948 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8949 _rtld_local instead of _rtld_global.
8950 (_rtld_local): Add hidden extern, possibly in .sdata section.
8951 * configure.in: Add tests for visibility attribute and .sdata.
8952 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8953 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8954 * sysdeps/arm/dl-machine.h: Likewise.
8955 * sysdeps/generic/ldsodefs.h: Likewise.
8956 * sysdeps/hppa/dl-machine.h: Likewise.
8957 * sysdeps/cris/dl-machine.h: Likewise.
8958 * sysdeps/i386/dl-machine.h: Likewise.
8959 * sysdeps/ia64/dl-machine.h: Likewise.
8960 * sysdeps/m68k/dl-machine.h: Likewise.
8961 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8962 * sysdeps/mips/dl-machine.h: Likewise.
8963 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8964 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8965 * sysdeps/sh/dl-machine.h: Likewise.
8966 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8967 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8968 * sysdeps/x86_64/dl-machine.h: Likewise.
8970 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8972 * login/login.c (login): Always initialize ut_line field
8975 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8977 * sysdeps/i386/Makefile (sysdep_routines): Add
8979 (shared-only-routines): Likewise.
8980 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8981 (shared-only-routines): Likewise.
8982 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8983 (shared-only-routines): Likewise.
8984 * sysdeps/wordsize-32/divdi3.c: New file.
8986 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8988 * locale/iso-4217.def: Remove obsolete currencies for countries
8991 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
8993 * posix/regcomp.c (regcomp): Remove a redundant condition.
8994 (init_word_char): Add a check on malloc failure.
8995 (create_initial_state): Likewise.
8996 (duplicate_node): Likewise.
8997 (calc_eclosure): Likewise.
8998 (calc_eclosure_iter): Likewise.
8999 (parse_expression): Likewise.
9000 (parse_bracket_exp): Remove unnecessary malloc invocations.
9001 (build_equiv_class): Likewise.
9002 (build_charclass): Likewise.
9003 * posix/regex_internal.c (re_node_set_intersect): Add a check
9005 (re_node_set_add_intersect): Likewise.
9006 (re_node_set_merge): Likewise.
9007 (re_acquire_state): Likewise.
9008 (re_acquire_state_context): Likewise.
9009 (create_newstate_common): Likewise.
9010 (register_state): Likewise.
9011 (create_ci_newstate): Likewise.
9012 (create_cd_newstate): Likewise.
9013 * posix/regex_internal.h: Fix prototypes of re_acquire_state
9014 and re_acquire_state_context.
9015 * posix/regexec.c (regexec): Suit it to the error handling of
9017 (re_match): Likewise.
9018 (re_search): Likewise.
9019 (re_search_internal): Add a check on malloc failure.
9020 (acquire_init_state_context): Likewise.
9021 (check_matching): Likewise.
9022 (proceed_next_node): Likewise.
9023 (set_regs): Likewise.
9024 (sift_states_backward): Likewise.
9025 (sift_states_iter_bkref): Likewise.
9026 (add_epsilon_backreference): Likewise.
9027 (transit_state): Likewise.
9028 (transit_state_sb): Likewise.
9029 (transit_state_mb): Likewise.
9030 (transit_state_bkref_loop): Likewise.
9031 (build_trtable): Likewise.
9032 (group_nodes_into_DFAstates): Likewise.
9033 (match_ctx_init): Likewise.
9034 (match_ctx_add_entry): Likewise.
9036 2002-02-27 Ulrich Drepper <drepper@redhat.com>
9038 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
9039 l_libname if profiling is enabled [PR libc/2916].
9041 * sysdeps/ia64/dl-tls.h: New file.
9043 2002-02-27 Jakub Jelinek <jakub@redhat.com>
9045 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
9046 Work around an Alpha gas bug.
9048 2002-02-27 Ulrich Drepper <drepper@redhat.com>
9050 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
9051 uses read to load the catalog.
9052 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
9054 2002-02-26 Ulrich Drepper <drepper@redhat.com>
9056 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
9057 regex_internal.c, and regex_internal.h.
9058 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
9059 * posix/regex.c: Complete rewrite.
9060 * posix/regexec.c: New file.
9061 * posix/regcomp.c: New file.
9062 * posix/regex_internal.c: New file.
9063 * posix/regex_internal.h: New file.
9064 * posix/regex.h (RE_ICASE): New macro.
9065 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
9067 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
9068 ungetwc. It's a macro.
9069 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
9071 Reported by Jason Merrill <jason@redhat.com>.
9073 2002-02-25 Jakub Jelinek <jakub@redhat.com>
9075 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
9076 position to fp->_offset if it is set.
9077 * stdio-common/Makefile (tests): Add tst-fdopen.
9078 * stdio-common/tst-fdopen.c: New test.
9080 2002-02-25 Jakub Jelinek <jakub@redhat.com>
9082 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
9083 * stdio-common/tst-ungetc.c (main): Add another test.
9085 2002-02-25 Ulrich Drepper <drepper@redhat.com>
9087 * assert/assert-perr.c: Use INTUSE to reference functions and variables
9088 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
9089 aliases. Add prototypes for the new aliases.
9090 * assert/assert.c: Likewise.
9091 * include/libc-symbols.h: Likewise.
9092 * include/stdio.h: Likewise.
9093 * include/netinet/in.h: Likewise.
9094 * include/rpc/auth.h: Likewise.
9095 * include/rpc/auth_unix.h: Likewise.
9096 * include/rpc/key_prot.h: Likewise.
9097 * include/rpc/pmap_prot.h: Likewise.
9098 * include/rpc/pmap_rmt.h: Likewise.
9099 * include/rpc/rpc_msg.h: Likewise.
9100 * include/rpc/xdr.h: Likewise.
9101 * inet/gethstbyad_r.c: Likewise.
9102 * inet/gethstbynm2_r.c: Likewise.
9103 * inet/gethstbynm_r.c: Likewise.
9104 * inet/gethstent_r.c: Likewise.
9105 * inet/in6_addr.c: Likewise.
9106 * libio/__fpurge.c: Likewise.
9107 * libio/filedoalloc.c: Likewise.
9108 * libio/fileops.c: Likewise.
9109 * libio/ftello.c: Likewise.
9110 * libio/ftello64.c: Likewise.
9111 * libio/genops.c: Likewise.
9112 * libio/iofclose.c: Likewise.
9113 * libio/iofdopen.c: Likewise.
9114 * libio/iofflush.c: Likewise.
9115 * libio/iofflush_u.c: Likewise.
9116 * libio/iofgetpos.c: Likewise.
9117 * libio/iofgetpos64.c: Likewise.
9118 * libio/iofgets.c: Likewise.
9119 * libio/iofgets_u.c: Likewise.
9120 * libio/iofopen.c: Likewise.
9121 * libio/iofopncook.c: Likewise.
9122 * libio/iofputs.c: Likewise.
9123 * libio/iofread.c: Likewise.
9124 * libio/iofread_u.c: Likewise.
9125 * libio/iofsetpos.c: Likewise.
9126 * libio/iofsetpos64.c: Likewise.
9127 * libio/ioftell.c: Likewise.
9128 * libio/iofwrite.c: Likewise.
9129 * libio/iogetline.c: Likewise.
9130 * libio/iogets.c: Likewise.
9131 * libio/iogetwline.c: Likewise.
9132 * libio/iolibio.h: Likewise.
9133 * libio/iopadn.c: Likewise.
9134 * libio/iopopen.c: Likewise.
9135 * libio/ioseekoff.c: Likewise.
9136 * libio/ioseekpos.c: Likewise.
9137 * libio/iosetbuffer.c: Likewise.
9138 * libio/iosetvbuf.c: Likewise.
9139 * libio/ioungetc.c: Likewise.
9140 * libio/ioungetwc.c: Likewise.
9141 * libio/iovdprintf.c: Likewise.
9142 * libio/iovsprintf.c: Likewise.
9143 * libio/iovsscanf.c: Likewise.
9144 * libio/libioP.h: Likewise.
9145 * libio/memstream.c: Likewise.
9146 * libio/obprintf.c: Likewise.
9147 * libio/oldfileops.c: Likewise.
9148 * libio/oldiofclose.c: Likewise.
9149 * libio/oldiofdopen.c: Likewise.
9150 * libio/oldiofgetpos.c: Likewise.
9151 * libio/oldiofgetpos64.c: Likewise.
9152 * libio/oldiofopen.c: Likewise.
9153 * libio/oldiofsetpos.c: Likewise.
9154 * libio/oldiofsetpos64.c: Likewise.
9155 * libio/oldiopopen.c: Likewise.
9156 * libio/oldstdfiles.c: Likewise.
9157 * libio/putc.c: Likewise.
9158 * libio/setbuf.c: Likewise.
9159 * libio/setlinebuf.c: Likewise.
9160 * libio/stdfiles.c: Likewise.
9161 * libio/stdio.c: Likewise.
9162 * libio/strops.c: Likewise.
9163 * libio/vasprintf.c: Likewise.
9164 * libio/vscanf.c: Likewise.
9165 * libio/vsnprintf.c: Likewise.
9166 * libio/vswprintf.c: Likewise.
9167 * libio/wfiledoalloc.c: Likewise.
9168 * libio/wfileops.c: Likewise.
9169 * libio/wgenops.c: Likewise.
9170 * libio/wstrops.c: Likewise.
9171 * malloc/mtrace.c: Likewise.
9172 * misc/error.c: Likewise.
9173 * misc/syslog.c: Likewise.
9174 * nss/getXXbyYY_r.c: Likewise.
9175 * nss/getXXent_r.c: Likewise.
9176 * nss/hosts-lookup.c: Likewise.
9177 * stdio-common/getw.c
9178 * stdio-common/printf-prs.c: Likewise.
9179 * stdio-common/printf_fp.c: Likewise.
9180 * stdio-common/printf_size.c: Likewise.
9181 * stdio-common/putw.c: Likewise.
9182 * stdio-common/scanf.c: Likewise.
9183 * stdio-common/sprintf.c: Likewise.
9184 * stdio-common/tmpfile64.c: Likewise.
9185 * stdio-common/vfprintf.c: Likewise.
9186 * stdio-common/vfscanf.c: Likewise.
9187 * stdlib/strfmon.c: Likewise.
9188 * sunrpc/auth_des.c: Likewise.
9189 * sunrpc/auth_none.c: Likewise.
9190 * sunrpc/auth_unix.c: Likewise.
9191 * sunrpc/authdes_prot.c: Likewise.
9192 * sunrpc/authuxprot.c: Likewise.
9193 * sunrpc/clnt_perr.c: Likewise.
9194 * sunrpc/clnt_raw.c: Likewise.
9195 * sunrpc/clnt_tcp.c: Likewise.
9196 * sunrpc/clnt_udp.c: Likewise.
9197 * sunrpc/clnt_unix.c: Likewise.
9198 * sunrpc/key_call.c: Likewise.
9199 * sunrpc/key_prot.c: Likewise.
9200 * sunrpc/openchild.c: Likewise.
9201 * sunrpc/pm_getmaps.c: Likewise.
9202 * sunrpc/pm_getport.c: Likewise.
9203 * sunrpc/pmap_clnt.c: Likewise.
9204 * sunrpc/pmap_prot.c: Likewise.
9205 * sunrpc/pmap_prot2.c: Likewise.
9206 * sunrpc/pmap_rmt.c: Likewise.
9207 * sunrpc/rpc_cmsg.c: Likewise.
9208 * sunrpc/rpc_prot.c: Likewise.
9209 * sunrpc/svc_authux.c: Likewise.
9210 * sunrpc/svc_raw.c: Likewise.
9211 * sunrpc/svc_simple.c: Likewise.
9212 * sunrpc/svc_tcp.c: Likewise.
9213 * sunrpc/svc_udp.c: Likewise.
9214 * sunrpc/svc_unix.c: Likewise.
9215 * sunrpc/xdr.c: Likewise.
9216 * sunrpc/xdr_array.c: Likewise.
9217 * sunrpc/xdr_mem.c: Likewise.
9218 * sunrpc/xdr_rec.c: Likewise.
9219 * sunrpc/xdr_ref.c: Likewise.
9220 * sunrpc/xdr_stdio.c: Likewise.
9221 * sysdeps/generic/_strerror.c: Likewise.
9222 * sysdeps/generic/printf_fphex.c: Likewise.
9223 * sysdeps/generic/tmpfile.c: Likewise.
9224 * sysdeps/gnu/errlist.awk: Likewise.
9225 * sysdeps/gnu/errlist.c: Likewise.
9227 * libio/Makefile (routines): Remove iosprint.
9228 * libio/iosprintf.c: Removed
9231 2002-02-24 Ulrich Drepper <drepper@redhat.com>
9233 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
9234 non_dynamic_init and exported now.
9235 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
9236 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
9238 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
9239 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9240 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9242 2002-02-23 Ulrich Drepper <drepper@redhat.com>
9244 * elf/dl-close.c (free_slotinfo): Check for end of list and return
9247 * locale/iso-639.def: Add language codes for Walloon.
9249 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
9250 total number of relocations performed.
9252 * elf/sprof.c (load_profdata): If do_test provide information as
9253 to why loading failed.
9254 * elf/dl-profile.c (_dl_start_profile): Initialize all of
9257 * csu/set-init.c: Moved to...
9258 * sysdeps/mach/hurd/set-init.c: ...here. New file.
9259 * csu/Makefile: Don't compile set-init.
9260 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
9261 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
9263 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9264 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9265 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
9267 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
9270 2002-02-22 Ulrich Drepper <drepper@redhat.com>
9272 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
9273 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
9274 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
9275 (_dl_deallocate_tls): New function.
9276 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
9279 2002-02-21 Jakub Jelinek <jakub@redhat.com>
9281 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
9282 * stdio-common/tst-fseek.c (main): Add test for this.
9284 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
9286 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
9288 2002-02-19 Jakub Jelinek <jakub@redhat.com>
9290 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
9291 pointer before dereferencing.
9293 2002-02-18 Roland McGrath <roland@frob.com>
9295 * sysdeps/mach/hurd/times.c: Fix typo in last change.
9297 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
9298 Use task_policy in place of task_priority.
9300 * sysdeps/generic/bits/mman.h
9301 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
9302 * sysdeps/mach/msync.c: New file.
9304 * sysdeps/mach/powerpc/syscall.S: New file.
9306 * mach/msg.c [MACH_MSG_OVERWRITE]
9307 (__mach_msg_trap, __mach_msg_overwrite): New functions.
9308 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
9310 * sysdeps/mach/configure.in: Check for clock.defs to put into
9311 mach_interface_list.
9312 * sysdeps/mach/configure: Regenerated.
9314 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
9315 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
9316 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
9317 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
9318 (mach-shortcuts): Add device_read_overwrite_request,
9319 device_read_overwrite, vm_read_overwrite, thread_switch.
9321 * configure.in (base_machine): Set to $machine by default.
9322 * configure: Regenerated.
9324 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
9325 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
9326 * sysdeps/mach/configure: Regenerated.
9327 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
9329 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
9331 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
9333 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
9334 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
9336 2002-02-17 Roland McGrath <roland@frob.com>
9338 * sysdeps/mach/hurd/times.c
9339 [NO_CREATION_TIME] (startup_time): New static variable.
9340 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
9341 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9342 creation_time from task_basic_info.
9343 (__times): Use __gettimeofday instead of __host_get_time.
9345 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9346 Use untyped Mach IPC message format.
9348 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9350 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9351 _S_catch_exception_raise_state_identity,
9352 _hurdsig_fault_catch_exception_raise_state,
9353 _hurdsig_fault_catch_exception_raise_state_identity.
9355 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9357 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9358 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9360 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9361 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9363 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9364 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
9365 them as no-op macros.
9366 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9367 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9369 * sysdeps/powerpc/dl-machine.h
9370 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9372 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9373 Use untyped Mach IPC message format.
9375 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9376 Handle untyped Mach IPC message formats.
9378 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9379 Expect different argument conventions when this is defined.
9380 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9381 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9382 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9383 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9384 for OSF Mach variant.
9385 (faulted): Use mig_reply_error_t for REPLY.
9386 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9387 in __thread_set_exception_ports call.
9388 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9389 __mach_port_set_attributes in place of __mach_port_set_qlimit.
9391 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9392 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9393 on Darwin, which includes bogons.
9395 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9396 variable LOADBASE so it's not declared when it's not used.
9398 2002-02-16 Roland McGrath <roland@frob.com>
9400 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9401 to use BI.creation_time.
9403 * mach/Machrules (MIG): Add -x c to CPP value passed down.
9405 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9406 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9407 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9408 host_page_size instead of vm_statistics.
9410 * sysdeps/mach/Makefile (mach-before-compile): Don't include
9411 mach_interface.h here, since not all variants use that name.
9413 * sysdeps/mach/configure.in: Add some checks for Mach headers
9414 to ensure a sane installation.
9415 (mach_interface_list): Define this variable by checking for .defs
9416 files found in various variants.
9417 * configure.in (mach_interface_list): AC_SUBST this.
9418 * config.make.in (mach-interface-list): New substituted variable.
9419 * mach/Makefile (user-interfaces): Define this using the value
9420 of $(mach-interface-list) instead of mach, mach4.
9421 Updated other references to mach_interface to use it as well.
9423 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9425 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9426 mig_reply_error_t for OSF Mach variant.
9428 * mach/Makefile (routines): Remove bootprivport.
9429 * mach/bootprivport.c: File removed. It has never been used.
9431 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9432 Grok the OSF flavor of message format.
9433 (mach_msg_destroy_port): For MAKE_SEND and
9434 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9435 no-senders notification.
9437 2002-02-06 Roland McGrath <roland@frob.com>
9439 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9440 to here if 2.0 compatibility enabled ...
9441 (libc: GLIBC_2.1.3): ... from here.
9443 2002-02-15 Ulrich Drepper <drepper@redhat.com>
9445 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9447 * elf/dl-close.c (_dl_close): Likewise.
9449 2002-02-14 Ulrich Drepper <drepper@redhat.com>
9451 * elf/Makefile: Add rules to build and run tst-tls8.
9452 * elf/tst-tls8.c: New file.
9453 * elf/tst-tlsmod4.c: New file.
9455 * stdlib/test-a64l.c (tests): Add more test cases.
9457 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9458 Reported by Walter Harms <WHarms@bfs.de>.
9460 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
9462 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9463 definitions for struct sigcontext.
9464 Suggested by David Mosberger-Tang.
9466 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9468 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
9469 for removing reference of module in slotinfo list.
9470 (_dl_close): Use remove_slotinfo.
9471 * sysdeps/generic/dl-tls.c: General pretty printing.
9472 (oom): Define only if SHARED.
9473 (_dl_next_tls_modid): Correct starting point for the case we assume
9474 there is a gap. Add missing instruction grouping (doh!). Correct
9475 tests for reaching maximum index.
9476 * elf/Makefile: Add rules to build and run tst-tls7.
9477 * elf/tst-tls7.c: New file.
9478 * elf/tst-tlsmod3.c: New file.
9480 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9482 * elf/tst-tlsmod2.c: Likewise.
9484 * elf/dl-close.c (_dl_close): When closing an object using TLS
9485 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9486 true. Increment dl_tls_generation only if we closed any TLS-using
9488 * elf/tst-tls6.c: New file.
9489 * elf/Makefile: Add rules to build and run tst-tls6.
9491 * po/da.po: Update from translation team.
9493 * locale/categories.def: Fix typo [PR libc/2948].
9494 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9496 * locale/iso-4217.def: Update from official version [PR libc/2950].
9497 * glibcbug.in: Honor TMPDIR [PR libc/2951].
9498 * locale/programs/ld-collate.c (collate_finish): Bail out with a
9499 message if input is too confusion instead of using assert.
9500 (collate_read): Don't crash on unknown symbol [PR libc/2952].
9501 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9503 * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9504 * elf/tst-tls2.c: Likewise.
9505 * elf/tst-tls3.c: Likewise.
9507 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9509 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9511 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9513 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9514 if this is really necessary.
9516 * elf/dl-close.c (_dl_close): Implement freeing entries in the
9518 (free_mem): Free memory for the slotinfo array if possible.
9520 2002-02-12 Andreas Schwab <schwab@suse.de>
9522 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9524 2002-02-12 Ulrich Drepper <drepper@redhat.com>
9526 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9528 (oom): New function.
9529 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9530 (_dl_determine_tlsoffset): Likewise.
9531 (_dl_allocate_tls): Likewise.
9532 (__TLS_GET_ADDR): Define if not already defined.
9533 (_dl_tls_symaddr): New function.
9534 (allocate_and_init): New function.
9535 (__tls_get_addr): Actually implement handling of generation counter
9536 and deferred allocation.
9537 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9538 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9540 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9541 Declare _dl_tls_symaddr.
9542 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9544 * include/link.h (struct link_map): Remove l_tls_nextimage and
9546 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9547 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9548 (_dl_vsym): Likewise.
9549 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9551 (dl_main): Allow PT_TLS be present for empty segment. Remove
9552 nextimage list handling. Instead add all modules using TLS to
9553 dl_tls_dtv_slotinfo_list.
9554 * elf/dl-open.c (dl_open_worker): After successfully loading all
9555 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9556 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9557 empty segment don't do anything. Remove handling of initimage list.
9558 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9559 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9560 * elf/dl-minimal.c: Define __libc_memalign.
9561 * elf/dl-support.c: Remove _dl_initimage_list. Add
9562 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9564 * include/stdlib.h: Declare __libc_memalign.
9566 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9567 * elf/tst-tls4.c: New file.
9568 * elf/tst-tls5.c: New file.
9569 * elf/tst-tlsmod2.c: New file.
9571 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9573 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9575 * elf/tst-tls1.c: Use test-skeleton.c.
9576 * elf/tst-tls2.c: Likewise.
9577 * elf/tst-tls3.c: Likewise.
9579 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9581 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9583 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9585 2002-02-10 Ulrich Drepper <drepper@redhat.com>
9587 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9589 * elf/tst-tls3.c: New file.
9590 * elf/tst-tlsmod1.c: New file.
9591 * elf/Makefile: Add rules to build and run tst-tls3.
9593 * sysdeps/i386/dl-machine.h: Include <tls.h>.
9594 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9597 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9599 * po/fr.po: Update from translation team.
9601 * elf/tls-macros.h: Add alternative macros for use in PIC.
9603 * elf/dl-lookup.c: Include <tls.h>.
9604 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9606 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9607 required by passing pointer to last element of the list.
9609 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9610 l_tls_initimage to a place where it actually is performed.
9612 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9613 after globfree() calls.
9615 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9616 (openaux): Pass open_mode as new last argument to _dl_map_object.
9617 (_dl_map_object_deps): Add new argument open_mode. Initialize
9618 open_mode element of args variable with it.
9619 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9620 _dl_map_object_deps.
9621 * elf/rtld.c (dl_main): Add zero as last parameter to
9622 _dl_map_object_deps call.
9623 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9624 * elf/nodlopen2.c: New file.
9625 * elf/nodlopenmod2.c: New file.
9626 * elf/Makefile: Add rules to build and run nodlopen2.
9628 * elf/tst-tls1.c: Move TLS helper macros to...
9629 * elf/tls-macros.h: ...here. New file.
9630 * elf/tst-tls2.c: New file.
9631 * elf/Makefile (tests): Add tst-tls2.
9632 (distribute): Add tls-macros.h.
9634 * po/sv.po: Update from translation team.
9636 * elf/tst-tls1.c (main): Add complete set of tests. Split
9637 architecture specific definitions from the actual test code.
9639 * po/tr.po: Update from translation team.
9641 2002-02-09 Ulrich Drepper <drepper@redhat.com>
9643 * elf/Makefile (tests): Add tst-tls1.
9644 * elf/tst-tls1.c: New file.
9646 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9647 alignment of TCB for now.
9649 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9650 initialization image for the application itself.
9652 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9653 loop to initialize TLS block.
9655 2002-02-08 Richard Henderson <rth@redhat.com>
9657 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9658 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9660 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9662 2002-02-09 Jakub Jelinek <jakub@redhat.com>
9664 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9666 2002-02-08 Ulrich Drepper <drepper@redhat.com>
9668 * po/ca.po: Update from translation team.
9669 * po/sk.po: Likewise.
9671 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9672 (dl_main): Move dtv/static TLS handling before relocation.
9673 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
9674 TLS_INIT_TP to allocate and install the dtv/static TLS block.
9675 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9676 so far uses TLS initialize GL(dl_tls_static_size) and
9677 GL(dl_tls_static_align) to account for the TCB.
9678 (_dl_allocate_tls): New function.
9679 * sysdeps/generic/ldsodefs.h (rtld_global): Add
9680 _dl_initial_dtv_malloced.
9682 * configure.in: Test for __builtin_memset more realistically.
9684 * csu/version.c (banner): If TLS support is available say so.
9686 2002-02-04 H.J. Lu <hjl@gnu.org>
9688 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9690 (__dl_runtime_resolve): Likewise.
9692 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9695 2001-11-15 H.J. Lu <hjl@gnu.org>
9697 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9698 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9700 * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9702 2002-02-07 H.J. Lu <hjl@gnu.org>
9704 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9706 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9709 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9711 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9713 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9714 ___tls_get_addr_internal.
9715 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9717 * po/ko.po: Update from translation team.
9719 2002-02-07 Jakub Jelinek <jakub@redhat.com>
9721 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9722 attribute, change __pad{1,2} type to unsigned int.
9723 (struct stat64): Remove packed attribute.
9725 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9727 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9729 2002-02-07 Andreas Schwab <schwab@suse.de>
9731 * configure.in: Fix check for -zcombreloc.
9733 2002-02-06 H.J. Lu <hjl@gnu.org>
9735 * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9736 * configure.in: Check if __builtin_memset really works.
9737 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9738 __GNUC_PREREQ (2, 96) before using __builtin_memset.
9740 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9742 * io/bug-ftw3.c (main): Don't try the test if root.
9744 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
9746 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9748 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9749 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9750 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9752 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9753 a weak alias for __clone.
9754 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9755 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9756 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9757 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9758 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9759 a weak alias for __mmap64.
9761 2002-02-05 H.J. Lu <hjl@gnu.org>
9763 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9764 (atomic_add): Likewise.
9765 (compare_and_swap): Likewise.
9766 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9768 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9770 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9772 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9773 alignment of the TCB and store total size and alignment of static
9774 TLS block in _dl_tls_static_size and _dl_tls_static_align.
9775 tls_index is a typedef.
9776 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9777 _dl_tls_static_align.
9778 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9779 * elf/dl-support.c: Define _dl_tls_static_size and
9780 _dl_tls_static_align.
9782 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9784 * configure.in: Add --without-tls option.
9785 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9786 --without-tls is given.
9788 * sysdeps/generic/dl-tls.c: Include <tls.h>.
9790 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9792 2002-02-06 Roland McGrath <roland@frob.com>
9794 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9795 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9797 * scripts/versions.awk: Improve error message for missing version.
9798 Each version inherits from the last one only if they have the same
9799 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9800 but not GLIBC_x and FOO_y.
9802 * scripts/firstversions.awk: Handle libraries that don't have each
9803 particular version named in the third column of shlib-versions.
9805 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9807 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9809 * Versions.def [ld]: Add GLIBC_2.3.
9810 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9811 * elf/Makefile (dl-routines): Add dl-tls.
9812 (distribute): Add dl-tls.h.
9813 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9814 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9815 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9816 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9817 along with the other info in the link map. Change queueing of init
9818 images for double linked list. Use _dl_next_tls_modid to compute
9820 * elf/rtld.c (_dl_start_final): Store alignment requirement
9821 along with the other info in rtld map and executable map.
9822 (dl_main): Add ld.so to the init image list if necessary. Compute
9823 final module ID with _dl_next_tls_modid.
9824 * include/link.h (struct link_map): Add l_tls_previmage and
9826 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9827 * sysdeps/i386/elf/Versions: New file.
9828 * sysdeps/generic/dl-tls.c: New file.
9829 * sysdeps/generic/dl-tls.h: New file.
9830 * sysdeps/i386/dl-tls.h: New file.
9832 2002-02-06 Roland McGrath <roland@frob.com>
9834 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9835 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9837 2002-01-05 Roland McGrath <roland@frob.com>
9839 * sysdeps/mach/configure.in: New file.
9840 * sysdeps/mach/configure: New generated file.
9842 * mach/Makefile (user-interfaces): Remove default_pager_helper.
9843 It has never been used by anything.
9845 2002-02-06 H.J. Lu <hjl@gnu.org>
9847 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9850 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9852 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9853 attribute((packed)) to counter stupid people misusing gcc options.
9854 (struct stat64): Likewise.
9856 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9858 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
9859 the variables which are used as booleans.
9861 2002-02-06 Andreas Jaeger <aj@suse.de>
9863 * include/libc-symbols.h (INTUSE): Renamed from INT.
9864 * elf/dl-deps.c: Change users.
9865 * sysdeps/generic/dl-sysdep.c: Likewise.
9866 * sysdeps/generic/dl-cache.c: Likewise.
9867 * elf/dl-reloc.c: Likewise.
9868 * elf/rtld.c: Likewise.
9869 * elf/dl-version.c: Likewise.
9870 * elf/dl-load.c: Likewise.
9871 * elf/dl-dst.h: Likewise.
9872 * elf/dl-init.c: Likewise.
9873 * elf/dl-error.c: Likewise.
9874 * elf/dl-fini.c: Likewise.
9875 * elf/dl-runtime.c: Likewise.
9876 * elf/do-lookup.h: Likewise.
9878 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9880 * stdio-common/_itowa.h: Likewise.
9882 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9884 * elf/dl-minimal.c: Define _itoa_lower_digits.
9886 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9889 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9890 loading modules with the DF_STATIC_TLS flag set.
9891 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9893 * include/link.h (struct link_map): Add l_flags field.
9894 * elf/elf.h (DF_STATIC_TLS): New definition.
9896 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9897 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
9899 * elf/rtld.c (process_dl_debug): Correct printing help message.
9900 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9903 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9904 definition and pass &errno in use of this variable.
9905 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9907 2002-02-04 Andreas Schwab <schwab@suse.de>
9909 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9910 * locale/programs/charmap-dir.c: Wrap calls that output messages
9911 with WITH_CUR_LOCALE. Include "localedef.h" first.
9912 * locale/programs/charmap.c: Likewise.
9913 * locale/programs/ld-address.c: Likewise.
9914 * locale/programs/ld-collate.c: Likewise.
9915 * locale/programs/ld-ctype.c: Likewise.
9916 * locale/programs/ld-identification.c: Likewise.
9917 * locale/programs/ld-measurement.c: Likewise.
9918 * locale/programs/ld-messages.c: Likewise.
9919 * locale/programs/ld-monetary.c: Likewise.
9920 * locale/programs/ld-name.c: Likewise.
9921 * locale/programs/ld-numeric.c: Likewise.
9922 * locale/programs/ld-paper.c: Likewise.
9923 * locale/programs/ld-telephone.c: Likewise.
9924 * locale/programs/ld-time.c: Likewise.
9925 * locale/programs/linereader.c: Likewise.
9926 * locale/programs/linereader.h: Likewise.
9927 * locale/programs/localedef.c: Likewise.
9928 * locale/programs/locfile.c: Likewise.
9929 * locale/programs/repertoire.c: Likewise.
9931 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9933 * elf/rtld.c (_dl_start_final): Determine load address to locate
9934 ehdr with GL(dl_rtld_map).l_map_start.
9936 * po/ca.po: Update from translation team.
9938 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9939 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9941 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9943 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9945 2002-02-04 Ulrich Drepper <drepper@redhat.com>
9947 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9948 * include/link.h (struct link_map): Add various members for TLS
9950 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9951 _rtld_tlsoffset, add _dl_initimage_list.
9952 * sysdeps/i386/dl-lookupcfg.h: New file.
9953 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9954 TLS relocation. When using TLS we now use RESOLVE_MAP.
9955 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9958 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9961 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9962 thread-pointer as soon as possible.
9963 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
9964 elements in rtld_global.
9965 * sysdeps/generic/tls.h: New file.
9966 * elf/Makefile (distribute): Add tls.h.
9967 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9968 relocations. Not complete yet.
9970 * resolv/resolv.h: Allow user to define __need_res_state and only
9971 define __res_start structure then.
9972 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9974 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9975 dl_cpuclock_offset initialization to _dl_start_final.
9976 (_dl_show_auxv): Avoid unnecessary sign extension.
9977 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9979 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9981 * config.h.in: Add HAVE_TLS_SUPPORT.
9982 * sysdeps/i386/elf/configure.in: New file.
9984 2002-02-03 Andreas Schwab <schwab@suse.de>
9986 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9987 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
9989 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
9991 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9992 alloca if the memory reqirements are too high.
9994 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9996 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9997 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9998 the former is available anyway and speed isn't important here.
9999 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
10000 * elf/dl-version.c (match_symbol): Likewise.
10001 (_dl_check_map_versions): Likewise.
10002 * elf/rtld.c (process_envvars): Likewise.
10003 (print_statistics): Likewise.
10004 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
10005 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
10006 bases. Add assert to catch uses of unimplemented features.
10007 (__strsep): Add assert to catch uses of unimplemented features.
10008 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
10009 and avoid inline optimization.
10010 * elf/rtld.c (process_envvars): Likewise.
10011 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
10012 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
10013 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
10015 2002-02-02 Ulrich Drepper <drepper@redhat.com>
10017 * stdio-common/_itoa.h: Minor simplifications of the code.
10018 * stdio-common/_itoa.c: Likewise.
10020 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
10021 instead of _dl_printf for debugging info output.
10023 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
10024 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
10026 2002-02-01 H.J. Lu <hjl@gnu.org>
10028 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
10029 (atomic_add): Likewise.
10030 (compare_and_swap): Return 0 only when failed to compare. Use
10033 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
10036 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
10038 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
10040 2002-02-02 Ulrich Drepper <drepper@redhat.com>
10042 * elf/dl-minimal.c (__strsep): New minimal implementation.
10044 2002-02-02 Paul Eggert <eggert@twinsun.com>
10046 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
10047 (__mktime_internal): If no tm_isdst is requested, prefer solutions
10048 with tm_isdst > 0 when the requested time falls within a
10049 spring-forward gap [PR libc/2894].
10051 2002-02-03 Andreas Schwab <schwab@suse.de>
10053 * stdio-common/tst-rndseek.c: Increase timeout.
10055 2002-02-02 Ulrich Drepper <drepper@redhat.com>
10057 Change ld.so to not use functions which are exported. One cannot
10058 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
10060 * include/libc-symbols.h: Define INT and INTDEF.
10061 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
10062 _dl_signal_error_internal, _dl_map_object_internal,
10063 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
10064 _dl_lookup_versioned_symbol_internal,
10065 _dl_relocate_object_internal, _dl_debug_state_internal,
10066 _dl_start_profile_internal, and _dl_unload_cache_internal.
10067 * include/dlfcn.h: Declare _dl_catch_error_internal.
10068 * elf/rtld.c: Use INT for calls to any of the *_internal functions
10069 above. Add INTDEF to function definitions.
10070 * elf/dl-debug.c: Likewise.
10071 * elf/dl-deps.c: Likewise.
10072 * elf/dl-dst.h: Likewise.
10073 * elf/dl-error.c: Likewise.
10074 * elf/dl-fini.c: Likewise.
10075 * elf/dl-init.c: Likewise.
10076 * elf/dl-load.c: Likewise.
10077 * elf/dl-lookup.c: Likewise.
10078 * elf/dl-misc.c: Likewise.
10079 * elf/dl-open.c: Likewise.
10080 * elf/dl-profile.c: Likewise.
10081 * elf/dl-reloc.c: Likewise.
10082 * elf/dl-runtime.c: Likewise.
10083 * elf/dl-version.c: Likewise.
10084 * elf/do-lookup.h: Likewise.
10085 * sysdeps/generic/dl-cache.c: Likewise.
10086 * sysdeps/generic/dl-sysdep.c: Likewise.
10087 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
10088 instead of _dl_init.
10089 * sysdeps/arm/dl-machine.h: Likewise.
10090 * sysdeps/cris/dl-machine.h: Likewise.
10091 * sysdeps/hppa/dl-machine.h: Likewise.
10092 * sysdeps/i386/dl-machine.h: Likewise.
10093 * sysdeps/ia64/dl-machine.h: Likewise.
10094 * sysdeps/m68k/dl-machine.h: Likewise.
10095 * sysdeps/mips/dl-machine.h: Likewise.
10096 * sysdeps/mips/mips64/dl-machine.h: Likewise.
10097 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10098 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10099 * sysdeps/sh/dl-machine.h: Likewise.
10100 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10101 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10102 * sysdeps/x86_64/dl-machine.h: Likewise.
10103 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
10105 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
10106 and _dl_debug_initialize.
10108 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
10110 * elf/rtld.c (dl_main): Avoid strrchr.
10111 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
10112 result of readlink. Search from the back for '/'.
10114 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
10115 strncpy if possible.
10117 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
10119 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
10120 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
10121 strspn, and strcspn.
10122 (process_envvars): Don't use strcspn.
10124 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
10125 (_dl_dst_substitute): Likewise.
10127 2002-02-01 Ulrich Drepper <drepper@redhat.com>
10129 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
10130 code which is never used when relocating ld.so itself.
10132 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
10133 starting ld.so itself. Move l_addr variable initialization closer
10135 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
10137 2002-02-01 Jakub Jelinek <jakub@redhat.com>
10139 * Versions.def (libc): Add GLIBC_PRIVATE.
10140 (libdb, libnss_db, libdb1): Remove.
10141 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
10142 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
10143 (libpthread): Add GLIBC_PRIVATE.
10144 (libresolv): Likewise, remove GLIBC_2.1.
10145 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
10146 GLIBC_2.2.3, GLIBC_2.3.
10147 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
10148 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
10149 _dl_sym, _dl_vsym): Likewise.
10150 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
10151 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
10152 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
10153 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
10154 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
10155 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
10156 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
10157 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
10159 (_dl_object_relocation_scope): Remove.
10160 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
10161 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
10162 __gconv_cache): Move to GLIBC_PRIVATE.
10163 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
10164 __internal_setnetgrent): Likewise.
10165 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
10166 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
10167 * locale/Versions (__collate_element_hash, __collate_element_strings,
10168 __collate_symbol_classes, __collate_symbol_hash,
10169 __collate_symbol_strings, _nl_current_LC_COLLATE,
10170 _nl_current_LC_CTYPE): Likewise.
10171 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
10172 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
10173 (libnss_nis, libnss_nisplus): Likewise.
10174 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
10175 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
10176 (libnss_files): Move all symbols to GLIBC_PRIVATE.
10177 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
10178 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
10179 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
10180 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
10181 __ns_get16, __ns_samename): Likewise.
10182 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
10183 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
10185 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
10186 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
10187 __libc_connect): Likewise.
10188 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
10190 * stdlib/Versions (__libc_system): Likewise.
10191 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
10192 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
10193 * sysdeps/ia64/fpu/Versions: Likewise.
10194 * sysdeps/ia64/Versions: Likewise.
10195 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
10196 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
10198 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
10199 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
10200 __libc_sigaction): Likewise.
10201 * termios/Versions (__libc_tcdrain): Likewise.
10203 * misc/sys/cdefs (__attribute_noinline__): Define.
10204 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
10205 __attribute_noinline__.
10207 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
10208 * elf/dl-xstat64.c: New file.
10209 * elf/dl-fxstat64.c: New file.
10210 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
10211 don't export __fxstat64 at multiple versions.
10212 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
10213 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
10215 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
10217 * locale/program/ld-collate.c (collate_finish): Assign a wide
10218 char collation sequence value to multi character collating
10219 elements, and avoid over writing by non-character elements.
10221 2002-02-01 Ulrich Drepper <drepper@redhat.com>
10223 * elf/Makefile (distribute): Add dl-procinfo.c.
10224 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
10225 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10227 2002-02-01 Jakub Jelinek <jakub@redhat.com>
10229 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
10231 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
10232 _rtld_global struct.
10233 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10234 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
10235 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10236 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
10237 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
10238 _dl_fpu_control_set): Remove unused externs.
10239 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
10240 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
10241 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
10242 related variables in _rtld_global struct.
10243 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
10244 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
10247 2002-02-01 Ulrich Drepper <drepper@redhat.com>
10249 * sysdeps/generic/dl-procinfo.c: New file.
10251 2002-02-01 Andreas Schwab <schwab@suse.de>
10253 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
10255 2002-02-01 Ulrich Drepper <drepper@redhat.com>
10257 * elf/rtld.c (_dl_start): Mark as internal_function.
10258 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
10260 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
10261 General pretty printing.
10263 2002-01-31 Ulrich Drepper <drepper@redhat.com>
10265 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
10266 * elf/dl-reloc.c: Pretty printing.
10267 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
10268 procinfo-related variables in rtld_global struct.
10269 * elf/dl-support.c: Likewise.
10270 * elf/rtld.c: Likewise.
10271 * sysdeps/i386/i686/Makefile: Likewise.
10272 * sysdeps/i386/i686/hp-timing.c: Likewise.
10273 * sysdeps/i386/i686/hp-timing.h: Likewise.
10274 * sysdeps/ia64/Makefile: Likewise.
10275 * sysdeps/ia64/hp-timing.c: Likewise.
10276 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
10277 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
10278 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
10279 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
10280 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10281 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
10282 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
10283 * sysdeps/x86_64/Makefile: Likewise.
10285 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
10286 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
10287 _dl_debug_fd to rtld_global.
10288 * elf/Versions: Likewise.
10289 * elf/dl-close.c: Likewise.
10290 * elf/dl-iteratephdr.c: Likewise.
10291 * elf/dl-lookup.c: Likewise.
10292 * elf/dl-misc.c: Likewise.
10293 * elf/dl-open.c: Likewise.
10294 * elf/dl-support.c: Likewise.
10295 * elf/do-lookup.h: Likewise.
10296 * elf/rtld.c: Likewise.
10297 * sysdeps/generic/dl-cache.c: Likewise.
10298 * sysdeps/generic/dl-sysdep.c: Likewise.
10299 * sysdeps/ia64/Versions: Likewise.
10300 * sysdeps/unix/clock_gettime.c: Likewise.
10301 * sysdeps/unix/clock_settime.c: Likewise.
10302 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10303 * sysdeps/sparc/Versions: Removed.
10304 * sysdeps/i386/i686/Versions : Removed.
10305 * sysdeps/x86_64/Versions: Removed.
10306 * configure.in: Define HAVE_PROTECTED if .protected is available.
10307 * config.h.in: Add entry for HAVE_PROTECTED.
10309 2002-01-31 Jakub Jelinek <jakub@redhat.com.
10311 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
10312 code in struct _rtld_global. Export this struct, remove all
10313 exports for the signal variables.
10314 * sysdeps/arm/dl-machine: Likewise.
10315 * sysdeps/generic/dl-origin: Likewise.
10316 * sysdeps/generic/dl-sysdep: Likewise.
10317 * sysdeps/generic/dl-cache: Likewise.
10318 * sysdeps/hppa/dl-fptr: Likewise.
10319 * sysdeps/hppa/dl-machine: Likewise.
10320 * sysdeps/cris/dl-machine: Likewise.
10321 * sysdeps/i386/dl-machine: Likewise.
10322 * sysdeps/ia64/dl-machine: Likewise.
10323 * sysdeps/m68k/dl-machine: Likewise.
10324 * sysdeps/mach/hurd/dl-sysdep: Likewise.
10325 * sysdeps/mips/mips64/dl-machine: Likewise.
10326 * sysdeps/mips/dl-machine: Likewise.
10327 * sysdeps/powerpc/elf/libc-start: Likewise.
10328 * sysdeps/powerpc/dl-machine: Likewise.
10329 * sysdeps/powerpc/dl-start: Likewise.
10330 * sysdeps/sparc/sparc32/dl-machine: Likewise.
10331 * sysdeps/sparc/sparc64/dl-machine: Likewise.
10332 * sysdeps/sh/dl-machine: Likewise.
10333 * sysdeps/s390/s390-32/dl-machine: Likewise.
10334 * sysdeps/s390/s390-64/dl-machine: Likewise.
10335 * sysdeps/unix/sysv/aix/libc-start: Likewise.
10336 * sysdeps/unix/sysv/aix/start-libc: Likewise.
10337 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
10338 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
10339 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
10340 * sysdeps/x86_64/dl-machine: Likewise.
10342 2002-01-31 Ulrich Drepper <drepper@redhat.com>
10344 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10347 2002-01-31 Andreas Schwab <schwab@suse.de>
10349 * sysdeps/posix/readv.c: Check for ssize_t overflow.
10351 2002-01-31 Andreas Schwab <schwab@suse.de>
10353 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10354 reference to _dl_pagesize.
10356 2002-01-30 Ulrich Drepper <drepper@redhat.com>
10358 * Versions.def [ld]: Add GLIBC_2.3.
10359 * elf/dl-addr.c: Move global variables for SHARED code in struct
10360 _rtld_global. Export this struct, remove all exports for the
10362 * elf/dl-close.c: Likewise.
10363 * elf/dl-conflict.c: Likewise.
10364 * elf/dl-debug.c: Likewise.
10365 * elf/dl-deps.c: Likewise.
10366 * elf/dl-dst.h: Likewise.
10367 * elf/dl-error.c: Likewise.
10368 * elf/dl-fini.c: Likewise.
10369 * elf/dl-init.c: Likewise.
10370 * elf/dl-iteratephdr.c: Likewise.
10371 * elf/dl-libc.c: Likewise.
10372 * elf/dl-load.c: Likewise.
10373 * elf/dl-lookup.c: Likewise.
10374 * elf/dl-minimal.c: Likewise.
10375 * elf/dl-object.c: Likewise.
10376 * elf/dl-open.c: Likewise.
10377 * elf/dl-profile.c: Likewise.
10378 * elf/dl-profstub.c: Likewise.
10379 * elf/dl-reloc.c: Likewise.
10380 * elf/dl-runtime.c: Likewise.
10381 * elf/dl-support.c: Likewise.
10382 * elf/dl-sym.c: Likewise.
10383 * elf/dl-version.c: Likewise.
10384 * elf/do-lookup.h: Likewise.
10385 * elf/do-rel.h: Likewise.
10386 * elf/dynamic-link.h: Likewise.
10387 * elf/rtld.c: Likewise.
10388 * sysdeps/generic/dl-cache.c: Likewise.
10389 * sysdeps/generic/dl-sysdep.c: Likewise.
10390 * sysdeps/generic/ldsodefs.h: Likewise.
10391 * sysdeps/generic/libc-start.c: Likewise.
10392 * sysdeps/i386/dl-machine.h: Likewise.
10393 * sysdeps/ia64/dl-fptr.c: Likewise.
10394 * sysdeps/ia64/dl-machine.h: Likewise.
10395 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10396 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10397 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10398 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10399 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10400 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10401 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10402 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10404 2002-01-29 Ulrich Drepper <drepper@redhat.com>
10406 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10408 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10410 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10412 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10414 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10416 2002-01-29 Ben Collins <bcollins@debian.org>
10418 * string/bits/string2.h (__mempcpy): Protect size arg for
10419 addition when using __builtin_memcpy.
10421 2002-01-29 Ulrich Drepper <drepper@redhat.com>
10423 * stdlib/Makefile (tests): Add tst-qsort.
10424 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
10426 * manual/signal.texi (Process Signal Mask): Document that
10427 pthread_sigmask, not sigprocmask, must be used in MT programs.
10428 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10430 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10432 * misc/Makefile (tests): Add tst-hsearch.
10433 * misc/tst-hsearch.c: New file.
10435 2002-01-18 Wolfram Gloger <wg@malloc.de>
10437 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10438 * malloc/malloc.h: Likewise.
10439 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10440 * malloc/arena.c: New file.
10441 * malloc/hooks.c: New file.
10442 * malloc/tst-mallocstate.c: New file.
10443 * malloc/Makefile: Add new testcase tst-mallocstate.
10444 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
10446 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10448 * stdlib/msort.c: Remove last patch. The optimization violates the
10449 same rule which qsort.c had problems with.
10451 2002-01-27 Paul Eggert <eggert@twinsun.com>
10453 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10454 to a pivot element that lies outside the array to be sorted, as
10455 ISO C99 requires that the comparison function be called only with
10456 addresses of array elements [PR libc/2880].
10458 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10460 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10461 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
10463 * timezone/asia: Update from tzdata2002b.
10464 * timezone/australasia: Likewise.
10465 * timezone/backward: Likewise.
10466 * timezone/europe: Likewise.
10467 * timezone/leapseconds: Likewise.
10468 * timezone/iso3166.tab: Likewise.
10469 * timezone/zone.tab: Likewise.
10471 2002-01-23 Richard Henderson <rth@redhat.com>
10473 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10475 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10477 * string/strxfrm.c: Allocate one more byte for rulearr and clear
10478 this element [PR libc/2855].
10480 * string/strcoll.c: Handle zero-length arguments specially
10483 2002-01-23 Jakub Jelinek <jakub@redhat.com>
10485 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10486 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10487 short lengths and constant src.
10488 (strcpy): Don't optimize for gcc 3.0+.
10489 (__stpcpy): For gcc 3.0+, don't use
10490 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10491 for short string literal src.
10493 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10495 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10498 2001-01-22 Paul Eggert <eggert@twinsun.com>
10500 * manual/llio.texi (Linked Channels, Cleaning Streams):
10501 Make it clearer that a just-opened input stream might need cleaning.
10503 2002-01-21 H.J. Lu <hjl@gnu.org>
10505 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10506 Don't use label at end of compound statement.
10508 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
10510 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10511 Remove test for negative integer arg; sin_pi does it correctly.
10513 2002-01-20 Ulrich Drepper <drepper@redhat.com>
10515 * nscd/Makefile (distribute): Filter out xmalloc.c.
10517 2002-01-19 Ulrich Drepper <drepper@redhat.com>
10519 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10520 Set offset if read end wasn't the buffer end.
10521 (_IO_file_seekoff_mmap): New function.
10522 (_IO_file_xsgetn_mmap): New function.
10523 (_IO_file_jumps_mmap): Use the two new functions.
10524 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10526 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10527 _IO_file_underflow_mmap.
10528 * libio/iofopen.c: Don't position file descriptor at end of file.
10529 * libio/tst-widetext.c: Improve error messages.
10530 * stdio-common/tst-rndseek.c: Likewise.
10532 2002-01-18 Ulrich Drepper <drepper@redhat.com>
10534 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10535 end of enum for !_GNU_SOURCE.
10536 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10537 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10538 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10539 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10540 values unless _GNU_SOURCE.
10542 * iconvdata/tcvn5712-1.c: Minor cleanups.
10544 2002-01-18 Andreas Schwab <schwab@suse.de>
10546 * sysdeps/unix/sysv/linux/configure.in
10547 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10549 2002-01-16 Roger Sayle <roger@eyesopen.com>
10551 * stdlib/msort.c (msort_with_tmp): Replace implementation with
10552 more efficient "Towers of Hanoi" mergesort.
10553 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10554 for generic, sizeof(int) and sizeof(long) variants respectively.
10556 2002-01-17 Ulrich Drepper <drepper@redhat.com>
10558 * manual/syslog.texi (openlog): Describe possible problems with
10560 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10562 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
10563 * nscd/connections.c (begin_drop_privileges): New function.
10564 (finish_drop_privileges): New function.
10565 (nscd_init): Call the new functions which also install all groups
10566 for the server user.
10567 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10568 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10570 2002-01-17 H.J. Lu <hjl@gnu.org>
10572 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10573 `const' from `got'.
10575 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
10577 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10578 instructions for pointer operations.
10579 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10581 2002-01-17 Andreas Jaeger <aj@suse.de>
10583 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10584 __uint128_t build-in.
10586 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10587 PowerPC, sync with 2.2 branch.
10589 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10591 * posix/getconf.c: Update copyright year.
10592 * nss/getent.c: Likewise.
10593 * nscd/nscd_nischeck.c: Likewise.
10594 * iconv/iconvconfig.c: Likewise.
10595 * iconv/iconv_prog.c: Likewise.
10596 * elf/ldconfig.c: Likewise.
10597 * catgets/gencat.c: Likewise.
10598 * csu/version.c: Likewise.
10599 * elf/ldd.bash.in: Likewise.
10600 * elf/sprof.c (print_version): Likewise.
10601 * locale/programs/locale.c: Likewise.
10602 * locale/programs/localedef.c: Likewise.
10603 * nscd/nscd.c (print_version): Likewise.
10604 * debug/xtrace.sh: Likewise.
10605 * malloc/memusage.sh: Likewise.
10606 * malloc/mtrace.pl: Likewise.
10608 2002-01-16 Andreas Schwab <schwab@suse.de>
10610 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10611 reliably remove "-ia64" from rtld name.
10613 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10615 * iconvdata/gb18030.c: Bug fixes and support for more characters.
10616 Patch by Yu Shao <yshao@redhat.com>.
10618 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
10620 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10621 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10622 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10624 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
10626 * sysdeps/s390/fpu/libm-test-ulps: Update.
10628 2002-01-11 Ulrich Drepper <drepper@redhat.com>
10630 * elf/elf.h: Update x86 relocations.
10632 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10634 * locale/programs/charmap.c (new_width): Check whether byte
10635 sequences for both ends of range have the same length.
10637 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10639 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10641 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10643 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10645 (__full_ieee754_sqrt): Add __attribute_used__.
10647 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10649 * sysdeps/generic/group_member.c (__group_member): Also check
10650 groups[0] [PR libc/2781].
10652 2002-01-08 Ulrich Drepper <drepper@redhat.com>
10654 * Makefile (distribute): Add scripts/cpp.
10655 * elf/Makefile (distribute): Add reldep6mod[01234].c,
10656 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10657 unwind-dw2-fde.h, and dwarf2.h.
10658 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10659 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10660 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10661 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10663 2002-01-07 Roland McGrath <roland@frob.com>
10665 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10666 volatile on type of ARGC so the compiler doesn't get clever.
10668 2002-01-07 Andreas Jaeger <aj@suse.de>
10670 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10671 * sysdeps/i386/bits/byteswap.h: Likewise.
10672 * sysdeps/ia64/bits/byteswap.h: Likewise.
10673 * sysdeps/m68k/bits/byteswap.h: Likewise.
10674 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10675 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10677 2002-01-02 Bruno Haible <bruno@clisp.org>
10679 * intl/plural.y: Fix %expect count.
10681 2002-01-03 Jakub Jelinek <jakub@redhat.com>
10683 * elf/Makefile (routines, shared-only-routines): Add
10684 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10685 * elf/elf.h (PT_GNU_EH_FRAME): Define.
10686 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10687 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10688 Optimize if .eh_frame section contains no FDEs.
10689 (__register_frame, __deregister_frame_info_bases,
10690 __deregister_frame): Likewise.
10691 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10692 DW_CFA_restore handling.
10694 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
10696 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10698 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10699 for x < 0.25 and restore original range reduction method.
10700 (__ieee754_lgammal_r): Make sure signgam is set before returning.
10702 2002-01-07 Ulrich Drepper <drepper@redhat.com>
10704 * libio/fileops.c (_IO_file_underflow_mmap): New function.
10705 (_IO_file_close_mmap): New function.
10706 (_IO_file_jumps_mmap): New variable.
10707 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10708 trying to convert rest of byte buffer.
10709 (_IO_wfile_underflow_mmap): New function.
10710 (_IO_wfile_jumps_mmap): New variable.
10711 * libio/iofopen.c (__fopen_maybe_mmap): New function.
10712 (__fopen_internal): New function. Split out from _IO_new_fopen.
10713 (_IO_new_fopen): Call __fopen_internal.
10714 * libio/iofopen64.c: Just call __fopen_internal.
10715 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10717 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10718 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10719 _IO_file_close_mmap.
10721 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10722 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10724 * stdio-common/Makefile (tests): Add tst-rndseek.
10725 * stdio-common/tst-rndseek.c: New file.
10727 2002-01-05 Roland McGrath <roland@frob.com>
10729 * config.h.in (HAVE_MIG_RETCODE): New #undef.
10730 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10731 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10732 * sysdeps/mach/hurd/configure: Regenerated.
10734 2002-01-03 Ulrich Drepper <drepper@redhat.com>
10736 * elf/elf.h: Add more TLS definitions.
10738 2002-01-02 Ulrich Drepper <drepper@redhat.com>
10740 * include/features.h (__GLIBC_MINOR__): Bump to 3.
10742 2002-01-02 Roland McGrath <roland@frob.com>
10744 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10745 __sigisemptyset. Don't use MASK uninitialized.
10747 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10748 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10749 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10750 __sigdelset, __sigaddset, __sigorset.
10752 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10753 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10755 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10756 _hurd_ports is null.
10758 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10759 for old CMU and new OSF Mach interface flavors.
10760 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10761 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10763 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10765 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10766 Pass extra arguments to task_create for OSF variant.
10767 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10769 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10770 conditional on [HAVE_AUX_VECTOR].
10772 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10773 mach_msg_timeout_t as type of final argument.
10775 * hurd/privports.c (__get_privileged_ports):
10776 Change host_priv_t to mach_port_t in argument type.
10777 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10780 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10781 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
10782 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10783 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10784 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10785 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10787 2002-01-01 Roland McGrath <roland@frob.com>
10789 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10791 2002-01-01 Ulrich Drepper <drepper@redhat.com>
10793 * include/stdlib.h: Define inlines for the _l variants of the strto*
10796 2002-01-01 Roland McGrath <roland@frob.com>
10798 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10800 * mach/Machrules (MIG): Set CPP as well as CC.
10802 2001-12-31 Ulrich Drepper <drepper@redhat.com>
10804 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10805 locale to parse /proc/loadavg [PR libc/2760].
10807 2001-12-31 Jakub Jelinek <jakub@redhat.com>
10809 * elf/dl-conflict.c: Include sys/param.h.
10810 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10811 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10813 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10814 literals to avoid warnings.
10816 2001-12-31 Andreas Jaeger <aj@suse.de>
10818 * configure.in: Don't check for gsed since we do not use it anywhere.
10820 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10822 * io/fts.c: Update from BSD to fix memory leaks.
10824 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10826 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10827 * elf/chroot_canon.c: Likewise.
10828 * elf/dl-object.c: Likewise.
10829 * iconv/iconv_charmap.c: Likewise.
10830 * iconv/iconv_prog.c: Likewise.
10831 * libio/iogetdelim.c: Likewise.
10832 * locale/lc-time.c: Likewise.
10833 * stdlib/canonicalize.c: Likewise.
10834 * sunrpc/svc.c: Likewise.
10835 * sysdeps/generic/glob.c: Likewise.
10837 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10839 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10840 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10841 remove high order bit from the program counter.
10842 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10844 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10846 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10847 unnecessary code and add missing reloc types.
10848 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10849 case for reloc type R_390_NONE.
10851 2001-12-28 Andreas Jaeger <aj@suse.de>
10853 * io/bug-ftw3.c: Include string.h for prototypes.
10855 * crypt/md5test.c (main): Remove unused variable.
10857 * dlfcn/modstatic.c: Add prototype to avoid warning.
10859 2001-12-26 Roland McGrath <roland@frob.com>
10861 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10862 check only (SS->pending & MASK) for the signal to return.
10863 From Jeroen Dekkers <jeroen@dekkers.cx>.
10865 2001-12-22 Roland McGrath <roland@frob.com>
10867 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10868 Use preprocessor #if conditionals instead of `if' to avoid
10869 warnings about divide by zero in dead code.
10871 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10872 _hurd_port_init, and __hurd_self_sigstate.
10874 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10876 2001-12-21 Andreas Jaeger <aj@suse.de>
10878 * elf/dblloadmod1.c: Add prototype to avoid warning.
10879 * elf/dblloadmod2.c: Likewise.
10880 * elf/dblloadmod3.c: Likewise.
10881 * elf/reldepmod5.c: Likewise.
10882 * elf/reldepmod6.c: Likewise.
10884 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10885 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10886 used on all architectures.
10888 * sunrpc/svc_tcp.c: Add noreturn attribute for
10889 svctcp_rendezvous_abort.
10890 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10892 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10895 2001-12-19 Jakub Jelinek <jakub@redhat.com>
10897 * manual/llio.texi (aio_fsync): Fix a typo.
10898 Patch by Tammy Fox <tfox@redhat.com>.
10900 2001-12-18 Jakub Jelinek <jakub@redhat.com>
10902 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10903 stack bias from child stack pointer before passing it to clone syscall.
10905 2001-12-18 Ulrich Drepper <drepper@redhat.com>
10907 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10909 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10910 Reported by Thorsten Kukuk <kukuk@suse.de>.
10912 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10915 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10917 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
10919 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10920 conforming: return EBADF if file descriptor is invalid and EINVAL
10921 if file descriptor is no valid tty.
10922 * login/tst-grantpt.c: New file.
10923 * login/Makefile (tests): Add tst-grantpt.
10925 2001-12-17 Ulrich Drepper <drepper@redhat.com>
10927 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10928 different than implemented in last patch.
10929 * io/bug-ftw3.c: Adjust test for changed handling of
10930 inaccessibility of toplevel dir.
10932 2001-12-16 Roland McGrath <roland@frob.com>
10934 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10935 * grp/initgroups.c (internal_getgrouplist): Likewise.
10937 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10938 `default:' to silence new GCC warning.
10939 Rewrite cast of lvalue to silence new GCC warning.
10941 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10943 * sysdeps/mach/hurd/spawni.c: New file, by me with a
10944 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10946 2001-12-14 Ulrich Drepper <drepper@redhat.com>
10948 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
10949 Patch by Stephen R. van den Berg.
10951 * crypt/md5.h: Define md5_uintptr.
10953 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10955 * libio/tst_swprintf.c (main): Add test for string argument with
10957 * stdio-common/Makefile (tests): Add tst-sprintf.
10958 * stdio-common/tst-sprintf.c: New file.
10960 2001-12-13 Andreas Schwab <schwab@suse.de>
10962 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10963 zero precision with wide character string format.
10965 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
10967 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10968 but have a user supplied buffer, return the empty buffer, not NULL.
10970 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10972 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10973 Patch by Eric Sharkey <sharkey@netrics.com>.
10975 * crypt/md5test.c (main): Add test for multiple calls to
10976 __md5_process_bytes to itererate over input string.
10978 2001-12-12 Ulrich Drepper <drepper@redhat.com>
10980 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10981 from __nis_findfastest. Take timeout value from parameter.
10982 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10983 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10984 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
10986 2001-12-12 Andreas Jaeger <aj@suse.de>
10988 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10989 combreloc test so that it works in this case.
10991 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10993 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
10995 * sysdeps/sh/Makefile: New file.
10996 * sysdeps/sh/_mcount.S: New file.
10997 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10998 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
11000 2001-12-11 Ulrich Drepper <drepper@redhat.com>
11002 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
11003 limitation [PR libc/2564].
11005 2001-12-11 Jakub Jelinek <jakub@redhat.com>
11007 * elf/Makefile (dl-routines): Add conflict.
11008 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
11009 (ld.so): Add _begin local symbol.
11010 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
11012 * elf/dl-deps.c (_dl_build_local_scope): New function.
11013 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
11015 * elf/do-rel.h (VALIDX): Define.
11016 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
11017 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
11019 * elf/dl-conflict.c: New file.
11020 * elf/dl-lookup.c (_dl_debug_bindings): New function.
11021 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
11023 (_dl_lookup_symbol_skip): Likewise.
11024 (_dl_lookup_versioned_symbol): Likewise.
11025 (_dl_lookup_versioned_symbol_skip): Likewise.
11026 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
11027 define to ElfW(Rel).
11028 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
11029 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
11031 Don't adjust address dynamic tags if l_addr is 0.
11032 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
11033 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
11034 (VALIDX, ADDRIDX): Define.
11035 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
11036 (dl_main): Print library list for LD_TRACE_PRELINKING.
11037 If prelinking information can be used, skip relocating libraries and
11038 call _dl_resolve_conflicts instead.
11039 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
11040 * elf/dl-load.c (_dl_map_object): Don't create fake libs
11041 if LD_TRACE_PRELINKING.
11042 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
11044 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
11045 (DL_DEBUG_PRELINK): Define.
11046 (_dl_resolve_conflicts): Add prototype.
11048 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
11049 .plt for prelinked libraries where prelinking info cannot be used.
11050 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
11051 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
11052 * sysdeps/arm/bits/link.h: New file.
11053 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
11054 content of .got[1].
11055 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11056 (ELF_MACHINE_PLT_REL): Define.
11057 (elf_machine_rela, elf_machine_rela_relative): New functions.
11058 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
11059 of adjusting it if prelinked and prelinking cannot be used.
11060 * sysdeps/i386/bits/link.h: New file.
11061 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
11062 content of .got[1].
11063 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11064 (ELF_MACHINE_PLT_REL): Define.
11065 (elf_machine_rela, elf_machine_rela_relative): New functions.
11066 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
11067 of adjusting it if prelinked and prelinking cannot be used.
11068 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
11069 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
11070 to find out map for R_PPC_JMP_SLOT relocs.
11071 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
11072 (OPCODE_BA): Define.
11073 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11074 libraries where prelinking info cannot be used.
11075 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
11076 (elf_machine_fixup_plt): Call sparc_fixup_plt.
11077 (elf_machine_rela): Set value to 0 if relocating conflicts.
11078 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
11079 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
11080 (sparc64_fixup_plt): Fix a typo.
11081 (elf_machine_rela): Set value to 0 if relocating conflicts.
11082 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
11083 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11084 libraries where prelinking info cannot be used.
11085 * sysdeps/sh/bits/link.h: New file.
11086 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
11087 content of .got[1].
11088 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
11089 of adjusting it if prelinked and prelinking cannot be used.
11090 * sysdeps/s390/s390-32/bits/link.h: New file.
11091 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
11092 Save original content of .got[1].
11093 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11094 of adjusting it if prelinked and prelinking cannot be used.
11095 * sysdeps/s390/s390-64/bits/link.h: New file.
11096 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
11097 Save original content of .got[1].
11098 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11099 of adjusting it if prelinked and prelinking cannot be used.
11100 * sysdeps/x86_64/bits/link.h: New file.
11101 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
11102 Save original content of .got[1].
11103 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
11104 of adjusting it if prelinked and prelinking cannot be used.
11106 2001-12-11 Ulrich Drepper <drepper@redhat.com>
11108 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
11109 where appropriate instead of numbers. Little optimizations.
11111 2001-12-10 Roland McGrath <roland@frob.com>
11113 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
11116 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
11117 set to GLIBC_2.2.5, not GLIBC_2.2.4.
11119 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
11120 Fix conditionals so this is set by default for stdio and not for libio.
11121 * sysdeps/mach/hurd/configure: Regenerated.
11123 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
11125 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
11127 2001-12-10 Ulrich Drepper <drepper@redhat.com>
11129 * io/Makefile (tests): Add bug-ftw3.
11130 * io/bug-ftw3.c: New file.
11132 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
11133 matches and GLOB_NOCHECK is set.
11134 * posix/globtest.sh: Correct expected result for NOCHECK test.
11136 * po/ca.po: Update from translation team.
11138 2001-12-09 Ulrich Drepper <drepper@redhat.com>
11140 Implement transliteration of characters in strings of the locale
11142 * locale/programs/linereader.c: Adjust for additional parameter to
11144 (get_string): If character <Uxxxx> is not found try to transliterate
11146 * locale/programs/ld-ctype.c: Adjust for additional parameter to
11147 lr_token. Add const to charmap parameter of all functions.
11148 (find_translit, find_translit2): New functions.
11149 * locale/programs/charmap.c: Adjust for additional parameter to
11151 * locale/programs/repertoire.c: Likewise.
11152 * locale/programs/linereader.h: Likewise.
11153 * locale/programs/ld-address.c: Likewise. Add const to charmap
11154 parameter of all functions.
11155 * locale/programs/ld-collate.c: Likewise.
11156 * locale/programs/ld-identification.c: Likewise.
11157 * locale/programs/ld-measurement.c: Likewise.
11158 * locale/programs/ld-messages.c: Likewise.
11159 * locale/programs/ld-monetary.c: Likewise.
11160 * locale/programs/ld-name.c: Likewise.
11161 * locale/programs/ld-numeric.c: Likewise.
11162 * locale/programs/ld-paper.c: Likewise.
11163 * locale/programs/ld-paper.c: Likewise.
11164 * locale/programs/ld-telephone.c: Likewise.
11165 * locale/programs/ld-time.c: Likewise.
11166 * locale/programs/locfile.c: Likewise.
11167 * locale/programs/localedef.c: Likewise.
11168 * locale/programs/localedef.h: Likewise.
11169 * locale/programs/locfile.h: Likewise. Add declaration for
11171 * locale/programs/simple-hash.c: Add const to first parameter of
11172 find_entry, iterate_table, and lookup.
11173 * locale/programs/simple-hash.h: Likewise.
11174 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
11176 * include/locale.h: Define __LC_LAST.
11177 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
11179 2001-12-07 Geoff Keating <geoffk@redhat.com>
11181 * sysdeps/powerpc/Dist: Update for recent FP changes.
11182 * sysdeps/powerpc/fpu/Dist: Likewise.
11184 2001-12-07 Andreas Schwab <schwab@suse.de>
11186 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
11188 2001-12-06 Geoff Keating <geoffk@redhat.com>
11190 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
11191 save/restore functions here.
11192 (libm-support): Don't define these functions here.
11193 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
11195 * sysdeps/powerpc/fe_nomask.c: Move to...
11196 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
11197 * sysdeps/powerpc/fprrest.S: Move to...
11198 * sysdeps/powerpc/fpu/fprrest.S: ... here.
11199 * sysdeps/powerpc/fprsave.S: Move to...
11200 * sysdeps/powerpc/fpu/fprsave.S: ... here.
11202 2001-12-06 Ulrich Drepper <drepper@redhat.com>
11204 * sysdeps/unix/sysv/linux/opensock.c: New file.
11206 2001-12-06 Geoff Keating <geoffk@redhat.com>
11208 * config.make.in (with-fp): Define from configure.
11209 * configure.in: Substitute with_fp.
11210 * configure: Regenerate.
11211 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
11212 specified, and don't change FPU environment.
11214 2001-12-06 Ulrich Drepper <drepper@redhat.com>
11216 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
11217 * assert/assert.c: Check result of __asprintf call and don't use
11218 string if it failed.
11219 * assert/assert-perr.c: Likewise.
11220 * inet/rcmd.c: Likewise.
11221 * locale/programs/localedef.c (main): Check result of
11222 construct_output_path and exit if it failed.
11223 (construct_output_path): Check result of asprintf and mkdir calls and
11224 fail if they failed.
11225 * posix/getopt.c: Check result of __asprintf calls and fail if
11227 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
11229 2001-12-05 Ulrich Drepper <drepper@redhat.com>
11231 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
11233 * sysdeps/generic/strncase.c: Likewise.
11234 * string/tester.c: Add tests for strcasecmp and strncasecmp.
11236 2001-12-05 Geoff Keating <geoffk@redhat.com>
11238 * scripts/cpp: Test the exit status from 'type', not 'awk'.
11240 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
11241 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
11242 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
11243 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
11244 * sysdeps/powerpc/fclrexcpt.c: Move to...
11245 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
11246 * sysdeps/powerpc/fpu_control.h: Move to...
11247 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
11249 2001-12-05 Ulrich Drepper <drepper@redhat.com>
11251 * iconvdata/ibm1129.h: Remove duplicate mappings.
11252 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
11253 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
11254 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11256 * timezone/zic.c: Fix handling of turnaround times.
11257 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
11259 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
11261 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
11264 2001-12-05 Ulrich Drepper <drepper@redhat.com>
11266 * posix/regex.c: For use outside glibc defined bounded pointer
11267 macros here. Patch by Jim Meyering <jim@meyering.net>.
11269 * iconvdata/Makefile (modules): Add TCVN5712-1.
11270 * iconvdata/TESTS: Add TCVN5712-1.
11271 * iconvdata/gconv-modules: Likewise.
11272 * iconvdata/tcvn5712-1.c: New file.
11273 * iconvdata/testdata/TCVN-5712: New file.
11274 * iconvdata/testdata/TCVN-5712..UTF8: New file.
11276 2001-12-04 Ulrich Drepper <drepper@redhat.com>
11278 * iconvdata/cp1258.c: Optimize conversion from UCS4.
11280 2001-12-02 Roland McGrath <roland@frob.com>
11282 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
11284 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
11285 Reported by Jeff Bailey <jbailey@nisa.net>.
11287 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
11288 Reported by Jeff Bailey <jbailey@nisa.net>.
11290 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
11291 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
11292 Reported by Jeff Bailey <jbailey@nisa.net>.
11294 2001-12-01 Roland McGrath <roland@frob.com>
11296 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
11297 missing backslash in test arguments.
11298 * sysdeps/mach/hurd/configure: Regenerated.
11300 2001-11-26 Roland McGrath <roland@frob.com>
11302 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
11303 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
11305 2001-11-30 Ulrich Drepper <drepper@redhat.com>
11307 * iconvdata/Makefile (modules): Add ARMSCII-8.
11308 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
11309 * iconvdata/armscii-8.c: New file.
11311 2001-11-29 Jakub Jelinek <jakub@redhat.com>
11313 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
11314 don't match, fix {{a,b},c} globbing, clean up.
11315 Patch by Flavio Veloso <flaviovs@magnux.com>.
11316 * posix/globtest.sh: Add new tests.
11318 2001-11-29 Andreas Jaeger <aj@suse.de>
11320 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
11321 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
11323 * sysdeps/generic/abort.c: Include libioP.h for
11324 _IO_flush_all_lockp prototype.
11326 2001-11-29 Ulrich Drepper <drepper@redhat.com>
11328 * posix/regex.h: Define __restrict_arr correctly.
11330 2001-11-28 Ulrich Drepper <drepper@redhat.com>
11332 * iconvdata/ibm1163.c: New file.
11333 * iconvdata/ibm1163.h: New file.
11334 * iconvdata/ibm1164.c: New file.
11335 * iconvdata/ibm1164.h: New file.
11336 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
11337 * iconvdata/Makefile: Likewise.
11338 * iconvdata/testdata/IBM1163: New file.
11339 * iconvdata/testdata/IBM1163..UTF8: New file.
11340 * iconvdata/testdata/IBM1164: New file.
11341 * iconvdata/testdata/IBM1164..UTF8: New file.
11342 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11344 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
11345 * iconvdata/ibm1124.h: Likewise.
11346 * iconvdata/ibm1132.h: Likewise.
11347 * iconvdata/ibm1133.h: Likewise.
11348 * iconvdata/ibm1160.h: Likewise.
11349 * iconvdata/ibm1161.h: Likewise.
11350 * iconvdata/ibm1162.h: Likewise.
11351 * iconvdata/ibm856.h: Likewise.
11352 * iconvdata/ibm922.h: Likewise.
11353 * iconvdata/ibm930.h: Likewise.
11354 * iconvdata/ibm932.h: Likewise.
11355 * iconvdata/ibm933.h: Likewise.
11356 * iconvdata/ibm935.h: Likewise.
11357 * iconvdata/ibm937.h: Likewise.
11358 * iconvdata/ibm939.h: Likewise.
11359 * iconvdata/ibm943.h: Likewise.
11360 * iconvdata/ibm930.c: Pretty printing.
11361 * iconvdata/ibm937.c: Avoid access accross array boundary.
11363 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11364 the current locale's codeset.
11365 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11366 empty input string.
11367 * iconv/iconv_prog.c: Pass empty strings as default value for to-
11368 and from-charset. Don't determine locale's charset here.
11370 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
11371 as the old _IO_flush_all but lock only if parameter is nonzero.
11372 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11373 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11374 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11375 if libio is used [PR libc/2575].
11377 2001-11-28 Jakub Jelinek <jakub@redhat.com>
11379 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11380 __signbitl): Only define for ISO C99.
11382 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
11384 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11385 herrnop to NETDB_INTERNAL if we run out of buffer space.
11387 2001-11-28 Ulrich Drepper <drepper@redhat.com>
11389 * nss/nss_files/files-XXX.c (internal_getent): Correct input
11390 overflow test for platforms with signed char.
11391 Reported by Andrew Haley <aph@cambridge.redhat.com>.
11393 2001-11-28 Bruno Haible <bruno@clisp.org>
11395 * locale/programs/simple-hash.c (lookup_2): Remove function.
11396 (insert_entry_2): Call lookup instead of lookup_2.
11398 2001-03-04 Bruno Haible <bruno@clisp.org>
11400 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11402 2001-10-31 Bruno Haible <bruno@clisp.org>
11404 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11406 2001-03-21 Bruno Haible <bruno@clisp.org>
11408 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11409 chokes on empty macro arguments.
11410 * intl/plural.y: Add #pragma for alloca on AIX 3.
11412 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11414 * intl/dcigettext.c (guess_category_value): Only implement for
11415 glibc. Otherwise rely on function _nl_locale_name which isn't
11416 present in the glibc sources.
11418 2001-09-24 Bruno Haible <bruno@clisp.org>
11420 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11421 transliteration when building on a glibc system but outside glibc.
11423 2001-09-22 Bruno Haible <bruno@clisp.org>
11425 * intl/plural-eval.c: New file, extracted from dcigettext.c.
11426 * intl/dcigettext.c (plural_eval): Remove function, moved to
11427 intl/plural-eval.c.
11428 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11429 Include plural-eval.c.
11431 2001-09-22 Bruno Haible <bruno@clisp.org>
11433 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11434 don't start with a digit; nplurals must be positive.
11436 2001-09-02 Bruno Haible <bruno@clisp.org>
11438 * intl/plural-exp.h: New file, extracted from gettextP.h.
11439 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11440 * intl/gettextP.h (struct expression, struct parse_args,
11441 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11442 * intl/loadmsgcat.c: Include plural-exp.h.
11443 (PLURAL_PARSE): Move macro to plural-exp.h.
11444 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11446 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
11447 EXTRACT_PLURAL_EXPRESSION.
11448 (_nl_unload_domain): Update.
11449 * intl/dcigettext.c: Include plural-exp.h.
11450 * intl/plural.y: Include plural-exp.h, not gettextP.h.
11451 (FREE_EXPRESSION): Move macro to plural-exp.h.
11452 * intl/Makefile (routines): Add plural-exp.
11453 (distribute): Add plural-exp.h.
11455 2001-07-28 Bruno Haible <bruno@clisp.org>
11457 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11458 isdigit, tolower argument to 'unsigned char'.
11459 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11461 * intl/localealias.c (read_alias_file): Cast isspace argument to
11464 2001-10-20 Bruno Haible <bruno@clisp.org>
11466 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11468 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11469 with the variable 'index' in plural_lookup.
11470 * intl/l10nflist.c (strchr): Likewise.
11471 * intl/localealias.c (strchr): Likewise.
11473 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11474 * intl/bindtextdom.c: Likewise.
11475 * intl/dcigettext.c: Likewise.
11476 * intl/dgettext.c: Likewise.
11477 * intl/dngettext.c: Likewise.
11478 * intl/explodename.c: Likewise.
11479 * intl/finddomain.c: Likewise.
11480 * intl/gettext.c: Likewise.
11481 * intl/l10nflist.c: Likewise.
11482 * intl/loadmsgcat.c: Likewise.
11483 * intl/localealias.c: Likewise.
11484 * intl/ngettext.c: Likewise.
11485 * intl/textdomain.c: Likewise.
11486 * intl/gettext.h: Assume <limits.h> exists.
11488 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11490 * stdio-common/Makefile (tests): Add scanf11.
11491 * stdio-common/scanf11.c: New file.
11493 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11495 * version.h (RELEASE): Define as development.
11496 (VERSION): Set to 2.2.90.
11498 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
11500 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11501 * nis/nss_nis/nis-grp.c: Likewise.
11502 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11504 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11505 * nis/nss_nis/nis-pwd.c: Likewise.
11506 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11508 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11509 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11510 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11512 * nscd/grpcache.c: Use strtoul instead of atol.
11513 * nscd/pwdcache.c: Likewise.
11514 * nss/getent.c: Likewise.
11516 2001-11-27 Paul Eggert <eggert@twinsun.com>
11518 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11519 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11521 2001-11-19 Bruno Haible <bruno@clisp.org>
11523 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11525 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11526 improves the quality of the hash function, especially for short
11529 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11531 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11532 are found call conv_error and not input_error [PR libc/2669].
11534 * math/bits/mathcalls.h: Mark ceil and floor as const.
11535 Reported by David Mosberger.
11537 2001-11-21 Jim Meyering <meyering@lucent.com>
11539 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11540 Define to be __-prefixed.
11541 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11543 2001-11-26 Andreas Jaeger <aj@suse.de>
11545 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11548 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
11550 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11553 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11554 unused variables. Fix threshold for returning 1.0.
11556 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11559 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11560 remove unused variables.
11562 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11564 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11565 include local math header files.
11567 2001-11-22 Andreas Jaeger <aj@suse.de>
11569 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11572 2001-11-21 Andreas Jaeger <aj@suse.de>
11574 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11576 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11579 2001-11-15 Andreas Jaeger <aj@suse.de>
11581 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11582 compilers that support it.
11584 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11585 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11586 * stdlib/stdlib.h: Likewise.
11588 2001-11-17 Ulrich Drepper <drepper@redhat.com>
11590 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11591 statement with gotos.
11592 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11594 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
11596 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11598 2001-11-15 Ulrich Drepper <drepper@redhat.com>
11600 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11602 2001-10-02 Jakub Jelinek <jakub@redhat.com>
11603 H.J. Lu <hjl@gnu.org>
11605 * Versions.def (libc): Add GCC_3.0.
11606 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11607 if gcc supports this flag.
11608 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11609 (gcc3): Allow glibc to be compiled with gcc 3.x.
11610 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11611 * config.make.in (static-libgcc, unwind-find-fde): Add.
11612 * Makerules (build-shlib-helper, build-module-helper): Use it.
11613 * scripts/versions.awk: Make sure GLIBC_ versions come first.
11614 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11616 (_fini): Call __deregister_frame_info_bases if
11617 __register_frame_info_bases was used to register.
11618 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11620 (__register_frame_info_bases, __register_frame_info_table_bases,
11621 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11622 * elf/Makefile (routines): Add unwind-dw2-fde.
11623 (shared-only-routines): Add unwind-dw2-fde.
11624 * sysdeps/alpha/gccframe.h: New file.
11625 * sysdeps/arm/gccframe.h: New file.
11626 * sysdeps/generic/framestate.c: New file.
11627 * sysdeps/generic/dwarf2.h: New file.
11628 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11629 * sysdeps/generic/unwind-dw2-fde.c: New file.
11630 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11631 * sysdeps/generic/unwind-dw2-fde.h: New file.
11632 * sysdeps/generic/unwind-dw2.c: New file.
11633 * sysdeps/generic/unwind-pe.h: New file.
11634 * sysdeps/generic/unwind.h: New file.
11635 * sysdeps/hppa/gccframe.h: New file.
11636 * sysdeps/i386/gccframe.h: New file.
11637 * sysdeps/m68k/gccframe.h: New file.
11638 * sysdeps/mips/gccframe.h: New file.
11639 * sysdeps/powerpc/gccframe.h: New file.
11640 * sysdeps/s390/gccframe.h: New file.
11641 * sysdeps/sh/gccframe.h: New file.
11642 * sysdeps/sparc/gccframe.h: New file.
11643 * sysdeps/vax/gccframe.h: New file.
11644 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11645 Set on all architectures except ia64.
11646 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11648 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11649 __deregister_frame_info): Move to elf/Versions.
11650 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11651 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11652 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11653 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11654 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11655 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11656 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11657 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11658 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11659 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11660 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11661 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11662 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11663 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11664 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11665 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11666 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11667 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11669 2001-11-15 Jeff Law <law@redhat.com>
11671 * posix/regex.c (uintptr_t): Do not provide a definition if the
11672 system provided one.
11674 2001-11-13 Roland McGrath <roland@frob.com>
11676 * stdio-common/tmpfile.c: Moved to ...
11677 * sysdeps/generic/tmpfile.c: ... here.
11678 * sysdeps/mach/hurd/tmpfile.c: New file.
11680 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11681 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11682 (fopenport): Define as weak alias.
11684 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11685 * libio/libioP.h: ... to here.
11687 2001-11-12 Ulrich Drepper <drepper@redhat.com>
11689 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11690 program header twice. Construct list with the needed information.
11692 2001-11-10 Ulrich Drepper <drepper@redhat.com>
11694 * po/ca.po: Update from translation team.
11696 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11697 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
11698 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11699 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11701 2001-11-10 Andreas Jaeger <aj@suse.de>
11703 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11704 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11705 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11707 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11709 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11711 * elf/dl-load.c (is_dst): New function.
11712 (_dl_dst_count): Use is_dst to check for DST variable.
11713 (_dl_dst_substitute): Likewise.
11715 2001-11-09 Roland McGrath <roland@frob.com>
11717 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11718 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11719 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11720 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11721 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11722 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11723 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11724 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11725 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11726 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11727 * sysdeps/mach/hurd/powerpc/Dist: New file.
11729 * hurd/privports.c (__get_privileged_ports):
11730 Only contact the proc server if necessary for this call.
11731 Suggested by Neal H Walfield <neal@cs.uml.edu>.
11732 Check error return for mach_port_mod_refs.
11734 2001-11-09 Andreas Schwab <schwab@suse.de>
11736 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11738 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11740 * elf/dl-load.c (lose): Remove some unnecessary code. The new
11741 object is always the last in the list.
11742 (_dl_map_object_from_fd): Delete code to remove from object list
11743 when DF_1_NOOPEN is seen. This is done in lose.
11745 2001-11-08 Ulrich Drepper <drepper@redhat.com>
11747 * elf/dl-object.c (_dl_new_object): Various small optimizations.
11749 2001-11-07 Ulrich Drepper <drepper@redhat.com>
11751 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11752 HWCAP_CHECK macro code.
11754 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11755 Now returns MAP_FAILED on error.
11756 * elf/rtld.c: Adjust caller.
11757 * sysdeps/generic/dl-cache.c: Likewise.
11758 * sysdeps/generic/ldsodefs.h: Adjust description.
11760 * elf/dl-version.c (match_symbol): Optimize error handling for size.
11761 (_dl_check_map_versions): Likewise.
11763 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11765 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11766 _dl_signal_error directly, always use lose. Set fd to -1 after
11768 (lose): Don't call close if fd == -1.
11770 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
11772 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
11773 Also fix typo @code {mbsinit} to @code{mbsinit}.
11775 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11777 * elf/dl-profile.c: Replace state variable with simple flag named
11778 running. Remove commented-out code.
11780 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11781 (_dl_init_paths): Likewise.
11782 (_dl_map_object_from_fd): Likewise.
11783 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11785 2001-11-06 Roland McGrath <roland@frob.com>
11787 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11788 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11790 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11791 sysdeps/powerpc/elf/sysdep.h.
11792 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11794 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11796 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
11798 (process_envvars): Some more optimizations.
11799 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11801 * elf/elf.h: Add dynamic tag definitions for prelinking.
11803 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11804 Rewrite code to remove environment varables for SUID binaries.
11805 Small optimization in LD_PROFILE handling.
11806 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11808 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11810 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11812 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11813 strings. Change type of second parameter.
11814 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11817 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11819 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
11821 * manual/string.texi: Fix typos.
11822 * manual/examples/argp-ex2.c: Likewise.
11824 2001-11-05 Roland McGrath <roland@frob.com>
11826 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11827 the more-specific unix/sysv/linux/powerpc file and breaks everything.
11828 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11829 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11830 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11831 here, put under [__ELF__].
11833 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11835 * manual/charset.texi: Extensive editing work.
11836 * manual/nss.texi: Likewise.
11837 Changes by Dennis Grace <dgrace@us.ibm.com>.
11839 2001-11-04 Roland McGrath <roland@frob.com>
11841 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11842 parameter to dir_mkfile.
11844 2001-11-02 Jakub Jelinek <jakub@redhat.com>
11846 * string/bits/string2.h (__strndup): If n is smaller than len, set
11848 * string/tester.c (test_strndup): New function.
11851 2001-11-01 Ulrich Drepper <drepper@redhat.com>
11853 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11855 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11856 * scripts/cpp: New file.
11858 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11859 for rtld_search_dirs content. Minor optimizations.
11861 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11863 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11864 avoiding unnecessary duplication.
11866 2001-10-31 Jakub Jelinek <jakub@redhat.com>
11868 * elf/dl-load.c (_dl_map_object): If library was found using
11869 LD_LIBRARY_PATH, don't try RUNPATH list.
11871 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
11873 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11874 Correct second argument of register_dump call.
11875 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11878 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11880 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11882 * iconvdata/TESTS: Likewise.
11883 * iconvdata/gconv-modules: Likewise.
11884 * iconvdata/ibm1132.c: New file.
11885 * iconvdata/ibm1132.h: New file.
11886 * iconvdata/ibm1133.c: New file.
11887 * iconvdata/ibm1133.h: New file.
11888 * iconvdata/ibm1162.c: New file.
11889 * iconvdata/ibm1162.h: New file.
11890 * iconvdata/testdata/IBM1132: New file.
11891 * iconvdata/testdata/IBM1132..UTF8: New file.
11892 * iconvdata/testdata/IBM1133: New file.
11893 * iconvdata/testdata/IBM1133..UTF8: New file.
11894 * iconvdata/testdata/IBM1162: New file.
11895 * iconvdata/testdata/IBM1162..UTF8: New file.
11896 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11898 * string/string.h: Fix typo in comment.
11899 * wcsmbs/wchar.h: Likewise.
11901 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
11903 * manual/getopt.texi (getopt_long, getopt_long_only): Include
11904 const in type of longopts parameter.
11906 2001-10-29 Andreas Jaeger <aj@suse.de>
11908 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11910 2001-10-29 Kevin Ryde <user42@zip.com.au>
11912 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11913 output, clarify `#' behaviour on 0.
11914 (Floating-Point Conversions): Clarify that %g only uses %e when
11915 the exponent would be greater than 1.
11917 2001-10-28 Roland McGrath <roland@frob.com>
11919 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11920 * sysdeps/mach/powerpc/machine-sp.h: New file.
11921 * sysdeps/mach/powerpc/sysdep.h: New file.
11922 * sysdeps/mach/powerpc/thread_state.h: New file.
11924 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11925 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
11926 expect to need the same thing on every platform.
11928 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11929 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11931 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11932 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11933 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11934 Move all these assembly-related definitions to ...
11935 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11937 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11938 by Peter Bruin <pjbruin@dds.nl>.
11940 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11941 packing results for a `poll' call.
11943 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11945 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11947 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11948 bracket expression.
11950 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11952 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11954 2001-10-24 H.J. Lu <hjl@gnu.org>
11956 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11957 Use __BEGIN_DECLS/__END_DECLS around prototypes.
11958 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11960 2001-10-21 Jim Meyering <meyering@lucent.com>
11962 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
11963 this code would end up calling gettext even in packages built
11964 with --disable-nls.
11965 * posix/getopt.c (_): Likewise.
11966 * posix/regex.c (_): Likewise.
11968 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11970 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11971 lookup not ip6.int.
11972 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11973 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11975 2001-10-19 Jakub Jelinek <jakub@redhat.com>
11977 * misc/sys/cdefs.h (__attribute_used__): Define.
11978 * elf/rtld.c (_dl_start): Add __attribute_used__.
11979 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11981 2001-10-25 Andreas Schwab <schwab@suse.de>
11983 * stdlib/a64l.c: Expect least significant digit first.
11984 * stdlib/l64a.c: Produce least significant digit first.
11985 * stdlib/Makefile (tests): Add test-a64l.
11986 * stdlib/test-a64l.c: New file.
11987 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11989 2001-10-21 Ulrich Drepper <drepper@redhat.com>
11991 * po/sk.po: Update from translation team.
11993 2001-10-18 Ulrich Drepper <drepper@redhat.com>
11995 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11997 2001-10-18 Andreas Schwab <schwab@suse.de>
11999 * math/libm-test.inc (print_ulps): Print ulp values rounded to
12001 (print_function_ulps): Likewise.
12002 (print_complex_function_ulps): Likewise.
12003 (print_max_error): Likewise.
12004 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
12006 2001-10-16 Andreas Schwab <schwab@suse.de>
12008 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
12011 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
12012 BSD_SETJMP or BSD__SETJMP is defined, resp.
12013 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
12014 a tail call to __sigsetjmp that would require extending the
12016 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
12017 * sysdeps/m68k/bsd-setjmp.S: Deleted.
12018 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
12019 Reported by Jes Sorensen <jes@trained-monkey.org>.
12021 2001-10-16 Andreas Jaeger <aj@suse.de>
12023 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
12024 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
12025 close PR libc/2589.
12027 2001-10-15 Ulrich Drepper <drepper@redhat.com>
12029 * po/ca.po: New file. Contributed by the translation team.
12031 2001-10-15 Ralf Baechle <ralf@gnu.org>
12033 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
12034 a varargs prototype. Remove dependency from kernel header files.
12036 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
12037 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
12039 2001-10-14 Ulrich Drepper <drepper@redhat.com>
12041 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
12042 to generate hexadecimal identifier.
12043 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
12045 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
12047 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
12049 2001-10-14 Ulrich Drepper <drepper@redhat.com>
12051 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
12052 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
12053 Contributed by Stephen L Moshier <moshier@mediaone.net>.
12055 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
12056 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12057 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
12058 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
12059 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
12060 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
12062 * timezone/africa: Update from tzdata2001d.
12063 * timezone/asia: Likewise.
12064 * timezone/australasia: Likewise.
12065 * timezone/backward: Likewise.
12066 * timezone/europe: Likewise.
12067 * timezone/leapseconds: Likewise.
12068 * timezone/northamerica: Likewise.
12069 * timezone/southamerica: Likewise.
12070 * timezone/zone.tab: Likewise.
12072 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
12074 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
12075 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
12077 2001-10-12 Ulrich Drepper <drepper@redhat.com>
12079 * elf/elf.h (PT_TLS): New definition.
12081 2001-10-10 Jeff Bailey <jbailey@nisa.net>
12083 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
12086 2001-10-07 Roland McGrath <roland@frob.com>
12088 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
12090 2001-10-10 Ulrich Drepper <drepper@redhat.com>
12092 * elf/elf.h: Add more ELFOSABI_* constants.
12094 2001-10-04 Ben Collins <bcollins@debian.org>
12096 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
12097 decleration of __need_wchar_t.
12099 2001-10-03 Jakub Jelinek <jakub@redhat.com>
12101 * string/bits/string2.h (__strsep_g): Add prototype.
12102 (__strsep): Use it.
12103 * string/Versions (__strsep): Remove.
12104 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
12106 2001-10-07 Ulrich Drepper <drepper@redhat.com>
12108 * manua/llio.texi: Clarify file references added by mmap.
12109 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12111 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
12113 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
12114 Add sc_loadrs and sc_rbs_bas to match current kernel.
12116 2001-09-27 Jakub Jelinek <jakub@redhat.com>
12118 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
12120 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
12122 2001-09-27 Jakub Jelinek <jakub@redhat.com>
12124 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
12125 object has been bumped because of relocation dependency, avoid
12126 duplicates in l_scope.
12127 (show_scope): Fix typos.
12128 * elf/Makefile: Add rules to build and run reldep6.
12129 * elf/reldep6.c: New file.
12130 * elf/reldep6mod0.c: New file.
12131 * elf/reldep6mod1.c: New file.
12132 * elf/reldep6mod2.c: New file.
12133 * elf/reldep6mod3.c: New file.
12134 * elf/reldep6mod4.c: New file.
12136 2001-09-26 Jakub Jelinek <jakub@redhat.com>
12138 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
12140 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
12141 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
12142 for non-lazy binding. Fix .plt[32768+] handling.
12143 (elf_machine_plt_value): Don't add addend.
12144 (elf_machine_rela): Call sparc64_fixup_plt instead of
12145 elf_machine_fixup_plt.
12146 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
12147 dynamic linker at 0xfffff800XXXXXXXX.
12149 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
12151 2001-09-28 Ulrich Drepper <drepper@redhat.com>
12153 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
12155 2001-09-25 Jakub Jelinek <jakub@redhat.com>
12157 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
12158 declare __cmsg_data field if its size would be bigger than 0.
12159 (CMSG_DATA): Adjust accordingly.
12160 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
12161 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
12162 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
12163 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
12164 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12165 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
12166 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12168 2001-09-25 Ulrich Drepper <drepper@redhat.com>
12170 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
12171 * iconvdata/testdata/IBM1160: New file.
12172 * iconvdata/testdata/IBM1160..UTF8: New file.
12173 * iconvdata/testdata/IBM1161: New file.
12174 * iconvdata/testdata/IBM1161..UTF8: New file.
12175 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12177 2001-09-24 Ulrich Drepper <drepper@redhat.com>
12179 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
12180 UL_SETFSIZE computations better.
12182 * rt/Makefile: Remove use of filter for librt again.
12184 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
12185 UL_SETFSIZE computations better.
12187 * string/Versions: Export __strsep for GLIBC_2.2.5.
12188 * string/bits/string2.h: Define all __STRING_INLINE functions if
12189 _FORCE_INLINES is defined.
12190 Use int instead of char of parameter types.
12191 (__strsep): Don't use __strsep_g. Don't define it.
12192 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
12193 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
12195 (__stpcpy_a_small): Renamed from __stpcpy_small.
12196 (__strcspn_c1): Don't define if _FORCE_INLINES.
12197 (__strspn_c1): Likewise.
12199 2001-09-22 Ben Collins <bcollins@debian.org>
12201 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
12202 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
12203 * sysdeps/ia64/bits/sigaction.h: Likewise.
12204 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
12206 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
12208 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
12210 2001-09-24 Jakub Jelinek <jakub@redhat.com>
12212 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
12214 2001-09-24 Ulrich Drepper <drepper@redhat.com>
12216 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
12218 2001-09-20 H.J. Lu <hjl@gnu.org>
12220 * include/dlfcn.h (__RTLD_SPROF): New definiton.
12221 * elf/dl-open.c (dl_open_worker): Return immediately after loading
12223 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
12224 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
12226 2001-09-20 H.J. Lu <hjl@gnu.org>
12228 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
12231 2001-09-22 Ulrich Drepper <drepper@redhat.com>
12233 * nss/getent.c: Accept -s parameter to overwrite rules in
12234 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
12236 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
12237 with as many ".0" as necessary to form a complete address
12238 inet_network understands.
12240 * nss/getent.c: Various cleanups. Use simpler and fewer function
12243 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12245 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
12247 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
12249 2001-09-22 Ulrich Drepper <drepper@redhat.com>
12251 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
12253 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
12254 * iconvdata/ibm1160.c: New file.
12255 * iconvdata/ibm1160.h: New file.
12256 * iconvdata/ibm1161.c: New file.
12257 * iconvdata/ibm1161.h: New file.
12258 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12260 2001-09-19 Jakub Jelinek <jakub@redhat.com>
12262 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
12263 difference between base address and first PT_LOAD's virtual address,
12264 not the base address.
12266 2001-09-11 Tom Rix <trix@redhat.com>
12268 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
12269 ifdef for __getopt_clean_environment.
12270 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
12272 2001-09-22 Andreas Jaeger <aj@suse.de>
12274 * elf/reldep4.c (main): Add proper prototype to fix warning.
12276 * elf/reldep5.c (main): Remove unused variable.
12278 * math/math_private.h: Add prototypes.
12280 2001-09-21 Andreas Jaeger <aj@suse.de>
12282 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
12283 * sysdeps/x86_64/Dist: New file.
12284 * sysdeps/x86_64/soft-fp/Dist: New file.
12286 * sysdeps/gnu/Dist: Remove eval.c.
12288 2001-09-20 Ulrich Drepper <drepper@redhat.com>
12290 * malloc/memusage.c (realloc): Don't count already allocated
12291 memory in the sums.
12292 (me): Always use dlsym() to find the real implementations.
12294 * malloc/memusage.sh: Make -n option actually do something.
12296 2001-09-20 Andreas Jaeger <aj@suse.de>
12298 * elf/elf.h (R_390_NUM): Correct value.
12300 * Versions.def: Add missing versions 2.2.3 for libthread_db and
12303 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
12304 for x86-64, install x86-64 into */lib64.
12306 * shlib-versions: Add x86-64.
12308 * elf/elf.h: Add x86-64 relocations.
12310 2001-09-19 Ulrich Drepper <drepper@redhat.com>
12312 * po/fr.po: Update from translation team.
12314 2001-09-19 Andreas Jaeger <aj@suse.de>
12316 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
12317 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
12318 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
12319 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
12320 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12321 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
12322 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
12323 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
12324 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
12325 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
12326 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
12327 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
12328 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
12329 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
12330 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
12331 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
12332 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
12333 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12334 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
12335 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
12336 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
12337 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
12338 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
12339 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
12340 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
12341 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12342 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12343 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12344 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12345 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12346 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12347 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12348 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12349 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12350 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12351 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12352 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12353 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12354 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12355 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12356 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12357 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12358 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12359 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12360 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12361 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12362 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12363 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12364 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12365 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12366 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12367 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12368 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12369 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12370 * sysdeps/unix/x86_64/sysdep.S: New file.
12371 * sysdeps/unix/x86_64/sysdep.h: New file.
12372 * sysdeps/x86_64/Implies: New file.
12373 * sysdeps/x86_64/Makefile: New file.
12374 * sysdeps/x86_64/Versions: New file.
12375 * sysdeps/x86_64/__longjmp.S: New file.
12376 * sysdeps/x86_64/abort-instr.h: New file.
12377 * sysdeps/x86_64/atomicity.h: New file.
12378 * sysdeps/x86_64/bits/endian.h: New file.
12379 * sysdeps/x86_64/bits/setjmp.h: New file.
12380 * sysdeps/x86_64/bits/string.h: New file.
12381 * sysdeps/x86_64/bp-asm.h: New file.
12382 * sysdeps/x86_64/bsd-_setjmp.S: New file.
12383 * sysdeps/x86_64/bsd-setjmp.S: New file.
12384 * sysdeps/x86_64/dl-machine.h: New file.
12385 * sysdeps/x86_64/elf/initfini.c: New file.
12386 * sysdeps/x86_64/elf/start.S: New file.
12387 * sysdeps/x86_64/ffs.c: New file.
12388 * sysdeps/x86_64/ffsll.c: New file.
12389 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12390 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12391 * sysdeps/x86_64/fpu/e_acosl.c: New file.
12392 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12393 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12394 * sysdeps/x86_64/fpu/e_expl.c: New file.
12395 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12396 * sysdeps/x86_64/fpu/e_log10l.S: New file.
12397 * sysdeps/x86_64/fpu/e_log2l.S: New file.
12398 * sysdeps/x86_64/fpu/e_logl.S: New file.
12399 * sysdeps/x86_64/fpu/e_powl.S: New file.
12400 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12401 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12402 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12403 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12404 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12405 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12406 * sysdeps/x86_64/fpu/fegetenv.c: New file.
12407 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12408 * sysdeps/x86_64/fpu/fegetround.c: New file.
12409 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12410 * sysdeps/x86_64/fpu/fesetenv.c: New file.
12411 * sysdeps/x86_64/fpu/fesetround.c: New file.
12412 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12413 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12414 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12415 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12416 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12417 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12418 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12419 * sysdeps/x86_64/fpu/s_atanl.c: New file.
12420 * sysdeps/x86_64/fpu/s_cosl.S: New file.
12421 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12422 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12423 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12424 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12425 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12426 * sysdeps/x86_64/fpu/s_logbl.c: New file.
12427 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12428 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12429 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12430 * sysdeps/x86_64/fpu/s_rintl.c: New file.
12431 * sysdeps/x86_64/fpu/s_significandl.c: New file.
12432 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12433 * sysdeps/x86_64/fpu/s_sinl.S: New file.
12434 * sysdeps/x86_64/fpu/s_tanl.S: New file.
12435 * sysdeps/x86_64/gmp-mparam.h: New file.
12436 * sysdeps/x86_64/hp-timing.c: New file.
12437 * sysdeps/x86_64/hp-timing.h: New file.
12438 * sysdeps/x86_64/htonl.S: New file.
12439 * sysdeps/x86_64/memusage.h: New file.
12440 * sysdeps/x86_64/setjmp.S: New file.
12441 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12442 * sysdeps/x86_64/stackinfo.h: New file.
12443 * sysdeps/x86_64/sysdep.h: New file.
12444 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12446 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12449 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12451 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12452 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12454 2001-09-18 Andreas Schwab <schwab@suse.de>
12456 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12457 list, now that l_scope is a pointer.
12459 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12462 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
12464 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12465 (elf_machine_rela_relative): Add a missing declaration.
12467 2001-09-18 Jakub Jelinek <jakub@redhat.com>
12469 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12470 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12471 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12472 ldd-rewrite scripts.
12474 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12476 * elf/ldd.bash.in: Update copyright message.
12478 2001-09-17 H.J. Lu <hjl@gnu.org>
12480 * hurd/hurdmalloc.c (bcopy): Removed.
12481 (realloc): Replace bcopy with memcpy.
12482 * hurd/path-lookup.c (file_name_path_scan): Likewise.
12483 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12484 * sunrpc/rpcinfo.c (pmapdump): Likewise.
12486 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12487 (gethostbyaddr): Likewise.
12488 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12490 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12492 * sysdeps/gnu/eval.c: Removed.
12494 2001-09-18 Andreas Jaeger <aj@suse.de>
12496 * sysdeps/i386/fpu/s_logbl.S: Move to ...
12497 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12499 * sysdeps/i386/fpu/s_rintl.S: Move to ...
12500 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12502 * sysdeps/i386/fpu/s_significandl.S: Move to ...
12503 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12505 2001-09-16 Ulrich Drepper <drepper@redhat.com>
12507 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12510 2001-09-14 H.J. Lu <hjl@gnu.org>
12512 * sysdeps/mips/fpu/libm-test-ulps: Updated.
12514 2001-09-14 Ulrich Drepper <drepper@redhat.com>
12516 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12517 Patch by Florian La Roche <laroche@redhat.com>.
12519 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12521 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12524 2001-09-14 Andreas Schwab <schwab@suse.de>
12526 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
12527 Sumner <bls@sgi.com>.
12528 * posix/execlp.c: Likewise.
12530 2001-09-13 Jakub Jelinek <jakub@redhat.com>
12532 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12533 is already found earlier in the search scope.
12535 2001-09-12 Jakub Jelinek <jakub@redhat.com>
12537 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12540 2001-09-13 Ulrich Drepper <drepper@redhat.com>
12542 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12544 2001-09-12 Ulrich Drepper <drepper@redhat.com>
12546 * config.h.in: Enforce optimization to be used.
12547 * Makeconfig (preprocess-versions): Define ASSEMBLER.
12548 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12549 * posix/Makefile (annexc-CFLAGS): Define to -O.
12550 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12552 2001-09-11 Ulrich Drepper <drepper@redhat.com>
12554 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12555 Patch by Stephan Kulow.
12557 2001-09-08 Ben Collins <bcollins@debian.org>
12559 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12560 usage of RESOLVE() (r_type, not reloc->r_type).
12562 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12564 * elf/dl-object.c: Avoid allocating extra memory block for name.
12565 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12566 allocated separately.
12567 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12569 2001-09-08 H.J. Lu <hjl@gnu.org>
12571 * po/zh_TW.po: Fix a typo.
12573 2001-09-07 Tom Rix <trix@redhat.com>
12575 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12577 2001-08-26 Tom Rix <trix@redhat.com>
12579 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12580 command line options.
12581 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12582 * sysdeps/unix/sysv/aix/start.c: Removed.
12583 * sysdeps/unix/sysv/aix/start-libc.c: New file.
12584 * sysdeps/unix/sysv/aix/init-first.c: New file.
12585 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12587 2001-09-08 Ben Collins <bcollins@debian.org>
12589 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12590 * sysdeps/generic/dl-machine.h: Likewise.
12591 * sysdeps/hppa/dl-fptr.c: Likewise.
12592 * sysdeps/ia64/dl-fptr.c: Likewise.
12593 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12594 * sysdeps/mips/dl-machine.h: Likewise.
12595 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12596 * sysdeps/powerpc/dl-machine.c: Likewise.
12598 2001-09-07 Ben Collins <bcollins@debian.org>
12600 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12602 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12604 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12606 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12607 dependencies if necessary.
12609 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12610 loaded directly) determine length if l_initfini list by iterating
12611 over its elements. Minor optimizations.
12612 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12613 for dependency objects.
12614 If object was already loaded check whether any of the dependencies
12615 is already on the relocation dependency list. If yes, remove the
12616 latter. Minor optimizations.
12617 * elf/dl-lookup.c (add_dependency): Add check for self reference of
12618 maps here. Search l_initfini list only if the object was loaded
12619 directly and not only as a dependency.
12620 (_dl_lookup_symbol): Add relocation dependency also if object
12621 is not in global scope. Remove test for self-reference here.
12622 (_dl_lookup_versioned_symbol): Likewise.
12623 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
12624 element of first name record.
12625 * elf/loadtest.c: Add some more test to recognize early if an object
12627 * elf/Makefile: Add rules to build and run reldep5.
12628 * elf/reldep5.c: New file.
12629 * elf/reldepmod5.c: New file.
12630 * elf/reldepmod6.c: New file.
12632 * elf/reldep2.c: Fix typo.
12634 2001-09-07 Ulrich Drepper <drepper@redhat.com>
12636 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12637 elements. Change l_scope to be a pointer only.
12638 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12639 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12640 here add searchlist of newly open file to the dependency's scope.
12641 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12642 only searchlist from its scope. Free own scope array if necessary.
12643 * elf/Makefile (tests): Add dblload and dblunload now.
12645 2001-09-06 Andreas Jaeger <aj@suse.de>
12647 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12650 2001-09-05 Ulrich Drepper <drepper@redhat.com>
12652 * elf/Makefile: Add rules to build new tests. Don't run them yet since
12654 * elf/dblload.c: New file.
12655 * elf/dblloadmod1.c: New file.
12656 * elf/dblloadmod2.c: New file.
12657 * elf/dblloadmod3.c: New file.
12658 * elf/dblunload.c: New file.
12660 2001-09-04 Richard Henderson <rth@redhat.com>
12662 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12663 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12665 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12667 Correct very misleading message for error in failed runtime relocation.
12668 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12669 place of the error.
12670 (_dl_signal_cerror): Likewise.
12671 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12672 * elf/dl-close.c: Likewise.
12673 * elf/dl-deps.c: Likewise.
12674 * elf/dl-load.c: Likewise.
12675 * elf/dl-lookup.c: Likewise.
12676 * elf/dl-open.c: Likewise.
12677 * elf/dl-reloc.c: Likewise.
12678 * elf/dl-sym.c: Likewise.
12679 * elf/dl-version.c: Likewise.
12680 * sysdeps/generic/dl-sysdep.c: Likewise.
12682 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12684 * iconv/strtab.c (strtabinit): Initialize null Strent.
12685 (newstring): Move len == 0 handling...
12686 (strtabadd): ...here.
12687 If len == 1, return null Strent.
12688 When inserting a suffix of an existing string, check if
12689 it is not equal to some suffix already recorded.
12690 Copy left and right members over if adding longer string.
12692 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12694 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12696 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12697 (__syscall_gethostname): Add prototype.
12699 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12701 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12703 2001-09-02 Ulrich Drepper <drepper@redhat.com>
12705 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12707 2001-08-27 Roland McGrath <roland@frob.com>
12709 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12710 short, copy that much into NAME anyway before returning error.
12712 2001-09-01 Richard Henderson <rth@redhat.com>
12714 * sysdeps/alpha/elf/Dist: Remove file.
12715 * sysdeps/alpha/elf/Makefile: Remove file.
12716 * sysdeps/alpha/elf/crtbegin.S: Remove file.
12717 * sysdeps/alpha/elf/crtend.S: Remove file.
12718 * sysdeps/alpha/elf/initfini.c: New file.
12720 2001-09-01 Mark Kettenis <kettenis@gnu.org>
12722 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12723 * iconv/tst-iconv3.c: Likewise.
12725 2001-09-01 Jakub Jelinek <jakub@redhat.com>
12727 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12729 2001-09-01 Ulrich Drepper <drepper@redhat.com>
12731 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12733 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12734 * iconv/iconv_prog.c (insert_cache): New function.
12735 (print_known_names): If cache is used call insert_cache to use the
12736 information from the cache [PR libc/2509].
12738 2001-08-31 Ulrich Drepper <drepper@redhat.com>
12740 * time/strptime.c (strptime_internal): Recognize 'l' format and
12741 handle it like 'I' for symmetry with strftime.
12743 2001-08-31 Richard Henderson <rth@redhat.com>
12745 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12746 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12747 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12748 (print_statistics): Make scalar unsigned long long.
12749 * sysdeps/alpha/hp-timing.h: New file.
12751 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12753 * stdio-common/perror.c (perror): Save errno early, pass it
12754 down to perror_internal.
12755 (perror_internal): Add errnum argument.
12757 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12759 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12760 Don't add old memory content for R_ALPHA_REFQUAD.
12762 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12764 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12767 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12768 instead of open, __close instead of close, __getpagesize instead
12771 * string/argz-stringify.c (__argz_stringify): Use __strnlen
12772 instead of strnlen.
12773 * include/string.h (strndupa): Redefine here to use __strnlen
12774 instead of strnlen.
12775 * string/strndup.c (__strndup): Use __strnlen not strnlen.
12777 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12780 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12782 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12783 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
12784 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12785 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12786 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12787 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12788 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12790 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12792 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12794 2001-08-30 Andreas Jaeger <aj@suse.de>
12796 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12797 contributed Stephen L Moshier.
12799 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12801 * sunrpc/etc.rpc (sgi_fam): Add.
12803 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12805 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12807 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12809 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12810 first is from a previous call.
12811 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12813 2001-08-29 Andreas Schwab <schwab@suse.de>
12815 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12817 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12819 * config.make.in (INSTALL_SCRIPT): Define.
12820 * Makeconfig (INSTALL_SCRIPT): Define.
12821 * Makerules (do-install-script): New macro to install scripts using
12823 (install-bin-script): New rule to install scripts with
12825 (install-bin-script-nosubdir): New rule.
12826 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12827 (distinfo-vars): Add $(install-bin-script).
12828 * Rules (others): Likewise.
12829 * Makefile (glibcbug): Install with install-bin-script.
12830 * debug/Makefile (xtrace): Likewise.
12831 (catchsegv): Likewise.
12832 * elf/Makefile (ldd): Likewise.
12833 * malloc/Makefile (mtrace): Likewise.
12834 * timezone/Makefile (tzselect): Likewise.
12836 2001-08-29 H.J. Lu <hjl@gnu.org>
12838 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12839 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12840 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12842 2001-08-29 Andreas Schwab <schwab@suse.de>
12844 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12846 2001-08-28 H.J. Lu <hjl@gnu.org>
12848 * Makeconfig (combreloc-LDFLAGS): New variable.
12849 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12850 * config.make.in (have-z-combreloc): New variable.
12851 * configure.in: Substitute libc_cv_z_combreloc.
12853 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12855 * po/sv.po: Update from translation team.
12856 * po/fr.po: Likewise.
12857 * po/da.po: Likewise.
12859 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12861 * Makerules: Fix a typo: MD% -> MD5.
12863 2001-08-28 Ulrich Drepper <drepper@redhat.com>
12865 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12866 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12868 2001-08-28 Andreas Jaeger <aj@suse.de>
12870 * manual/libc-texinfo.sh: Add entry about free manuals.
12872 * manual/contrib.texi (Contributors): Fix cross reference.
12874 * manual/libc.texinfo (Copying): Include freemanuals.
12876 * manual/Makefile (appendices): Add freemanuals.
12878 * manual/freemanuals.texi: New file.
12879 Patch by Brian Youmans <3diff@gnu.org>.
12881 * manual/libm-err-tab.pl: Pretty print more platforms, print a
12884 * manual/math.texi (Errors in Math Functions): Fix grammar, start
12885 table on separate page.
12886 Patch by Brian Youmans <3diff@gnu.org>.
12888 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12890 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
12891 the connection went down after we first used it try to connect
12892 again and resend the message before printing to the console.
12893 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12895 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12897 * string/tst-strlen.c (main): Test strnlen (, -1) too.
12898 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12901 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12903 * iconv/strtab.c (searchstring): Use correct length for comparison.
12904 (strtabadd): Account total size correct if new string has old string as
12907 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12909 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12911 2001-08-27 Andreas Jaeger <aj@suse.de>
12913 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12915 * math/libm-test.inc (j0_test): Add extra tests.
12916 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12917 not x, in Hankel approximation.
12918 Patches by Stephen L Moshier.
12920 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12922 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12925 * configure.in: Fix test for .rela.dyn section.
12927 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12929 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12931 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12932 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12933 Pass type_class to _dl_lookup_*.
12934 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12935 Pass around just type_class instead of noexec, noplt pair.
12936 (_dl_lookup_versioned_symbol): Likewise.
12937 (_dl_lookup_symbol_skip): Pass around just type_class instead of
12938 noexec, noplt pair.
12939 (_dl_lookup_versioned_symbol_skip): Likewise.
12940 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12941 * elf/do-lookup.h (do_lookup): Likewise.
12942 * include/link.h (struct link_map): Replace noexec and noplt fields
12943 in l_lookup_cache with type_class field.
12944 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12945 ELF_RTYPE_CLASS_COPY): Define.
12946 Adjust prototypes for _dl_lookup_symbol and
12947 _dl_lookup_versioned_symbol.
12948 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12949 elf_machine_lookup_noexec_p): Remove.
12950 (elf_machine_type_class): Define.
12951 * sysdeps/arm/dl-machine.h: Likewise.
12952 * sysdeps/hppa/dl-machine.h: Likewise.
12953 * sysdeps/cris/dl-machine.h: Likewise.
12954 * sysdeps/i386/dl-machine.h: Likewise.
12955 * sysdeps/ia64/dl-machine.h: Likewise.
12956 * sysdeps/m68k/dl-machine.h: Likewise.
12957 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12958 * sysdeps/mips/dl-machine.h: Likewise.
12959 * sysdeps/powerpc/dl-machine.h: Likewise.
12960 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12961 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12962 * sysdeps/sh/dl-machine.h: Likewise.
12963 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12964 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12966 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12968 * manual/message.texi (Advanced gettext functions): Change
12969 description of plural forms for Slovak.
12970 Reported by Marcel Telka <marcel@telka.sk>.
12972 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12973 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12975 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12977 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12978 typo. Patch by Florian La Roche <laroche@redhat.com>.
12980 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12982 * include/link.h (struct link_map): Add l_lookup_cache element.
12983 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12984 (RESOLVE_MAP): Likewise.
12985 (_dl_relocate_object): Remove cache initialization.
12986 * elf/dl-lookup.c: Rip out cache handling code.
12987 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12990 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12991 remove some __builtin_expect.
12992 (_dl_lookup_versioned_symbol): Likewise.
12994 * config.h.in: Add HAVE_Z_COMBRELOC.
12995 * configure.in: Add test for -z combreloc.
12997 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12998 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
12999 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
13000 case to almost no code.
13002 2001-08-25 Ulrich Drepper <drepper@redhat.com>
13004 * po/tr.po: Update from translation team.
13006 2001-08-24 Andreas Jaeger <aj@suse.de>
13008 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
13011 2001-08-24 Ulrich Drepper <drepper@redhat.com>
13013 * elf/rtld.c (print_statistics): Printf % after percent values.
13014 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
13016 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
13017 don't have to compute the hash value and initialize current_value.
13018 Move reference_name variable to where it is needed.
13019 (_dl_lookup_versioned_symbol): Likewise.
13021 2001-08-24 Roland McGrath <roland@frob.com>
13023 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
13024 Just test that strerror returns non-null for a few errno codes.
13026 2001-08-23 Roland McGrath <roland@frob.com>
13028 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
13029 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
13031 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
13033 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
13036 2001-08-24 Ulrich Drepper <drepper@redhat.com>
13038 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
13041 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
13042 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
13044 * elf/rtld.c: Include <sys/param.h>.
13045 * elf/dl-reloc.c: Likewise.
13047 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
13049 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
13050 empty to prevent junk from being generated.
13051 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
13053 2001-08-24 Jakub Jelinek <jakub@redhat.com>
13055 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
13056 records. Rename endrel to relative, initialize it to r, and use it
13057 in elf_machine_rel_relative calls. Point r after relative relocs.
13059 2001-08-24 Ulrich Drepper <drepper@redhat.com>
13061 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
13064 2001-08-24 Jakub Jelinek <jakub@redhat.com>
13066 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
13067 necessary. Undefine newly defined macros at the end.
13068 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
13069 Rename from elf_machine_rel_relative.
13070 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
13071 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
13072 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
13073 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
13075 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
13077 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
13078 Fix argument types.
13079 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
13080 Fix argument types.
13081 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
13082 Likewise. Fix argument types.
13083 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
13084 Likewise. Fix argument types.
13085 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
13086 Fix argument types.
13087 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
13088 ElfW(Rel) in argument.
13089 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
13092 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
13094 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
13096 2001-08-24 Andreas Jaeger <aj@suse.de>
13098 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
13099 Stephen L Moshier <moshier@mediaone.net>.
13101 2001-08-24 Ulrich Drepper <drepper@redhat.com>
13103 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
13104 first if RELCOUNT is set.
13106 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
13107 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
13108 elf_machine_rel_relative.
13109 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
13110 Minor optimizations.
13111 * sysdeps/arm/dl-machine.h: Likewise.
13112 * sysdeps/cris/dl-machine.h: Likewise.
13113 * sysdeps/hppa/dl-machine.h: Likewise.
13114 * sysdeps/i386/dl-machine.h: Likewise.
13115 * sysdeps/ia64/dl-machine.h: Likewise.
13116 * sysdeps/m68k/dl-machine.h: Likewise.
13117 * sysdeps/mips/dl-machine.h: Likewise.
13118 * sysdeps/powerpc/dl-machine.h: Likewise.
13119 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13120 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13121 * sysdeps/sh/dl-machine.h: Likewise.
13122 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13123 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13125 2001-08-23 Roland McGrath <roland@frob.com>
13127 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
13129 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
13130 sysdeps/mach version. Implement counting ("recursive") mutexes
13131 on top of cthreads mutexes.
13132 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
13134 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
13135 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
13136 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13137 __libc_clean_end): Define these to call the cleanup function after
13138 normal exit when they're supposed to.
13140 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
13141 Take new first arg DOIT, a boolean saying whether to really install
13142 any cleanup handler.
13143 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
13144 (__libc_cleanup_end): Likewise.
13145 * sysdeps/generic/bits/libc-lock.h: Same changes.
13146 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
13147 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
13148 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
13150 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
13151 * sysdeps/generic/bits/stdio-lock.h
13152 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
13154 2001-08-23 Jakub Jelinek <jakub@redhat.com>
13156 * elf/ldconfig.c (search_dir): Remove stale symlinks.
13158 2001-08-23 Jakub Jelinek <jakub@redhat.com>
13160 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
13162 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
13164 (_dl_lookup_versioned_symbol): Likewise.
13165 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
13167 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
13168 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
13169 (lookup_cache, lookup_cache_versioned): Add declarations.
13171 2001-08-23 Ulrich Drepper <drepper@redhat.com>
13173 * stdlib/tst-random.c (main): Swap parameters in fail call.
13174 Patch by Pete Bevin <pete@petebevin.com>.
13176 2001-08-23 Jakub Jelinek <jakub@redhat.com>
13178 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
13180 2001-08-23 Ulrich Drepper <drepper@redhat.com>
13182 * malloc/obstack.c: Indent preprocessor directives.
13183 Patch by Jim Meyering <meyering@ascend.com>.
13185 * po/ja.po: Update from translation team.
13187 2001-08-23 Roland McGrath <roland@frob.com>
13189 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
13191 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
13192 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
13194 2001-08-22 Roland McGrath <roland@frob.com>
13196 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
13197 __libc_lock_define_recursive.
13198 * elf/dl-open.c: Don't declare it here any more.
13199 * elf/dl-close.c: Likewise.
13200 * elf/dl-lookup.c: Likewise.
13201 * elf/dl-iteratephdr.c: Likewise.
13202 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
13203 __libc_lock_unlock_recursive.
13204 * elf/dl-close.c (_dl_close): Likewise
13205 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
13206 * elf/dl-open.c (_dl_open): Likewise
13208 * sysdeps/generic/bits/libc-lock.h
13209 (__libc_lock_define_recursive): New macro.
13210 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
13211 (_IO_lock_lock): Use __libc_lock_lock_recursive.
13212 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
13214 * conform/conformtest.pl (checknamespace): Sort the output list.
13216 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
13217 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
13218 definitions conditional on [__USE_XOPEN].
13220 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
13221 these unconditionally, not only use [__USE_BSD], so as to match
13222 the sysdeps/unix/sysv/linux files.
13224 2001-08-22 Ulrich Drepper <drepper@redhat.com>
13226 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
13229 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
13232 2001-08-22 Roland McGrath <roland@frob.com>
13234 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
13235 conditionalization of sa_handler/sa_sigaction member types to
13236 match the sysdeps/unix/sysv/linux file.
13238 2001-08-22 Ulrich Drepper <drepper@redhat.com>
13240 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
13241 symbol sizes a bit better.
13243 * sysdeps/ia64/strncpy.S: Complete rewrite.
13244 Contributed by Jakub Jelinek <jakub@redhat.com>.
13246 * string/stratcliff.c (main): Add strncpy test.
13248 2001-08-22 Roland McGrath <roland@frob.com>
13250 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
13251 and don't declare unsetenv or _environ directly.
13252 (unsetenv): Return int, not void. Use __environ instead of _environ.
13254 2001-08-01 Mark Kettenis <kettenis@gnu.org>
13256 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
13257 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
13258 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
13259 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
13260 test for cmsg struct size.
13262 2001-04-23 Paul Eggert <eggert@twinsun.com>
13264 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
13265 Rename __argc to ___argc in prototypes to avoid compatibility
13266 problems with systems that reserve the identifier "__argc".
13267 Similarly for __argv.
13269 2001-08-21 Roland McGrath <roland@frob.com>
13271 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
13273 * mach/Makefile (tests): Removed.
13274 * mach/hello.c: File removed.
13276 2001-08-22 Ulrich Drepper <drepper@redhat.com>
13278 * po/sv.po: Update from translation team.
13280 * stdio-common/vfscanf.c: Fix handling of %l[].
13281 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
13283 * libio/Makefile (tests): Add tst-sscanf.
13284 * libio/tst-sscanf.c: New file.
13286 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
13287 * malloc/mtrace.c (tr_where): dli_sname always points to a
13288 non-empty string if != NULL.
13289 Reported by Tim Janik <timj@gtk.org>.
13291 2001-08-22 Jakub Jelinek <jakub@redhat.com>
13293 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
13294 buf. Free resources on failure.
13295 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
13296 (makefd_xprt): Likewise.
13297 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
13298 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
13299 * sunrpc/auth_unix.c (authunix_create): Likewise.
13301 2001-08-21 Jakub Jelinek <jakub@redhat.com>
13303 * string/strnlen.c: Remove.
13304 * sysdeps/generic/strnlen.c: New file.
13305 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
13307 2001-08-21 Roland McGrath <roland@frob.com>
13309 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
13310 as a macro, not an extern inline function.
13312 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
13313 * Versions.def (libc): Add GLIBC_2.2.5 set.
13314 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
13315 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
13317 2001-08-20 Roland McGrath <roland@frob.com>
13319 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
13320 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
13322 2001-08-21 Ulrich Drepper <drepper@redhat.com>
13324 * string/bits/string2.h: Remove strnlen optimization here.
13325 * sysdeps/i386/i486/bits/string.h: Add it here.
13327 2001-08-21 Wolfram Gloger <wg@malloc.de>
13329 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
13331 2001-08-21 Ulrich Drepper <drepper@redhat.com>
13333 * po/gl.po: Update from translation team.
13335 2001-08-20 Ulrich Drepper <drepper@redhat.com>
13337 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
13338 * misc/err.c (convert_and_print): Likewise.
13340 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13343 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
13345 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13346 change of the gregset_t type.
13347 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13349 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
13351 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13353 2001-08-20 Ulrich Drepper <drepper@redhat.com>
13355 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13357 * string/strnlen.c: Fix the implementation. We cannot use memchr.
13359 2001-08-18 Mark Kettenis <kettenis@gnu.org>
13361 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13362 before calling the cthreads initialization code.
13364 2001-08-20 Ulrich Drepper <drepper@redhat.com>
13366 * argp/argp-help.c: Fix two problems introduced in last change.
13368 * include/dirent.h: Include <dirstream.h> first.
13370 2001-08-19 Ulrich Drepper <drepper@redhat.com>
13372 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13374 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13375 * sunrpc/xdr_rec.c: Likewise.
13376 * sunrpc/xdr_mem.c: Likewise.
13377 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13378 * sunrpc/rpc_cmsg.c: Likewise.
13379 * sunrpc/getrpcport.c (getrpcport): Likewise.
13380 * sunrpc/clnt_simp.c (callrpc): Likewise.
13381 * sunrpc/clnt_gen.c (clnt_create): Likewise.
13382 * string/envz.c: Likewise.
13384 * po/ko.po: Update from translation team.
13386 * argp/argp-help.c: Handle wide oriented stderr stream.
13388 2001-08-18 Ulrich Drepper <drepper@redhat.com>
13390 * sysdeps/generic/strtol.c: Little optimizations. Add some
13393 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13395 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13396 * wcsmbs/wcwidth.c (wcwdith): Likewise.
13397 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13399 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13401 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13403 * time/time.h (struct timespec): Use __time_t for tv_sec element.
13405 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
13406 wchar_t for function declarations and defintions.
13408 * misc/sys/select.h: Define __need_time_t before including <time.h>.
13409 Define suseconds_t if it hasn't happened yet.
13411 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13413 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13415 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13418 * conform/data/stddef.h-data: Remove wint_t.
13420 * conform/conformtest.pl: Change namespace test to take #undef
13421 lines into account.
13423 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13425 * conform/data/sys/socket.h-data: Add sockatmark.
13427 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13429 * io/fts.c: Update from recent BSD source.
13431 2001-08-17 Roland McGrath <roland@frob.com>
13433 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13434 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13437 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13439 * locale/duplocale.c (__duplocale): Also initialize the special
13440 __ctype_* elements.
13442 * conform/data/netdb.h-data: Adjust gai_strerror return type.
13444 2001-08-17 Andreas Jaeger <aj@suse.de>
13446 * misc/getpass.c: Include wchar.h for prototypes.
13447 * malloc/obstack.c: Likewise.
13449 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13451 * sunrpc/svc_simple.c (universal): Use __write instead of write.
13453 * wcsmbs/wcscoll.c: Also define __wcscoll.
13454 * include/wchar.h: Declare __wcscoll.
13456 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13457 * libio/vwprintf.c: Likewise.
13458 * libio/wprintf.c: Likewise.
13460 * iconv/gconv_cache.c: Use __munmap instead of munmap.
13462 2001-08-16 Ulrich Drepper <drepper@redhat.com>
13464 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13465 instead of mbrtowc.
13466 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13467 wcslen, and __wcscoll instead of wcscoll.
13469 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13471 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13472 __getuid instead of getuid.
13474 * stdio-common/perror.c (perror): Use __close instead of close.
13475 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13476 * libio/freopen.c (freopen): Likewise.
13477 * libio/freopen64.c (freopen64): Likewise.
13479 * libio/tst-ungetwc2.c (main): Define str const.
13481 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13482 * libio/fwprintf.c: Also define __fwprintf.
13483 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13484 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13485 * assert/assert-perr.c: Likewise.
13486 * assert/assert.c: Likewise.
13487 * gmon/gmon.c: Likewise.
13488 * inet/rcmd.c: Likewise.
13489 * malloc/obstack.c: Likewise.
13490 * misc/err.c: Likewise.
13491 * misc/error.c: Likewise.
13492 * misc/getpass.c: Likewise.
13493 * posix/getopt.c: Likewise.
13494 * resolv/res_hconf.c: Likewise.
13495 * stdio-common/perror.c: Likewise.
13496 * stdio-common/psignal.c: Likewise.
13497 * stdlib/fmtmsg.c: Likewise.
13498 * sunrpc/auth_unix.c: Likewise.
13499 * sunrpc/clnt_perr.c: Likewise.
13500 * sunrpc/clnt_tcp.c: Likewise.
13501 * sunrpc/clnt_udp.c: Likewise.
13502 * sunrpc/clnt_unix.c: Likewise.
13503 * sunrpc/svc_simple.c: Likewise.
13504 * sunrpc/svc_tcp.c: Likewise.
13505 * sunrpc/svc_udp.c: Likewise.
13506 * sunrpc/svc_unix.c: Likewise.
13507 * sunrpc/xdr.c: Likewise.
13508 * sunrpc/xdr_array.c: Likewise.
13509 * sunrpc/xdr_rec.c: Likewise.
13510 * sunrpc/xdr_ref.c: Likewise.
13511 * sysdeps/generic/wordexp.c: Likewise.
13513 * po/it.po: Update from translation team.
13515 * misc/err.c: Handle wide oriented stderr stream.
13517 2001-08-14 Tom Rix <trix@redhat.com>
13519 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13520 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13522 2001-08-13 Tom Rix <trix@redhat.com>
13524 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13525 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13528 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
13530 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13531 Store the access registers to the ucontext structure.
13532 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13535 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13536 Load the access registers from the ucontext structure.
13537 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13540 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13541 offsets to the new ucontext layout.
13542 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13544 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13545 of the ucontext structure.
13546 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13548 2001-08-15 Ulrich Drepper <drepper@redhat.com>
13550 * misc/error.c (error): Handle wide oriented stderr stream correctly.
13551 (error_at_line): Likewise.
13553 * stdio-common/perror.c (perror): Implement according to standard.
13554 The stream orientation must not be changed if the stream was not
13555 oriented before the call.
13556 * stdio-common/Makefile (tests): Add tst-perror.
13557 * stdio-common/tst-perror.c: New file.
13560 See ChangeLog.12 for earlier changes.