1 2002-10-01 Jakub Jelinek <jakub@redhat.com>
3 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ,
4 SIGSTKSZ): Changed to match kernel.
5 * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h: New file.
7 2002-10-01 Carlos O'Donell <carlos@baldric.uwo.ca>
9 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
10 [__USE_GNU] (F_SETLEASE, F_GETLEASE, F_NOTIFY): New macros.
11 [__USE_GNU] (DN_ACCESS, DN_MODIFY, DN_CREATE, DN_DELETE, DN_RENAME,
12 DN_ATTRIB, DN_MULTISHOT): New macros.
14 2002-02-08 Randolph Chung <tausq@debian.org>
16 * sysdeps/hppa/elf/start.S: Define __data_start.
18 2002-10-01 Isamu Hasegawa <isamu@yamato.ibm.com>
20 * posix/regex_internal.c (re_string_reconstruct): Reset the member
22 * posix/regexec.c (re_search_stub): Remove incorrect condition of
24 Round RANGE in case that it is too small.
26 2002-10-01 Roland McGrath <roland@frob.com>
28 * config.h.in (NO_HIDDEN): New #undef.
29 * include/libc-symbols.h [! NO_HIDDEN]: Add this condition to
30 nonempty definitions of hidden_proto et al.
31 * configure.in: Grok --disable-hidden-plt to define NO_HIDDEN.
32 * configure: Regenerated.
33 * sysdeps/mach/hurd/configure.in: Always define NO_HIDDEN.
34 * sysdeps/mach/hurd/configure: Regenerated.
36 2002-09-19 David Mosberger <davidm@hpl.hp.com>
38 * sysdeps/ia64/dl-fptr.c (make_fdesc): Load address of "local" via
39 a 64-bit gp-relative address to enable binaries with large data
42 2002-09-30 Ulrich Drepper <drepper@redhat.com>
44 * stdlib/cxa_finalize.c (__cxa_finalize): Call UNREGISTER_ATFORK
46 * posix/Makefile (distribute): Add fork.h.
47 * sysdeps/generic/fork.h: New file.
49 2002-09-29 Bruno Haible <bruno@clisp.org>
51 * sysdeps/generic/utmp_file.c (LOCKING_FAILED): New macro.
52 (UNLOCK_FILE): Add a label.
53 (getutent_r_file, internal_getut_r, getutline_r_file, pututline_file,
54 updwtmp_file): Shut off the alarm clock when locking failed.
56 2002-09-30 Isamu Hasegawa <isamu@yamato.ibm.com>
58 * posix/regex_internal.h (re_match_context_t): Add a new member.
59 (re_fail_stack_ent_t): New structure.
60 (re_fail_stack_t): Likewise.
61 * posix/regexec.c (re_search_internal): Use the new member of
63 Use fail stack only if it has back references and there are plural
65 (proceed_next_node): Use fail stack if it is indicated.
67 (push_fail_stack): New function.
68 (pop_fail_stack): New function.
69 (check_dst_limits): Likewise.
70 (check_dst_limits_calc_pos): Likewise.
71 (search_subexp): Check the limitations on the top of subexpressions.
72 (sift_states_bkref): Check the limitations of the destination node.
73 Reuse the array sctx->sifted_states.
75 2002-09-30 Ulrich Drepper <drepper@redhat.com>
77 * stdio-common/printf_fp.c: Shuffle a few lines around to help the
78 compiler optimizing. No semantical changes intended.
80 2002-09-30 Jakub Jelinek <jakub@redhat.com>
82 * sysdeps/ia64/strncpy.S: Only segfault in .recovery2 if some bits
83 from the next quad are needed.
85 2002-09-30 Roland McGrath <roland@redhat.com>
87 * elf/tls-macros.h (TLS_LD, TLS_GD): Use call insn, not callq.
89 * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD] [! PIC]:
90 Use direct-%fs form of TLS access for errno.
92 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: File removed, since
93 the i386 version has all the same asm now.
95 * sysdeps/i386/elf/configure.in: Add @GOTNTPOFF and @NTPOFF uses to
96 the TLS support check.
97 * sysdeps/i386/elf/configure: Regenerated.
99 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE_TLS && HAVE___THREAD]
100 (SYSCALL_ERROR_HANDLER): Use direct-%gs form of TLS access for errno.
102 * sysdeps/unix/i386/sysdep.S (syscall_error)
103 [USE_TLS && HAVE___THREAD]: Use TLS access for errno.
105 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
106 [USE_TLS && HAVE___THREAD] (SYSCALL_ERROR_HANDLER): Use TLS access.
108 * rt/tst-aio7.c (do_test): Don't read from stdin, which could be the
109 terminal when the test is running in a background job. Instead, make
110 a pipe and read from its read half while never writing anything to it.
112 2002-09-30 Andreas Jaeger <aj@suse.de>
114 * stdlib/tst-bsearch.c (main): Fix format strings.
115 * stdio-common/tst-rndseek.c (do_test): Likewise.
116 * libio/tst_swprintf.c (main): Likewise.
117 * catgets/tst-catgets.c (main): Likewise.
118 * libio/tst-fgetws.c (main): Likewise.
119 * posix/tst-mmap.c (main): Likewise.
120 * posix/bug-regex12.c (main): Likewise.
121 * posix/bug-regex11.c (main): Likewise.
122 * io/tst-getcwd.c (do_test): Likewise.
124 * iconvdata/tst-e2big.c (test): Use %td in printf for ptrdiff_t.
126 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
127 Store 4 bytes into errno, not 8 bytes.
129 2002-09-29 Ulrich Drepper <drepper@redhat.com>
131 * posix/regexec.c (sift_states_bkref): Remove ret variable. Use
134 2002-09-29 Roland McGrath <roland@redhat.com>
136 * test-skeleton.c (timeout_handler): Use WUNTRACED flag in waitpid.
137 Examine the child's status and print something different if it wasn't
138 just killed by our SIGKILL.
139 (main): In the child process call setpgid to put it in its own pgrp.
141 2002-09-29 Ulrich Drepper <drepper@redhat.com>
143 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): The return value
144 semantics for sigtimedwait is different. Rework the return value
145 handling and don't pass in a siginfo variable.
147 2002-09-29 Roland McGrath <roland@redhat.com>
149 * malloc/malloc.c [! MALLOC_DEBUG] (assert): #undef before defining.
151 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.2.6): Add __errno_location.
153 * sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
154 Define errno in .tbss.
155 * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS
156 access for setting errno.
158 * sysdeps/unix/x86_64/sysdep.S: Store 32 bits at errno, not 64 bits.
159 AFAICT, it was just blind luck that the word following errno in .bss
160 was just alignment padding and not some other variable to be clobbered.
162 2002-09-29 Jakub Jelinek <jakub@redhat.com>
164 * sysdeps/unix/sysv/linux/kernel-features.h
165 (__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty.
167 2002-09-29 Jakub Jelinek <jakub@redhat.com>
169 * nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't
172 2002-09-29 Ulrich Drepper <drepper@redhat.com>
174 * nss/Makefile: Move bug-erange from tests to xtests.
176 2002-09-29 Jakub Jelinek <jakub@redhat.com>
178 * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
180 2002-09-29 Jakub Jelinek <jakub@redhat.com>
182 * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
184 (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
185 inline_syscall5, inline_syscall6): Likewise.
186 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
188 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
191 2002-09-29 Roland McGrath <roland@redhat.com>
193 * configure.in (libc_cv_ranlib_necessary check): Put the .o file in
194 the archive, not the .c file.
195 * configure: Regenerated.
197 2002-09-29 Roland McGrath <roland@redhat.com>
199 * configure: Regenerated after aclocal.m4 change.
201 * sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form.
202 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here.
204 * sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP):
205 Define it, because _dl_sym presumes it (for any platform).
207 * sysdeps/x86_64/dl-tls.h: New file.
209 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast.
211 * sysdeps/x86_64/elf/configure.in: New file.
212 * sysdeps/x86_64/elf/configure: New generated file.
214 2002-09-28 Roland McGrath <roland@redhat.com>
216 * elf/rtld.c (_dl_start): Fix conditional for declaring CNT.
218 * aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
221 2002-09-28 Ulrich Drepper <drepper@redhat.com>
223 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit
226 2002-09-28 Jakub Jelinek <jakub@redhat.com>
228 * posix/bug-regex11.c (tests): Add flags field.
229 (main): Avoid warnings. Use test[i].flags. Return nonzero
230 if any of the tests failed.
231 * posix/bug-regex12.c: New file.
232 * posix/Makefile (tests): Add bug-regex12.
234 2002-03-02 Thorsten Kukuk <kukuk@suse.de>
236 * sysdeps/unix/nice.c (nice): Use getpriority() for the return value.
238 2002-09-28 Jeff Bailey <jbailey@gnu.org>
240 * sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete.
241 * sysdeps/unix/sysv/aix/configure.in: Update comment and remove
244 2002-09-28 Roland McGrath <roland@redhat.com>
246 * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for
248 * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
249 * sysdeps/powerpc/powerpc64/dl-machine.c
250 (_dl_reloc_overflow): Likewise.
251 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
252 (elf_machine_rela): Likewise.
254 2002-09-27 Steven Munroe <sjmunroe@us.ibm.com>
256 * include/libc-symbols.h (__hidden_dot_weak1): Fix typo. Replace
257 ASM_GLOBAL_DIRECTIVE with .weak.
259 2002-09-28 Andreas Jaeger <aj@suse.de>
261 * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix
262 number of args to syscall.
263 * sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise.
264 Patch by Guido Guenther <agx@sigxcpu.org>.
266 2002-09-27 Roland McGrath <roland@redhat.com>
268 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite):
269 Define these to __NR_pread64, __NR_pwrite64 if not defined.
271 * sysdeps/unix/sysv/linux/powerpc/lchown.S
272 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition
273 on chown compatibility symbol; use compat_symbol, not symbol_version.
275 2002-09-27 Isamu Hasegawa <isamu@yamato.ibm.com>
277 * posix/regcomp.c (reg_free): Free the debug area.
278 (re_compile_internal): Allocate debug area for the input string.
279 (create_initial_state): Check the back references in initial states
280 if they are really match null string in the initial state.
281 (parse_reg_exp): Mark the dfa that the dfa can have plural matchings.
282 (parse_expression): Likewise.
283 (parse_bracket_exp): Likewise.
284 * posix/regex_internal.c (re_node_set_intersect): Remove unused
286 (re_node_set_contains): Change to return the index of node.
287 * posix/regex_internal.h (re_backref_cache_entry): Change the members.
288 (re_match_context_t): Likewise.
289 (struct re_dfa_t): Likewise.
290 (re_sift_context_t): New structure.
291 * posix/regexec.c (match_ctx_clear_flag): New function.
292 (sift_ctx_init): Likewise.
293 (update_cur_sifted_state): Likewise.
294 (add_epsilon_src_nodes): Likewise.
295 (sub_epsilon_src_nodes): Likewise.
296 (check_subexp_limits): Likewise.
297 (search_subexp): Likewise.
298 (sift_states_bkref): Likewise.
299 (merge_state_array): Likewise.
300 (sift_states_iter_bkref): Remove unused function.
301 (add_epsilon_backreference): Remove unused function.
302 (re_search_internal): Adapt new members and interfaces.
303 (check_matching): Check the back references in initial states
304 if they are really match null string in the initial state.
305 (proceed_next_node): Change the evaluation of back references,
306 since we have real registers here.
307 (set_regs): Adapt new interface of proceed_next_node.
308 (sift_states_backward): Add invocation of update_cur_sifted_state
309 instead of add_epsilon_backreference.
310 Add a sentinel to the outermost while loop.
311 Move the handling of back references to sift_states_bkref function,
312 since we can't handle some back references (e.g. a back reference
313 which match NULL string) here.
314 (transit_state_mb): Handle the new member max_mb_elem_len.
315 (transit_state_bkref_loop): Move the evaluation of back references to
316 search_subexp function, since we can't evaluate some back references
317 (e.g. a back reference which can have plural matchings) here.
318 (match_ctx_init): Adapt the new member.
319 (match_ctx_add_entry): Adapt the new members.
321 2002-09-25 Alan Modra <amodra@bigpond.net.au>
323 * elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for
324 'elf_machine_rel_relative'
325 (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro
326 instead of 'elf_machine_rel_relative'.
327 * sysdeps/hppa/dl-machine.h:
328 Define macro DO_ELF_MACHINE_REL_RELATIVE for
329 'elf_machine_rel_relative' with extra map parameter
331 (elf_machine_rela_relative): Add plt relocation changes.
333 2001-11-14 Matthew Wilcox <willy@debian.org>
335 * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file.
336 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file.
337 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file.
338 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file.
340 2002-09-27 Steven Munroe <sjmunroe@us.ibm.com>
342 * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment.
344 * sysdeps/powerpc/powerpc64/Makefile
345 [$(build-shared) = yes] (pic-ccflag): Define it.
346 [$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
348 2002-09-27 Roland McGrath <roland@redhat.com>
350 * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
353 2002-09-27 Jakub Jelinek <jakub@redhat.com>
355 * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
356 unconditionally. Set dli_fname to _dl_argv[0] only for main program.
358 2002-09-27 Roland McGrath <roland@redhat.com>
360 * elf/dl-addr.c (_dl_addr): Add a cast.
362 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
363 TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.
365 * elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
366 R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
367 R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
368 (R_X86_64_NUM): Update the value.
370 2002-09-24 Jakub Jelinek <jakub@redhat.com>
372 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
373 rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
375 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
376 the same l_addr computation.
377 * sysdeps/sparc/sparc64/configure.in: Removed.
378 * sysdeps/sparc/sparc64/configure: Removed.
379 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
381 2002-09-26 Ulrich Drepper <drepper@redhat.com>
383 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
385 * elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
386 * elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
387 symbol table if necessary.
389 2002-09-26 Roland McGrath <roland@redhat.com>
391 * stdlib/longlong.h: Replaced with current version from GCC mainline,
392 last modified 2002-09-22 Kazu Hirata <kazu@cs.umass.edu>.
394 2002-09-25 Andreas Jaeger <aj@suse.de>
396 * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
397 Patch by Guido Guenther <agx@sigxcpu.org>.
399 2002-09-25 Roland McGrath <roland@redhat.com>
401 * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
403 2002-09-24 Ulrich Drepper <drepper@redhat.com>
405 * sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
407 2002-09-24 Roland McGrath <roland@redhat.com>
409 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
410 __libc_write, __libc_lseek64, to ...
411 (ld: GLIBC_PRIVATE): ... here.
413 * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
414 (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
415 (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
416 * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
417 (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
419 (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
421 * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
422 New macros for x86-64.
424 * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
425 It was indentical to the linux/bits/time.h file.
427 * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
429 * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
431 2002-09-23 Ulrich Drepper <drepper@redhat.com>
433 * po/zh_CN.po: New file.
435 2002-09-23 Roland McGrath <roland@redhat.com>
437 * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
438 for gethostname declaration.
440 * catgets/open_catalog.c (__open_catalog): Don't use a value type
441 as the __builtin_expect expression, just the Boolean value.
443 * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
444 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
445 * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
446 * iconvdata/tst-loading.c (main): Likewise.
447 * catgets/tst-catgets.c (main): Likewise.
448 * stdlib/tst-xpg-basename.c (main): Likewise.
449 * stdlib/tst-bsearch.c (main): Likewise.
450 * stdio-common/test-vfprintf.c (main): Likewise.
451 * stdio-common/tst-rndseek.c (do_test): Likewise.
452 * libio/tst_swprintf.c (main): Likewise.
453 * libio/tst-fgetws.c (main): Likewise.
454 * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
455 * time/tst-posixtz.c (main): Likewise.
456 * time/tst-strptime.c (test_tm): Likewise.
457 * time/tst-strptime.c (main): Likewise.
458 * time/tst-getdate.c (main): Likewise.
459 * posix/tst-mmap.c (main): Likewise.
460 * posix/tst-getaddrinfo.c (do_test): Likewise.
461 * io/tst-getcwd.c (do_test): Likewise.
462 * resolv/tst-aton.c (main): Likewise.
463 * inet/tst-network.c (main): Likewise.
464 * libio/tst-fgetws.c (main): Likewise.
465 * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
466 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
469 * stdlib/msort.c (qsort): Add a cast to silence warning.
470 * stdio-common/vfprintf.c (process_string_arg): Likewise.
471 * libio/oldfileops.c (_IO_old_do_write): Likewise.
472 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
473 * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
474 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
475 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
476 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
477 * sysdeps/unix/grantpt.c (grantpt): Likewise.
478 * libio/tst-widetext.c (main): Likewise.
479 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
480 * rt/tst-aio.c (test_file): Likewise.
481 * rt/tst-aio64.c (test_file): Likewise.
482 * resolv/tst-aton.c (main): Likewise.
484 * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
486 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
487 instead of uint32_t in these macros.
489 2002-09-22 Bruno Haible <bruno@clisp.org>
491 * iconv/iconv_prog.c (main): Provide an error message that identifies
494 * iconvdata/tscii.c: New file.
495 * iconvdata/testdata/TSCII: New file.
496 * iconvdata/testdata/TSCII..UTF8: New file.
497 * iconvdata/TSCII.precomposed: New file.
498 * iconvdata/TSCII.irreversible: New file.
499 * iconvdata/gconv-modules (TSCII): New module.
500 * iconvdata/Makefile (modules): Add TSCII.
501 (distribute): Add tscii.c.
502 * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
504 * iconvdata/tst-tables.sh: Add TSCII.
505 * iconvdata/TESTS: Add TSCII.
507 Revert 2002-04-18 patch.
508 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
509 FROM_DIRECTION): Make the FROM direction stateful again.
510 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
511 FROM_DIRECTION): Likewise.
513 * iconvdata/tst-e2big.c: New file.
514 * iconvdata/Makefile (tests): Add tst-e2big.
516 2002-09-23 Roland McGrath <roland@redhat.com>
518 * elf/Makefile (test-extras): Define this instead of test-srcs.
519 * Makerules (all-nonlib): Include $(test-extras) too.
521 2002-09-21 Carlos O'Donell <carlos@baldric.uwo.ca>
523 * sysdeps/hppa/abort-instr.h: New file.
525 2002-09-22 Roland McGrath <roland@frob.com>
527 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
529 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
531 2002-09-22 Andreas Schwab <schwab@suse.de>
533 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
535 * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
536 (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
539 2002-09-21 Roland McGrath <roland@redhat.com>
541 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
542 Correct the value so it covers all platforms, and is computed
543 from _DL_PLATFORMS_COUNT rather than hard-wired.
544 From Andrew Suffield <asuffield@debian.org>.
546 2002-09-20 Ulrich Drepper <drepper@redhat.com>
548 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
549 locking when using mount tab file.
550 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
551 * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
552 * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
554 * elf/dl-init.c (_dl_init): Fix test of the size of the
555 preinit_array section.
556 (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
557 Reported by Brian Cabral <cabral@ikuni.com>.
559 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
561 * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
562 * sysdeps/powerpc/powerpc32/sysdep.h: New file. Define powerpc32
563 specific macros copied from sysdeps/powerpc/sysdep.h.
564 * sysdeps/powerpc/powerpc64/sysdep.h: New file. Define powerpc64
566 * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
567 [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
568 [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
570 2002-09-19 Bruno Haible <bruno@clisp.org>
572 * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
575 2002-09-17 Bruno Haible <bruno@clisp.org>
577 * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
578 * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
579 also on platforms with !HAVE_UT_TYPE.
580 (proc_utmp_eq): Remove function.
581 (internal_getut_r, pututline_file): Call __utmp_equal instead.
583 2002-09-20 Bruno Haible <bruno@clisp.org>
585 * abi-tags: Add support for FreeBSD with ABI OS value 3.
586 * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
588 2002-09-20 Roland McGrath <roland@redhat.com>
590 * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
591 (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
593 * sysdeps/x86_64/gmp-mparam.h: File removed.
594 * sysdeps/sparc/gmp-mparam.h: File removed.
595 * sysdeps/mips/mips64/gmp-mparam.h: File removed.
596 * sysdeps/ia64/gmp-mparam.h: File removed.
597 * sysdeps/alpha/gmp-mparam.h: File removed.
599 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
601 * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
602 load, so as to work on both 32-bit and 64-bit. Remove unnecessary
603 casts. Align __libc_stack_end to 8 bytes.
605 2002-09-20 Roland McGrath <roland@redhat.com>
607 * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
608 instead of asm for lrintf, __lrintf aliases.
610 * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
611 int array for 32-/64-bit compatibility.
612 From Steven Munroe <sjmunroe@us.ibm.com>.
614 2002-09-17 Bruno Haible <bruno@clisp.org>
616 * sysdeps/generic/ifreq.h (__if_nextreq): New function.
617 * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
618 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
619 * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
620 for iterating through the list of interfaces.
621 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
623 2002-09-20 Roland McGrath <roland@redhat.com>
625 * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
626 Reported by Bruno Haible <bruno@clisp.org>.
628 * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
630 * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
631 * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
632 isatty unmodified. Reported by Bruno Haible <bruno@clisp.org>.
634 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
636 * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
637 * sysdeps/powerpc/bits/wordsize.h: New file.
638 * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
639 array to int array for 32-/64-bit compatibility.
641 2002-09-20 Roland McGrath <roland@redhat.com>
643 * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
645 * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
646 Reported by Bruno Haible <bruno@clisp.org>.
648 * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
649 before doubling RQ_LEN.
650 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
651 Reported by Bruno Haible <bruno@clisp.org>.
653 2002-09-18 Bruno Haible <bruno@clisp.org>
655 * login/logout.c (logout): Don't assume ut_time has the same size as
657 * login/logwtmp.c (logwtmp): Likewise.
659 * sysdeps/pthread/configure: New file, moved here from
660 linuxthreads/sysdeps/unix/sysv/linux/configure.
662 2002-09-19 Ulrich Drepper <drepper@redhat.com>
664 * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
665 (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
666 Reported by Glen Nakamura <glen@imodulo.com>.
668 2002-09-19 Neal H. Walfield <neal@cs.uml.edu>
670 * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
671 thread's sigstate data structure if it has been allocated.
673 2002-09-19 Roland McGrath <roland@redhat.com>
675 * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
676 [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
678 2002-09-18 Ulrich Drepper <drepper@redhat.com>
680 * version.h (VERSION): Bump to 2.2.94.
682 * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
683 * sysdeps/powerpc/powerpc32/fpu/Dist: ...here. New file.
684 * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
685 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
687 * sysdeps/i386/Makefile: Remove obsolete db2 rules.
689 * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
691 * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
693 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
695 2002-09-19 Jakub Jelinek <jakub@redhat.com>
697 * sysdeps/wordsize-32/Makefile: New file.
698 * sysdeps/arm/Makefile: Removed.
699 * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
700 Don't add divdi3 here.
701 * sysdeps/m68k/Makefile: Likewise.
702 * sysdeps/powerpc/powerpc32/Makefile: Likewise.
703 * sysdeps/sh/Makefile: Likewise.
704 * sysdeps/s390/s390-32/Makefile: Likewise.
706 2002-09-18 Roland McGrath <roland@redhat.com>
708 * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
709 the __ctype_* compat symbols, so the relocs generated bind to the
710 right versioned global symbol in the shared object.
712 * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
713 from the value taken from the DT_VERSYM table.
714 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
715 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
716 (RESOLVE_GOTSYM): Likewise.
718 * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
720 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
721 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
722 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
723 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
724 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
725 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
726 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
727 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
729 2002-09-18 Ulrich Drepper <drepper@redhat.com>
731 * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
733 * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
734 define sigaction and __sigaction as wrappers around
735 __libc_sigaction which rejects changing SIGCANCEL.
736 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
738 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
741 * signal/allocrtsig.c: Move to...
742 * sysdeps/generic/allocrtsig.c: ...here. New file.
744 2002-09-17 Jakub Jelinek <jakub@redhat.com>
746 * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
748 * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
749 R_386_TLS_LE): Define.
750 (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
752 * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
753 ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
754 (elf_machine_rel): Handle R_386_TLS_TPOFF.
755 (elf_machine_rela): Likewise.
756 Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
758 2002-09-17 Roland McGrath <roland@redhat.com>
760 * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
761 file-specific variable override so it compiles properly when using
764 2002-09-17 Steven Munroe <sjmunroe@us.ibm.com>
766 Ported to PowerPC64 running Linux.
767 * sysdeps/powerpc/powerpc64/Dist: New file.
768 * sysdeps/powerpc/powerpc64/Implies: New file.
769 * sysdeps/powerpc/powerpc64/Makefile: New file.
770 * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
771 * sysdeps/powerpc/powerpc64/atomicity.h: New file.
772 * sysdeps/powerpc/powerpc64/backtrace.c: New file.
773 * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
774 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
775 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
776 * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
777 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
778 * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
779 * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
780 * sysdeps/powerpc/powerpc64/memset.S: New file.
781 * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
782 * sysdeps/powerpc/powerpc64/register-dump.h: New file.
783 * sysdeps/powerpc/powerpc64/setjmp.S: New file.
784 * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
785 * sysdeps/powerpc/powerpc64/strchr.S: New file.
786 * sysdeps/powerpc/powerpc64/strcmp.S: New file.
787 * sysdeps/powerpc/powerpc64/strcpy.S: New file.
788 * sysdeps/powerpc/powerpc64/strlen.S: New file.
789 * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
790 * sysdeps/powerpc/powerpc64/elf/start.S: New file.
791 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
792 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
793 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
794 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
795 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
796 * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
797 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
798 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
801 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
802 (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
803 various gcc versions. Dot names required for powerpc64.
804 [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
805 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
806 C_SYMBOL_DOT_NAME(alias).
807 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
808 original strong_alias macro.
809 [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
810 C_SYMBOL_DOT_NAME(alias).
811 [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
812 [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
814 Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
815 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro. Generate
816 .global C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
817 (hidden_def): Append hidden_dot_def1 macro to definition.
818 (hidden_ver): Append hidden_dot_def1 macro to definition.
819 (hidden_data_def): New macro. Same as original hidden_def macro.
820 (hidden_data_ver): New macro. Same as original hidden_ver macro.
821 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro. Generate
822 .weakext C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
823 (hidden_weak): Append hidden_dot_weak1 macro to definition.
824 (hidden_data_weak): New macro. Same as original hidden_weak macro.
825 [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
826 Otherwise defined as __GI_name.
827 (libc_hidden_data_def): New macro. Use hidden_data_def.
828 (libc_hidden_data_weak): New macro. Use hidden_data_weak.
829 (libc_hidden_data_ver): New macro. Use hidden_data_ver.
830 (rtld_hidden_data_def): New macro. Use hidden_data_def.
831 (rtld_hidden_data_weak): New macro. Use hidden_data_weak.
832 (rtld_hidden_data_ver): New macro. Use hidden_data_ver.
833 (libm_hidden_data_def): New macro. Use hidden_data_def.
834 (libm_hidden_data_weak): New macro. Use hidden_data_weak.
835 (libm_hidden_data_ver): New macro. Use hidden_data_ver.
836 * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
838 2002-09-17 Ulrich Drepper <drepper@redhat.com>
840 * include/libc-symbols.h: Change *hidden_proto macros to accept
841 option parameters and pass those to the attribute definition.
842 * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
844 * include/unistd.h: Declare __libc_pause.
846 * include/sys/socket.h: Declare __libc_send, __libc_recv,
847 __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
849 * include/unistd.h: Declare __libc_fork.
851 2002-09-17 Roland McGrath <roland@redhat.com>
853 * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
854 (passwd2des): Define it as an alias.
855 (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
857 2002-09-12 Bruno Haible <bruno@clisp.org>
859 * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
860 * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
862 * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
863 * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
865 2002-09-05 Steven Munroe <sjmunroe@us.ibm.com>
867 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
868 (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
869 __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
870 PowerPC64 does not have separate 64-bit syscalls.
872 2002-09-16 Roland McGrath <roland@redhat.com>
874 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
876 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
879 * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
881 * include/unistd.h: Uncomment libc_hidden_proto for _exit.
882 * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
883 * sysdeps/generic/_exit.c: Likewise.
885 2002-09-12 Jakub Jelinek <jakub@redhat.com>
887 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
889 * elf/rtld.c (struct dl_start_final_info): New.
890 (_dl_start_final): Change second argument to struct
891 dl_start_final_info *. Set start_time from info.
892 (_dl_start): Remove bootstrap_map variable, add info.
893 Define bootstrap_map as macro. If not DONT_USE_BOOTSTRAP_MAP,
894 store HP_TIMING_NOW result into info.start_time.
896 2002-09-16 Andreas Jaeger <aj@suse.de>
898 * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
900 * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
902 2002-09-15 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
904 * sysdeps/powerpc/abort-instr.h: New file.
906 2002-09-14 Ulrich Drepper <drepper@redhat.com>
908 * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
911 * test-skeleton.c (main): Provide more information in case waitpid
914 * include/unistd.h: Declare __exit_thread.
915 * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
916 Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
917 * sysdeps/unix/sysv/linux/exit-thread.S: New file.
918 * sysdeps/unix/sysv/linux/_exit.c: New file.
919 * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
920 * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
923 * configure.in: Add dl_iterate_phdr to test using -nostdlib.
925 2002-09-12 Jakub Jelinek <jakub@redhat.com>
927 * sysdeps/i386/dl-machine.h (elf_machine_rel)
928 (case R_386_TLS_DTPMOD32): Don't use addend.
929 [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
930 (elf_machine_rela): Add support for TLS relocs.
932 2002-09-14 Roland McGrath <roland@redhat.com>
934 * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
936 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
938 * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
939 specific asm macros for multiple percision integer math.
941 2002-06-04 Steven Munroe <sjmunroe@us.ibm.com>
943 * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
944 * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
945 Remove per-machine conditionals for FLAG_* cases.
946 * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
947 * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
948 * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
950 2002-09-10 Alan Modra <amodra@bigpond.net.au>
952 * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
954 (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
955 lowest address for profiling in __monstartup call.
956 * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
958 2002-09-14 Roland McGrath <roland@redhat.com>
960 * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
961 instead of __NR_pread.
962 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
963 * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
964 instead of __NR_pwrite.
965 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
967 2002-09-13 Roland McGrath <roland@redhat.com>
969 * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
971 2002-09-13 Andreas Jaeger <aj@suse.de>
973 * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
974 syscall. Patch by Guido Guenther <agx@sigxcpu.org>.
976 2002-09-12 Ulrich Drepper <drepper@redhat.com>
978 * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
980 2002-09-10 Ulrich Drepper <drepper@redhat.com>
982 * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
985 2002-09-12 Roland McGrath <roland@redhat.com>
987 * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
988 (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
991 * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
992 executable if needed, in case it's actually a shared object.
994 2002-09-11 Roland McGrath <roland@redhat.com>
996 * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
997 l_map_start to adjust l_tls_initimage.
999 * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
1000 when using h_errno and it's not set to NETDB_INTERNAL.
1001 * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
1003 * Makefile ($(common-objpfx)testrun.sh): New target.
1004 (others): Depend on it.
1005 (postclean-generated): Append it.
1007 * nss/bug-erange.c: New file.
1008 * nss/Makefile (tests): Add it.
1010 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
1011 instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
1013 * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
1014 strncmp, keeps the code smaller for a non-performance-critical case.
1016 * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
1017 no longer wrongly matches arbitrary prefixes of NAME.
1018 Reported by Jakub Jelinek <jakub@redhat.com>.
1020 2002-09-11 Jakub Jelinek <jakub@redhat.com>
1022 * posix/bug-regex11.c (tests): New array.
1023 (main): Rewritten to run more different tests.
1025 2002-09-10 Roland McGrath <roland@redhat.com>
1027 * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
1028 (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
1029 Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
1031 * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
1032 well so we don't get it declared by include/math.h's hidden_proto.
1033 Then do hidden_proto for __isnanf locally so hidden_def works right.
1035 * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
1036 a cast to turn nl_langinfo return value into an integer.
1038 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
1040 * posix/regexec.c (build_trtable): Fix the destination of
1041 newline to prevent wrong states from overwriting.
1042 Append break statements to optimization.
1044 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
1046 * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
1047 (build_range_exp): Add castings to strlen invocations.
1048 (build_collating_symbol): Restore the type of characters from "char"
1049 to "unsigned char", and supplement castings.
1050 (build_collating_symbol): Likewise.
1051 (build_equiv_class): Likewise.
1052 (build_charclass): Likewise.
1053 (seek_collating_symbol_entry): Likewise.
1054 (parse_bracket_exp): Likewise.
1055 (build_word_op): Supplement a casting.
1056 * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
1057 (re_string_allocate): Fix castings.
1058 (re_string_construct): Likewise.
1059 (re_string_construct_common): Likewise.
1060 (re_string_realloc_buffers): Likewise.
1061 (build_wcs_buffer): Likewise.
1062 (build_wcs_upper_buffer): Likewise.
1063 (re_string_skip_chars): Likewise.
1064 (re_string_reconstruct): Likewise.
1065 * posix/regex_internal.h: Restore the type of characters in
1066 re_string_t and bracket_elem_t from "char" to "unsigned char".
1067 (re_string_elem_size_at): Fix castings.
1068 * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
1069 (transit_state_bkref_loop): Restore the type of characters from
1070 "char" to "unsigned char", and append a cast to "char*" pointer in
1072 (check_node_accept_bytes): Likewise.
1073 (find_collation_sequence_value): Likewise.
1075 2002-09-10 Hartvig Ekner <hartvige@mips.com>
1077 * sysdeps/mips/memcpy.S: New file.
1078 * sysdeps/mips/memset.S: New file.
1079 * sysdeps/mips/fpu/e_sqrt.c: New file.
1080 * sysdeps/mips/fpu/e_sqrtf.c: New file.
1082 * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
1083 functional before. Also removed all SHLIB_COMPAT stuff.
1084 * fpu/fegetenv.c: Likewise.
1085 * fpu/fesetenv.c:: Likewise.
1086 * fpu/feupdateenv.c: Likewise.
1087 * fpu/fgetexcptflg.c: Likewise.
1088 * fpu/fraiseexcpt.c: Likewise.
1090 * sysdeps/mips/fpu/fsetexcptflg.c: New file.
1092 2002-09-09 Jakub Jelinek <jakub@redhat.com>
1094 * include/math.h (__finite_internal, __finitef_internal,
1095 __finitel_internal, __isinf_internal, __isnan_internal): Remove.
1097 (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
1098 __isinfl, __isnanl): Add hidden_proto.
1099 (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
1101 * math/Makefile (libm-calls): Add s_isinf and s_isnan.
1102 * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
1103 __is{inf,nan} calls.
1104 * stdio-common/printf_size.c (printf_size): Likewise.
1105 * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
1106 * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
1107 * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
1108 * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
1109 * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
1110 * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
1111 (__finite): Add hidden_def.
1112 * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
1113 (__finitef): Add hidden_def.
1114 * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
1115 (__finitel): Add hidden_def.
1116 * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF. Add
1118 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
1119 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1121 * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
1122 * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF. Add
1124 * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
1125 (__isinfl): Remove INTDEF.
1126 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF. Add
1128 (__isnanl): Remove INTDEF.
1129 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
1131 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
1132 instead of sin and cos.
1133 * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
1135 * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
1136 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
1137 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
1139 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
1141 * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
1142 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
1143 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
1145 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
1147 * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
1149 * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
1150 * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
1151 * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
1153 * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
1154 __finitel_internal): Remove aliases.
1155 (__finite, __finitef, __finitel): Add hidden_def.
1156 * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
1157 __isnanl_internal): Remove aliases.
1158 (__isnan, __isnanf, __isnanl): Add hidden_def.
1159 * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
1160 __isinfl_internal): Remove aliases.
1161 (__isinf, __isinff, __isinfl): Add hidden_def.
1162 * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
1163 __fpclassifyl): Add libm_hidden_def.
1164 * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
1165 * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF. Add hidden_def.
1166 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
1167 (hidden_defx): Define and use.
1168 * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1170 * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
1171 * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
1172 * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
1174 (__isnan, __isnanf): Add hidden_def.
1175 * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
1176 (__finitel): Add libm_hidden_def.
1177 * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
1179 * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
1180 * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
1181 * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1182 * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
1183 * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1184 * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
1185 * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
1186 * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
1187 * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1188 * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
1189 * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1190 * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
1191 * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1192 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
1193 * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1194 * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
1195 * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1196 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
1197 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1198 * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
1199 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1200 * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1201 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1202 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1203 * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1204 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
1205 * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1207 2002-09-09 Steven Munroe <sjmunroe@us.ibm.com>
1209 * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
1211 2002-09-09 Jakub Jelinek <jakub@redhat.com>
1213 * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
1214 LD_DEBUG=statistics or LD_TRACE_PRELINKING.
1216 2002-09-09 Ulrich Drepper <drepper@redhat.com>
1218 * string/stratcliff.c: Some more strncpy tests.
1219 Patch by Daniel Jacobowitz <drow@mvista.com>.
1221 2002-09-08 Roland McGrath <roland@redhat.com>
1223 * resolv/resolv.h: Include <sys/types.h> for u_long even in
1224 the [__need_res_state] case.
1225 Reported by Bruno Haible <bruno@clisp.org>.
1227 2002-09-04 Bruno Haible <bruno@clisp.org>
1229 * sysdeps/generic/bits/ustat.h: Comment fix.
1230 * io/sys/sendfile.h: Comment fix.
1231 * sysdeps/posix/pread.c: Comment fix.
1232 * sysdeps/posix/pread64.c: Comment fix.
1233 * sysdeps/posix/pwrite.c: Comment fix.
1234 * sysdeps/posix/pwrite64.c: Comment fix.
1236 2002-09-06 Roland McGrath <roland@redhat.com>
1238 * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
1239 to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
1240 (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
1241 (_UTSNAME_MACHINE_LENGTH): Likewise.
1242 (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
1244 2002-09-06 Ulrich Drepper <drepper@redhat.com>
1246 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
1247 test for filesystem type name of mount points.
1249 * include/errno.h: Use errno definition with __thread for now only
1252 * test-skeleton.c (main): Improve error message for unexpected
1255 2002-09-05 Roland McGrath <roland@redhat.com>
1257 * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
1258 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1260 2002-09-05 Jakub Jelinek <jakub@redhat.com>
1262 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
1265 2002-09-04 Bruno Haible <bruno@clisp.org>
1267 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
1268 sigset_get_old_mask): Turn into inline functions.
1269 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
1270 sigset_get_old_mask): Likewise.
1271 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
1272 sigset_get_old_mask): Likewise.
1273 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
1276 * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
1278 * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
1279 default definitions.
1280 (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
1281 _sys_nerr_internal instead of _sys_nerr.
1283 * nscd/connections.c (handle_request): Declare CALLER inside #if.
1285 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
1287 * sysdeps/powerpc/__longjmp.S: Moved to...
1288 * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
1289 * sysdeps/powerpc/add_n.S: Moved to...
1290 * sysdeps/powerpc/powerpc32/add_n.S: ...here.
1291 * sysdeps/powerpc/addmul_1.S: Moved to...
1292 * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
1293 * sysdeps/powerpc/atomicity.h: Moved to...
1294 * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
1295 * sysdeps/powerpc/backtrace.c: Moved to...
1296 * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
1297 * sysdeps/powerpc/bp-asm.h: Moved to...
1298 * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
1299 * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
1300 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
1301 * sysdeps/powerpc/bsd-setjmp.S: Moved to...
1302 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
1303 * sysdeps/powerpc/dl-machine.c: Moved to...
1304 * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
1305 * sysdeps/powerpc/dl-machine.h: Moved to...
1306 * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
1307 * sysdeps/powerpc/dl-start.S: Moved to...
1308 * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
1309 * sysdeps/powerpc/gprrest0.S: Moved to...
1310 * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
1311 * sysdeps/powerpc/gprrest1.S: Moved to...
1312 * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
1313 * sysdeps/powerpc/gprsave0.S: Moved to...
1314 * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
1315 * sysdeps/powerpc/gprsave1.S: Moved to...
1316 * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
1317 * sysdeps/powerpc/lshift.S: Moved to...
1318 * sysdeps/powerpc/powerpc32/lshift.S: ...here.
1319 * sysdeps/powerpc/memset.S: Moved to...
1320 * sysdeps/powerpc/powerpc32/memset.S: ...here.
1321 * sysdeps/powerpc/mul_1.S: Moved to...
1322 * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
1323 * sysdeps/powerpc/ppc-mcount.S: Moved to...
1324 * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
1325 * sysdeps/powerpc/register-dump.h: Moved to...
1326 * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
1327 * sysdeps/powerpc/rshift.S: Moved to...
1328 * sysdeps/powerpc/powerpc32/rshift.S: ...here.
1329 * sysdeps/powerpc/setjmp.S: Moved to...
1330 * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
1331 * sysdeps/powerpc/stpcpy.S: Moved to...
1332 * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
1333 * sysdeps/powerpc/strchr.S: Moved to...
1334 * sysdeps/powerpc/powerpc32/strchr.S: ...here.
1335 * sysdeps/powerpc/strcmp.S: Moved to...
1336 * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
1337 * sysdeps/powerpc/strcpy.S: Moved to...
1338 * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
1339 * sysdeps/powerpc/strlen.S: Moved to...
1340 * sysdeps/powerpc/powerpc32/strlen.S: ...here.
1341 * sysdeps/powerpc/sub_n.S: Moved to...
1342 * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
1343 * sysdeps/powerpc/submul_1.S: Moved to...
1344 * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
1345 * sysdeps/powerpc/elf/bzero.S: Moved to...
1346 * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
1347 * sysdeps/powerpc/elf/start.S: Moved to...
1348 * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
1349 * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
1350 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
1351 * sysdeps/powerpc/fpu/fprrest.S: Moved to...
1352 * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
1353 * sysdeps/powerpc/fpu/fprsave.S: Moved to...
1354 * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
1355 * sysdeps/powerpc/fpu/setjmp.S: Moved to...
1356 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
1357 * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
1358 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
1359 * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
1360 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
1361 * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
1362 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
1363 * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
1364 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
1365 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
1366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1367 * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
1368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
1369 * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
1370 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
1371 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
1372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
1373 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
1374 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
1375 Support PowerPC64. Separate powerpc into powerpc/powerpc32 and
1378 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
1380 * FAQ.in: Add powerpc64 to supported targets list. Also state the
1381 minimum gcc version is 3.2
1382 * README: Add powerpc64 to supported targets list.
1383 * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
1384 Add powerpc64 and machine=powerpc/powerpc64.
1385 (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
1386 * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
1387 * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
1388 gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
1389 * sysdeps/powerpc/powerpc32/Dist: New file.
1390 * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
1391 * sysdeps/powerpc/powerpc32/Implies: New file.
1392 * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
1393 ($(with-fp) = no): Move test to powerpc32/Makefile.
1394 ($(subdir) = misc): Move to powerpc32/Makefile.
1395 ($(build-shared) = yes): Move to powerpc32/Makefile.
1396 ($(subdir) = csu): Move to powerpc32/Makefile.
1397 (sysdep-rtld-routines): Remove dl-start. Moved these bits to ...
1398 * sysdeps/powerpc/powerpc32/Makefile: New file.
1399 * sysdeps/powerpc/Versions: Remove libgcc functions.
1400 * sysdeps/powerpc/powerpc32/Versions: New file.
1401 * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
1402 * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
1403 * sysdeps/unix/sysv/linux/configure.in (powerpc*):
1404 Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
1405 libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
1406 ($machine): Add powerpc/powerpc64 to if ... | for
1407 libc_cv_slibdir=/libc64.
1408 (powerpc*): Set ldd_rewrite_script.
1409 * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
1410 * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
1411 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
1413 * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
1414 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
1415 functions. Remove GLIBC_2.2 functions except getrlimit and
1416 setrlimit. Moved them to ...
1417 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
1419 2002-09-04 Ulrich Drepper <drepper@redhat.com>
1421 * libio/tst-atime.c: Include <errno.h>.
1422 (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
1424 2002-09-03 Isamu Hasegawa <isamu@yamato.ibm.com>
1426 * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
1427 warnings of some compilers.
1428 (build_collating_symbol): Change the type of characters from
1429 "unsigned char" to "char", and append a cast to "char*" pointer in
1431 (build_collating_symbol): Likewise.
1432 (build_equiv_class): Likewise.
1433 (build_charclass): Likewise.
1434 (re_compile_pattern): Remove incorrect cast.
1435 (re_compile_fastmap_iter): Change the type of characters from
1436 "unsigned char" to "char", and append a cast to "char*" pointer
1438 (parse_bracket_exp): Likewise.
1439 * posix/regex_internal.c (re_string_construct_common): Likewise.
1440 (re_string_allocate): Likewise.
1441 (re_string_construct): Likewise.
1442 (re_string_realloc_buffers): Likewise.
1443 (build_wcs_buffer): Likewise.
1444 (re_string_reconstruct): Likewise.
1445 * posix/regex_internal.h: Change the type of characters in
1446 re_string_t and bracket_elem_t from "unsigned char" to "char".
1447 * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1448 warnings of some compilers.
1449 (transit_state_bkref_loop): Change the type of characters from
1450 "unsigned char" to "char", and append a cast to "char*" pointer in
1452 (check_node_accept_bytes): Likewise.
1453 (find_collation_sequence_value): Likewise.
1455 2002-09-04 Roland McGrath <roland@redhat.com>
1457 * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1458 from 1024 to 65536, to avoid buffer overrun.
1460 2002-09-03 Gerhard Tonn <ton@de.ibm.com>
1462 * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1464 2002-09-04 Ulrich Drepper <drepper@redhat.com>
1466 * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1469 2002-09-04 Jakub Jelinek <jakub@redhat.com>
1471 * posix/bug-regex11.c: New test.
1472 * posix/Makefile (tests): Add bug-regex11.
1474 2002-09-03 Jakub Jelinek <jakub@redhat.com>
1476 * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1479 2002-09-02 Roland McGrath <roland@redhat.com>
1481 * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1482 __pthread_initialize_minimal and __libc_check_standard_fds to
1483 match the generic version.
1485 * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1486 warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1488 * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1489 warnings on platorms where char is unsigned.
1491 2002-09-02 Ulrich Drepper <drepper@redhat.com>
1493 * version.h (VERSION): Bump to 2.2.93.
1495 * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1497 2002-09-02 Jakub Jelinek <jakub@redhat.com>
1499 * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1502 2002-09-02 Jack Howarth <howarth@bromo.msbb.uc.edu>
1504 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1506 2002-09-02 Jakub Jelinek <jakub@redhat.com>
1508 * locale/localeinfo.h (struct locale_data): Add private.ctype.
1509 * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1510 __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1511 (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1512 (__wcsmbs_load_conv): Remove const from argument.
1513 (_nl_cleanup_ctype): New proto.
1514 (get_gconv_fcts): New function.
1515 * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1516 (__wcsmbs_to_wc): Rename back to...
1518 (__wcsmbs_gconv_fcts): Rename to...
1519 (__wcsmbs_gconv_fcts_c): ... this. Make const. Use to_wc.
1521 (__libc_setlocale_lock): New extern.
1522 (__wcsmbs_load_conv): Remove const from argument.
1523 Initialize new_category->private.ctype instead of a global
1525 (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1526 update_function_ptrs. No locking is necessary.
1527 (_nl_cleanup_ctype): New function.
1528 * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1529 update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1530 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1531 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1532 * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1533 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1534 * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1535 * wcsmbs/wctob.c (wctob): Likewise.
1536 * stdlib/mblen.c (mblen): Likewise.
1537 * stdlib/mbtowc.c (mbtowc): Likewise.
1538 * stdlib/wctomb.c (wctomb): Likewise.
1539 * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1540 Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1541 * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1544 2002-09-02 Roland McGrath <roland@frob.com>
1546 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1548 2002-09-01 Roland McGrath <roland@redhat.com>
1550 * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1551 Variable declarations removed.
1552 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1553 these functions to replace them.
1554 (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1555 functions plus an indirection rather than the old global variables.
1556 * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1558 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1560 * ctype/ctype-info.c: Revert last reversion back the other way.
1561 Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1562 Define real function versions of include/ctype.h inlines here.
1563 * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1564 __ctype_tolower_loc, __ctype_toupper_loc.
1565 * locale/lc-ctype.c: Revert last reversion back the other way.
1566 (_nl_postload_ctype): If current thread uses the global locale,
1567 update its tsd vars.
1568 * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1569 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1570 CTYPE_TOLOWER, CTYPE_TOUPPER.
1572 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1573 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1574 from __libc_tsd_threadvar_location.
1575 (__libc_tsd_set, __libc_tsd_get): Update uses.
1577 2002-09-01 Ulrich Drepper <drepper@redhat.com>
1579 * ctype/ctype.h: Undo the patch before the last one. Put back the
1580 macro definitions for the standard functions to access the
1581 classification and mapping arrays.
1582 * include/ctype.h: Partly revert last patch. Move the macro
1583 definitions for the exported functions back to the public header.
1584 #undef all the macros defined here before redefining.
1585 * ctype/ctype-info.c: Revert last patch.
1586 * locale/lc-ctype.c: Revert last patch.
1588 * ctype/Makefile (routines): Add isctype.
1589 * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1590 * ctype/ctype.h: Add declaration of isctype.
1591 * include/ctype.h: Declare __isctype.
1592 * ctype/isctype.c: New file.
1594 2002-09-01 Roland McGrath <roland@redhat.com>
1596 * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1597 TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1599 * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1601 * locale/findlocale.c (_nl_remove_locale): Don't search in
1602 _nl_locale_file_list if DATA->alloc is ld_archive.
1603 Use _nl_unload_locale to do the rest of the work.
1605 * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1606 of new structure to UNDELETABLE.
1608 * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1609 iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1610 towlower, towupper): Macros removed.
1611 * ctype/ctype.h (__tobody): Put parens around macro argument.
1612 (__isctype): Macro removed.
1613 (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1614 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1615 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1616 tolower, toupper): Macros and inlines removed.
1617 * include/ctype.h [! NOT_IN_libc]
1618 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1619 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1620 tolower, toupper): Define here instead, using _NL_CURRENT.
1621 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1623 * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1624 * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1625 Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1626 (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1627 (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1628 * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1629 conditional on SHLIB_COMPAT. Don't set removed variables at all.
1630 * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1631 * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1632 * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1633 (ISSORTMASK): Update use.
1634 * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1635 * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1636 (_nss_files_getENTNAME_r): Likewise.
1637 * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1640 * Makerules (all-nonlib): Renamed from all-tests.
1641 Include $(others) here too.
1642 * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1643 CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1644 CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1645 CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1646 CPPFLAGS-charmap-dir): Variables removed. Instead, catch all
1647 the program modules via cppflags-iterator.mk.
1648 * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1649 Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1651 2002-08-31 Roland McGrath <roland@redhat.com>
1653 * posix/tst-getconf.sh: If no third arg, work with static linking.
1655 * locale/categories.def (LC_TIME): No more _nl_postload_time.
1657 * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1658 [_NL_CURRENT_INDIRECT].
1660 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1662 * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1664 2002-08-31 Roland McGrath <roland@redhat.com>
1666 * locale/newlocale.c (__newlocale): Don't use strdup for names.
1667 Instead, make the single allocation of the structure larger to hold
1669 * locale/duplocale.c (__duplocale): Don't strdup names individually.
1670 Instead, calculate size for a single allocation and copy into it.
1671 * locale/freelocale.c (__freelocale): Don't free names individually.
1673 * locale/newlocale.c (__newlocale): Don't leak old data or names.
1675 * locale/xlocale.h (__locale_struct): Move __names member last,
1676 for binary compatibility.
1678 * locale/duplocale.c (__duplocale): Free names from the right array.
1680 * locale/uselocale.c (__uselocale): Return previous locale when
1683 * locale/newlocale.c: Commit changes from 2002-08-30
1684 batch where I failed to commit this file:
1685 (__newlocale): Fill in __names array.
1687 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1689 * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1690 errlist-compat.c if versioning==yes.
1692 2002-08-31 Andreas Jaeger <aj@suse.de>
1694 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1695 external functions with hidden attribute.
1696 (elf_machine_rela): Optimize.
1698 * sysdeps/x86_64/memset.S: New file.
1699 * sysdeps/x86_64/bzero.S: New file.
1700 * sysdeps/x86_64/stpcpy.S: New file.
1701 * sysdeps/x86_64/strcat.S: New file.
1702 * sysdeps/x86_64/strchr.S: New file.
1703 * sysdeps/x86_64/strcpy.S: New file.
1704 * sysdeps/x86_64/strcspn.S: New file.
1705 * sysdeps/x86_64/strlen.S: New file.
1706 * sysdeps/x86_64/strpbrk.S: New file.
1707 * sysdeps/x86_64/strspn.S: New file.
1708 * sysdeps/x86_64/strcmp.S: New file.
1709 * sysdeps/x86_64/strtok_r.S: New file.
1710 * sysdeps/x86_64/strtok.S: New file.
1711 * sysdeps/x86_64/memcpy.S: New file.
1712 * sysdeps/x86_64/mempcpy.S: New file.
1714 * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1716 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1718 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1720 * stdio-common/Makefile (generated): Add errlist-compat.c.
1722 * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1724 * locale/localeinfo.h: Pretty printing.
1726 * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1727 form_number handling.
1729 2002-08-31 Andreas Jaeger <aj@suse.de>
1731 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1734 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1737 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1739 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1741 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1742 registers used for passing args.
1744 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1745 all needed registers.
1747 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1750 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1753 2002-08-30 Ulrich Drepper <drepper@redhat.com>
1755 * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1756 always_inline attribute.
1758 2002-08-30 Roland McGrath <roland@redhat.com>
1760 * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1761 presume it's the stub and bail without error.
1763 * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1764 neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1766 * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1768 * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1769 macros replace the i686 versions for 64-bit mode.
1771 * locale/duplocale.c: Include <string.h>.
1773 * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1774 [_LIBC] (category_to_name): Don't define the function. Instead
1775 define a macro using _nl_category_names.
1777 * locale/xlocale.h (struct __locale_struct): New member `__names'.
1778 * locale/xlocale.c (_nl_C_locobj): Update initializer.
1779 * locale/global-locale.c (_nl_global_locale): Likewise.
1780 * locale/duplocale.c (__duplocale): strdup __names elements.
1781 * locale/freelocale.c (__freelocale): Free __names elements.
1782 * locale/localename.c (_nl_current_names): Variable removed.
1783 (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1784 * locale/localeinfo.h (_nl_current_names): Removed decl.
1785 * locale/setlocale.c: Use _nl_global_locale->__names in place of
1786 _nl_current_names throughout.
1788 * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1790 * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1791 and sys_nerr in the output file.
1793 * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1794 * scripts/cpp: Just use the environment variable.
1796 * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1797 * libio/tst-mmap-offend.c (do_test): Likewise.
1798 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1799 * libio/tst-mmap-eofsync.c (do_test): Likewise.
1800 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1802 * locale/localename.c: If the current locale is the global locale, use
1803 _nl_current_names; otherwise use the locale object.
1805 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1807 * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1808 'm' to enable mmap I/O.
1809 * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2. The
1810 former wasn't used (anymore?).
1811 (_IO_FLAGS2_MMAP): New define.
1812 * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1813 * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1814 _IO_FLAGS2_MMAP bit is set.
1815 * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1816 Enable mmap-using mode only if 'm' was set.
1818 2002-08-29 Roland McGrath <roland@frob.com>
1820 * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1822 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1823 Change argument type from int to intptr_t.
1825 * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1826 initializer on [! _HURD_THREADVAR_H] (bad kludge).
1827 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1828 _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1829 * hurd/hurdsig.c (_hurdsig_init): Likewise. Zero other slots.
1831 * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1833 * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1835 * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1837 * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1838 * assert/assert-perr.c: Add libc_hidden_def.
1839 * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1841 * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1843 * sysdeps/gnu/Versions: File removed. Moved all #errlist-compat
1844 sys_errlist stuff to ...
1845 * sysdeps/unix/sysv/linux/Versions: ... here.
1847 * mach/mach.h: Include <features.h>.
1849 2002-08-29 Roland McGrath <roland@redhat.com>
1851 * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1852 * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1853 define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1855 * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1857 * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1858 (norm_add_slashes): alloca -> __alloca
1860 2002-08-29 Jakub Jelinek <jakub@redhat.com>
1862 * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1863 string_malloced, it is unlikely to be set.
1864 Only call free with non-NULL workspace.
1865 * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1866 -mcpu=ultrasparc, not only tune for it.
1867 (ASFLAGS*): Set unconditionally.
1869 * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1870 ElfW(Addr). Don't mask upper 32-bits and lower 12 bits off from
1871 p_vaddr/p_offset when computing LOADADDR.
1873 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1875 * version.h (VERSION): Bump to 2.2.92.
1877 * time/Makefile (tst-ftime_l-ENV): New variable.
1879 * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1881 * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1882 <U017A>, <U017D> and <U0179>. Add missing mappings.
1883 Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1885 * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1886 Define ARCINDEX. Bump MAXARCS to 1 << 20.
1887 (struct tostruct): Use ACRINDEX as type for link field.
1888 (statuc gmonparam): Likewise for froms.
1889 * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1891 (write_call_graph): Use correct type for from_index and to_index.
1892 * gmon/mcount.c: Use correct types for frompcindex and toindex
1894 Patches by Dan Kegel <dank@kegel.com>.
1896 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1899 * time/strptime.c (ISSPACE): New #define. Use isspace or
1900 __isspace_l. Replace calls to isspace.
1901 (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1903 2002-08-29 Roland McGrath <roland@redhat.com>
1905 * string/tst-strxfrm.c: Remove __ from function names.
1907 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1909 * include/wchar.h: Declare __mbsrtowcs_l.
1910 * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1911 * wcsmbs/mbsrtowcs.c: Add support for compilation with
1912 USE_IN_EXTENDED_LOCALE_MODEL.
1913 * wcsmbs/mbsrtowcs_l: New file.
1914 * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc. Don't
1915 define as static. Change all uses.
1916 (__wcsmbs_getfct): Renamed from getfct. Don't define as static.
1918 * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1919 * time/strftime.c: When translating for the extended locale model
1920 use the _l functions.
1921 * time/Makefile (tests): Add tst-ftime_l.
1922 * time/tst-ftime_l.c: New file.
1924 2002-08-28 Roland McGrath <roland@redhat.com>
1926 * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1927 * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1928 from _nl_find_locale ok if for _nl_C_name.
1930 * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1931 iterator to refer to each category's _nl_current_LC_FOO symbol, so
1932 we know they are all linked in.
1934 * NEWS: Added 2.2.6 text from 2.2 branch version.
1936 * time/strptime.c (strptime_internal): Remove spurious const.
1938 * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1939 _nl_select_era_entry): Moved to ...
1940 * time/era.c: ... here, new file.
1941 (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1942 Add internal_function to definitions. Take an additional argument
1943 giving the `struct locale_data *' to use.
1944 * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1945 _nl_parse_alt_digit): Moved to ...
1946 * time/alt_digit.c: ... here, new file.
1947 * time/lc-time-cleanup.c: New file.
1948 * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1949 * locale/localeinfo.h (_nl_postload_time): Remove decl.
1950 (_nl_cleanup_time): Declare it.
1951 (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1952 (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1953 * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1954 * time/strftime.c: Pass locale data to helper functions.
1955 * time/strptime.c: Likewise.
1957 * locale/localeinfo.h (struct locale_data): New member `private'
1958 * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1959 (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1960 * locale/C-collate.c: Update initializer.
1961 * locale/C-identification.c: Likewise.
1962 * locale/C-measurement.c: Likewise.
1963 * locale/C-telephone.c: Likewise.
1964 * locale/C-address.c: Likewise.
1965 * locale/C-name.c: Likewise.
1966 * locale/C-paper.c: Likewise.
1967 * locale/C-time.c: Likewise.
1968 * locale/C-numeric.c: Likewise.
1969 * locale/C-monetary.c: Likewise.
1970 * locale/C-messages.c : Likewise.
1971 * locale/C-ctype.c: Likewise.
1973 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1976 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1978 * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1979 (_rtld_global): Use it.
1981 * sysdeps/gnu/Dist: Remove errlist-compat.c.
1982 * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1983 object directory. Pass all Versions files to the awk script.
1984 * sysdeps/gnu/errlist-compat.c: Removed.
1985 * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1986 first Versions file in the search path which has them.
1987 Allow multiple errlist symbol versions to have the same count of
1989 * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1990 of "errlist-compat.c".
1991 * sysdeps/gnu/errlist.c: Regenerated.
1992 * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1993 comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1994 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1995 (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1996 * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1997 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1998 * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1999 * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
2000 ECANCELLED if not defined by kernel headers.
2001 * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
2002 already defined by kernel headers.
2003 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
2004 * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
2005 aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
2007 * Versions.def (GLIBC_2.3) [librt]: Add.
2009 * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
2011 2002-08-28 Ulrich Drepper <drepper@redhat.com>
2013 * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
2014 missing comma to .type directive.
2016 2002-08-28 Jakub Jelinek <jakub@redhat.com>
2018 * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
2020 * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
2022 (PI_STATIC_AND_HIDDEN): Define if check succeeded.
2024 2002-08-28 Jakub Jelinek <jakub@redhat.com>
2026 * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
2027 check to close_and_out close. Replace return NULL statements where
2028 fd might be >= 0 with goto close_and_out. Close the file descriptor
2029 when it is no longer needed.
2031 2002-08-28 Ulrich Drepper <drepper@redhat.com>
2033 * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
2035 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2036 * sysdeps/arm/dl-machine.h: Likewise.
2037 * sysdeps/cris/dl-machine.h: Likewise.
2038 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
2039 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
2041 2002-08-28 Roland McGrath <roland@redhat.com>
2043 * Makeconfig (default_cflags): Revert unintended change.
2045 2002-08-28 Ulrich Drepper <drepper@redhat.com>
2047 * version.h (VERSION): Bump to 2.2.91.
2049 * configure.in: Disable TLS support by default for now.
2051 * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
2053 * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
2056 * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
2058 * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
2059 fprintf/fwprintf calls.
2061 2002-08-28 Roland McGrath <roland@redhat.com>
2063 * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
2064 to use $(filter ...) instead. Same bug fixed in aix conditionals.
2066 * locale/setlocale.c: Declare postload functions weak.
2068 * elf/tst-tls1-static.c: New file.
2069 * elf/tst-tls2-static.c: New file.
2070 * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
2072 Make uselocale support static linking.
2073 * locale/xlocale.c: Revert changes putting _nl_global_locale here.
2074 This file again just defines _nl_C_locobj.
2075 (_nl_C_locobj): Use a categories.def iterator in the initializer.
2076 * locale/global-locale.c: New file. Define _nl_global_locale here,
2077 using all weak references in the initializer.
2078 * locale/Makefile (aux): Add global-locale.
2079 * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
2080 these unconditional, along with the tsd decl.
2081 [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
2082 Define it under these conditions.
2083 [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
2084 Don't declare _nl_current. Declare _nl_current_LC_FOO as
2085 `extern __thread struct locale_data *const *'.
2086 [NL_CURRENT_INDIRECT]
2087 (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
2088 [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten. Define
2089 the thread variable _nl_current_LC_FOO and also a special absolute
2090 symbol _nl_current_LC_FOO_used.
2091 * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
2092 Set each _nl_current_LC_FOO symbol to point into the new locale,
2093 using weak references to test if _nl_current_LC_FOO_used was linked in.
2094 * locale/setlocale.c [! SHARED]: Replace this conditional ...
2095 [NL_CURRENT_INDIRECT]: ... with this one.
2096 (_nl_current, _nl_C): Variables removed.
2097 [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
2098 weak references to _nl_current_LC_FOO_used.
2099 [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
2100 (free_category): New function, broken out of ...
2101 (free_mem): ... here. Call that.
2102 (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
2105 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
2106 PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
2107 it is already absolute.
2109 * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
2110 [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
2111 [$(build-static) = yes] (tests-static): New variable.
2112 ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
2114 2002-08-26 Christoph Hellwig <hch@lst.de>
2116 * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
2117 formating braindamage, add missing PER_HPUX and PER_OSF1 values.
2119 2002-08-28 Ulrich Drepper <drepper@redhat.com>
2121 * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
2123 * sysdeps/s390/Dist: Add bits/link.h.
2125 * sysdeps/sh/Dist: New file.
2127 * sysdeps/ia64/Dist: Add ia64libgcc.S.
2129 * sysdeps/wordsize-32/Dist: New file.
2131 * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
2132 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
2133 * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
2135 * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
2138 * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
2141 * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
2143 * sysdeps/unix/bsd/sun/Dist: New file.
2145 * sysdeps/unix/bsd/osf/Dist: New file.
2147 * sysdeps/unix/bsd/hp/Dist: New file.
2149 * sysdeps/unix/arm/Dist: New file.
2151 * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
2153 * sysdeps/mach/hurd/Dist: Add set-init.c.
2155 * sysdeps/i386/Dist: Add bits/link.h.
2157 * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
2159 * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
2161 * locale/Makefile (distribute): Add hashval.h.
2163 * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
2165 * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
2167 * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
2168 __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
2169 __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
2170 * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
2172 * libio/stdio.h: Likewise.
2173 * locale/locale.h: Likewise.
2174 * math/math.h: Likewise.
2175 * math/bits/mathcalls.h: Likewise.
2176 * setjmp/setjmp.h: Likewise.
2177 * signal/signal.h: Likewise.
2178 * stdlib/stdlib.h: Likewise.
2179 * string/string.h: Likewise.
2180 * time/time.h: Likewise.
2181 * wcsmbs/wchar.h: Likewise.
2182 * wctype/wctype.h: Likewise.
2184 2002-08-28 Roland McGrath <roland@redhat.com>
2186 * locale/tst-C-locale.c (run_test): Remove __ from function names.
2188 2002-08-28 Jakub Jelinek <jakub@redhat.com>
2189 Roland McGrath <roland@redhat.com>
2191 * locale/hashval.h (compute_hashval): Use prototype defn.
2192 (hashval_t): New macro, defined to unsigned long int
2193 if not already defined.
2194 (compute_hashval): Return hashval_t instead of unsigned long int.
2195 * locale/loadarchive.c (hashval_t): New macro.
2196 * locale/programs/locarchive.c: Include hashval.h directly instead
2198 (compute_hashval, hashval_t): Define these macros first.
2199 (insert_name): Use archive_hashval instead of compute_hashval.
2200 (add_locale, delete_locales_from_archive): Likewise.
2202 2002-08-28 Jakub Jelinek <jakub@redhat.com>
2204 * locale/programs/locarchive.c (insert_name): Suppress warnings about
2205 hash collisions if be_quiet.
2207 2002-08-27 Roland McGrath <roland@redhat.com>
2209 * locale/locale.h (__newlocale, __duplocale, __freelocale,
2210 __uselocale): Don't declare these any more.
2211 * include/locale.h (__uselocale): Declare here instead, using __typeof.
2213 * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
2214 and treat it as an EOF return.
2215 * sysdeps/unix/readdir_r.c: Likewise.
2217 * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
2218 From Alexandre Oliva <aoliva@redhat.com>.
2219 * sysdeps/gnu/errlist-compat.c: Regenerated.
2221 2002-08-27 Brian Youmans <3diff@gnu.org>
2223 * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
2224 wording at request of copyright holder Stephen Moshier.
2225 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2226 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2227 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2228 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2229 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2230 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2231 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2232 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2233 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2234 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2235 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2236 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2237 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2238 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2240 2002-08-28 Jakub Jelinek <jakub@redhat.com>
2242 * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
2243 * ctype/ctype-extn.c (isblank_l): Add weak alias.
2244 * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
2245 * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
2246 * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
2247 * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
2248 * wctype/iswctype_l.c (iswctype_l): Likewise.
2250 2002-08-27 Roland McGrath <roland@redhat.com>
2252 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
2254 * ctype/ctype.h (__exctype_l): Don't declare __ name.
2255 * stdlib/stdlib.h: Don't declare __*_l names.
2256 * include/stdlib.h: Declare them here instead.
2257 * include/string.h: Don't declare __*_l names.
2258 * string/string.h: Declare them here instead.
2259 * time/time.h: Don't declare __*_l names.
2260 * include/time.h: Declare them here instead.
2261 * wcsmbs/wchar.h: Don't declare __*_l names.
2262 * include/wchar.h: Declare them here instead.
2263 * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
2264 Don't declare __*_l names.
2265 * include/wctype.h: Declare them here instead.
2266 * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
2267 * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
2268 * locale/langinfo.h: Don't declare __nl_langinfo_l.
2269 * include/langinfo.h: Declare it here with __typeof.
2271 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
2272 instead, taking an extra __locale_t argument.
2273 * time/Makefile (routines): Add strptime_l.
2274 * time/time.h (__strptime_l, strptime_l): Declare them.
2275 * time/strptime_l.c: New file.
2277 * time/time.h (__strftime_l, strftime_l): Declare them.
2278 * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
2279 * time/strftime_l.c: New file.
2280 * time/wcsftime_l.c: New file.
2281 * time/Makefile (routines): Add strftime_l, wcsftime_l.
2282 * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
2283 strftime_l, wcsftime_l.
2284 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
2285 or __wcsftime_l instead, taking an extra __locale_t argument.
2287 * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
2288 (libc: GLIBC_2.3): ... here.
2290 2002-08-27 Ulrich Drepper <drepper@redhat.com>
2292 * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
2294 * Makefile (distribute): Add LICENSES.
2296 * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
2299 * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
2301 * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
2303 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
2305 * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
2307 * sysdeps/mach/hurd/alpha/Dist: New file.
2309 * sysdeps/arm/Dist: Add bits/link.h.
2311 * sunrpc/Makefile: Distribute thrsvc.
2313 * stdio-common/Makefile: Remove more left-overs from old stdio.
2315 * include/linewrap.h: Removed.
2317 * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
2319 * intl/Makefile (distribute): Add plural-eval.c.
2321 2002-08-27 Roland McGrath <roland@redhat.com>
2323 * manual/sysinfo.texi (Mount Information): Correct file name to macro
2324 assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
2325 Say mtab is in either /var/run or /etc.
2327 2002-08-26 Roland McGrath <roland@redhat.com>
2329 * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
2330 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2332 * sysdeps/gnu/Versions: New file.
2333 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
2334 _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
2335 * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
2336 ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
2337 * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
2338 and _sys_nerr_internal instead of anything else. Make it include
2339 "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
2340 Make it emit some asm magic if [EMIT_ERR_MAX].
2341 * sysdeps/gnu/errlist.c: Regenerated.
2342 * sysdeps/gnu/errlist-compat.awk: New file.
2343 * sysdeps/gnu/errlist-compat.c: New file (generated).
2344 * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
2345 (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
2346 (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
2347 (SYS_ERRLIST, SYS_NERR): Macros removed.
2348 (sys_nerr, _sys_nerr): Remove these weak aliases.
2349 * sysdeps/unix/sysv/linux/errlist.c: File removed.
2350 * sysdeps/unix/sysv/linux/errlist.h: File removed.
2351 * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
2353 * include/libc-symbols.h (declare_symbol): New macro.
2354 * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
2355 * configure.in: New check to define it.
2356 * configure: Regenerated.
2358 2002-08-27 Ulrich Drepper <drepper@redhat.com>
2360 * stdio-common/Makefile (headers): Remove bits/stdio_lim.h. This
2361 file isn't distributed. Add special rules to install bits/stdio_lim.h.
2363 * Make-dist: Remove traces of old stdio.
2364 * Makeconfig: Likewise.
2366 * locale/Makefile (localedef-aux): New variable. Only md5
2367 assigned to it. These files are not ddistributed in this directory.
2369 * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2370 * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
2371 * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
2373 * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
2375 * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
2376 set h_errno to NO_RECOVERY [PR libc/4360].
2378 2002-08-26 Ulrich Drepper <drepper@redhat.com>
2380 * libio/Makefile (tests): Add bug-fopena+.
2381 * libio/bug-fopena+.c: New file.
2382 * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
2383 file for _IO_IS_APPENDING if file isn't opened for reading, too.
2385 * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
2387 * locale/xlocale.c: Fix the last change. The variable still has
2389 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2390 (__libc_tsd_set): Add _data prefix to variable name.
2392 2002-08-26 Roland McGrath <roland@redhat.com>
2394 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
2395 macro with inline function.
2396 (sigset_get_old_mask): Likewise.
2397 * sysdeps/posix/sigblock.c (__sigblock): Update callers.
2398 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2399 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2400 * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
2401 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
2402 (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
2404 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
2405 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
2407 2002-07-06 Bruno Haible <bruno@clisp.org>
2409 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
2410 sigset_get_old_mask): Make it work with larger sigset_t.
2411 * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
2412 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2413 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2415 2002-08-26 Roland McGrath <roland@redhat.com>
2417 * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
2418 * manual/filesys.texi (File Times): Document lutimes and futimes.
2419 * misc/Makefile (routines): Add them.
2420 * misc/Versions (libc: GLIBC_2.3): Likewise.
2421 * sysdeps/generic/lutimes.c: New file.
2422 * sysdeps/generic/futimes.c: New file.
2423 * sysdeps/mach/hurd/lutimes.c: New file.
2424 * sysdeps/mach/hurd/futimes.c: New file.
2426 * manual/filesys.texi (File Times): Add explicit note about null
2427 pointer argument to utimes.
2429 2002-08-26 Roland McGrath <roland@frob.com>
2431 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
2432 (__ifreq): Add a cast. Remove an unused variable.
2434 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2435 _HURD_THREADVAR_LOCALE.
2437 2002-08-26 Jakub Jelinek <jakub@redhat.com>
2439 * posix/regexec.c (re_search_stub): Return correct match length
2441 * posix/bug-regex10.c: New test.
2442 * posix/Makefile (tests): Add bug-regex10.
2444 2002-08-26 Brian Youmans <3diff@gnu.org>
2446 * COPYING.LIB: Replaced with fresh copy from
2447 ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2448 suggested copying permission notice now says version 2.1 instead
2451 * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2453 * crypt/crypt_util.c: Likewise.
2454 * crypt/ufc.c: Likewise.
2455 * elf/dl-conflict.c: Likewise.
2456 * elf/dl-iteratephdr.c: Likewise.
2457 * iconv/iconvconfig.h: Likewise.
2458 * malloc/arena.c: Likewise.
2459 * malloc/hooks.c: Likewise.
2460 * malloc/malloc.c: Likewise.
2461 * posix/glob/Makefile.ami: Likewise.
2462 * posix/glob/Makefile.in: Likewise.
2463 * stdlib/gmp-impl.h: Likewise.
2464 * stdlib/gmp.h: Likewise.
2465 * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2466 * sysdeps/generic/strnlen.c: Likewise.
2467 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2468 * sysdeps/mach/hurd/recvmsg.c: Likewise.
2469 * sysdeps/mach/hurd/sendmsg.c: Likewise.
2470 * sysdeps/mach/hurd/spawni.c: Likewise.
2471 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2472 * sysdeps/mach/powerpc/sysdep.h: Likewise.
2473 * sysdeps/mach/powerpc/thread_state.h: Likewise.
2474 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2475 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2476 * sysdeps/x86_64/gmp-mparam.h: Likewise.
2478 * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2479 Lesser GPL copying permission notice from 2 to 2.1.
2480 * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2481 * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2482 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2483 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2484 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2485 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2486 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2487 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2488 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2489 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2490 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2491 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2492 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2493 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2494 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2495 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2496 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2497 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2498 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2499 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2500 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2501 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2502 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2503 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2504 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2505 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2506 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2507 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2508 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2509 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2510 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2511 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2512 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2513 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2514 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2515 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2516 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2517 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2518 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2519 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2520 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2521 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2522 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2523 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2524 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2525 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2526 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2527 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2528 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2529 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2530 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2531 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2532 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2533 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2534 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2536 * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2537 Moshier and Lesser GPL copying permission notice, per license from
2539 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2540 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2541 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2542 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2543 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2544 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2545 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2546 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2547 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2548 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2549 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2550 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2551 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2552 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2554 * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2555 notice, per license from copyright holder Stephen Moshier.
2556 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2557 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2558 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2559 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2560 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2561 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2562 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2563 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2564 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2566 2002-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2568 * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2569 (shared-only-routines): Likewise.
2571 2002-08-26 Roland McGrath <roland@redhat.com>
2573 * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2574 name of "", store a null pointer instead.
2576 * configure.in (elf): Set to yes for freebsd*, netbsd*.
2577 * configure: Regenerated.
2579 * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2580 Initialize this instead of __libc_tsd_LOCALE_data.
2582 * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2583 ptsname_r to EINVAL.
2585 * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2587 * rt/Makefile: Revert last change, it was inappropriate to presume aio
2588 implementations depend on pthreads.
2589 * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2590 * rt/tst-aio64.c (do_test): Likewise.
2591 * rt/tst-aio2.c (do_test): Likewise.
2592 * rt/tst-aio3.c (do_test): Likewise.
2593 * rt/tst-aio4.c (do_test): Likewise.
2594 * rt/tst-aio5.c (do_test): Likewise.
2595 * rt/tst-aio6.c (do_test): Likewise.
2596 * rt/tst-aio7.c (do_test): Likewise.
2598 * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2599 void so as to avoid compiler warnings.
2601 * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2602 _IO_wide_data_FD, which is never used here.
2605 [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2606 * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2607 * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2609 * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2610 * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2612 * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2613 (closelog): Likewise.
2615 2002-07-06 Bruno Haible <bruno@clisp.org>
2617 * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2619 * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2620 * sysdeps/unix/alpha/pipe.S: ... here.
2621 * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2623 * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2625 * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2626 * sysdeps/unix/i386/fork.S: Likewise.
2627 * sysdeps/unix/i386/pipe.S: Likewise.
2628 * sysdeps/unix/i386/wait.S: Likewise.
2630 * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2631 * sysdeps/unix/arm/fork.S: Likewise.
2633 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2635 (DO_CALL): Swap argument order.
2636 * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2638 (DO_CALL): Swap argument order.
2639 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2641 (DO_CALL): Swap argument order.
2642 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2644 (DO_CALL): Swap argument order.
2645 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2647 (DO_CALL): Swap argument order.
2648 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2650 (DO_CALL): Swap argument order.
2651 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2653 (DO_CALL): Swap argument order.
2655 * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2656 (L): Define right for ELF.
2657 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2658 Now defined in sysdeps/i386/sysdep.h.
2660 * sysdeps/posix/readv.c: Ansify function definition.
2661 * sysdeps/posix/writev.c: Likewise.
2663 * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2664 have the same size. Avoid direct cast from size_t to off_t.
2666 * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2667 nul byte in entry[n].ut_user.
2668 (simulate_logout): Likewise.
2670 * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2671 _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2672 existence of corresponding members of 'struct utmp'.
2673 * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2676 * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2677 allocate a buffer of at least BUFSIZ bytes, not just of
2678 sizeof (struct dirent).
2680 * sysdeps/generic/glob.c: Include <limits.h>.
2681 (NAME_MAX): Define a fallback.
2682 (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2684 * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2685 (main): Allocate enough room for a 'struct dirent64' on the stack.
2686 * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2689 * sysdeps/unix/sysv/linux/init-first.c: Don't include
2692 * inet/htontest.c: Include <sys/types.h>.
2694 * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2696 * include/sys/sysctl.h: Comment fix.
2698 * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2700 * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2702 * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2704 * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2705 (__getpeername): New alias.
2706 (__getsockname): New alias.
2707 (__socket): New alias.
2709 * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2711 * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2712 (__fcntl_internal): New alias.
2713 (__profil): New alias.
2715 2002-08-26 Ulrich Drepper <drepper@redhat.com>
2717 * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2718 entry was for getaddr* lookup or not. Add only matching cache
2719 entry. Change all callers [PR libc/4317].
2721 * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2722 finding the read position [PR libc/4265].
2723 * libio/Makefile (tests): Add bug-rewind2.
2724 * libio/bug-rewind2.c: New file.
2726 * libio/bug-rewind.c: Fix creation of temp file.
2728 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2730 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2731 neither SUCCESS nor TRYAGAIN [PR libc/4259].
2732 * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2733 to ENOENT if no entry is found.
2734 * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2736 * nis/nss_compat/compat-initgroups.c: Likewise.
2737 * nis/nss_compat/compat-pwd.c: Likewise.
2738 * nis/nss_compat/compat-spwd.c: Likewise.
2739 * nis/nss_nis/nis-alias.c: Likewise.
2740 * nis/nss_nis/nis-ethers.c: Likewise.
2741 * nis/nss_nis/nis-grp.c: Likewise.
2742 * nis/nss_nis/nis-hosts.c: Likewise.
2743 * nis/nss_nis/nis-initgroups.c: Likewise.
2744 * nis/nss_nis/nis-netgrp.c: Likewise.
2745 * nis/nss_nis/nis-network.c: Likewise.
2746 * nis/nss_nis/nis-proto.c: Likewise.
2747 * nis/nss_nis/nis-publickey.c: Likewise.
2748 * nis/nss_nis/nis-pwd.c: Likewise.
2749 * nis/nss_nis/nis-rpc.c: Likewise.
2750 * nis/nss_nis/nis-service.c: Likewise.
2751 * nis/nss_nis/nis-spwd.c: Likewise.
2752 * resolv/nss_dns/dns-host.c: Likewise.
2753 * resolv/nss_dns/dns-network.c: Likewise.
2754 * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2755 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2756 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2757 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2758 * nis/nss_nisplus/nisplus-network.c: Likewise.
2759 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2760 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2761 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2762 * nis/nss_nisplus/nisplus-service.c: Likewise.
2763 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2764 * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2765 * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2766 * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2767 * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2769 * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2770 declaring __restore and __restore_rt as hidden (if possible).
2772 2002-08-25 Roland McGrath <roland@redhat.com>
2774 * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2776 * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2777 (getutent_r_file, internal_getut_r): Updated all callers.
2778 (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2780 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2782 * locale/programs/locale.c: Don't print aliases for non-existing
2783 locales for 'locale -a'.
2784 Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2786 2002-07-19 H.J. Lu <hjl@gnu.org>
2788 * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2790 2002-07-16 H.J. Lu <hjl@gnu.org>
2792 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2794 * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2796 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2798 * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2799 not moved ahead of the fputs call.
2800 * elf/tst-tlsmod2.c (in_dso): Likewise.
2801 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2802 * elf/tst-tlsmod4.c (in_dso): Likewise.
2804 2002-08-25 Andreas Schwab <schwab@suse.de>
2806 * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2808 2002-08-25 Roland McGrath <roland@redhat.com>
2810 * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2811 resetting handler, to avoid the possibility of a spurious SIGALRM
2812 delivered to the user's handler.
2813 Reported by Amit D. Chaudhary <amitc@brocade.com>,
2815 * misc/Makefile (CFLAGS-init-misc.c): Variable removed. It served to
2816 set -fkeep-inline-functions, which is not needed for the current file.
2818 * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2819 (_dl_setup_hash): Add attribute_hidden.
2820 (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2821 (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2822 (_dl_new_object, _dl_map_object_deps): Likewise.
2823 (_dl_map_object_deps_internal): Remove decl.
2824 * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2826 * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2827 && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2828 && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2829 (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2830 instead relying on the compiler to produce only GOTOFF variable refs.
2832 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2834 * elf/dl-load.c: Fix typo in comment. Add a few more __builtin_expect.
2836 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2837 inline to avoid defining it in every file which includes this header.
2839 * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2840 defining DONT_USE_BOOTSTRAP_MAP.
2842 * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2843 * libio/tst-mmap-setvbuf.c (main): Likewise.
2844 * libio/tst-widetext.c (main): Likewise.
2846 * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2848 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2849 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2851 * sysdeps/i386/elf/configure.in: Unconditionally define
2852 PI_STATIC_AND_HIDDEN.
2853 * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2854 PI_STATIC_AND_HIDDEN is defined as well.
2855 * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2857 2002-08-24 Ulrich Drepper <drepper@redhat.com>
2859 * sysdeps/ia64/bzero.S: Define __bzero as well.
2861 * locale/programs/charmap.c (charmap_new_char): Don't use
2862 ULONG_MAX as maximum UCS4 value.
2864 * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2866 * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2868 * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2869 * malloc/malloc.c (mALLINFo): Likewise.
2871 * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2873 * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2874 examining result of _IO_do_flush call.
2876 * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2877 Use prec not spec when sizing buffers.
2879 * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2880 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2881 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2882 * stdio-common/vfscanf.c (inchar): Likewise.
2883 * misc/efgcvt_r.c (fcvt_r): Likewise.
2884 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2885 * elf/readlib.c (process_file): Likewise.
2886 * elf/sprof.c (load_profdata): Likewise.
2887 * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2888 * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2889 * locale/programs/charmap.c (charmap_read): Likewise.
2890 * libio/fileops.c: Likewise.
2891 * libio/fmemopen.c: Likewise.
2892 * stdlib/strtod.c: Likewise.
2893 * elf/dl-load.c: Likewise.
2894 * iconv/iconvconfig.c: Likewise.
2895 * iconv/iconv_prog.c (process_block): Likewise.
2896 * elf/rtld.c (dl_main): Likewise.
2898 * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2899 macro to calm down the compiler.
2901 * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2903 * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2905 * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2906 placement of errno definition.
2907 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2908 * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2909 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2910 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2911 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2913 * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2914 from 1024 to 65536, to avoid buffer overrun.
2916 2002-08-16 Paul Eggert <eggert@twinsun.com>
2918 * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2919 from 1024 to 65536, to avoid buffer overrun.
2920 * resolv/res_query.c (MAXPACKET): Likewise.
2922 2002-08-24 Andreas Jaeger <aj@suse.de>
2924 * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2926 2002-08-23 Ulrich Drepper <drepper@redhat.com>
2928 * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2931 * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2932 Patch by Simon Gee <simong@agile.tv>.
2934 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2935 Prefer reading /proc/stat since it is more uniform across
2938 * manual/texinfo.tex: Update to latest official version.
2940 * sysvipc/sys/shm.h: Remove SHMLBA definition.
2941 * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2942 * sysdeps/gnu/bits/shm.h: Likewise.
2943 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2944 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2945 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2946 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2947 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2948 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2949 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2950 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2951 since this is what the kernel says.
2953 * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2954 since ssize_t is needed as well. Replace const with __const.
2956 2002-08-23 Roland McGrath <roland@redhat.com>
2958 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2959 __malloc_hook, __realloc_hook, __memalign_hook,
2960 __after_morecore_hook): Variable definitions moved to ...
2961 * malloc/malloc.c: ... here, so as to be before all references.
2963 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2964 global variable reference in an unused asm parameter, to ensure the
2965 compiler has set up the GOT register before we use it.
2967 * malloc/hooks.c: Move variable definitions ahead of uses.
2968 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2969 initializers that make reference to variables they define.
2971 2002-08-23 Andreas Jaeger <aj@suse.de>
2973 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2974 alloca, free, qsort.
2976 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2978 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2979 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2981 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2983 * sysdeps/generic/fgetxattr.c: New file.
2984 * sysdeps/generic/flistxattr.c: New file.
2985 * sysdeps/generic/fremovexattr.c: New file.
2986 * sysdeps/generic/fsetxattr.c: New file.
2987 * sysdeps/generic/getxattr.c: New file.
2988 * sysdeps/generic/listxattr.c: New file.
2989 * sysdeps/generic/lgetxattr.c: New file.
2990 * sysdeps/generic/llistxattr.c: New file.
2991 * sysdeps/generic/lremovexattr.c: New file.
2992 * sysdeps/generic/lsetxattr.c: New file.
2993 * sysdeps/generic/removexattr.c: New file.
2994 * sysdeps/generic/setxattr.c: New file.
2995 * misc/Makefile (headers): Add sys/xattr.h.
2996 (routines): Add *xattr calls.
2997 * misc/Versions: Add *xattr calls with version 2.3.
2998 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2999 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3000 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3001 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3002 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3003 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3004 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3005 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3007 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
3009 * sysdeps/powerpc/elf/libc-start.c
3010 (__cache_line_size): Declare.
3011 (__aux_init_cache): New function.
3012 (__libc_start_main): Change type of `auxvec' parameter to
3013 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
3015 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3016 (__cache_line_size): Declare.
3017 (__aux_init_cache): New function.
3018 (DL_PLATFORM_INIT): Define.
3019 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
3020 value to select the correct stride for dcbz.
3022 2002-08-22 Andreas Jaeger <aj@suse.de>
3024 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
3027 2002-08-22 Roland McGrath <roland@redhat.com>
3029 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
3030 position indicated by locrectab against file bounds before rounding to
3031 page size. In mapping loop, always set TO before breaking out of
3032 contiguous range coalescing loop.
3034 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
3035 (or MAP_COPY if available) instead of MAP_SHARED.
3037 * scripts/firstversions.awk: When encountering a version newer than
3038 the specified earliest version, be sure to emit the specified earliest
3039 version first if any renaming of an older version to that has been.
3041 2002-08-21 Roland McGrath <roland@redhat.com>
3043 * configure.in: Make GCC version check require 3.[2-9]* and no others.
3044 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
3045 (Configuring and compiling): Don't mention older GCC versions any more.
3046 * INSTALL: Regenerated.
3048 * manual/install.texi (Configuring and compiling, Installation,
3049 Running make install, Linux): Linux -> GNU/Linux where appropriate.
3051 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
3052 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
3053 and with noinline otherwise. Remove hack alloca use to prevent
3054 inlining, we can ask for it explicitly nowadays.
3056 * dlfcn/bug-dlsym1.c: New file.
3057 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
3058 * dlfcn/Makefile (distribute): Add them.
3059 (tests): Add bug-dlsym1 here.
3060 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
3061 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
3062 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
3064 2002-08-21 Ulrich Drepper <drepper@redhat.com>
3066 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
3067 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
3069 (_dl_start): Don't use local bootstrap_map variable if
3070 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
3071 pass bootstrap_map to _dl_start_final in this case either. Don't
3072 pass start_time to _dl_start_final ever.
3073 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
3075 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
3076 This cripples the scope lists necessary to search for symbols in
3077 dependencies which are not in the global scope.
3079 * include/setjmp.h (__libc_longjmp): Add declaration.
3081 2002-08-21 Andreas Jaeger <aj@suse.de>
3083 * sysdeps/x86_64/_mcount.S: Fix assembler.
3085 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
3086 with biarch support.
3088 2002-08-21 Andreas Jaeger <aj@suse.de>
3090 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
3092 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
3094 * sysdeps/x86_64/machine-gmon.h: New file.
3095 * sysdeps/x86_64/_mcount.S: New file.
3097 2002-08-20 Ulrich Drepper <drepper@redhat.com>
3099 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
3100 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
3101 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
3102 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
3103 to TL_INIT_TP. Otherwise pass 1.
3104 * include/link.h (struct link_map): Add l_tls_tp_initialized.
3105 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
3107 2002-08-15 Jakub Jelinek <jakub@redhat.com>
3109 * locale/programs/localedef.c (add_to_readlist): Error about
3110 circular dependencies only if the locale in question hasn't
3112 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
3113 CTYPE_LOCALE to load_locale.
3114 * locale/programs/locfile.c (locfile_read): Don't include
3115 unneeded but available locales in locale_mask.
3117 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
3118 print any messages about enlarging archive.
3120 2002-08-20 Brian Youmans <3diff@gnu.org>
3122 * manual/contrib.texi: Removed licenses, added acknowledgements
3123 for contributions by Intel, IBM, Craig Metz.
3124 * LICENSES: New file, contains the text of all non-FSF licenses in the
3125 distribution that require putting the notice in the accompanying
3127 * README.template, README: Mention LICENSES.
3129 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
3130 new one modelled on the modern BSD license, per recent letter
3131 of permission from CMU.
3132 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3134 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
3135 from IBM to FSF, per the recent Software Letter. Changed the
3136 distribution terms from GPL to LGPL.
3138 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
3139 copying permission notice (Lesser GPL), per recent IBM Software Letter.
3140 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3141 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
3142 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
3143 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
3144 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
3145 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
3146 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
3147 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
3149 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
3150 from IBM to FSF, per the recent Software Letter. Corrected the
3151 text of the copying permission notice to say Lesser GPL instead
3152 of GPL in warranty disclaimer paragraph.
3153 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3154 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
3155 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3156 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
3157 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
3158 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
3159 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
3160 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3161 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3162 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
3163 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3164 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3165 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
3166 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
3167 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
3168 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
3169 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
3170 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
3171 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
3172 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
3173 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3175 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
3176 permission notice to say Lesser GPL instead of GPL in warranty
3177 disclaimer paragraph.
3178 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3179 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3180 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3181 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3182 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3183 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3184 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3185 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3186 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3187 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3188 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3189 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3190 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3191 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3192 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3193 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3194 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3195 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3196 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3197 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3198 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3199 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3200 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
3202 2002-08-20 Roland McGrath <roland@redhat.com>
3204 Fix ABI compatibility with libc compiled with old tools on powerpc.
3205 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3206 and Jack Howarth <howarth@bromo.med.uc.edu>.
3207 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
3208 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
3209 pass -DHAVE_DOT_HIDDEN for these files.
3210 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
3212 * sysdeps/powerpc/divdi3.c: New file.
3213 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
3214 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
3216 2002-08-20 Jakub Jelinek <jakub@redhat.com>
3218 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
3219 partially overlapping mappings. Remove unneeded (char *) casts.
3220 Never allow duplication of ranges in mapped areas.
3222 2002-08-20 Roland McGrath <roland@redhat.com>
3224 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
3225 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
3227 2002-08-20 Ulrich Drepper <drepper@redhat.com>
3229 * include/unistd.h: Don't hide _exit.
3231 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
3232 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
3233 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
3234 argument 1 to TLS_INIT_TP.
3235 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
3237 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
3239 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
3240 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
3241 memory allocation to...
3242 (allocate_dtv): ...here. New function.
3243 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
3244 call allocate_dtv instead of _dl_allocate_tls_storage.
3245 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
3246 (_dl_get_tls_static_info): New function.
3247 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
3248 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
3250 2002-08-19 Ulrich Drepper <drepper@redhat.com>
3252 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
3253 immediately if result == NULL.
3255 2002-08-16 Jakub Jelinek <jakub@redhat.com>
3257 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3259 2002-08-18 Roland McGrath <roland@frob.com>
3261 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
3262 instead of __file_name_split.
3263 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
3265 * sysdeps/mach/hurd/dl-sysdep.c
3266 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
3267 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
3269 2002-08-16 Jakub Jelinek <jakub@redhat.com>
3271 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
3272 in change before last: MAX -> MIN.
3274 2002-08-15 Roland McGrath <roland@redhat.com>
3276 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
3277 if seek would go past it.
3278 (mmap_remap_check): If file position is at or past EOF after check,
3279 leave read pointers at EOF and don't seek.
3281 * libio/tst-mmap-offend.c: New file.
3282 * libio/Makefile (tests): Add it.
3284 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
3285 the name as passed, rather than the name in the archive dictionary.
3287 2002-08-15 Ulrich Drepper <drepper@redhat.com>
3289 * csu/Makefile: Define elide-routines.os not static-only-routines.
3291 * include/sched.h (__clone): Add varargs at the end.
3293 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
3295 (TLS_INIT_HELPER): If defined, use it.
3296 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
3298 2002-08-15 Roland McGrath <roland@redhat.com>
3300 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
3301 on L->l_prev; it can happen under rtld --verify too.
3303 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
3304 header separately, just map an initial window of 2MB from the file
3305 and remap if that is not large enough to cover the whole header.
3307 2002-08-15 Andreas Jaeger <aj@suse.de>
3309 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
3311 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3312 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3313 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3314 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3315 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3316 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3317 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3318 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3319 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3320 Patch by Andreas Gruenbacher <agruen@suse.de>.
3322 * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
3324 2002-08-14 Roland McGrath <roland@redhat.com>
3326 * locale/locarchive.h (struct locale_category_data): Give this name to
3327 the type of locale_data_t's elements.
3328 * locale/programs/locarchive.c (cmpcategorysize): New static function.
3329 (add_locale): Use that to sort the categories by size and put all
3330 those that fit into two pages into the LC_ALL block, instead of
3331 hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
3332 (show_archive_content): Detect categories inside LC_ALL block
3333 directly, instead of hard-coding.
3334 (oldlocrecentcmp): Compare just on file locations used.
3336 2002-08-14 Jakub Jelinek <jakub@redhat.com>
3338 * locale/programs/locarchive.c (struct oldlocrecent): New type.
3339 (oldlocrecentcmp): New function.
3340 (enlarge_archive): Re-add locales in the order they were added
3342 (add_locale): Put all the small locale files together, if the small
3343 locale file block would occupy less pages if page size aligned, align
3345 (show_archive_content): Adjust for locale archives optimized for speed.
3347 2002-08-14 Roland McGrath <roland@frob.com>
3349 * configure.in: Use "MISSING" as not-found value for MIG.
3350 * sysdeps/mach/configure.in: Fatal if mig not found.
3351 * configure, sysdeps/mach/configure: Regenerated.
3353 2002-08-13 Jakub Jelinek <jakub@redhat.com>
3355 * locale/loadarchive.c (archfname): Add missing slash.
3357 * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
3358 * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
3360 2002-08-12 Roland McGrath <roland@redhat.com>
3362 * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
3363 * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
3364 * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
3365 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3366 * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
3367 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
3368 * sysdeps/generic/waitpid.c: Likewise.
3370 * include/net/if.h: New file. Use libc_hidden_proto
3371 for if_nametoindex and if_indextoname.
3372 * sysdeps/generic/if_index.c: Add libc_hidden_def.
3373 * sysdeps/mach/hurd/if_index.c: Likewise.
3374 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
3376 * include/grp.h (setgroups): Add libc_hidden_proto.
3377 * sysdeps/generic/setgroups.c: Add libc_hidden_def.
3378 * sysdeps/mach/hurd/setgroups.c: Likewise.
3379 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
3380 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3382 2002-08-13 Jakub Jelinek <jakub@redhat.com>
3384 * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
3385 * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
3386 * sysdeps/generic/setegid.c (setegid): Likewise.
3387 * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
3388 * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
3389 * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
3390 * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
3391 * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
3392 * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
3393 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
3394 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
3395 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
3396 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
3397 * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
3398 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
3399 Remove fallback if __ASSUME_SETRESUID_SYSCALL.
3401 * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
3402 __lxstat_internal, __lxstat64_internal): Remove.
3403 (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
3405 * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
3406 Remove INTDEF where present, remove #undef at the beginning.
3407 * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
3408 * sysdeps/generic/lxstat.c (__lxstat): Likewise.
3409 * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
3410 * sysdeps/generic/xstat.c (__xstat): Likewise.
3411 * sysdeps/generic/xstat64.c (__xstat64): Likewise.
3412 * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
3413 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3414 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3415 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3416 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3417 * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
3418 * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
3419 * sysdeps/unix/fxstat.c (__fxstat): Likewise.
3420 * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
3421 * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
3422 * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
3423 * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
3424 * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
3425 * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
3426 * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
3427 * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
3428 * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
3429 * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
3430 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
3431 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
3432 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
3433 * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3434 * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3435 * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3436 * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3437 * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3438 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3439 * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
3440 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3441 * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3442 * sysdeps/unix/xstat.c (__xstat): Likewise.
3444 * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
3445 * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
3446 * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
3447 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3448 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
3449 * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
3450 * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
3452 * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
3453 * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
3454 * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
3455 * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
3456 * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
3457 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
3458 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
3459 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
3461 * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
3462 * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
3463 * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
3464 * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
3465 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3466 * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
3467 * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
3468 * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
3470 * include/string.h (strcoll): Add libc_hidden_proto.
3471 * string/strcoll.c (strcoll): Add libc_hidden_def.
3473 * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
3475 2002-08-11 Philip Blundell <philb@gnu.org>
3477 * sysdeps/arm/Makefile: New file.
3479 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3481 * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3482 by another '|', end of regex or enclosing ')', clear branch.
3483 * posix/bug-regex9.c: New test.
3484 * posix/Makefile (tests): Add bug-regex9.
3486 2002-08-12 Roland McGrath <roland@redhat.com>
3488 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3489 start count condition, use TOTAL instead of variable that was never
3490 set. Fix outer loop termination condition to TOTAL >= after update.
3492 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3493 dl_tls_static_align and dl_tls_static_nelem.
3495 2002-08-11 Roland McGrath <roland@redhat.com>
3497 * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3498 of the TLS macros, otherwise the compiler might not have initialized
3499 the PIC register yet when we use the PLT via asm.
3500 * elf/tst-tlsmod3.c (in_dso2): Likewise.
3501 * elf/tst-tlsmod2.c (in_dso): Likewise.
3503 * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3505 * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3506 Evaluate argument exactly once. Remove __volatile__ from asm's.
3508 * include/unistd.h: Use libc_hidden_proto for getdomainname
3510 * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3511 * sysdeps/mach/hurd/getdomain.c: Likewise.
3512 * sysdeps/unix/getlogin_r.c: Likewise.
3513 * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3514 * sysdeps/generic/getlogin_r.c: Likewise.
3516 * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3517 * sunrpc/rtime.c: Add libc_hidden_def.
3519 * include/string.h: Use libc_hidden_proto for basename.
3520 * string/basename.c [_LIBC]: Add libc_hidden_def.
3522 * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3524 * locale/loadarchive.c: munmap -> __munmap throughout.
3526 * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3527 * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3528 * sysdeps/generic/gai_strerror.c: Likewise.
3530 * include/sys/errno.h: New file.
3532 * include/signal.h: No libc_hidden_proto for raise,
3533 __libc_current_sigrtmin, __libc_current_sigrtmax.
3534 These need to be overridden by linuxthreads.
3535 * sysdeps/posix/raise.c: Reverted.
3536 * sysdeps/generic/raise.c: Reverted.
3537 * signal/allocrtsig.c: Reverted.
3539 * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
3541 2002-08-10 Roland McGrath <roland@redhat.com>
3543 * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3544 * locale/localeinfo.h: Declare it.
3545 * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3546 current locale if it's not in the file list.
3547 Call _nl_archive_subfreeres.
3549 2002-08-10 Andreas Jaeger <aj@suse.de>
3551 * sysdeps/i386/strchr.S: Add comment.
3553 2002-08-10 Roland McGrath <roland@redhat.com>
3555 * include/wchar.h (putwc): Use libc_hidden_proto.
3556 * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3557 sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3558 * stdio-common/dprintf.c: Add libc_hidden_def.
3559 * stdio-common/fprintf.c: Likewise.
3560 * stdio-common/sprintf.c: Likewise.
3561 * stdio-common/sscanf.c: Likewise.
3562 * libio/iofwrite.c: Likewise.
3563 * libio/memstream.c: Likewise.
3564 * libio/putwc.c: Likewise.
3565 * stdio-common/perror.c: Likewise.
3566 * sysdeps/posix/remove.c: Likewise.
3567 * sysdeps/generic/remove.c: Likewise.
3568 * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h".
3569 * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
3571 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3573 * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3574 towlower, towupper): Add prototypes here too. Add libc_hidden_proto.
3575 * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3576 towlower, towupper): Add libc_hidden_weak.
3578 * include/bits/dlfcn.h: New file.
3579 * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3581 * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3582 * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3583 * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3584 * include/pwd.h (_nss_files_parse_pwent): Likewise.
3585 * include/shadow.h (_nss_files_parse_spent): Likewise.
3586 * include/netdb.h (_nss_files_parse_protoent,
3587 _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3588 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3589 (LINE_PARSER): Use it.
3590 * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3591 * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3593 * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3596 * manual/debug.texi (%MENU%): Remove trailing dot.
3597 Reported by <hayastan132@hotmail.com>.
3599 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3602 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3605 2002-08-09 Roland McGrath <roland@redhat.com>
3607 * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3608 name to find codeset name (if any) and normalize it. If the
3609 normalized name differs, look up only that in the archive.
3610 * locale/programs/locarchive.c (add_locale_to_archive): If the name
3611 contains a codeset, normalize the codeset store only the normalized
3612 name in the archive. If not, add an alias containing the locale's
3613 normalized codeset name. Apply codeset name normalization when
3614 matching entries in the alias file.
3616 * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3617 decrement HEAD->namehash_used here.
3618 (add_locale): Only need to insert name string when name_offset != 0.
3620 * locale/programs/localedef.c (options): Add -A/--alias-file.
3621 (alias_file): New variable.
3622 (parse_opt): Grok -A, set that.
3623 * locale/programs/localedef.h: Declare it.
3625 * locale/locarchive.h (struct locrecent): Add `refs' member.
3626 * locale/programs/locarchive.c (insert_name): New function, broken out
3628 (add_locale_to_archive): ... here. Call that.
3629 (add_alias): New function.
3630 (add_locale): New static function, add_locale_to_archive renamed.
3631 (add_locale_to_archive): Call that and use add_alias to add an alias
3632 for the name with codeset if the given name lacks it.
3633 (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3635 * locale/Makefile (routines): Add loadarchive.
3636 * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3637 (_nl_load_locale_from_archive): New function.
3638 * locale/localeinfo.h: Declare it.
3639 * locale/findlocale.c (_nl_find_locale): If using default locale path,
3640 try _nl_load_locale_from_archive first.
3642 * locale/loadlocale.c (_nl_intern_locale_data): New function,
3643 broken out of _nl_load_locale.
3644 (_nl_load_locale): Call that.
3645 * locale/localeinfo.h: Declare it.
3646 (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3647 (struct locale_data): Remove unused member `options'.
3648 * locale/findlocale.c (_nl_remove_locale): Update uses.
3649 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3650 * locale/C-collate.c: Update initializer.
3651 * locale/C-identification.c: Likewise.
3652 * locale/C-measurement.c: Likewise.
3653 * locale/C-telephone.c: Likewise.
3654 * locale/C-address.c: Likewise.
3655 * locale/C-name.c: Likewise.
3656 * locale/C-paper.c: Likewise.
3657 * locale/C-time.c: Likewise.
3658 * locale/C-numeric.c: Likewise.
3659 * locale/C-monetary.c: Likewise.
3660 * locale/C-messages.c : Likewise.
3661 * locale/C-ctype.c: Likewise.
3663 * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3664 use CHAR_BIT instead of BITSPERBYTE.
3666 * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3667 _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3668 * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3669 (_nl_remove_locale): Likewise.
3670 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3672 * locale/findlocale.c (_nl_default_locale_path): New variable.
3673 (_nl_find_locale): If LOCALE_PATH is null, default to that.
3674 * locale/localeinfo.h: Declare it.
3675 * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3676 in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale.
3677 * locale/newlocale.c (__newlocale): Likewise.
3679 * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3680 * inet/rexec.c (rexec_af): Add libc_hidden_def.
3681 * sysdeps/generic/morecore.c: Likewise.
3682 * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3683 (__libc_current_sigrtmax): Likewise.
3685 2002-08-08 Roland McGrath <roland@redhat.com>
3687 * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3688 * catgets/open_catalog.c (__open_catalog): Likewise.
3690 * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3691 from typo INITIAL_NUM_NANES.
3692 (create_archive): Update use.
3694 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3696 * sysdeps/unix/sysv/linux/sigwait.c: New file.
3698 2002-08-08 Roland McGrath <roland@frob.com>
3700 * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3702 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3704 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3705 else and undefine after including wcstol_l.c.
3706 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3708 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3710 * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3712 2002-08-08 Alexandre Oliva <aoliva@redhat.com>
3714 * configure.in: Make the test for broken_alias_attribute stricter.
3716 2002-05-24 Robert Love <rml@tech9.net>
3718 * posix/Makefile (routines): Add sched_getaffinity and
3720 * posix/sched.h: Add declarations for sched_getaffinity and
3722 * sysdeps/generic/sched_getaffinity.c: New file.
3723 * sysdeps/generic/sched_setaffinity.c: New file.
3724 * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3727 2002-08-06 Andreas Schwab <schwab@suse.de>
3729 * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3731 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3733 * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3736 * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3737 It is known to be defined.
3739 * include/string.h: Define index and rindex only if _ISOMAC is not
3742 * elf/rtld.c: Include <errno.h>.
3743 * sysdeps/generic/libc-tls.c: Likewise.
3745 2002-08-07 Roland McGrath <roland@redhat.com>
3747 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3749 (precsize_aton): Likewise.
3751 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3752 the static symbols added in the last change (doofus is me).
3754 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3755 loop to notice missing categories in a composite name.
3757 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3758 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3759 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3760 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3762 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3764 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3766 2002-08-07 Roland McGrath <roland@redhat.com>
3768 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3769 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3770 Reported by Jakub Jelinek <jakub@redhat.com>.
3772 2002-08-07 Jakub Jelinek <jakub@redhat.com>
3774 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3777 2002-08-06 Roland McGrath <roland@redhat.com>
3779 * include/getopt.h: Put private decls inside [_GETOPT_H].
3780 Use libc_hidden_proto for getopt_long, getopt_long_only.
3781 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3782 Add libc_hidden_def.
3784 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3785 Define as a macro for __dl_iterate_phdr.
3787 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3788 made static. Add __ name as a strong alias.
3789 (internal_endnetgrent): Likewise.
3790 (internal_getnetgrent_r): Likewise.
3792 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3794 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3795 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3796 all *_l functions with no __ prefix.
3797 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3798 * ctype/ctype_l.c: Likewise.
3799 * locale/nl_langinfo.c: Likewise.
3800 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3801 * stdlib/stdlib.h [__USE_GNU]: Likewise.
3802 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3803 * wctype/wctype.h [__USE_GNU]: Likewise.
3804 * string/strcoll_l.c (strcoll_l): Define as weak alias.
3805 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3806 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3807 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3808 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3809 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3810 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3811 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3812 (__wcscasecmp_l): Add libc_hidden_def.
3813 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3814 (__wcsncasecmp_l): Add libc_hidden_def.
3815 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3816 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3817 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3818 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3819 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3820 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3821 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3822 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3823 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3824 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3825 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3826 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3827 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3828 * wctype/wctype_l.c (wctype_l) Define as weak alias.
3830 2002-08-05 Roland McGrath <roland@redhat.com>
3832 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3833 netname2user, host2netname, user2netname, key_gendes.
3834 * sunrpc/netname.c: Add libc_hidden_def.
3835 * sunrpc/key_call.c: Likewise.
3837 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3839 * inet/getnameinfo.c: Add libc_hidden_def.
3840 * sysdeps/generic/getaddrinfo.c: Likewise.
3841 * sysdeps/posix/getaddrinfo.c: Likewise.
3843 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3844 * wcsmbs/wmemchr.c: Add libc_hidden_def.
3845 * wcsmbs/wmemset.c: Add libc_hidden_def.
3847 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3848 (index, rindex): Define as macros for strchr, strrchr.
3850 * string/envz.c (envz_strip): index -> strchr
3852 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3853 * sunrpc/rpc_prot.c: Add libc_hidden_def.
3855 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3856 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3858 * include/stdlib.h: Use libc_hidden_proto for wctomb.
3859 * stdlib/wctomb.c: Add libc_hidden_def.
3861 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3862 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3863 * resolv/herror.c: Likewise.
3864 * inet/rcmd.c: Add libc_hidden_def.
3865 * inet/ruserpass.c: Likewise.
3866 * inet/getnetgrent_r.c: Likewise.
3868 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3869 svc_unregister, remove *_internal decls. Use libc_hidden_proto
3870 for svcerr_auth, svcerr_noprog, svcerr_progvers.
3871 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3873 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3874 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3876 * sysdeps/posix/system.c (do_system): New function, guts broken out of
3878 (__libc_system): Call it, putting just the line == NULL test here.
3880 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3881 variables work right.
3883 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3884 * elf/dl-close.c (_dl_close): Likewise.
3886 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3887 in6addr_any, in6addr_loopback. Remove decls for
3888 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3889 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3890 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3891 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3892 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3893 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3894 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3896 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3898 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3900 * inet/ether_aton_r.c: Add libc_hidden_def.
3901 * inet/ether_ntoa_r.c: Likewise.
3903 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3905 * sunrpc/svc.c: Add libc_hidden_def.
3906 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3907 pmap_set, pmap_unset.
3908 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3909 * sunrpc/pm_getport.c: Likewise.
3910 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3911 * sunrpc/publickey.c: Add libc_hidden_def.
3913 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3915 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
3916 the other memset call in this function.
3918 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3919 at correct index. Clear BSS region now that memalign is used.
3921 2002-08-05 Roland McGrath <roland@redhat.com>
3923 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3924 * sysdeps/generic/uname.c: Add libc_hidden_def.
3925 * sysdeps/mach/hurd/uname.c: Likewise.
3927 2002-08-05 Jakub Jelinek <jakub@redhat.com>
3929 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3930 wcspbrk): Add libc_hidden_proto.
3931 * time/strftime.c (my_strftime): Add libc_hidden_def.
3932 (strftime): Remove libc_hidden_def.
3933 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3934 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3935 * wcsmbs/wcsspn.c (wcsspn): Likewise.
3936 * wcsmbs/wcscmp.c (wcscmp): Likewise.
3937 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3938 * wcsmbs/wcscoll.c (wcscoll): Likewise.
3940 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3941 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3942 __rpc_thread_createerr): Add libc_hidden_proto.
3943 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3944 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3945 __rpc_thread_createerr): Add libc_hidden_def.
3947 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3948 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3949 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3950 clnt_perror, clnt_sperror): Add libc_hidden_def.
3951 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3953 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3955 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3956 * sunrpc/des_soft.c (des_setparity): Likewise.
3958 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3959 Add libc_hidden_proto.
3960 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3961 Add libc_hidden_def.
3963 2002-08-05 Roland McGrath <roland@redhat.com>
3965 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3966 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3967 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3968 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3969 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3970 old data, abandoning the original memory allocated by rtld at startup,
3971 instead of calling realloc normally.
3973 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3975 * po/fr.po: Update from translation team.
3977 2002-08-04 Roland McGrath <roland@redhat.com>
3979 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3980 then generate a dummy module under the given name, obeying the
3981 normal rules for the "caller" field.
3983 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3984 actually iterate over the elements. Fix typo p_type -> p_vaddr.
3986 * include/pthread.h: Don't declare __pthread_initialize_minimal as
3987 weak here; we declare it weak or strong in the one place we use it.
3988 * sysdeps/generic/libc-start.c: ... which is here.
3989 Don't make the decl weak if [USE_TLS], since static programs need TLS
3990 setup even when single-threaded.
3992 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3994 * elf/Makefile (test-srcs): Add $(modules-names) to it.
3995 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3996 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3997 all these variables.
3999 2002-08-04 Ulrich Drepper <drepper@redhat.com>
4001 * include/stdio.h: Don't define macro magic to redirect function
4002 calls if _ISOMAC is defined.
4004 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
4007 2002-08-04 Roland McGrath <roland@redhat.com>
4009 * stdlib/lrand48_r.c: Add libc_hidden_def.
4011 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
4012 TCB with __libc_memalign instead of mmap.
4013 (_dl_deallocate_tls): Free it with free instead of munmap.
4015 * Makerules (cpp-srcs-left): When setting this to run
4016 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
4017 words. Combine the two loops into one on the concatenated list,
4018 including those as well as $(test-srcs).
4020 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
4021 since we align here with optimally minimal waste anyway.
4022 (malloc): Just call that.
4024 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
4027 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
4028 to compute memory location for l_tls_initimage.
4029 * elf/rtld.c (_dl_start): Likewise.
4030 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
4032 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
4033 because the .d file is generated in the non-shared case and
4034 so fails to catch them otherwise.
4036 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
4037 split out of _dl_allocate_tls.
4038 (_dl_allocate_tls_init): Likewise.
4039 (_dl_allocate_tls): Call those.
4040 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
4041 * elf/rtld.c (dl_main): Call them separately instead of calling
4042 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
4043 is finished, so that the initializer data has been relocated before we
4044 copy it into the main thread's TLS block.
4046 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
4047 loop conditions, prevented the last used module from being initialized.
4049 2002-08-04 Jakub Jelinek <jakub@redhat.com>
4051 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
4052 if glob resp. globfree are not macros.
4053 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
4054 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
4055 Add libc_hidden_ver.
4056 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
4058 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
4059 instead of libc_hidden_weak.
4060 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
4061 libc_hidden_ver instead of libc_hidden_def.
4062 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
4063 libc_hidden_ver instead of libc_hidden_def.
4064 (wcstoll, wcstoq): Remove libc_hidden_weak.
4065 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
4067 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
4069 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
4071 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
4074 2002-08-04 Ulrich Drepper <drepper@redhat.com>
4076 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
4077 to access _sys_siglist.
4078 * string/strsignal.c: Likewise.
4079 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
4080 * sysdeps/gnu/siglist.c: Likewise.
4081 * sysdeps/unix/siglist.c: Likewise.
4082 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
4084 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
4086 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
4088 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
4090 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
4092 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
4093 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
4094 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
4096 * include/time.h: Add libc_hidden_proto for __gmtime_r.
4097 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
4099 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
4100 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
4101 and __gconv_get_cache respectively.
4102 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
4103 defined static. Change all users.
4104 (__gconv_get_cache): New function.
4105 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
4106 (__gconv_get_alias_db): New function.
4107 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
4108 (__conv_modules_db): Likewise.
4109 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
4110 and __gconv_get_alias_db.
4111 * iconv/iconv_prog.c: Use the new functions instead of accessing the
4114 * include/stdlib.h: Add prototype and libc_hidden_proto for
4116 * sysdeps/generic/morecore.c: Include <stdlib.h>.
4118 * malloc/obstack.c: Remove fputs macro.
4120 * malloc/mtrace.c: Remove fopen macro.
4122 2002-08-04 Jakub Jelinek <jakub@redhat.com>
4124 * manual/debug.texi: Fix spelling to programmatically.
4125 Reported by <hayastan132@hotmail.com>.
4127 2002-08-04 Ulrich Drepper <drepper@redhat.com>
4129 * include/libio.h: Add libc_hidden_proto for __uflow.
4130 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
4131 fgetpos to _IO_* names.
4132 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
4133 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
4134 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
4135 putwc_unlocked, vswscanf.
4136 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
4137 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
4138 * libio/fseek.c: Likewise.
4139 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
4141 * libio/genops.c (__uflow): Add libc_hidden_def.
4142 * libio/iofflush_u.c (fflush_unlocked): Likewise.
4143 * libio/iofgets_u.c (fgets_unlocked): Likewise.
4144 * libio/iofputs_u.c (fputs_unlocked): Likewise.
4145 * libio/iofputws_u.c (fputws_unlocked): Likewise.
4146 * libio/iofread_u.c (fread_unlocked): Likewise.
4147 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4148 * libio/iovswscanf.c (vswscanf): Likewise.
4149 * libio/putwc_u.c (putwc_unlocked): Likewise.
4150 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
4151 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
4152 * malloc/mtrace.c: Likewise.
4154 * sunrpc/clnt_perr.c: Remove fputs macro.
4155 * sunrpc/svc_simple.c: Likewise.
4156 * sunrpc/svc_tcp.c: Likewise.
4157 * sunrpc/svc_udp.c: Likewise.
4158 * sunrpc/xdr_rec.c: Likewise.
4159 * sunrpc/xdr_ref.c: Likewise.
4161 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
4162 iconv_prog, linereader, and charmap-dir.
4163 * locale/Makefile: Likewise for locale and charmap-dir.
4164 * malloc/Makefile: Likewise for memusagestat.
4165 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
4166 * sunrpc/Makefile: Likewise for rpc_main.
4167 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
4168 * timezone/Makefile: Likewise for zic.
4170 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
4172 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
4173 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
4174 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
4175 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
4178 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
4180 * libio/genops.c (__underflow): Add libc_hidden_def.
4181 * libio/wgenops.c (__wuflow): Likewise.
4182 (__wunderflow): Likewise.
4184 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
4185 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
4187 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
4188 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
4190 * include/string.h: Add libc_hidden_proto for __strverscmp.
4191 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
4193 * include/unistd.h: Add libc_hidden_proto for __sysconf.
4194 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
4195 * sysdeps/posix/sysconf.c: Likewise.
4196 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
4197 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
4199 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
4200 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4201 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4202 __iswxdigit_l, __towlower_l, __towupper_l.
4203 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
4204 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
4206 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
4207 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
4208 * sysdeps/mach/hurd/xmknod.c: Likewise.
4209 * sysdeps/unix/xmknod.c: Likewise.
4210 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4211 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4212 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4214 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
4216 2002-08-03 Roland McGrath <roland@redhat.com>
4218 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
4220 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
4221 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
4222 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
4223 * sysdeps/mach/hurd/setpriority.c: Likewise.
4224 * sysdeps/mach/hurd/getpriority.c: Likewise.
4225 * sysdeps/generic/setpriority.c: Likewise.
4226 * sysdeps/generic/getpriority.c: Likewise.
4228 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
4229 * malloc/mcheck.c: Add libc_hidden_def.
4231 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
4232 * misc/hsearch_r.c: Add libc_hidden_def.
4234 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
4235 * posix/fnmatch.c: Add libc_hidden_weak.
4237 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
4238 execl, execle, execlp, execvp, getpid, getsid.
4239 * sysdeps/generic/alarm.c: Add libc_hidden_def.
4240 * sysdeps/unix/alarm.c: Likewise.
4241 * posix/confstr.c: Likewise.
4242 * posix/execvp.c: Likewise.
4243 * posix/execlp.c: Likewise.
4244 * posix/execle.c: Likewise.
4245 * posix/execl.c: Likewise.
4246 * sysdeps/generic/getsid.c: Likewise.
4247 * sysdeps/mach/hurd/getsid.c: Likewise.
4248 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
4249 * sysdeps/mach/hurd/getpid.c: Likewise.
4251 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
4252 qecvt_r, qfcvt_r, lrand48_r.
4253 * misc/efgcvt_r.c: Add libc_hidden_def.
4255 * include/wordexp.h: Use libc_hidden_proto for wordfree.
4256 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
4258 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
4259 * locale/nl_langinfo.c: Add libc_hidden_def.
4261 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
4262 * sysdeps/generic/glob.c: Add libc_hidden_def.
4263 * sysdeps/generic/glob64.c: Likewise.
4264 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
4266 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
4268 * elf/Makefile (CFLAGS-vismod2.c): New variable.
4270 * locale/setlocale.c (_nl_current_names): Variable moved ...
4271 * locale/localename.c (_nl_current_names): ... here, new file.
4272 Make it global, with attribute_hidden.
4273 * locale/localeinfo.h: Declare it.
4274 * locale/Makefile (aux): Add localename.
4275 * locale/localename.c (__current_locale_name): New function.
4276 * include/locale.h (__current_locale_name): Declare it.
4277 * intl/dcigettext.c (guess_category_value): Use that instead of
4280 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
4281 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
4282 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
4283 * locale/newlocale.c: Add alias to __ name.
4284 * locale/duplocale.c: Likewise.
4285 * locale/freelocale.c: Likewise.
4286 * locale/uselocale.c: New file.
4287 * locale/Makefile (routines): Add it.
4288 * locale/Versions (libc: GLIBC_2.3): New set.
4289 Add newlocale, duplocale, freelocale, uselocale.
4290 (libc: GLIBC_PRIVATE): Add __uselocale.
4292 * locale/localeinfo.h [SHARED]
4293 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
4294 (_NL_CURRENT_DATA): Define using that.
4295 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
4296 (_NL_CURRENT_DEFINE): Define to empty.
4297 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
4298 conditionalized on this.
4299 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
4300 taking initializer of _nl_C_locobj.
4301 [SHARED] (_nl_global_locale): New variable, using that initializer.
4302 (_nl_C_locobj): Use new macro for initialzier.
4303 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
4304 [! SHARED] (CATEGORY_USED): New macro.
4305 [SHARED] (CATEGORY_USED, _nl_C): New macros.
4306 (setdata, setlocale): Use that macro instead of examining _nl_current.
4307 (setdata): Set the slot in _nl_global_locale.
4308 Conditionalize setting of _nl_current on [! SHARED].
4309 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
4310 declaration as an extern.
4311 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
4313 * include/locale.h: Use libc_hidden_proto for setlocale.
4314 * locale/setlocale.c: Add libc_hidden_def.
4316 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
4318 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
4319 * misc/hsearch_r.c: Add libc_hidden_def.
4320 * misc/lsearch.c: Likewise.
4322 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
4324 * misc/getttyent.c: Add libc_hidden_def.
4326 * include/mcheck.h: Use libc_hidden_proto for mcheck.
4327 * malloc/mcheck.c: Add libc_hidden_def.
4329 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
4330 * include/argz.h: Use libc_hidden_proto for argz_delete.
4331 * string/argz-delete.c: Add libc_hidden_def.
4332 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
4334 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
4335 HIDDEN_JUMPTARGET for _exit.
4336 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
4337 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
4338 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4339 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
4341 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
4342 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
4343 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
4344 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
4346 * include/stdlib.h: Use libc_hidden_proto for abort,
4347 __strtof_internal, __strtod_internal, __strtold_internal,
4348 __strtol_internal, __strtoll_internal, __strtoul_internal,
4349 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
4350 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
4351 __strtoul_l_internal, __strtoull_l_internal.
4352 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
4353 __wcstod_internal, __wcstold_internal, __wcstol_internal,
4354 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
4355 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
4356 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
4358 * sysdeps/generic/abort.c: Add libc_hidden_def.
4359 * stdlib/strtod.c: Likewise.
4360 * sysdeps/generic/strtol.c: Likewise.
4361 * sysdeps/wordsize-64/strtol.c: Likewise.
4362 * sysdeps/wordsize-64/wcstol.c: Likewise.
4363 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
4365 * include/stdlib.h: Use libc_hidden_proto for qsort.
4366 * stdlib/msort.c: Add libc_hidden_def.
4368 * include/utime.h: Use libc_hidden_proto for utime.
4369 * sysdeps/generic/utime.c: Add libc_hidden_def.
4370 * sysdeps/unix/utime.c: Likewise.
4372 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
4373 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
4374 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4375 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
4376 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
4378 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
4379 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
4380 and __libc_current_sigrtmax.
4381 * signal/sigismem.c: Add libc_hidden_def.
4382 * signal/sigfillset.c: Likewise.
4383 * signal/sigempty.c: Likewise.
4384 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
4385 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
4386 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
4387 * sysdeps/posix/raise.c: Likewise.
4388 * sysdeps/generic/raise.c: Likewise.
4390 2002-08-03 Ulrich Drepper <drepper@redhat.com>
4392 * include/string.h: Use libc_hidden_proto for __stpcpy.
4393 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
4394 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
4395 * sysdeps/generic/stpcpy.c: Likewise.
4396 * sysdeps/i386/stpcpy.S: Likewise.
4397 * sysdeps/i386/i586/stpcpy.S: Likewise.
4398 * sysdeps/powerpc/stpcpy.S: Likewise.
4399 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
4400 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4402 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
4403 __strncasecmp_l, __strdup, __strndup, __strerror_r.
4404 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
4406 * string/strdup.c (__strdup): Likewise.
4407 * string/strndup.c (__strndup): Likewise.
4408 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
4409 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
4411 2002-08-03 Jakub Jelinek <jakub@redhat.com>
4413 * include/libio.h: New file.
4414 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
4415 * libio/iolibio.h: #include <libio.h>, not "libio.h".
4416 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
4417 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
4418 * sysdeps/unix/common/syscalls.list: Likewise.
4419 * sysdeps/unix/inet/syscalls.list: Likewise.
4420 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
4421 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4422 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4423 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4424 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4425 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4426 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4427 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4428 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4429 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
4430 * sysdeps/unix/syscalls.list: Likewise.
4432 2002-08-03 Jakub Jelinek <jakub@redhat.com>
4433 Ulrich Drepper <drepper@redhat.com>
4435 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
4436 the arguments is big enough to cause an overflow.
4438 2002-08-03 Ulrich Drepper <drepper@redhat.com>
4440 * assert/assert.c: Use hidden_def not INTDEF.
4442 2002-08-03 Jakub Jelinek <jakub@redhat.com>
4444 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
4447 2002-08-03 Roland McGrath <roland@redhat.com>
4449 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
4450 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
4452 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
4453 * misc/syslog.c: Add libc_hidden_def.
4454 * misc/err.c: Likewise.
4455 * stdlib/exit.c: Likewise.
4456 * stdlib/bsearch.c: Likewise.
4457 * sysdeps/generic/getenv.c: Likewise.
4459 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
4461 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
4462 libc_hidden_weak for every system call symbol defined.
4464 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
4465 timelocal, localtime, strftime.
4466 * time/asctime.c: Add libc_hidden_def.
4467 * time/mktime.c: Likewise.
4468 * time/localtime.c: Likewise.
4469 * time/strftime.c: Likewise.
4470 * time/strptime.c: Likewise.
4471 * sysdeps/generic/time.c: Likewise.
4472 * sysdeps/unix/time.c: Likewise.
4473 * sysdeps/unix/sysv/i386/time.S: Likewise.
4474 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4476 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
4477 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
4478 * resolv/inet_ntop.c: Likewise.
4479 * resolv/inet_pton.c: Likewise.
4480 * inet/inet_mkadr.c: Add libc_hidden_def.
4481 * inet/inet_netof.c: Likewise.
4482 * resolv/inet_addr.c: Likewise.
4484 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4485 clauses from conditionals for now. Will have to be fixed later
4486 for older compilers.
4488 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4490 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4492 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4493 broken alias attribute handling.
4494 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4496 2002-08-02 Roland McGrath <roland@frob.com>
4498 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4499 since it sets the variables we use in a -D switch.
4501 2002-08-02 Roland McGrath <roland@redhat.com>
4503 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4504 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4505 matches long int, not int.
4507 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4508 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4509 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4510 * wctype/wctrans.c (wctrans): Likewise.
4511 * wctype/wctype.c (__wctype): Likewise.
4512 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4514 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4516 * assert/assert.c (__assert_fail): Fix typo in comment.
4518 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4519 * sunrpc/rpc_thread.c: Define it without static.
4520 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4522 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4524 * assert/assert.c (__assert_fail): Remove undef.
4525 Replace INTDEF with libc_hidden_def.
4526 * assert/__assert.c (__assert): Remove INTUSE.
4527 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4529 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4530 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4531 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4532 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4533 libm_hiden_ver): Define.
4534 * include/assert.h (__assert_fail_internal): Remove.
4535 (__assert_fail): Add prototype. Add hidden_proto.
4536 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4538 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4539 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
4540 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4541 Add libc_hidden_proto.
4542 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4543 __fcntl): Add libc_hidden_proto. Remove macros.
4544 (__open_internal, __fcntl_internal): Remove.
4545 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4546 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4547 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4549 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4551 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4552 Add libc_hidden_def.
4553 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4554 * sysdeps/generic/open.c (__open): Remove undef.
4555 Add libc_hidden_def. Remove INTDEF.
4556 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4557 Add libc_hidden_def.
4558 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4559 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4560 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4561 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4562 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4563 (__libc_fcntl): Add libc_hidden_def.
4564 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4565 (__open): Remove INTDEF2. Add libc_hidden_weak.
4566 (__libc_open): Add libc_hidden_def.
4567 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4568 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4569 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4570 Add libc_hidden_def.
4571 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4572 Add libc_hidden_def.
4573 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4575 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4576 (__libc_fcntl): Add libc_hidden_def.
4577 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4578 __getpgid_internal, __chown_internal): Remove.
4579 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4580 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4582 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4583 __getpid_internal, __open_internal, __write_internal): Remove.
4584 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4585 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4586 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4587 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4588 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4589 Replace INTDEF with libc_hidden_def.
4590 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4591 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4592 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4593 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4594 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4595 Add libc_hidden_proto.
4596 * include/sys/poll.h (__poll): Add libc_hidden_proto.
4597 * include/sys/select.h (__select): Likewise.
4598 * include/sys/socket.h (__send): Likewise.
4599 * include/sys/statfs.h (__statfs): Likewise.
4600 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4601 __getpid, __getpgid, __setpgid, __close, __read, __write,
4602 __getpagesize, __sbrk): Likewise.
4603 (__chown_internal, __dup2_internal, __getpid_internal,
4604 __getpgid_internal, __close_internal, __write_internal,
4605 __getpagesize_internal): Remove.
4606 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4608 * include/printf.h (__printf_fp): Add libc_hidden_proto.
4609 * include/sched.h (__sched_setscheduler): Likewise.
4610 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4611 * include/stdlib.h (__secure_getenv): Likewise.
4612 * include/signal.h (__sigaction, __sigsuspend): Likewise.
4613 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4614 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4615 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4616 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4617 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4618 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4619 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4620 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4621 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4622 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4623 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4624 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4625 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4626 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4627 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4628 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4629 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4630 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4631 * libio/genops.c (__overflow): Add libc_hidden_def.
4632 * libio/iovdprintf.c: Remove libio.h include.
4633 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4634 libc_hidden_weak): Define to nothing if not defined.
4635 (__overflow, __woverflow): Add libc_hidden_proto.
4636 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4637 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4638 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4639 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4640 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4641 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4642 and libc_hidden_def.
4643 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4644 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4645 (__getpgid): Add libc_hidden_proto.
4646 (__bsd_getpgrp): Remove INTUSE.
4647 * resolv/res_init.c (__res_ninit, __res_randomid): Add
4649 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4650 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4651 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4652 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4653 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4654 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4655 __rpc_thread_createerr): Add libc_hidden_def.
4656 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4658 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4659 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4660 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4661 * sysdeps/generic/chown.c (__chown): Likewise.
4662 * sysdeps/generic/close.c (__close): Likewise.
4663 * sysdeps/generic/dup2.c (__dup2): Likewise.
4664 * sysdeps/generic/pipe.c (__pipe): Likewise.
4665 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4666 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4667 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4668 * sysdeps/generic/read.c (__libc_read): Likewise.
4669 (__read): Add libc_hidden_weak.
4670 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4671 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4672 * sysdeps/generic/select.c (__select): Likewise.
4673 * sysdeps/generic/send.c (__send): Likewise.
4674 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4675 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4676 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4677 * sysdeps/generic/statfs.c (__statfs): Likewise.
4678 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4679 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4680 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4681 Remove undef and INTDEF.
4682 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4683 * sysdeps/generic/getpid.c (__getpid): Likewise.
4684 * sysdeps/generic/write.c (__libc_write): Likewise.
4685 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4686 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4687 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4688 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4689 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
4690 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4691 Remove undef and INTDEF.
4692 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4693 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4694 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4695 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4696 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4697 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4698 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4699 (__pipe): Add libc_hidden_def.
4700 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4702 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4703 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4704 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4705 (__read): Add libc_hidden_weak.
4706 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4707 (__libc_pwrite64): Add libc_hidden_def.
4708 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4709 * sysdeps/mach/hurd/select.c (__select): Likewise.
4710 * sysdeps/mach/hurd/send.c (__send): Likewise.
4711 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4712 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4713 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4714 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4715 * sysdeps/posix/dup2.c: Likewise.
4716 Remove undef and INTDEF.
4717 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4718 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4719 (__pwrite64): Add libc_hidden_weak.
4720 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4721 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4722 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4723 * sysdeps/standalone/close.c (__close): Likewise.
4724 * sysdeps/standalone/write.c (__libc_write): Likewise.
4725 (__write): Add libc_hidden_weak.
4726 * sysdeps/standalone/read.c (__read): Likewise.
4727 (__libc_read): Add libc_hidden_def.
4728 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4729 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4730 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4731 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4732 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4733 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4734 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4735 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4736 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4737 __GI___sigaction): Add.
4738 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4739 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4740 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4741 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4742 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4743 __GI___setpgid): Add.
4744 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4745 Remove undef and INTDEF.
4746 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4747 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4748 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4749 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4750 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4751 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4752 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4753 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4754 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4755 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4756 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4757 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4758 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4759 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4760 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4761 __GI___statfs, __GI___send): Add.
4762 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4763 libc_hidden_ver resp. libc_hidden_def.
4764 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4766 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4767 Likewise. Remove undef and INTDEF.
4768 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4769 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4770 __GI___statfs, __GI___send): Add.
4771 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4773 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4775 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4776 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4777 libc_hidden_ver resp. libc_hidden_def.
4778 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4780 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4781 Add libc_hidden_weak.
4782 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4783 Add libc_hidden_def.
4784 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4785 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4787 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4788 resp. libc_hidden_def.
4789 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4791 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
4793 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4794 Likewise. Remove undef.
4795 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4797 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4798 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4800 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4802 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4803 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4804 Likewise. Remove undef and INTDEF.
4805 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4807 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4809 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4811 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4812 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4813 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4815 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4816 Add libc_hidden_def.
4817 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4818 __GI___statfs): Add.
4819 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4821 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4822 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4823 Remove undef and INTDEF.
4824 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4825 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4827 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4828 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4830 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4832 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4833 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4834 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4836 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4837 libc_hidden_def. Remove undef and INTDEF.
4838 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4839 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4841 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4842 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4843 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4844 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4845 Remove undef and INTDEF.
4846 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4847 broken visibility attribute handling.
4848 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4850 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4852 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4853 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4855 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4858 2002-06-29 Todd Fries <todd@openbsd.org>
4860 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4862 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4864 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4866 2002-07-30 Roland McGrath <roland@redhat.com>
4868 * resolv/resolv.h (_res): Define macro unconditionally.
4869 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4870 * include/resolv.h: ... here.
4871 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4872 as a __thread variable.
4873 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4874 a __thread variable instead of a global.
4875 * resolv/res_data.c [_LIBC]: Don't #undef _res.
4877 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4880 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4882 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4883 decls of memset and memcpy.
4885 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4886 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4888 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4890 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4891 (__libc_tsd_define): Define using __thread.
4893 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4894 (__rpc_thread_variables): Use __libc_tsd_get.
4895 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4896 __rpc_thread_variables, which might allocate what we're about to free.
4898 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4899 thread-local variable.
4900 * resolv/netdb.h (h_errno): Define macro unconditionally.
4901 [_LIBC] (__set_h_errno): Macro moved to ...
4902 * include/netdb.h: ... here.
4903 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4904 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4905 [! _LIBC_REENTRANT]: #undef h_errno here.
4907 * include/errno.h: Protect from multiple inclusion.
4909 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4910 before defining them, since Linux's <linux/posix_types.h> might have
4913 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4915 * malloc/malloc.c (public_cALLOc): Check for overflow on
4917 * sunrpc/xdr_array.c (xdr_array): Likewise.
4918 * sunrpc/rpc/types.h (mem_free): Add comment.
4919 Patch by Solar Designer <solar@openwall.com>.
4921 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4923 * sysdeps/unix/sysv/linux/kernel-features.h
4924 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4926 2002-08-01 Roland McGrath <roland@redhat.com>
4928 * libio/fileops.c (_IO_file_sync_mmap): New function.
4929 (_IO_file_jumps_mmap): Use it.
4930 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
4931 repeat the stat check and resize the mapped buffer as necessary.
4933 2002-07-31 Roland McGrath <roland@redhat.com>
4935 * libio/fileops.c (decide_maybe_mmap): New static function.
4936 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4937 mmap the file contents. Then switch the jump tables to the mmap
4938 tables if it worked, or the vanilla file tables if not.
4939 (_IO_file_underflow_maybe_mmap): New function.
4940 (_IO_file_seekoff_maybe_mmap): New function.
4941 (_IO_file_xsgetn_maybe_mmap): New function.
4942 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4943 * libio/libioP.h: Declare those.
4944 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4945 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4946 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4947 If the stream is read-only, set its jump tables to those new ones.
4948 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4949 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4950 We need the tables set before _IO_file_attach.
4952 * libio/tst-mmap-eofsync.c: New file.
4953 * libio/tst-mmap-fflushsync.c: New file.
4954 * libio/bug-mmap-fflush.c: New file.
4955 * libio/tst-mmap2-eofsync.c: New file.
4956 * libio/Makefile (tests): Add them.
4958 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4959 _IO_file_underflow_mmap fails, it already set the appropriate bit.
4961 2002-07-31 Jeff Bailey <jbailey@gnu.org>
4963 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4964 Declarations moved to <bits/sys_errlist.h>. Include that file.
4965 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4966 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
4967 declare sys_errlist and sys_nerr.
4968 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
4969 provide declarations.
4971 2002-07-31 Roland McGrath <roland@redhat.com>
4973 * elf/rtld.c (dl_main): Fix typo in error message.
4975 2002-07-31 Roland McGrath <roland@frob.com>
4977 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4978 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
4979 sysdeps/mach/hurd/dl-sysdep.c change.
4981 2002-07-28 Ulrich Drepper <drepper@redhat.com>
4983 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4984 -r`/build/include for kernel headers.
4986 * po/fi.po: New file.
4988 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
4990 * configure.in (static_nss): Set to `yes' if --disable-shared.
4992 2002-07-23 Bruno Haible <bruno@clisp.org>
4994 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4997 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4999 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
5000 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
5003 2002-07-25 Jakub Jelinek <jakub@redhat.com>
5005 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
5008 2002-07-21 Bruno Haible <bruno@clisp.org>
5010 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
5011 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
5012 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
5013 trans_sysdep_tab_offset.
5014 (struct sysdep_segment): New type.
5015 (struct sysdep_string): New type.
5016 (SEGMENTS_END): New macro.
5017 * intl/gettextP.h (struct sysdep_string_desc): New type.
5018 (struct loaded_domain): New fields malloced, n_sysdep_strings,
5019 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
5020 orig_tab, trans_tab, hash_tab to const pointers because they point
5021 into read-only memory.
5022 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
5023 (PRI*): Define fallback values.
5024 (get_sysdep_segment_value): New function.
5025 (_nl_load_domain): Distinguish major and minor revision parts. Add
5026 support for minor revision 1 with system dependent strings.
5027 (_nl_unload_domain): Also free the 'malloced' field.
5028 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
5029 now done in loadmsgcat.c. Add support for system dependent strings.
5031 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
5033 * posix/bug-regex7.c: New file.
5034 * posix/bug-regex8.c: New file.
5035 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
5037 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
5039 * posix/bug-regex4.c (main): Fix typos.
5040 * posix/bug-regex6.c (main): Likewise.
5042 2002-07-27 Ulrich Drepper <drepper@redhat.com>
5044 * posix/bug-regex6.c (main): Fix warnings.
5046 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
5048 * iconv/iconv_prog.c (main): Improve error message for the cases
5049 where -t and/or -f parameter are missing.
5051 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
5053 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
5054 (re_search): Likewise.
5055 (re_match_2): Likewise.
5056 (re_search_2): Likewise.
5057 (re_search_stub): New function.
5058 (re_search_2_stub): New function.
5059 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
5061 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
5063 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
5064 (re_string_eoi): Use STOP instead of LEN.
5065 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
5066 (re_string_construct): Likewise.
5067 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
5068 * posix/regexec.c (re_search_internal): Add a new argument STOP
5069 so that it can handle the argument STOP of re_search_2 and re_match_2
5071 (regexec): Adapt to new I/F of re_search_internal.
5072 (re_search_stub): Likewise.
5074 2002-07-25 Ulrich Drepper <drepper@redhat.com>
5076 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
5078 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
5080 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
5081 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
5084 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
5085 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
5086 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
5087 alias for adjtimex syscall.
5089 * elf/dl-minimal.c: Define __assert_fail_internal.
5090 * assert/assert.c: Likewise.
5091 * include/assert.h: Define __assert_file macro if !SHARED and not
5094 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
5096 * locale/Makefile: Likewise.
5097 * nscd/Makefile: Likewise.
5098 * catgets/Makefile: Likewise.
5100 2002-07-24 Ulrich Drepper <drepper@redhat.com>
5102 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
5103 compute current position.
5105 * stdio-common/tst-fseek.c (main): Improve error messages.
5107 * libio/tst-freopen.c (main): Remove unused variable.
5109 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
5110 succesful seek call. Simplify error checking.
5112 2002-07-25 Jakub Jelinek <jakub@redhat.com>
5114 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
5115 * sysdeps/ia64/fpu/libm_support.h: Likewise.
5117 2002-07-19 Roland McGrath <roland@frob.com>
5119 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
5120 __libc_enable_secure is set.
5122 2002-07-24 Roland McGrath <roland@frob.com>
5124 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
5125 This implementation supports only IPv4.
5126 * inet/ifaddrs.h: New file.
5127 * sysdeps/generic/ifaddrs.c: New file.
5128 * sysdeps/gnu/ifaddrs.c: New file.
5129 * inet/test-ifaddrs.c: New file.
5130 * inet/Makefile (routines): Add ifaddrs.
5131 (headers): Add ifaddrs.h here.
5132 (tests): Add test-ifaddrs.
5133 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
5135 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
5136 socket call to get an AF_INET socket, instead of using __opensock.
5137 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
5139 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
5140 if not -1 use it instead of calling __opensock.
5141 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
5142 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
5143 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
5145 * sysdeps/mach/hurd/ifreq.h: New file.
5146 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
5147 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
5148 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
5150 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
5151 which gets moved around. Calculate size of mmap'd buffer instead.
5153 2002-07-24 Philip Blundell <philb@gnu.org>
5155 * sysdeps/unix/arm/brk.S: Improve schedule.
5156 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
5157 efficient instruction.
5158 (__socket): Optimize return sequence.
5160 2002-07-24 Ulrich Drepper <drepper@redhat.com>
5162 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
5163 sockets on old kernels.
5165 2002-07-22 Philip Blundell <philb@gnu.org>
5167 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
5168 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
5171 2002-07-24 Ulrich Drepper <drepper@redhat.com>
5173 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
5174 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
5176 * locale/programs/locarchive.c (add_locale_to_archive): Correct
5177 test to detect duplicate locales.
5179 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
5180 position would be before beginning of file.
5181 (_IO_file_seekoff_mmap): Likewise.
5182 * libio/Makefile (tests): Add bug-fseek.
5183 * libio/bug-fseek.c: New file.
5185 * intl/explodename.c: Remove support for CEN-style locale variables.
5186 It was never used and shouldn't be since it's not portable.
5187 * intl/finddomain.c: Likewise.
5188 * intl/l10nflist.c: Likewise.
5189 * intl/loadinfo.h: Likewise.
5190 * locale/findlocale.c: Likewise.
5192 2002-07-24 Roland McGrath <roland@frob.com>
5194 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
5195 position, calculate it to take into account an active pushback buffer.
5197 * libio/Makefile (tests): Add bug-ungetc.
5198 * libio/bug-ungetc.c: New file.
5200 2002-07-23 Ulrich Drepper <drepper@redhat.com>
5202 * sysdeps/generic/libc-tls.c: New file.
5203 * csu/Makefile (routines): Add libc-tls.
5204 (static-only-routines): Add libc-tls.
5205 * elf/dl-support.c (_dl_phdr): New variable.
5206 (_dl_phnum): New variable.
5207 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
5208 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
5209 for !SHARED. First look through auxiliary vector. If TLS always
5210 call __pthread_initialize_minimal.
5212 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
5213 in mmap call is never zero.
5215 2002-07-23 Andreas Jaeger <aj@suse.de>
5217 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
5218 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5220 2002-07-22 Ulrich Drepper <drepper@redhat.com>
5222 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
5223 creation and removal of the temp file.
5225 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
5227 * test-skeleton.c (create_temp_file): New function.
5229 2002-07-22 Andreas Jaeger <aj@suse.de>
5231 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
5234 2002-07-21 Roland McGrath <roland@frob.com>
5236 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
5237 put -I../include before -I../stdlib so we get the right errno.h et al.
5238 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
5239 (CFLAGS-wcstof.c): Likewise.
5240 (CFLAGS-wcstold.c): Likewise.
5241 (CFLAGS-wcstod_l.c): Likewise.
5242 (CFLAGS-wcstof_l.c): Likewise.
5243 (CFLAGS-wcstold_l.c): Likewise.
5245 2002-07-19 Roland McGrath <roland@frob.com>
5247 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
5249 2002-07-20 Ulrich Drepper <drepper@redhat.com>
5251 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
5252 __ASSUME_AT_XID is defined.
5253 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
5255 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
5256 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
5258 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
5259 (CFLAGS-wcstof.c): Likewise.
5260 (CFLAGS-wcstold.c): Likewise.
5261 (CFLAGS-wcstod_l.c): Likewise.
5262 (CFLAGS-wcstof_l.c): Likewise.
5263 (CFLAGS-wcstold_l.c): Likewise.
5265 2002-07-18 Jakub Jelinek <jakub@redhat.com>
5267 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
5268 __priority_which_t): Always typedef to int for C++.
5270 2002-07-19 Ulrich Drepper <drepper@redhat.com>
5272 * configure.in: Add test for __thread support in compiler.
5273 * config.h.in: Add HAVE___THREAD.
5274 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
5275 * include/sys/errno.h: Moved to...
5276 * stdlib/sys/errno.h: ...here. New file.
5277 * stdlib/errno.h: New file. Moved from...
5278 * include/errno.h: ...here. Changed into an internal header defining
5279 libc-local things like __set_errno.
5280 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
5282 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
5283 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
5285 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
5287 (_dl_start_final): ...here. Add code to initialize tls elements from
5289 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
5290 if USE_TLS && HAVE___THREAD.
5291 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
5292 * sysdeps/mach/hurd/bits/errno.h: Likewise.
5293 * sysdeps/standalone/arm/bits/errno.h: Likewise.
5294 * sysdeps/standalone/bits/errno.h: Likewise.
5295 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
5296 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
5297 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
5298 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
5299 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
5300 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
5301 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
5302 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
5303 use GL(dl_rtld_map), use map parameter.
5304 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5305 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
5306 USE_TLS && HAVE___THREAD.
5307 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
5308 definitions. If USE_TLS && HAVE___THREAD store errooor value using
5310 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5312 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
5313 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
5314 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
5315 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5316 * sysdeps/unix/sysv/linux/readv.c: Likewise.
5317 * sysdeps/unix/sysv/linux/writev.c: Likewise.
5319 2002-07-17 Ulrich Drepper <drepper@redhat.com>
5321 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
5322 MS_INVALIDATE values.
5324 2002-07-17 Andreas Schwab <schwab@suse.de>
5325 Ulrich Drepper <drepper@redhat.com>
5327 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
5328 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5329 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5330 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5332 2002-07-01 H.J. Lu <hjl@gnu.org>
5334 * elf/circleload1.c (load_dso): Call "circlemod1" and check
5337 * elf/circlemod1.c (circlemod1): Return int.
5338 * elf/circlemod2.c (circlemod2): Likewise.
5339 * elf/circlemod2a.c (circlemod2): Likewise.
5340 * elf/circlemod3.c (circlemod3): Likewise.
5341 (circlemod3a): A new function.
5343 2002-07-16 Ulrich Drepper <drepper@redhat.com>
5345 * catgets/tst-catgets.c (main): Don't expect results for
5346 untranslated messages.
5348 * glibcbug.in: Fix little typo. Remove STDIO.
5350 * config.h.in: Fail if __FAST_MATH__ is defined.
5351 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
5352 (CPPFLAGS-test-idouble.c): Likewise.
5353 (CPPFLAGS-test-ildouble.c): Likewise.
5355 2002-07-15 Ulrich Drepper <drepper@redhat.com>
5357 * intl/tst-gettext.sh: Pass -f option to msgfmt.
5358 * intl/tst-gettext.c: Correctly handle untranslated messages in
5361 * po/de.po: Update from translation team.
5363 2002-07-02 H.J. Lu <hjl@gnu.org>
5365 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
5367 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
5369 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
5372 2002-07-15 Ulrich Drepper <drepper@redhat.com>
5374 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
5375 TLS fail if USE_TLS is not defined.
5377 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
5378 and adjust state for seek position. [PR libc/4070]
5379 * libio/Makefile (tests): Add bug-rewind.
5380 * libio/bug-rewind.c: New file.
5382 2002-07-12 Philip Blundell <philb@gnu.org>
5384 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
5385 (__backtrace): Use it.
5386 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
5388 2002-07-12 Philip Blundell <philb@gnu.org>
5390 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
5391 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
5392 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5393 (elf_machine_rela): Remove unused variable.
5395 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
5396 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
5399 2002-07-12 Ulrich Drepper <drepper@redhat.com>
5401 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
5403 2002-07-14 Andreas Jaeger <aj@suse.de>
5405 * sysdeps/x86_64/bits/link.h: Add biarch support.
5407 2002-07-13 Andreas Jaeger <aj@suse.de>
5409 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
5410 Use correct indices.
5411 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
5413 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
5415 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
5416 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
5417 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
5418 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
5419 * sysdeps/s390/s390-32/bits/link.h: Remove.
5420 * sysdeps/s390/s390-64/bits/link.h: Remove.
5421 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
5422 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
5423 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
5424 * sysdeps/s390/bits/wordsize.h: New file.
5425 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
5427 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
5428 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
5429 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
5430 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
5431 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
5432 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
5433 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
5434 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
5435 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
5436 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
5437 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
5438 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
5440 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
5441 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
5442 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
5443 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
5444 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
5445 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
5446 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
5448 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
5449 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
5451 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
5452 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
5453 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
5455 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
5456 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
5457 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
5458 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
5459 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
5460 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
5461 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
5462 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
5464 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
5465 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
5466 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
5468 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
5469 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
5471 2002-07-11 Ulrich Drepper <drepper@redhat.com>
5473 * Versions.def (libc): Add GLIBC_2.3.
5474 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
5475 * stdlib/canonicalize.c: Add compatibility version for realpath
5476 and make new code available in GLIBC_2.3.
5478 2002-07-06 Bruno Haible <bruno@clisp.org>
5480 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5482 2002-07-11 Ulrich Drepper <drepper@redhat.com>
5484 * resolv/res_hconf.c (_res_hconf_init): Move code into new
5485 function do_init. Use __libc_once.
5486 (do_init): New function.
5488 * iconvdata/iso8859-11.h: Removed.
5489 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5490 (distribute): Remove iso8859-11.h.
5491 * iconvdata/tst-tables.sh: Add ISO-8859-11.
5493 * stdio-common/vfscanf.c (inchar): Restore errno from previous
5494 underflow operation if c == (W)EOF.
5496 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5498 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5499 non-zero, adjust exponent.
5500 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5501 Remove NO_LONG_DOUBLE aliases.
5502 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5503 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5504 (__log1pl): Raise divide by zero and invalid exceptions when needed.
5505 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5507 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5508 Fix BITS_PER_MP_LIMB 32 extraction.
5509 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5510 exceptions for qNaNs.
5511 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5512 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5513 Raise exceptions when needed. Don't recurse unnecessarily.
5514 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5515 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5516 exceptions for qNaNs.
5517 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5518 to fix *quo return value sign.
5519 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5521 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5523 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5525 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5526 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5529 2002-07-10 Ulrich Drepper <drepper@redhat.com>
5531 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5534 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5535 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
5537 * Versions.def (libthread_db): Add GLIBC_2.3.
5539 2002-07-09 Jakub Jelinek <jakub@redhat.com>
5541 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5542 new stream if possible.
5543 * libio/freopen64.c (freopen64): Likewise.
5544 * libio/Makefile (tests): Add tst-freopen.
5545 * libio/tst-freopen.c: New file.
5547 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5549 * libio/stdio.h (obstack_printf): Add format attribute.
5550 (obstack_vprintf): Likewise.
5552 2002-07-04 Jakub Jelinek <jakub@redhat.com>
5554 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5555 resp. 16 bytes on 32-bit resp. 64-bit platforms.
5556 (re_charset_t, re_string_t): Reorder structure members for 64-bit
5559 2002-07-04 Jakub Jelinek <jakub@redhat.com>
5561 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5562 (init_dfa): ...here.
5564 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
5566 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5567 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5568 nodes in parse trees.
5569 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5570 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5571 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5572 nodes which can epsilon transit.
5573 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5574 to IS_EPSILON_NODE macro.
5575 * posix/regexec.c (update_regs): New function to update registers
5576 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5577 (proceed_next_node): Use the entities of the nodes to determine
5578 whether the node can transit to.
5579 (set_regs): Use update_regs function to update registers.
5581 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5583 * posix/bug-regex4.c (main): Remove duplicate setlocale.
5584 * posix/bug-regex6.c: New file.
5585 * posix/Makefile (tests): Add bug-regex6.
5586 (bug-regex6-ENV): Set LOCPATH.
5588 2002-07-10 Ulrich Drepper <drepper@redhat.com>
5590 * Versions.def [libpthread]: Add GLIBC_2.2.6.
5591 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5593 2002-07-06 Bruno Haible <bruno@clisp.org>
5595 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5597 2002-07-06 Bruno Haible <bruno@clisp.org>
5599 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5602 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5604 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5606 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5608 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5610 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5611 * sysdeps/generic/bits/ustat.h: Likewise.
5613 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5615 2002-07-08 Andreas Jaeger <aj@suse.de>
5617 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5619 2002-07-08 Andreas Jaeger <aj@suse.de>
5621 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5623 2002-07-06 Andreas Jaeger <aj@suse.de>
5625 * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5626 * sysdeps/x86_64/fpu/s_copysign.S: New file.
5627 * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5628 * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5629 * sysdeps/x86_64/fpu/s_finitel.S: New file.
5630 * sysdeps/x86_64/fpu/s_fmax.S: New file.
5631 * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5632 * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5633 * sysdeps/x86_64/fpu/s_fmin.S: New file.
5634 * sysdeps/x86_64/fpu/s_fminf.S: New file.
5635 * sysdeps/x86_64/fpu/s_fminl.S: New file.
5637 2002-06-05 Brian Youmans <3diff@gnu.org>
5639 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5640 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5641 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5642 * sysdeps/ia64/fpu/e_asin.S: Likewise.
5643 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5644 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5645 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5646 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5647 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5648 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5649 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5650 * sysdeps/ia64/fpu/e_exp.S: Likewise.
5651 * sysdeps/ia64/fpu/e_expf.S: Likewise.
5652 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5653 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5654 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5655 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5656 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5657 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5658 * sysdeps/ia64/fpu/e_log.S: Likewise.
5659 * sysdeps/ia64/fpu/e_logf.S: Likewise.
5660 * sysdeps/ia64/fpu/e_pow.S: Likewise.
5661 * sysdeps/ia64/fpu/e_powf.S: Likewise.
5662 * sysdeps/ia64/fpu/e_powl.S: Likewise.
5663 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5664 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5665 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5666 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5667 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5668 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5669 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5670 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5671 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5672 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5673 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5674 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5675 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5676 * sysdeps/ia64/fpu/libm_error.c: Likewise.
5677 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5678 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5679 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5680 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5681 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5682 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5683 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5684 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5685 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5686 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5687 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5688 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5689 * sysdeps/ia64/fpu/s_logb.S: Likewise.
5690 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5691 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5692 * sysdeps/ia64/fpu/s_modf.S: Likewise.
5693 * sysdeps/ia64/fpu/s_modff.S: Likewise.
5694 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5695 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5696 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5697 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5698 * sysdeps/ia64/fpu/s_rint.S: Likewise.
5699 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5700 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5701 * sysdeps/ia64/fpu/s_round.S: Likewise.
5702 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5703 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5704 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5705 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5706 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5707 * sysdeps/ia64/fpu/s_significand.S: Likewise.
5708 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5709 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5710 * sysdeps/ia64/fpu/s_tan.S: Likewise.
5711 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5712 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5713 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5714 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5715 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5716 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5717 reflect IBM donation of math library to FSF
5718 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5719 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5720 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5721 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5722 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5723 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5724 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5725 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5726 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5727 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5728 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5729 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5730 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5731 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5732 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5733 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5734 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5735 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5736 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5737 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5738 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5739 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5740 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5741 * sysdeps/vax/__longjmp.c: Likewise.
5742 * sysdeps/vax/setjmp.c: Likewise.
5743 * libio/filedoalloc.c: Fixed BSD copying permission notice to
5744 remove advertising clause
5745 * sysdeps/vax/htonl.s: Likewise.
5746 * sysdeps/vax/htons.s: Likewise.
5747 * libio/wfiledoalloc.c: Likewise.
5748 * stdlib/random.c: Likewise.
5749 * stdlib/random_r.c: Likewise.
5750 * sysdeps/mach/sys/reboot.h: Likewise.
5751 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5752 * sysdeps/posix/getaddrinfo.c: Likewise.
5753 * sunrpc/des_impl.c: Updated license permission notice to Lesser
5754 GPL and corrected pointer to point to the correct license.
5756 2002-07-04 Andreas Jaeger <aj@suse.de>
5758 * scripts/config.guess: New upstream version.
5759 * scripts/config.sub: Likewise.
5761 2002-07-02 Andreas Schwab <schwab@suse.de>
5763 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5764 in parallel to bumping up the buffer pointer.
5766 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5768 * math/libm-test.inc (acos_test): Add missing L suffix for
5770 (cpow_test): Likewise.
5771 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5772 error for acos (0.0625).
5774 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5776 * locale/iso-639.def: Add entry for Ganda.
5777 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5779 (address_finish): Handle entries with two letter ISO 639 code.
5781 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5782 directory if it existed before.
5783 * iconv/iconvconfig.c: Implement --prefix option.
5785 * math/libm-test.inc (cexp_test): Add missing L suffix for
5786 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
5787 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5790 2002-05-29 H.J. Lu <hjl@gnu.org>
5792 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5795 2002-05-28 H.J. Lu <hjl@gnu.org>
5797 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5798 are not dlopened on the dependency list of a dlopened object.
5800 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5802 * elf/dl-lookup.c (add_dependency): It is not necessary to add
5803 dependencies if they are created between objects which are created
5804 while processing RTLD_NOW for objects loaded as part of the same
5807 2002-06-14 H.J. Lu <hjl@gnu.org>
5809 * elf/Makefile (tests): Add circleload1.
5810 (modules-names): Add circlemod1, circlemod2, circlemod3,
5811 circlemod1a, circlemod2a and circlemod3a.
5812 ($(objpfx)circleload1): New target.
5813 ($(objpfx)circleload1.out): Likewise.
5814 ($(objpfx)circlemod1.so): Likewise.
5815 ($(objpfx)circlemod2.so): Likewise.
5816 ($(objpfx)circlemod1a.so): Likewise.
5817 ($(objpfx)circlemod2a.so): Likewise.
5818 * elf/circleload1.c: New file.
5819 * elf/circlemod1.c: New file.
5820 * elf/circlemod1a.c: New file.
5821 * elf/circlemod2.c: New file.
5822 * elf/circlemod2a.c: New file.
5823 * elf/circlemod3.c: New file.
5824 * elf/circlemod3a.c: New file.
5826 2002-06-18 Amos Waterland <apw@us.ibm.com>
5828 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5830 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5831 add check for fd not open for writing.
5833 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5834 completed element(s) and do not suspend thread if so. Patch
5835 heavily modified by drepper.
5837 * rt/tst-aio7.c: New file. Regression test for problems which the
5838 above three changes fix.
5839 * rt/Makefile (tests): Add tst-aio7.
5841 2002-06-29 Ulrich Drepper <drepper@redhat.com>
5843 * rt/tst-aio6.c: Fix comment.
5845 * catgets/gencat.c (read_input_file): Handle more than one slash
5846 at end of line correctly [PR libc/3926].
5847 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5849 * catgets/sample.SJIS: Add test case for above bug.
5850 * catgets/test-gencat.c: Adjust test code.
5851 * catgets/test-gencat.sh: Adjust expected results.
5853 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5854 to skip relative relocations.
5855 Patch by Geoff Keating <geoffk@redhat.com>.
5857 2002-05-26 Bruno Haible <bruno@clisp.org>
5859 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5860 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5861 All callers changed.
5862 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5863 STANDARD_FROM_LOOP_ERR_HANDLER.
5864 (utf8_internal_loop): Likewise.
5865 (ucs2_internal_loop): Likewise.
5866 (internal_ucs2_loop): Perform error handling like in
5867 STANDARD_FROM_LOOP_ERR_HANDLER.
5868 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5869 in STANDARD_FROM_LOOP_ERR_HANDLER.
5870 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5872 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5873 in STANDARD_FROM_LOOP_ERR_HANDLER.
5874 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5876 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5877 in STANDARD_FROM_LOOP_ERR_HANDLER.
5878 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5880 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5881 STANDARD_FROM_LOOP_ERR_HANDLER.
5882 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5883 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5884 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5885 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5886 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5887 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5888 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5889 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5890 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5891 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5892 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5893 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5894 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5895 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5896 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5897 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5898 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5899 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5900 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5901 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5902 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5903 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5904 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5905 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5906 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5907 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5908 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5909 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5910 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
5911 an error, still set result = __GCONV_ILLEGAL_INPUT.
5912 (BODY for TO_LOOP): Likewise.
5913 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5914 STANDARD_FROM_LOOP_ERR_HANDLER.
5915 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5916 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5917 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5919 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5920 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5921 STANDARD_FROM_LOOP_ERR_HANDLER.
5922 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5923 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5924 STANDARD_FROM_LOOP_ERR_HANDLER.
5925 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5926 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5927 STANDARD_FROM_LOOP_ERR_HANDLER.
5928 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5929 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5930 STANDARD_FROM_LOOP_ERR_HANDLER.
5931 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5932 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5933 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5935 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5936 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5937 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5938 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5940 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5942 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5943 labels in assembler instructions.
5945 2002-06-25 Ulrich Drepper <drepper@redhat.com>
5947 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5948 not enough content is available.
5949 * libio/tst-eof.c: New file.
5950 * libio/Makefile (tests): Add tst-eof.
5952 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5954 * libio/tst-atime.c: New file.
5955 * libio/Makefile (tests): Add tst-atime.
5957 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5958 handling of overly long words.
5960 2002-06-25 Andreas Jaeger <aj@suse.de>
5962 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5963 to not use 32-bit pc relative relocations.
5964 (elf_machine_dynamic): Likewise.
5966 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5968 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5969 (__GETDENTS): Check for failed getdents64 syscall.
5970 * dirent/Makefile (tests): Add bug-readdir1.
5971 * dirent/bug-readdir1.c: New file.
5973 2002-06-17 Jakub Jelinek <jakub@redhat.com>
5975 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5977 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5978 code. Print TLS modid and offset for modules containing PT_TLS
5981 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5983 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5984 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5985 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5986 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5988 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5990 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5991 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5992 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5993 * nss/getXXent_r.c (NEW, NEW1): Define.
5994 (NEW (REENTRANT_GETNAME)): Strong alias to
5995 INTERNAL (REENTRANT_GETNAME).
5996 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5998 2002-06-21 Ulrich Drepper <drepper@redhat.com>
6000 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
6001 (_IO_file_jumps_mmap): Use it.
6002 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
6003 * libio/libioP.h: Remove _IO_wdefault_setbuf and
6004 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
6006 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
6007 (_IO_wfile_jumps_mmap): Don't use it anymore.
6008 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
6009 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
6010 _IO_wdefault_setbuf.
6011 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
6012 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
6013 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
6015 2002-06-05 Jakub Jelinek <jakub@redhat.com>
6017 * libio/Makefile (tests): Add tst-mmap-setvbuf.
6018 * libio/tst-mmap-setvbuf.c: New test.
6020 2002-06-21 Andreas Jaeger <aj@suse.de>
6022 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
6024 2002-06-18 Jakub Jelinek <jakub@redhat.com>
6026 * include/unistd.h (__fork_internal): Remove.
6027 (__fork): Don't define to __fork_internal.
6028 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
6029 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
6030 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
6031 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
6032 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
6034 2002-06-20 Ulrich Drepper <drepper@redhat.com>
6036 * po/hr.po: New file.
6038 2002-06-11 Wolfram Gloger <wg@malloc.de>
6040 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
6041 Reported by Michael Meissner <meissner@redhat.com>.
6043 2002-06-20 Ulrich Drepper <drepper@redhat.com>
6045 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
6046 Patch by Hans Boehm <hans_boehm@hp.com>.
6048 2002-06-20 Andreas Jaeger <aj@suse.de>
6050 * math/libm-test.inc: Use exact values as input parameters,
6051 compute output parameters with 36 digits for 128-bit long doubles.
6052 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6053 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
6054 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
6056 2002-06-13 Stephen L Moshier <steve@moshier.net>
6058 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
6059 argument or result is subnormal.
6061 2002-06-19 Ulrich Drepper <drepper@redhat.com>
6063 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
6065 * sysdeps/i386/fpu/s_remquof.S: Likewise.
6066 * sysdeps/i386/fpu/s_remquol.S: Likewise.
6068 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
6070 2002-06-17 David Mosberger <davidm@hpl.hp.com>
6072 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
6073 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
6074 Reported by Peter A. Buhr.
6076 2002-06-15 Roland McGrath <roland@frob.com>
6078 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
6081 * sysdeps/mach/hurd/getcwd.c
6082 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
6084 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
6085 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
6087 * sysdeps/alpha/divrem.h: Use local label instead of global one for
6088 jump to local subroutine.
6090 2002-06-14 Roland McGrath <roland@frob.com>
6092 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
6093 * sysdeps/mach/hurd/Makeconfig: ... here.
6095 2002-06-13 Andreas Schwab <schwab@suse.de>
6097 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
6098 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6099 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6101 2002-06-13 Roland McGrath <roland@frob.com>
6103 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
6104 * hurd/hurdstartup.c (_hurd_startup): Likewise.
6105 Use intptr_t instead of int for argc in stack layout.
6106 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
6107 (_dl_init_first): Likewise.
6108 (_hurd_stack_setup): Likewise.
6109 (init1): Add a cast.
6110 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
6112 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
6113 argument to pfinet_siocgifconf RPC.
6115 2002-06-13 Andreas Schwab <schwab@suse.de>
6117 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
6120 2002-06-12 Roland McGrath <roland@frob.com>
6122 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
6124 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
6125 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
6127 2002-06-11 Roland McGrath <roland@frob.com>
6129 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
6130 file on [!RTLD_STAT64].
6131 * sysdeps/mach/hurd/fxstat64.c: Likewise.
6133 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
6134 (__fdopen): Use INTUSE.
6135 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
6137 * stdio-common/tmpfile64.c: File removed.
6138 * sysdeps/generic/tmpfile64.c: New file.
6139 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
6140 if not already defined.
6141 (tmpfile): Use it in place of __GT_FILE.
6143 * include/unistd.h: Declare __chown_internal.
6145 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
6146 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
6148 2002-06-09 Roland McGrath <roland@frob.com>
6150 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
6151 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
6152 value of HURD_INTERFACE_VERSION >= 20020609.
6153 * sysdeps/mach/hurd/configure: Regenerated.
6154 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
6155 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
6156 convert a struct stat64 into a struct stat and return 0 or -1
6157 with errno set to EOVERFLOW.
6158 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
6159 for struct statfs64 to struct statfs.
6160 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
6161 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
6162 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
6163 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
6164 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
6165 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
6166 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
6167 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
6168 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
6169 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
6170 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
6171 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
6172 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
6173 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
6174 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
6175 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
6176 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
6177 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
6178 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
6179 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
6180 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
6181 Use struct stat64 for io_stat argument.
6182 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
6183 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
6185 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
6186 * hurd/fd-write.c (_hurd_fd_write): Likewise.
6187 * hurd/hurd/fd.h: Update decls.
6188 * sysdeps/mach/hurd/getcwd.c
6189 (_hurd_canonicalize_directory_name_internal): Use ino64_t
6190 and struct dirent64.
6191 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
6192 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
6193 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
6194 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
6196 2002-06-08 Roland McGrath <roland@frob.com>
6198 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
6199 instead of unsigned long int for __allocation and __size members.
6201 2002-06-09 Jakub Jelinek <jakub@redhat.com>
6203 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6204 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6205 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6206 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6208 2002-06-07 Roland McGrath <roland@frob.com>
6210 * sysdeps/mach/hurd/bits/environments.h: File removed.
6212 2002-06-07 Jakub Jelinek <jakub@redhat.com>
6214 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
6215 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
6216 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
6217 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
6218 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
6219 (sendfile64): Likewise.
6220 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
6221 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
6222 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
6224 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
6226 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
6229 2002-06-04 Bruno Haible <bruno@clisp.org>
6231 * sysdeps/cris/stackinfo.h: New file.
6233 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
6234 to an integer type before performing bit operations on it.
6236 2002-06-05 Roland McGrath <roland@frob.com>
6238 * sysdeps/generic/sendfile.c: Include <errno.h>.
6239 * sysdeps/generic/sendfile64.c: Likewise.
6241 * io/Makefile (routines): Add sendfile and sendfile64.
6242 (headers): Add sys/sendfile.h to the list.
6243 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
6244 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
6245 * io/sys/sendfile.h: ... here.
6246 * sysdeps/generic/sendfile.c: New file.
6247 * sysdeps/generic/sendfile64.c: New file.
6249 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
6250 Move sendfile, sendfile64 to ...
6251 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
6252 * sysdeps/mach/hurd/sendfile.c: New file.
6253 * sysdeps/mach/hurd/sendfile64.c: New file.
6255 * sysdeps/mach/nanosleep.c: New file.
6257 2002-06-04 Roland McGrath <roland@frob.com>
6259 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
6260 * sysdeps/alpha/elf/configure: New file (generated).
6262 2002-06-02 Roland McGrath <roland@frob.com>
6264 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
6266 2002-06-01 Roland McGrath <roland@frob.com>
6268 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
6269 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
6271 2002-05-19 Ulrich Drepper <drepper@redhat.com>
6273 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
6275 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
6276 Remove nstimes setting.
6277 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
6278 * resolv/res_send.c (res_nsend): Don't close unconditionally if
6279 there is mix of IPv6 and IPv4 nameservers.
6280 Use nsmap array to find free slots and preserve nameserver ordering.
6283 2002-05-30 Ulrich Drepper <drepper@redhat.com>
6285 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
6286 use this header with LFS.
6288 * po/sk.po: Update from translation team.
6290 2002-05-28 Andreas Schwab <schwab@suse.de>
6292 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
6293 message when finding object of wrong class.
6295 2002-05-28 Jakub Jelinek <jakub@redhat.com>
6297 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
6298 Patch by <radu@netsoft.ro>.
6300 2002-05-30 Ulrich Drepper <drepper@redhat.com>
6302 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
6304 * sysdeps/unix/sysv/linux/readahead.c: New file.
6305 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
6306 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
6307 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
6308 Add sendfile64 alias to sendfile syscall.
6309 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6310 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6311 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6312 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
6315 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
6316 special section for PIC register loading.
6317 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
6319 * config.h.in: Define HAVE_HIDDEN.
6320 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
6322 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
6324 2002-05-28 Roland McGrath <roland@frob.com>
6326 * sysdeps/mach/alpha/setfpucw.c: New file.
6328 2002-05-26 Roland McGrath <roland@frob.com>
6330 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
6331 Use integer_t instead of int for IOC_VOID case.
6333 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
6335 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
6337 2002-05-26 Bruno Haible <bruno@clisp.org>
6339 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
6340 end of the ISO-8859-7 from idx table.
6342 2002-05-27 Ulrich Drepper <drepper@redhat.com>
6344 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
6346 2002-05-24 David S. Miller <davem@redhat.com>
6348 * string/bits/string2.h (memset): Do not try to optimize when
6349 not _STRING_ARCH_unaligned if GCC will do the right thing.
6351 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
6353 * posix/regex.c: Define `inline' as a macro into nothing for the
6354 compilers which lack the keyword.
6355 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
6356 for the compatibility of gawk.
6357 * posix/regcomp.c: Add fake implementation of isblank() for the
6358 environments which lack the function.
6359 Don't use free_charset() in case of non-i18n envs.
6360 (build_range_exp): Don't use i18n related code in case of non-i18n
6362 (build_collating_symbol): Likewise.
6363 (build_equiv_class): Likewise.
6364 (build_charclass): Likewise.
6365 (re_compile_fastmap_iter): Likewise.
6366 (parse_bracket_exp): Likewise.
6367 (build_word_op): Likewise.
6368 (regfree): Don't use free_charset() in case of non-i18n envs.
6369 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
6370 re_token_type_t in case of non-i18n envs.
6371 Don't define re_charset_t in case of non-i18n envs.
6372 Change the type of wcs of re_string_t from wchar_t to wint_t,
6373 since we store also WEOF.
6374 * posix/regex_internal.c: (re_string_realloc_buffers): Change
6375 the type of wcs of re_string_t from wchar_t to wint_t.
6376 (re_string_reconstruct): Likewise.
6377 (create_ci_newstate): Don't use i18n related code in case of
6379 (create_cd_newstate): Likewise.
6381 2002-05-24 Ulrich Drepper <drepper@redhat.com>
6383 * iconv/loop.c: Fix typo.
6385 2002-05-23 Jakub Jelinek <jakub@redhat.com>
6387 * inet/ether_line.c (ether_line): Fix a typo causing only
6388 lower 4 bits of each ethernet address byte being assigned.
6389 Don't modify what line points to.
6390 * inet/tst-ether_aton.c (main): Add ether_line tests.
6392 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
6394 * manual/filesys.texi: Don't make readlink example leak memory
6395 when readlink fails.
6397 2002-05-20 Ulrich Drepper <drepper@redhat.com>
6399 * iconv/loop.c: Fix condition for defining unaligned loop. Add
6400 some more security checks.
6402 2002-05-17 David S. Miller <davem@redhat.com>
6404 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
6406 2002-05-16 David S. Miller <davem@redhat.com>
6408 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
6409 (elf_machine_dynamic): Use it to force PIC register to be loaded.
6410 (elf_machine_load_address): Likewise.
6411 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
6413 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
6414 is unaligned, do not forget to fully initialize %g1 magic value.
6416 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
6417 register definitions and provide 32-bit variants of structures
6418 during 64-bit builds.
6420 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
6421 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
6422 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
6423 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
6424 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
6425 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
6426 Do not clear implicit one bit here, it must be done post-rounding.
6427 Only pad to the left using left shift if value uses less than the
6428 available fractional bits.
6430 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6432 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
6433 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
6434 (shared-only-routines): Likewise.
6435 * sysdeps/powerpc/libgcc-compat.c: New file.
6436 * sysdeps/wordsize-32/cmpdi2.c: Removed.
6437 * sysdeps/wordsize-32/fixdfdi.c: Removed.
6438 * sysdeps/wordsize-32/fixsfdi.c: Removed.
6439 * sysdeps/wordsize-32/shdi3.c: Removed.
6441 2002-05-16 Bruno Haible <bruno@clisp.org>
6443 * MakeTAGS (libc.pot): Don't sort the output.
6444 * po/header.pot: Update to match xgettext 0.11 output.
6446 2002-05-16 Bruno Haible <bruno@clisp.org>
6448 * MakeTAGS (subdirs): Remove duplicates.
6450 2002-05-19 Ulrich Drepper <drepper@redhat.com>
6452 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
6453 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
6456 2002-05-19 Andreas Jaeger <aj@suse.de>
6458 * sysdeps/unix/sysv/linux/configure.in: Warn against an
6459 installation in /usr/local.
6461 2002-05-16 Bruno Haible <bruno@clisp.org>
6463 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
6464 string as argument of #error.
6466 2002-05-15 Ulrich Drepper <drepper@redhat.com>
6468 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
6469 don't define static. Remove old __realpath function. TC1 of
6470 POSIX 2001 will allow the second parameter to be NULL.
6471 * stdlib/test-canon.c: Comment out test for NULL as second
6472 parameter of realpath.
6474 * time/offtime.c (__offtime): Set errno if overflow is detected.
6476 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
6477 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
6480 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6483 2002-05-15 Roland McGrath <roland@frob.com>
6485 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6487 2002-05-12 Bruno Haible <bruno@clisp.org>
6489 * iconvdata/testdata/EUC-JISX0213: New file.
6490 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6491 * iconvdata/testdata/SHIFT_JISX0213: New file.
6492 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6493 * iconvdata/testdata/ISO-2022-JP-3: New file.
6494 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6495 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6496 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6497 contains comments indicating precomposed characters.
6499 2002-04-21 Bruno Haible <bruno@clisp.org>
6501 * iconvdata/iso-2022-jp-3.c: New file.
6502 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6503 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6504 (LDFLAGS-ISO-2022-JP-3.so): New variable.
6505 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6506 (distribute): Add iso-2022-jp-3.c.
6508 2002-05-12 Bruno Haible <bruno@clisp.org>
6510 * iconvdata/tst-table-to.c (main): Restore handling of
6511 transliterations, broken by last patch.
6513 2002-05-12 Bruno Haible <bruno@clisp.org>
6515 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6517 2002-05-12 Bruno Haible <bruno@clisp.org>
6519 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6520 when there is not enough room in the output buffer.
6521 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6523 2002-04-20 Bruno Haible <bruno@clisp.org>
6525 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6527 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6528 Also make this macro work if FROM_DIRECTION evaluates to 0.
6529 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6530 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6531 of consume_incomplete.
6532 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6533 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6535 * iconvdata/cp1258.c: Likewise.
6536 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6537 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6539 * iconvdata/ibm933.c: Likewise.
6540 * iconvdata/ibm935.c: Likewise.
6541 * iconvdata/ibm937.c: Likewise.
6542 * iconvdata/ibm939.c: Likewise.
6543 * iconvdata/iso-2022-cn.c: Define
6544 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6545 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6546 * iconvdata/iso-2022-cn-ext.c: Likewise.
6547 * iconvdata/iso-2022-jp.c: Define
6548 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6549 {MIN,MAX}_NEEDED_{FROM,TO}.
6550 * iconvdata/tcvn5712-1.c: Define
6551 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6552 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6553 * iconvdata/euc-jisx0213.c: Define
6554 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6555 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6556 * iconvdata/shift_jisx0213.c: Likewise.
6558 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6560 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6561 shdi3, fixdfdi, fixsfdi in csu dir.
6562 (shared-only-routines): Likewise.
6563 * sysdeps/wordsize-32/cmpdi2.c: New file.
6564 * sysdeps/wordsize-32/shdi3.c: New file.
6565 * sysdeps/wordsize-32/fixdfdi.c: New file.
6566 * sysdeps/wordsize-32/fixsfdi.c: New file.
6567 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6568 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6569 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6571 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6572 Only use va_arg if the argument will be used [PR libc/3259].
6574 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
6576 * catgets/catgets.c (catopen): Free buffer if internal catalog
6579 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6581 * debug/xtrace.sh: Make more robust. For realtime tracking use
6582 non-buffering methods.
6583 * debug/pcprofiledump.c: Implement -u option.
6584 Patch by Roger Luethi <rl@hellgate.ch>.
6586 2002-05-11 Jakub Jelinek <jakub@redhat.com>
6588 * include/netinet/in.h (bindresvport_internal): Add prototype.
6589 * include/rpc/auth.h (authunix_create_internal,
6590 authunix_create_default_internal, authnone_create_internal,
6591 authdes_pk_create_internal): Add prototypes.
6592 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6593 clntudp_create_internal, clntudp_bufcreate_internal,
6594 clntunix_create_internal): Add prototypes.
6595 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6596 svc_getreq_internal, svc_getreq_common_internal,
6597 svc_getreqset_internal, svc_getreq_poll_internal,
6598 svc_register_internal, svc_unregister_internal,
6599 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6600 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6601 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6602 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6603 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6604 * inet/rcmd.c (rcmd_af): Use __listen.
6605 (rresvport_af): Use __bind.
6606 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6607 authunix_create, authunix_create_default, authnone_create,
6608 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6609 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6610 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6611 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6612 _authenticate, add INTDEF after such function definitions.
6613 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6614 __setsockopt, __getsockname instead of non-__ variants.
6615 * sunrpc/pmap_rmt.c: Likewise.
6616 * sunrpc/rtime.c: Likewise.
6617 * sunrpc/svc_udp.c: Likewise.
6618 * sunrpc/clnt_unix.c: Likewise.
6619 * sunrpc/svc_unix.c: Likewise.
6620 * sunrpc/bindrsvprt.c: Likewise.
6621 * sunrpc/svc_tcp.c: Likewise.
6622 * sunrpc/auth_none.c: Likewise.
6623 * sunrpc/clnt_raw.c: Likewise.
6624 * sunrpc/clnt_tcp.c: Likewise.
6625 * sunrpc/auth_unix.c: Likewise.
6626 * sunrpc/key_call.c: Likewise.
6627 * sunrpc/clnt_gen.c: Likewise.
6628 * sunrpc/pm_getmaps.c: Likewise.
6629 * sunrpc/clnt_simp.c: Likewise.
6630 * sunrpc/pmap_clnt.c: Likewise.
6631 * sunrpc/svc_run.c: Likewise.
6632 * sunrpc/svc.c: Likewise.
6633 * sunrpc/svc_simple.c: Likewise.
6634 * sunrpc/pm_getport.c: Likewise.
6635 * sunrpc/auth_des.c: Likewise.
6636 * sunrpc/svc_auth.c: Likewise.
6637 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6638 __register_frame_info_table_bases, __deregister_frame_info_bases):
6640 (__register_frame_info_bases_internal,
6641 __register_frame_info_table_bases_internal,
6642 __deregister_frame_info_bases_internal): Add prototypes.
6643 (__register_frame_info, __register_frame): Use INTUSE in call to
6644 __register_frame_info_bases.
6645 (__register_frame_info_table): Similarly.
6646 (__deregister_frame_info, __deregister_frame): Similarly.
6647 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6648 sendto as weak alias.
6649 * sysdeps/mach/hurd/sendto.c: Likewise.
6650 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6651 recvfrom as weak alias.
6652 * sysdeps/mach/hurd/recvfrom.c: Likewise.
6653 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6654 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6655 recvmsg as weak alias.
6656 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6657 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6658 sendmsg as weak alias.
6659 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6660 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6661 setsockopt, add setsockopt as weak alias.
6662 * sysdeps/mach/hurd/setsockopt.c: Likewise.
6663 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6665 * sysdeps/mach/hurd/bind.c: Likewise.
6666 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6668 * sysdeps/mach/hurd/listen.c: Likewise.
6669 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6670 getsockname, add getsockname as weak alias.
6671 * sysdeps/mach/hurd/getsockname.c: Likewise.
6672 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6673 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6674 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6675 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6676 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6677 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6679 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6680 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6681 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6682 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6683 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6684 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6685 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6686 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6687 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6688 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6689 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6690 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6692 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6694 * locale/programs/localedef.h (show_archive_content): Add verbose
6696 * locale/programs/localedef.c (main): Adjust caller.
6697 * locale/programs/locarchive.c (struct nameent, struct dataent): New
6699 (nameentcmp, dataentcmp): New functions.
6701 (show_archive_content): Print verbose listing with --list-archive -v.
6703 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6705 * locale/programs/locarchive.c (open_archive): Take extra argument
6706 readonly. If true open file with O_RDONLY and don't create the
6707 archive if it doesn't exist.
6709 (close_archive): Don't do anything if fd element is -1.
6710 * locale/programs/localedef.h (open_archive): Adjust prototype.
6711 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6714 * malloc/malloc.c (__posix_memalign): Correct check for size of
6715 alignment value [PR libc/3444].
6717 * include/stdio.h: Remove references to old stdio implementation.
6719 * libio/Makefile (bug-ungetwc2-ENV): Define.
6721 2002-05-13 Roland McGrath <roland@frob.com>
6723 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6725 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6727 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
6729 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6730 Allocate three, not two, more than LEN when appending '/.'.
6731 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
6732 if NAME ends with '/.' if it is shorter than 2 chars.
6734 2002-05-12 Roland McGrath <roland@frob.com>
6736 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6737 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6739 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6740 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6742 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6744 * sysdeps/ia64/Makefile: Remove extra endif.
6745 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6747 2002-05-10 Andreas Schwab <schwab@suse.de>
6749 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6751 2002-05-09 Andreas Jaeger <aj@suse.de>
6753 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6754 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6755 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6757 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6758 * sysdeps/wordsize-64/glob.c: ...here.
6759 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6760 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6761 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6763 2002-05-08 Roland McGrath <roland@frob.com>
6765 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6766 O_NOTRANS flag in "." lookup.
6768 2002-05-05 Ulrich Drepper <drepper@redhat.com>
6770 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6772 2002-05-04 Ulrich Drepper <drepper@redhat.com>
6774 * locale/duplocale.c (__duplocale): Update special members only
6775 when allocation succeeded.
6777 2002-05-03 Roland McGrath <roland@frob.com>
6779 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6780 we can only build libc.so.0.3(GLIBC_2.2.6) now.
6782 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6784 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6785 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6786 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6787 * sysdeps/ia64/ia64libgcc.S: New file.
6789 2002-05-02 Ulrich Drepper <drepper@redhat.com>
6791 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6793 * malloc/memusage.c: Distinguish anonymous mmap.
6795 2002-05-01 Roland McGrath <roland@frob.com>
6797 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6798 and use INTDEF on it.
6799 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6801 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6803 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6805 2002-05-01 Ulrich Drepper <drepper@redhat.com>
6807 * malloc/memusage.c: Add support for tracking mmap & friends.
6808 * malloc/memusage.sh: Implement -m/--mmap option.
6810 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6812 * locale/programs/locarchive.c (create_archive): Add archivefname
6813 argument, create fname from it.
6814 (enlarge_archive): Honour output_prefix.
6815 (open_archive): Likewise.
6817 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6819 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6820 too many stpcpy macros.
6822 2002-04-26 Bruno Haible <bruno@clisp.org>
6824 * locale/programs/ld-collate.c (collate_read): Cast first argument
6827 2002-04-26 Bruno Haible <bruno@clisp.org>
6829 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6830 __dcngettext_internal): New declarations.
6831 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6832 attribute declarations.
6834 2002-04-30 Roland McGrath <roland@frob.com>
6836 Removed old GNU stdio implementation; GNU libio is now the only option.
6837 * configure.in: Removed --enable-libio option and @stdio@ subst var.
6838 Define USE_IN_LIBIO unconditionally.
6839 * configure: Regenerated.
6840 * Makeconfig (stdio): Set to libio by default.
6841 * config.make.in (stdio): Variable removed.
6842 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6843 * sysdeps/unix/sysv/linux/configure: Regenerated.
6844 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6845 * sysdeps/mach/hurd/configure: Regenerated.
6846 * stdio/.cvsignore: File removed.
6847 * stdio/Makefile: File removed.
6848 * stdio/Versions: File removed.
6849 * stdio/__fbufsize.c: File removed.
6850 * stdio/__flbf.c: File removed.
6851 * stdio/__fpending.c: File removed.
6852 * stdio/__fpurge.c: File removed.
6853 * stdio/__freadable.c: File removed.
6854 * stdio/__freading.c: File removed.
6855 * stdio/__fsetlocking.c: File removed.
6856 * stdio/__fwritable.c: File removed.
6857 * stdio/__fwriting.c: File removed.
6858 * stdio/clearerr.c: File removed.
6859 * stdio/fclose.c: File removed.
6860 * stdio/fcloseall.c: File removed.
6861 * stdio/feof.c: File removed.
6862 * stdio/ferror.c: File removed.
6863 * stdio/fflush.c: File removed.
6864 * stdio/fgetc.c: File removed.
6865 * stdio/fgetpos.c: File removed.
6866 * stdio/fgets.c: File removed.
6867 * stdio/fileno.c: File removed.
6868 * stdio/fmemopen.c: File removed.
6869 * stdio/fopen.c: File removed.
6870 * stdio/fopncook.c: File removed.
6871 * stdio/fputc.c: File removed.
6872 * stdio/fputs.c: File removed.
6873 * stdio/fread.c: File removed.
6874 * stdio/freopen.c: File removed.
6875 * stdio/fseek.c: File removed.
6876 * stdio/fsetpos.c: File removed.
6877 * stdio/ftell.c: File removed.
6878 * stdio/fwrite.c: File removed.
6879 * stdio/getc.c: File removed.
6880 * stdio/getchar.c: File removed.
6881 * stdio/getdelim.c: File removed.
6882 * stdio/gets.c: File removed.
6883 * stdio/glue.c: File removed.
6884 * stdio/internals.c: File removed.
6885 * stdio/linewrap.c: File removed.
6886 * stdio/linewrap.h: File removed.
6887 * stdio/memstream.c: File removed.
6888 * stdio/newstream.c: File removed.
6889 * stdio/obstream.c: File removed.
6890 * stdio/putc.c: File removed.
6891 * stdio/putchar.c: File removed.
6892 * stdio/puts.c: File removed.
6893 * stdio/rewind.c: File removed.
6894 * stdio/setbuf.c: File removed.
6895 * stdio/setbuffer.c: File removed.
6896 * stdio/setlinebuf.c: File removed.
6897 * stdio/setvbuf.c: File removed.
6898 * stdio/stdio.h: File removed.
6899 * stdio/ungetc.c: File removed.
6900 * stdio/vasprintf.c: File removed.
6901 * stdio/vscanf.c: File removed.
6902 * stdio/vsnprintf.c: File removed.
6903 * stdio/vsprintf.c: File removed.
6904 * stdio/vsscanf.c: File removed.
6905 * sysdeps/generic/defs.c: File removed.
6906 * sysdeps/generic/fdopen.c: File removed.
6907 * sysdeps/generic/pipestream.c: File removed.
6908 * sysdeps/generic/stdio_init.c: File removed.
6909 * sysdeps/generic/sysd-stdio.c: File removed.
6910 * sysdeps/generic/vdprintf.c: File removed.
6911 * sysdeps/mach/hurd/defs.c: File removed.
6912 * sysdeps/mach/hurd/fdopen.c: File removed.
6913 * sysdeps/mach/hurd/pipestream.c: File removed.
6914 * sysdeps/mach/hurd/stdio_init.c: File removed.
6915 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6916 * sysdeps/mach/hurd/vdprintf.c: File removed.
6917 * sysdeps/posix/defs.c: File removed.
6918 * sysdeps/posix/fdopen.c: File removed.
6919 * sysdeps/posix/pipestream.c: File removed.
6920 * sysdeps/posix/stdio_init.c: File removed.
6921 * sysdeps/posix/vdprintf.c: File removed.
6922 * sysdeps/unix/pipestream.c: File removed.
6923 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6924 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6925 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6927 2002-04-29 Roland McGrath <roland@frob.com>
6929 * include/libc-symbols.h (link_warning): Use `unused' attribute.
6931 2002-04-28 Ulrich Drepper <drepper@redhat.com>
6933 * sysdeps/generic/tls.h: Describe what must be defined.
6935 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6936 glob_in_dir [PR libc/3385].
6937 * posix/globtest.sh: Add test case.
6939 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6942 2002-04-27 Ulrich Drepper <drepper@redhat.com>
6944 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6945 _internal symbol handling.
6946 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6948 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6950 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6951 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6953 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
6955 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6956 not _LIBC and RE_ENABLE_I18N.
6957 (build_range_exp): Implement for not _LIBC.
6958 (build_collating_symbol): Likewise.
6959 (parse_bracket_exp): Unify redundant error handlings.
6960 Don't erase mbcset for non matching list in multibyte envs.
6961 (build_word_op): Add '_' to matching list for \w operator.
6962 * posix/regex_internal.c (re_string_construct): Invoke
6963 build_upper_buffer in case of not RE_ENABLE_I18N.
6964 (re_string_reconstruct): Don't touch cur_state in case of not
6966 * posix/regex_internal.h (attribute_hidden): New macro in case of
6968 (re_charset_t): Define range_starts/ends in case of not _LIBC.
6969 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6971 (transit_state_mb): Likewise.
6972 (check_node_accept_bytes): Implement the code evaluating range
6973 expression in case of not _LIBC.
6974 (find_collation_sequence_value): Hide in case of not _LIBC.
6976 2002-04-26 Jakub Jelinek <jakub@redhat.com>
6978 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6980 (__old_semctl, __new_semctl): Only use va_arg if the argument will
6983 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6985 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6987 * sysdeps/ia64/strncpy.S: Fix recovery code.
6988 Patch by David Mosberger <davidm@hpl.hp.com>.
6990 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6992 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6995 2002-04-14 Bruno Haible <bruno@clisp.org>
6997 * posix/regex.c (re_max_failures): Add back symbol for binary
7000 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
7002 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
7003 of buffer building functions.
7004 * posix/regex_internal.c (re_string_allocate): New function.
7005 (re_string_realloc_buffers): New function.
7006 (re_string_skip_chars): New function.
7007 (re_string_reconstruct): New function.
7008 (re_string_construct): Adapt it to new interface of buffer building
7010 (re_string_construct_common): Likewise.
7011 (build_wcs_buffer): Likewise.
7012 (build_wcs_upper_buffer): Likewise.
7013 (build_upper_buffer): Likewise.
7014 (re_string_translate_buffer): Likewise.
7015 (re_string_context_at): Adapt it to variable length buffers.
7016 * posix/regex_internal.h (re_string_t): Add new fields to handle
7017 variable length buffers.
7018 (re_match_context_t): Likewise.
7019 * posix/regexec.c (re_search_internal): Adapt it to new interface
7020 of re_string_t and re_match_context_t.
7021 (acquire_init_state_context): Likewise.
7022 (check_matching): Likewise.
7023 (check_halt_state_context): Likewise.
7024 (proceed_next_node): Likewise.
7025 (set_regs): Likewise.
7026 (sift_states_backward): Likewise.
7027 (clean_state_log_if_need): Likewise.
7028 (sift_states_iter_mb): Likewise.
7029 (sift_states_iter_bkref): Likewise.
7030 (add_epsilon_backreference): Likewise.
7031 (transit_state): Likewise.
7032 (transit_state_sb): Likewise.
7033 (transit_state_mb): Likewise.
7034 (transit_state_bkref): Likewise.
7035 (transit_state_bkref_loop): Likewise.
7036 (check_node_accept): Likewise.
7037 (match_ctx_init): Likewise.
7038 (extend_buffers): New function.
7040 2002-04-21 Bruno Haible <bruno@clisp.org>
7042 * iconvdata/tst-table.sh: For the second check, use the truncated
7043 GB18030 charmap table, like for the first check.
7045 2002-04-24 Ulrich Drepper <drepper@redhat.com>
7047 * elf/dl-load.c (open_verify): Correct __lseek parameters.
7048 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
7050 2002-04-23 H.J. Lu <hjl@gnu.org>
7052 * include/math.h (isfinite): Fix a typo.
7054 2002-04-24 Ulrich Drepper <drepper@redhat.com>
7056 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
7057 which is created by the test suite.
7059 2002-04-20 Bruno Haible <bruno@clisp.org>
7061 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
7062 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
7064 2002-04-20 Bruno Haible <bruno@clisp.org>
7066 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
7067 to avoid gcc warning.
7069 2002-04-20 Bruno Haible <bruno@clisp.org>
7071 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
7072 of data->__statep->__count.
7074 2002-04-20 Bruno Haible <bruno@clisp.org>
7076 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
7078 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
7080 2002-04-24 Roland McGrath <roland@frob.com>
7082 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
7083 use END macro instead of our own .end directive.
7084 Use `callsys' insn mnemonic instead of `call_pal'.
7086 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
7088 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
7089 macro; we need this for Hurd.
7091 Log entry was missing for 2002/03/24 commit of rev 1.8,
7092 goes with 2002-03-17 changes.
7093 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
7094 (sysdep_routines): Append ioperm here.
7095 (sysdep_headers): Append sys/io.h here.
7097 2002-04-23 Roland McGrath <roland@frob.com>
7099 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
7100 * sysdeps/mach/hurd/sendto.c: Likewise.
7101 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
7102 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
7103 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
7105 2002-04-22 Roland McGrath <roland@frob.com>
7107 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
7108 failure from i386_io_perm_* RPCs to ENOSYS.
7110 2002-04-22 Andreas Jaeger <aj@suse.de>
7112 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
7114 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
7116 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
7117 register instead of destroying %rbx.
7119 2002-04-21 Ulrich Drepper <drepper@redhat.com>
7121 * string/string.h: Declare strerror_r also for XPG6.
7123 2002-04-19 Roland McGrath <roland@frob.com>
7125 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
7127 2002-04-20 Ulrich Drepper <drepper@redhat.com>
7129 * Makefile: Add handling of xtests and xcheck targets.
7130 * MakeTAGS: Likewise.
7131 * Makeconfig: Likewise.
7132 * Makerules: Likewise.
7134 * manual/Makefile: Likewise.
7135 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
7136 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
7138 2002-04-11 Zack Weinberg <zack@codesourcery.com>
7140 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
7142 * sunrpc/auth_none.c: Include bits/libc-lock.h.
7143 Delete #ifdef _RPC_THREAD_SAFE_ block.
7144 (authnone_private): Make a struct, not a pointer to struct.
7145 (authnone_private_guard): New once-control variable.
7146 (authnone_create_once): New function, split out of
7147 authnone_create. No need to allocate memory.
7148 (authnone_create): Just call authnone_create_once via
7149 __libc_once, then return &authnone_private->no_client.
7150 (authnone_marshal): Access private data via CLIENT argument,
7151 not authnone_private pointer.
7152 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
7153 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
7156 2002-04-12 H.J. Lu <hjl@gnu.org>
7158 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
7160 2002-04-18 Bruno Haible <bruno@clisp.org>
7162 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7163 FROM_DIRECTION): Make the FROM direction stateless.
7164 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7165 FROM_DIRECTION): Likewise.
7167 2002-04-15 Bruno Haible <bruno@clisp.org>
7169 * iconvdata/JISX0213.TXT: New file.
7170 * iconvdata/jisx0213.h: New file.
7171 * iconvdata/jisx0213.c: New file.
7172 * iconvdata/euc-jisx0213.c: New file.
7173 * iconvdata/shift_jisx0213.c: New file.
7174 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
7175 * iconvdata/EUC-JISX0213.precomposed: New file.
7176 * iconvdata/SHIFT_JISX0213.precomposed: New file.
7177 * iconvdata/SHIFT_JISX0213.irreversible: New file.
7178 * iconvdata/tst-table-to.c (main): Make it work for encodings for
7179 which the "to" direction is stateful.
7180 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
7181 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
7183 (libJISX0213-routines): New variable.
7184 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
7185 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
7186 (LDFLAGS-libJISX0213.so): New variable.
7187 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
7188 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
7189 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
7191 2002-04-15 Bruno Haible <bruno@clisp.org>
7193 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
7194 uint32_t. Update to Unicode 3.2.
7195 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
7196 (BODY for TO_LOOP): Handle the ASCII range specially.
7197 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
7198 * iconvdata/testdata/BIG5HKSCS: Remove a character.
7199 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
7201 2002-04-15 Bruno Haible <bruno@clisp.org>
7203 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
7204 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
7206 2002-04-15 Bruno Haible <bruno@clisp.org>
7208 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
7209 (ucs4_to_cns11643): Update.
7210 * iconvdata/cns11643.c: Update to Unicode 3.2.
7211 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
7212 __cns11643_from_ucs4p2_tab): Regenerated.
7213 (__cns11643_from_ucs4p2c_tab): New array.
7214 * iconvdata/cvs11643l1.c: Update comments.
7215 * iconvdata/EUC-TW.irreversible: Remove two entries.
7217 2002-04-15 Bruno Haible <bruno@clisp.org>
7219 * locale/C-translit.h.in: Update to Unicode 3.2.
7220 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
7221 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
7223 2002-04-15 Bruno Haible <bruno@clisp.org>
7225 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
7226 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
7228 2002-04-15 Bruno Haible <bruno@clisp.org>
7230 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
7231 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
7232 always one byte, not 0 bytes in some cases and 2 bytes in others.
7234 * iconvdata/tst-table-from.c (main): Correct the usage message.
7236 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
7238 * posix/regcomp.c (parse_expression): Fix incorrect error code.
7239 (parse_dup_op): Fix error handling like "a{}".
7240 (parse_bracket_exp): Add error handling.
7241 (fetch_number): Add error handling for "a{<very_large_number>}".
7243 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
7245 * posix/regcomp.c (parse_bracket_symbol): Add error handling
7246 in case that the symbol name is too long.
7247 (build_charclass): Handle [:lower:]/[:uppper:] correctly
7248 in case of REG_ICASE.
7250 2002-04-19 Andreas Jaeger <aj@suse.de>
7252 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
7253 <hartvige@mips.com>.
7255 2002-04-15 H.J. Lu <hjl@gnu.org>
7257 * include/math.h (__finitel_internal): Declare only if
7258 __NO_LONG_DOUBLE_MATH is not defined.
7259 (__isinfl_internal): Likewise.
7260 (__isnanl_internal): Likewise.
7262 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
7263 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7264 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7265 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7266 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7267 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7268 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7270 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
7273 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
7274 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
7276 2002-04-15 Bruno Haible <bruno@clisp.org>
7278 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
7279 (BODY for TO_LOOP): Likewise.
7280 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
7281 * iconvdata/tst-table.sh: Add support for encodings which contain
7282 precomposed Unicode characters, known to the iconv converter in both
7283 directions but not listed in the charmap.
7284 * iconvdata/IBM856.irreversible: New file.
7285 * iconvdata/IBM922.irreversible: New file.
7286 * iconvdata/IBM1132.irreversible: New file.
7287 * iconvdata/IBM1133.irreversible: New file.
7288 * iconvdata/IBM1160.irreversible: New file.
7289 * iconvdata/IBM1161.irreversible: New file.
7290 * iconvdata/IBM1163.irreversible: New file.
7291 * iconvdata/IBM1164.irreversible: New file.
7292 * iconvdata/ARMSCII-8.irreversible: New file.
7293 * iconvdata/TCVN5712-1.precomposed: New file.
7294 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
7295 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
7296 ARMSCII-8, TCVN5712-1.
7297 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
7298 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
7299 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
7300 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
7302 2002-04-17 Jakub Jelinek <jakub@redhat.com>
7304 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
7305 for EVENING69. Include offsets in TZ environment variable.
7307 2002-04-18 Ulrich Drepper <drepper@redhat.com>
7309 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
7310 avoid compiler warnings.
7312 * locale/programs/localedef.c (main): Always call
7313 construct_output_path.
7315 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
7317 * locale/programs/locfile.c (to_archive): New variable. To collect
7318 data which has to be added to the locale archive.
7319 (write_all_categories): Take new third parameter with locale name.
7320 Unless no_archive flag set add new locale data to the archive
7321 (write_locale_data): Unless no-archive flag set store generated data
7322 in to_archive data structure instead of generation output file.
7323 Add new parameter with locale category index.
7324 * locale/programs/locfile.h: Add new parameters in declaractions of
7325 write_all_categories and write_locale_data.
7326 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
7327 --add-to-archive, and --delete-from-archive options. Pass extra
7328 parameter to write_all_categories.
7329 * locale/programs/localedef.h: Add prototypes for functions in
7331 * locale/locarchive.h: New file.
7332 * locale/programs/locarchive.c: New file.
7333 * locale/Makefile (distribute): Add programs/locarchive.c and
7335 (localedef-modules): Add md5 and locarchive.
7336 Add vpath to crypt subdir for md5.c.
7338 * locale/programs/ld-address.c: Pass locale category ID as new second
7339 parameter to write_locale_data.
7340 * locale/programs/ld-collate.c: Likewise.
7341 * locale/programs/ld-ctype.c: Likewise.
7342 * locale/programs/ld-identification.c: Likewise.
7343 * locale/programs/ld-measurement.c: Likewise.
7344 * locale/programs/ld-messages.c: Likewise.
7345 * locale/programs/ld-monetary.c: Likewise.
7346 * locale/programs/ld-name.c: Likewise.
7347 * locale/programs/ld-numeric.c: Likewise.
7348 * locale/programs/ld-paper.c: Likewise.
7349 * locale/programs/ld-telephone.c: Likewise.
7350 * locale/programs/ld-time.c: Likewise.
7352 * locale/simple-hash.c: Move compute_hashval function from here...
7353 * locale/hashval.h: ...to here. New file.
7354 * locale/simple-hash.h: Add prototype for compute_hashval.
7356 * include/libintl.h: Minor cleanups.
7358 2002-04-16 Ulrich Drepper <drepper@redhat.com>
7360 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
7362 2002-04-15 Ulrich Drepper <drepper@redhat.com>
7364 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
7366 2002-04-14 Bruno Haible <bruno@clisp.org>
7368 * locale/programs/charmap.c (charmap_read): Don't access result if
7371 2002-02-17 Andreas Schwab <schwab@suse.de>
7373 * elf/reldep7.c: New file.
7374 * elf/reldep7mod1.c: New file.
7375 * elf/reldep7mod2.c: New file.
7376 * elf/Makefile: Add rules to build and run reldep7.
7378 2002-04-14 Jakub Jelinek <jakub@redhat.com>
7380 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
7381 the end of the function. Pass original flags to recursive call if
7382 add_dependency failed.
7383 (_dl_lookup_versioned_symbol): Likewise.
7385 2002-04-13 Jakub Jelinek <jakub@redhat.com>
7387 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
7388 early, but check whether it overflowed afterwards.
7389 * time/tst-mktime.c (main): Add new tests.
7391 2002-04-14 Ulrich Drepper <drepper@redhat.com>
7393 * debug/xtrace.sh: Fix program name in help message.
7394 Patch by Roger Luethi <rl@hellgate.ch>.
7396 * include/sys/stat.h: Add prototypes for __lxstat_internal and
7397 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
7399 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
7400 * sysdeps/mach/hurd/lxstat.c: Likewise.
7401 * sysdeps/unix/common/lxstat.c: Likewise.
7402 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
7403 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
7404 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
7405 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7406 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
7407 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
7408 * sysdeps/mach/hurd/lxstat64.c: Likewise.
7409 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
7410 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7412 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
7413 prototypes. Add __mbrlen and __mbrtowc macros.
7414 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
7415 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
7417 * include/unistd.h: Add prototype for __write_internal and add
7418 __libc_write macro is SHARED.
7419 * sysdeps/generic/write.c: Use INTDEF for __write.
7420 * sysdeps/mach/hurd/write.c: Likewise.
7421 * sysdeps/unix/sysv/aix/write.c: Likewise.
7422 * sysdeps/unix/syscalls.list: Add __libc_write alias.
7424 * assert/assert.c: Replace STR_N_SIZE with something usable in
7426 * assert/assert-perr.c: Likewise.
7428 * include/sys/socket.h: Declare __libc_sa_len_internal and define
7429 SA_LEN macro to use it if not NOT_IN_libc.
7430 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
7432 * include/fcntl.h: Declare __open_internal and define __open and
7433 __libc_open macros if not NOT_IN_libc.
7434 * sysdeps/generic/open.c: Use INTDEF for __open.
7435 * sysdeps/mach/hurd/open.c: Likewise.
7436 * sysdeps/unix/sysv/aix/open.c: Likewise.
7437 * sysdeps/unix/syscalls.list: Add __open_internal alias.
7439 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
7442 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
7443 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
7444 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7445 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7447 * include/wctype.h: Declare __iswalpha_l_internal,
7448 __iswdigit_l_internal, __iswspace_l_internal,
7449 __iswxdigit_l_internal, and __iswctype_internal. Define
7450 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
7451 __iswxdigit_l macros if not NOT_IN_libc.
7452 * wctype/iswctype.c: Use INTDEF for __iswctype.
7453 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
7455 * include/math.h: Declare __isinf_internal, __isinfl_internal,
7456 __isnan_internal, and __isnanl_internal.
7457 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
7458 __isnan, and __isnanl.
7459 * stdio-common/printf_size.c: Likewise.
7460 * sysdeps/generic/printf_fphex.c: Likewise.
7461 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
7462 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7463 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
7464 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
7465 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7466 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7467 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7468 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7469 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7470 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7471 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7472 * sysdeps/m68k/s_isinfl.c: Likewise.
7473 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
7474 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7476 * include/sys/time.h: Declare __gettimeofday_internal and define
7477 __gettimeofday macro if not NOT_IN_libc.
7478 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
7479 * sysdeps/mach/gettimeofday.c: Likewise.
7480 * sysdeps/posix/gettimeofday.c: Likewise.
7481 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7482 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7483 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7484 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7486 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7487 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7488 Remove __lstat and __fstat inline functions.
7489 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7490 * sysdeps/mach/hurd/fxstat.c: Likewise.
7491 * sysdeps/unix/fxstat.c: Likewise.
7492 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7493 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7494 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7495 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7496 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7497 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7498 * sysdeps/mach/hurd/fxstat64.c: Likewise.
7499 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7500 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7502 * include/unistd.h: Declare __getpid_internal and define
7503 __getpid macro if not NOT_IN_libc.
7504 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7505 * sysdeps/generic/getpid.c: Likewise.
7506 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7507 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7509 * include/unistd.h: Declare __getpgid_internal and define
7510 __getpgid macro if not NOT_IN_libc.
7511 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7512 * sysdeps/mach/hurd/getpgid.c: Likewise.
7513 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7514 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7515 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7516 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7518 * include/unistd.h: Declare __getpagesize_internal and define
7519 __getpagesize macro if not NOT_IN_libc.
7520 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7522 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7523 * sysdeps/mach/getpagesize.c: Likewise.
7524 * sysdeps/posix/getpagesize.c: Likewise.
7525 * sysdeps/unix/getpagesize.c: Likewise.
7526 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7527 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7528 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7529 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7531 2002-04-13 Andreas Jaeger <aj@suse.de>
7533 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7534 as clobber to reduce register pressure.
7535 (__strpbrk_cg): Likewise.
7536 (__mempcpy_by4): Likewise.
7537 (__strstr_cg): Likewise.
7538 Add prototype for __memrchr.
7540 2002-04-13 Andreas Schwab <schwab@suse.de>
7542 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7543 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7544 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7546 2002-04-13 Ulrich Drepper <drepper@redhat.com>
7548 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
7549 check whether the caller prefers getting the most recent version of
7550 a symbol of the earliest version.
7551 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
7552 _dl_do_lookup to also take the new parameter and pass it on.
7553 Change 'explicit' parameter of _dl_lookup_symbol and
7554 _dl_lookup_versioned_symbol to flags. Adjust tests.
7555 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7556 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7557 _dl_lookup_versioned_symbol.
7558 * elf/dl-reloc.c: Likewise.
7559 * elf/dl-runtime.c: Likewise.
7560 * elf/dl-sym.c: Likewise.
7561 * sysdeps/mips/dl-machine.h: Likewise.
7563 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7565 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7567 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7569 2002-04-10 Andreas Jaeger <aj@suse.de>
7571 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7573 * include/argz.h: Remove extra char from last patch.
7575 2002-04-09 Ulrich Drepper <drepper@redhat.com>
7577 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7578 * sysdeps/unix/sysv/aix/chown.c: Likewise.
7579 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7580 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7581 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7582 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7584 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7586 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7587 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7588 * intl/ngettext.c: Likewise.
7590 * include/sys/socket.h: Declare __connect_internal and define
7591 __connect macro if not NOT_IN_libc.
7592 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7593 * sysdeps/unix/sysv/aix/connect.c: Likewise.
7594 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7596 * include/unistd.h: Declare __close_internal and define __close macro
7598 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7599 WJUMP3): Add extra parenthesis to avoid expanding element names with
7600 macors like __close.
7601 * sysdeps/unix/syscalls.list: Add __close_internal alias.
7603 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7605 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7606 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7607 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7609 * include/unistd.h: Declare __fork_internal and define __fork macro
7611 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7612 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7613 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7615 * include/stdio_ext.h: Declare __fsetlocking_internal and define
7616 __fsetlocking macro to use it if not NOT_IN_libc.
7617 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7619 * libio/__fbufsize.c: Correct copyright.
7620 * libio/__flbf.c: Likewise.
7621 * libio/__fpending.c: Likewise.
7622 * libio/__fpurge.c: Likewise.
7623 * libio/__freadable.c: Likewise.
7624 * libio/__freading.c: Likewise.
7625 * libio/__fsetlocking.c: Likewise.
7626 * libio/__fwritable.c: Likewise.
7627 * libio/__fwriting.c: Likewise.
7629 * include/stdio.h: Declare __asprintf_internal and define __asprintf
7630 macro to use it if not NOT_IN_libc.
7631 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7633 * include/mntent.h: Declare __setmntent_internal,
7634 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
7635 __getmntent_r, and __endmntent macros to use these functions if not
7637 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7640 * include/math.h: Declare __finite_internal, __finitef_internal, and
7641 __finitel_internal. Redefine isfinite macro if in libc or libm using
7643 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7644 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7645 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7646 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7647 * sysdeps/i386/fpu/s_finitef.S: Likewise.
7648 * sysdeps/i386/fpu/s_finitel.S: Likewise.
7649 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7650 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7651 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7652 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7654 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
7655 to use this function if not NOT_IN_libc.
7656 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7657 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7658 * sysdeps/mach/hurd/fcntl.c: Likewise.
7659 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7660 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7662 * include/argz.h: Declare __argz_count_internal and
7663 __argz_stringify_internal.
7664 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7666 * string/argz-count.c: Use INTDEF for __argz_count.
7667 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7669 * include/stdlib.h: Declare __cxa_atexit_internal and define
7670 __cxa_atexit macro if not NOT_IN_libc.
7671 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7672 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7674 * assert/assert.c: Use INTDEF for __assert_fail.
7675 * assert/__assert.c: Use INTUSE for call to __assert_fail.
7676 * include/assert.h: Declare __assert_fail_internal.
7678 * extra-lib.mk: Mark assignment to lib with override.
7680 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7682 * Makerules: Use cppflags-iterator.mk to add defines for all test
7685 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
7687 * elf/elf.h: Define R_SH_TLS_xxx macros.
7688 * elf/rtld.c: Remove an extra parenthesis.
7689 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7691 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7692 * sysdeps/sh/dl-lookupcfg.h: New file.
7693 * sysdeps/sh/dl-tls.h: New file.
7694 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7695 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7696 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7697 R_SH_TLS_TPOFF32 relocations.
7699 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7701 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7703 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7704 * include/stdlib.h: Likewise.
7706 2002-04-08 Jakub Jelinek <jakub@redhat.com>
7708 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7709 instead of _RTLD_LOCAL.
7710 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7711 * include/unistd.h: Likewise.
7712 * sysdeps/generic/ldsodefs.h: Likewise.
7714 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7715 if in libc or ld.so.
7717 2002-04-08 Andreas Jaeger <aj@suse.de>
7719 * elf/cache.c (print_entry): Support x86-64.
7721 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7723 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7724 with one accessing the locale data structures directly.
7725 * stdio-common/printf-prs.c: Include localeinfo.h for new
7726 MB_CUR_MAX definition.
7728 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7729 is the name of the source file without extension.
7730 * Makefile (distribute): Add cppflags-iterator.mk.
7731 * cppflags-iterator.mk: New file.
7732 * extra-lib.mk: For the sources of the library run
7733 cppflags-iterator.mk.
7735 * include/libintl.h: Declare __dcgettext_internal and
7736 _libc_intl_domainname_internal. Define __dcgettext using these
7737 two symbols if used in libc itself.
7738 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7739 _libc_intl_domainname_internal.
7740 * argp/argp-parse.c: Likewise.
7741 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7742 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7743 * intl/gettext.c: Likewise.
7744 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7746 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7748 * posix/regex_internal.c (gettext): Likewise.
7750 2002-04-08 Andreas Jaeger <aj@suse.de>
7752 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7754 * sysdeps/x86_64/fpu/s_llrint.S: New file.
7755 * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7756 * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7757 * sysdeps/x86_64/fpu/s_lrint.S: New file.
7758 * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7759 * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7761 2002-04-08 Roland McGrath <roland@frob.com>
7763 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7764 widening __hurd_fail value.
7766 2002-04-07 Roland McGrath <roland@frob.com>
7768 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7769 <mach/machine/alpha_instruction.h>.
7770 (_hurd_setup_sighandler): Take proper arguments for current decls.
7771 Update code to use _hurdsig_catch_fault.
7772 Use `callsys' instruction instead of `call_pal'.
7773 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7775 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7776 (ALIGN, at, AT, fp): New macros.
7778 2002-04-06 Roland McGrath <roland@frob.com>
7780 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7782 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7783 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7785 * sysdeps/mach/hurd/bind.c: Use prototype definition.
7786 * sysdeps/mach/hurd/connect.c: Likewise.
7787 * sysdeps/mach/hurd/getsockopt.c: Likewise.
7788 * sysdeps/mach/hurd/setsockopt.c: Likewise.
7790 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7793 * hurd/catch-exc.c: Use integer_t instead of int.
7794 * hurd/hurdfault.c: Likewise.
7796 * sysdeps/mach/hurd/alpha/exc2signal.c
7797 (_hurd_exception2signal): Rewritten.
7798 * sysdeps/mach/hurd/alpha/longjmp-ts.c
7799 (_hurd_longjmp_thread_state): Rewritten.
7801 2002-04-07 Ulrich Drepper <drepper@redhat.com>
7803 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7804 DB_LOOKUP_FCT prototype.
7805 * nss/getXXent_r.c: Likewise.
7806 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7807 * inet/getaliasname_r.c: Likewise.
7808 * inet/getnetbyad_r.c: Likewise.
7809 * inet/getnetbynm_r.c: Likewise.
7810 * inet/getnetent_r.c: Likewise.
7811 * inet/getproto_r.c: Likewise.
7812 * inet/getprtent_r.c: Likewise.
7813 * inet/getprtname_r.c: Likewise.
7814 * inet/getrpcbyname_r.c: Likewise.
7815 * inet/getrpcbynumber_r.c: Likewise.
7816 * inet/getrpcent_r.c: Likewise.
7817 * inet/getservent_r.c: Likewise.
7818 * inet/getsrvbynm_r.c: Likewise.
7819 * inet/getsrvbypt_r.c: Likewise.
7820 * shadow/getspent_r.c: Likewise.
7821 * shadow/getspnam_r.c: Likewise.
7823 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7825 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7826 Use i686-friendly PIC code.
7827 * sysdeps/i386/elf/setjmp.S: Likewise.
7829 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7831 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7833 * elf/Versions: Remove it here.
7835 2002-04-06 Ulrich Drepper <drepper@redhat.com>
7837 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7838 direction. Reported by H . J . Lu <hjl@lucon.org>.
7840 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7842 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7843 test just before the test runs.
7844 * intl/tst-translit.sh: Likewise.
7845 * intl/tst-codeset.sh: Likewise.
7847 * timezone/zic.c: Update from tzcode2002c.
7848 * timezone/asia: Update from tzdata2002c.
7849 * timezone/backward: Likewise.
7850 * timezone/europe: Likewise.
7851 * timezone/northamerica: Likewise.
7852 * timezone/northamerica: Likewise.
7853 * timezone/northamerica: Likewise.
7854 * timezone/southamerica: Likewise.
7855 * timezone/zone.tab: Likewise.
7857 2002-03-23 Jakub Jelinek <jakub@redhat.com>
7859 * sysdeps/generic/brk.c (__curbrk): Declare.
7860 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7861 * sysdeps/generic/dl-sbrk.c: Likewise.
7862 * sysdeps/unix/arm/dl-brk.S: New file.
7863 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7864 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7865 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7866 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7867 * sysdeps/unix/i386/dl-brk.S: New file.
7868 * sysdeps/unix/mips/dl-brk.S: New file.
7869 * sysdeps/unix/sparc/dl-brk.S: New file.
7870 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7871 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7872 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7873 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7875 2002-04-03 Andreas Schwab <schwab@suse.de>
7877 * Makefile (headers): Add gnu/lib-names.h here instead of
7879 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7881 (install-headers): Add dependency on install-headers-nosubdir.
7882 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7883 instead of install-others.
7884 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7887 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7889 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7890 Reported by Sam Roberts <sroberts@uniserve.com>.
7892 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7894 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7895 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7896 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7897 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7899 2002-04-03 David Mosberger <davidm@hpl.hp.com>
7901 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7902 (RTLD_START): Ditto.
7903 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7904 dependency violation.
7906 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7908 * time/mktime.c (__mktime_internal): Move check for year < 70 below
7909 all variable declarations.
7911 2002-04-04 Andreas Schwab <schwab@suse.de>
7913 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7915 2002-04-04 Andreas Jaeger <aj@suse.de>
7917 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7918 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7920 * sysdeps/x86_64/fpu/s_fabs.c: New file.
7921 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7922 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7924 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7926 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7928 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7929 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7931 * configure.in: Handle all mips entries the same.
7933 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7934 * sysdeps/mips/mips3/*: Likewise.
7935 * sysdeps/mips/p40/bits/endian.h: Likewise.
7937 2002-04-04 Ulrich Drepper <drepper@redhat.com>
7939 * misc/dirname.c (dirname): Ignore trailing slashes at end of
7940 non-null result [PR libc/2600].
7942 * misc/tst-dirname.c: Add more tests.
7944 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7946 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7947 define a code_set_name provide one based on the filename.
7949 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7951 2001-12-28 Andreas Jaeger <aj@suse.de>
7953 * time/mktime.c (__mktime_internal): Check for year < 70
7956 2002-04-03 Andreas Jaeger <aj@suse.de>
7958 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7960 Reported by Andi Kleen <ak@suse.de>.
7962 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7964 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7965 * sysdeps/generic/w_lgammaf.c: Likewise.
7966 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7968 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7969 Adjust for new output format of the backtrace functions.
7971 * misc/syslog.c (vsyslog): Only use cleanup handler if
7972 _LIBC_REENTRANT is defined [PR libc/2924].
7974 * libio/Makefile (tests): Add bug-ungetwc2.
7975 * libio/bug-ungetwc2.c: New file.
7977 * manual/install.texi: Typographical and grammatical cleanup.
7978 Patch by Dennis Grace <dgrace@us.ibm.com>.
7980 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7981 parameter if mtflag. Patch by <jeongyun@innovay.com>.
7983 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
7984 always "&". Adjust callers.
7985 Add "_" prefix to several generated definitions.
7986 Patch by paul@serice.net [PR libc/3158].
7988 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7990 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7991 size of _dl_arm_cap_flags.
7992 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7994 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7997 2002-03-22 H.J. Lu <hjl@gnu.org>
7999 * scripts/firstversions.awk: Check the first version.
8001 2002-04-02 Ulrich Drepper <drepper@redhat.com>
8003 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
8004 dependencies must be stable to work correctly.
8005 Reported by martin.lubich@datacon.at.
8007 * libio/bug-ungetwc1.c: New file.
8008 * libio/Makefile (tests): Add bug-ungetwc1.
8010 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
8011 if stream was last used for writing.
8013 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
8014 number [PR libc/3111].
8016 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
8018 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
8020 2002-04-02 Jakub Jelinek <jakub@redhat.com>
8022 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
8023 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
8024 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
8025 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
8026 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
8028 2002-03-30 Jakub Jelinek <jakub@redhat.com>
8030 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
8033 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8035 * sysdeps/i386/fpu/s_fabs.S: New file.
8036 * sysdeps/i386/fpu/s_fabsf.S: New file.
8037 * sysdeps/i386/fpu/s_fabsl.S: New file.
8038 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
8039 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
8040 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
8042 2002-04-02 Ulrich Drepper <drepper@redhat.com>
8044 * rt/tst-shm.c (do_test): Add one more test for size of shared
8047 2002-03-29 Wolfram Gloger <wg@malloc.de>
8049 * malloc/malloc.c: Add short description and prototypes for
8050 malloc_get_state, malloc_set_state and posix_memalign, for
8051 consistency and to avoid warnings with -Wstrict-prototypes.
8052 Reported by Andreas Jaeger <aj@suse.de>.
8054 2002-04-02 Ulrich Drepper <drepper@redhat.com>
8056 * po/gl.po: Update from translation team.
8058 2002-03-31 Roland McGrath <roland@frob.com>
8060 * hurd/hurdselect.c (_hurd_select): Fix
8061 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
8062 Use a union rather than casts to compare mach_msg_type_t as int.
8064 2002-03-25 Roland McGrath <roland@frob.com>
8066 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
8067 check off the end of NAME when it's shorter than 2 chars.
8068 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
8070 2002-03-17 Roland McGrath <roland@frob.com>
8072 * sysdeps/mach/hurd/i386/sys/io.h: New file.
8073 * sysdeps/mach/hurd/i386/ioperm.c: New file.
8074 * sysdeps/mach/hurd/i386/Dist: Add them.
8075 * sysdeps/mach/hurd/i386/Versions
8076 (libc: GLIBC_2.2.6): New set, add ioperm.
8077 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
8078 (mach_interface_list): Check for mach_i386.defs.
8079 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
8080 * sysdeps/mach/configure: Regenerated.
8082 2002-03-22 Ulrich Drepper <drepper@redhat.com>
8084 * po/fr.po: Update from translation team.
8086 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
8088 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
8089 getpriority from syscalls list.
8091 2002-03-28 Andreas Jaeger <aj@suse.de>
8093 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
8094 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
8095 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
8096 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
8098 2002-03-27 Andreas Jaeger <aj@suse.de>
8100 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8101 sigcontext): Follow further kernel change.
8103 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
8106 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
8107 Change for struct sigcontext change.
8109 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8110 Follow changes in struct sigcontext.
8112 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
8113 sysycall, use wrapper instead.
8115 2002-03-26 Andreas Jaeger <aj@suse.de>
8117 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
8118 read and write accesses as detailed as possible.
8119 (__memcpy_by2): Likewise.
8120 (__memcpy_g): Likewise.
8121 (memmove): Likewise.
8123 (__memset_ccn_by4): Likewise.
8124 (__memset_ccn_by2): Likewise.
8125 (__memset_gcn_by4): Likewise.
8126 (__memset_gcn_by2): Likewise.
8128 (__memrchr): Likewise.
8129 (rawmemchr): Likewise.
8130 (__strlen_g): Likewise.
8131 (__strcpy_g): Likewise.
8132 (__mempcpy_by4): Likewise.
8133 (__mempcpy_by2): Likewise.
8134 (__mempcpy_byn): Likewise.
8135 (__stpcpy_g): Likewise.
8136 (__strncpy_by4): Likewise.
8137 (__strncpy_by2): Likewise.
8138 (__strncpy_byn): Likewise.
8139 (__strncpy_gg): Likewise.
8140 (__strcat_c): Likewise.
8141 (__strcat_g): Likewise.
8142 (__strncat_g): Likewise.
8143 (__strcmp_gg): Likewise.
8144 (__strncmp_g): Likewise.
8145 (__strchr_c): Likewise.
8146 (__strchr_g): Likewise.
8147 (__strchrnul_c): Likewise.
8148 (__strchrnul_g): Likewise.
8149 (__strrchr_c): Likewise.
8150 (__strrchr_g): Likewise.
8151 (__strrchr_c): Likewise.
8152 (__strrchr_g): Likewise.
8153 (__strcspn_c1): Likewise.
8154 (__strcspn_cg): Likewise.
8155 (__strcspn_g): Likewise.
8156 (__strcspn_g): Likewise.
8157 (__strspn_c1): Likewise.
8158 (__strspn_cg): Likewise.
8159 (__strspn_g): Likewise.
8160 (__strspn_g): Likewise.
8161 (__strpbrk_cg): Likewise.
8162 (__strpbrk_g): Likewise.
8163 (__strstr_cg): Likewise.
8164 (__strstr_g): Likewise.
8166 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
8167 Michal Ludvig <mludvig@suse.cz>.
8169 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
8170 compatibilty, adjust for kernel changes.
8172 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8173 sigcontext): Adjust for kernel changes.
8175 2002-03-25 Andreas Jaeger <aj@suse.de>
8177 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
8179 Reported by Artur Zaprzala <zybi@talex.com.pl>.
8181 2002-03-24 Andreas Jaeger <aj@suse.de>
8183 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
8185 * stdio-common/tst-fdopen.c (main): Remove unused variable.
8187 * iconv/tst-iconv3.c (main): Use correct printf strings.
8189 2002-03-18 Roland McGrath <roland@frob.com>
8191 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
8192 (CMGROUP_MAX): New macro.
8194 2002-03-23 Roland McGrath <roland@frob.com>
8196 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
8197 * sysdeps/posix/shm_unlink.c: Likewise.
8199 2002-03-22 Roland McGrath <roland@frob.com>
8201 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
8202 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
8203 under --enable-libio.
8204 * sysdeps/mach/hurd/configure: Regenerated.
8206 2002-03-23 Roland McGrath <roland@frob.com>
8208 * sysdeps/mach/hurd/i386/Makefile
8209 (sysdep_routines, shared-only-routines): Don't add framestate,
8210 reverting 2001-10-02 change.
8211 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8212 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8213 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8214 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8215 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8216 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8217 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8218 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8219 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
8220 Do it here instead, only if [$(unwind-find-fde) = yes].
8222 2002-03-23 Andreas Jaeger <aj@suse.de>
8224 * signal/signal.h: Fix typo. Patch by Steve Kemp
8225 <skx@tardis.ed.ac.uk>.
8227 2002-03-22 Andreas Jaeger <aj@suse.de>
8229 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
8232 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8233 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
8234 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8235 user_fpregs_struct): Rename fwd.
8237 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8238 Follow sigcontext changes.
8240 2002-03-22 Andreas Jaeger <aj@suse.de>
8242 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
8243 changes for NaNs on MIPS.
8244 Patch by Hartvig Ekner <hartvige@mips.com>.
8246 2002-03-21 Ulrich Drepper <drepper@redhat.com>
8248 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
8249 Use realloc if too large.
8250 (addgrbyid): Likewise.
8251 * nscd/hstcache.c (addhstbyname): Likewise.
8252 (addhstbyaddr): Likewise.
8253 (addhstbynamev6): Likewise.
8254 (addhstbyaddrv6): Likewise.
8255 * nscd/pwdcache.c (addpwbyname): Likewise.
8256 (addpwbyuid): Likewise.
8258 2002-03-21 Andreas Jaeger <aj@suse.de>
8260 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8261 _fpstate): Add separate struct for x86-64.
8263 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8264 user_fpregs_struct): Change member names to follow kernel.
8266 2002-03-20 Ulrich Drepper <drepper@redhat.com>
8268 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
8269 Correctly close the UDP connection right away [PR libc/3120].
8271 2002-03-20 Andreas Jaeger <aj@suse.de>
8273 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8274 user_fpregs_struct): Fix for changed kernel struct.
8275 (struct user_regs_struct): Likewise.
8276 (struct user): Likewise.
8277 Add 32-bit x86 compatibility.
8279 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
8281 2002-03-19 Andreas Jaeger <aj@suse.de>
8283 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
8285 2002-03-18 Andreas Jaeger <aj@suse.de>
8287 * iconvdata/Makefile: Only run tests when shared libs are
8290 2002-03-17 Andreas Jaeger <aj@suse.de>
8292 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
8294 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
8296 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
8299 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
8300 (CAUSE_SHIFT): New macro.
8301 Patch by Hartvig Ekner <hartvige@mips.com>.
8303 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
8304 * sysdeps/generic/unwind-pe.h: Likewise.
8306 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
8309 * libio/stdio.c (AL2): Define variant when visibility attribute is
8312 * include/libc-symbols.h (_INTVARDEF): Define variant when
8313 visibility attribute is not supported.
8315 2002-03-16 Ulrich Drepper <drepper@redhat.com>
8317 * po/fr.po: Update from translation team.
8319 2002-02-25 Bruno Haible <bruno@clisp.org>
8321 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
8323 2002-03-15 Ulrich Drepper <drepper@redhat.com>
8325 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
8326 buffers if _IO_file_attach failed.
8328 * libio/fileops.c (_IO_file_open): Close file descriptor if
8329 _IO_SEEKOFF call failed.
8331 2002-03-15 H.J. Lu <hjl@gnu.org>
8332 Ulrich Drepper <drepper@redhat.com>
8334 * configure.in: Check for availability of
8335 init_array/fini_array/preinit_array handling in binutils.
8336 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
8337 * config.make.in (have-initfini-array): New variable.
8339 2002-03-15 Ulrich Drepper <drepper@redhat.com>
8341 * stdio-common/tst-printf.c (main): Comment out one test which
8342 checked the compiler's ability to fold floating-point constants
8343 but not really printf.
8344 (rfg3): Make s const.
8345 * stdio-common/tst-printf.sh: Adjust for removed test.
8347 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
8348 internal function. Adjust for internal_function calling convention.
8349 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
8350 as internal_function.
8352 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
8355 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
8356 declaration and definition.
8357 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
8359 * nss/getXXent_r.c: Likewise.
8360 * nss/nsswitch.h (db_lookup_function): Add internal_function to
8363 * include/time.h: Declare __localtime_r as hidden.
8365 * include/aliases.h: Declare __getaliasent_r as hidden.
8366 * include/grp.h: Declare __getgrent_r as hidden.
8367 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
8368 __getservent_r, and __getprotoent_r as hidden.
8369 * include/pwd.h: Declare __getpwent_r as hidden.
8370 * include/shadow.h: Declare __getspent_r as hidden.
8371 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
8373 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
8374 and __gconv_transliterate as hidden.
8375 Add internal_function to __gconv_get_path declaration.
8376 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
8377 definition. Add attribute_hidden to __gconv_read_conf definition.
8379 2002-03-14 Ulrich Drepper <drepper@redhat.com>
8381 * elf/rtld.c: Declare _environ as hidden.
8382 * sysdeps/generic/dl-environ.c: Likewise.
8383 * sysdeps/generic/dl-sysdep.c: Likewise.
8385 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
8386 _dl_mcount_internal as hidden.
8388 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
8389 * sysdeps/generic/dl-brk.c: New file.
8390 * sysdeps/generic/dl-sbrk.c: New file.
8391 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
8392 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
8394 * elf/dl-minimal.c (malloc): Declare _end as hidden.
8395 (__errno_location): New function. Declare errno as hidden.
8396 * elf/rtld.c (_dl_argc): Define as hidden.
8397 (_dl_skip_args): Define as hidden.
8398 (_begin, _end): Declare as hidden.
8399 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
8400 * sysdeps/generic/entry.h (_start): Declare as hidden.
8401 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
8402 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
8403 _dl_runtime_resolve and _dl_runtime_profile as hidden.
8404 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
8406 2002-03-14 Roland McGrath <roland@frob.com>
8408 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
8410 * Makeconfig (%.v.i, %.v): New implicit rules.
8411 (preprocess-versions): Variable removed.
8412 ($(common-objpfx)shlib-versions.v.i): New target giving just the
8413 shlib-versions input files as dependencies.
8414 ($(common-objpfx)soversions.i): Depend on that instead of the input
8415 files. Use it as input instead of using a pipeline.
8416 (postclean-generated): Append soversions.i, shlib-versions.v, and
8417 shlib-versions.v.i here.
8418 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
8419 the Versions.def input files as dependencies.
8420 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
8421 ($(common-objpfx)Versions.all): Depend on that instead of the input
8422 files. Use it as input instead of using a pipeline.
8423 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
8424 (postclean-generated): Append those .v and .v.i files here.
8426 2002-03-14 Jakub Jelinek <jakub@redhat.com>
8428 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
8429 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
8432 2002-03-14 Jakub Jelinek <jakub@redhat.com>
8434 * sysdeps/generic/mp_clz_tab.c: New file.
8435 * sysdeps/i386/mp_clz_tab.c: New file.
8436 * sysdeps/hppa/mp_clz_tab.c: New file.
8437 * sysdeps/powerpc/mp_clz_tab.c: New file.
8438 * stdlib/Makefile (aux): Revert last patch.
8439 * math/Makefile (gmp-objs): Likewise.
8441 2002-03-13 Paul Eggert <eggert@twinsun.com>
8443 * time/strftime.c: Comment fixes for references to obsolescent
8444 standards, In most cases the simplest fix is to remove the
8445 confusing comments. Cross-referencing all the standards properly
8446 is a bit of a pain, and it should be enough to put that info in
8447 the documentation as I did in my recent time.texi patch.
8449 2002-03-13 Paul Eggert <eggert@twinsun.com>
8451 * manual/time.texi (Formatting Calendar Time):
8452 ISO C99 also specifies the E and O modifiers.
8453 %P is a GNU extension, and is not in ISO C99.
8454 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
8455 %T is also in ISO C99.
8456 The RFC 822 example is not valid in arbitrary locales.
8457 Reword the POSIX.2 wording slightly, to make it a bit clearer
8458 that POSIX.2 formats are also supported by later POSIX versions.
8459 If a format was introduced in ISO C99 it is also required by
8462 2002-03-13 Ulrich Drepper <drepper@redhat.com>
8464 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
8465 _sys_nerr_internal with INTVARDEF2.
8466 * include/libc-symbols.h (INTVARDEF2): New macro.
8467 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
8468 (_sys_nerr_internal): Library.
8470 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
8471 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
8473 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
8475 2002-03-13 Wolfram Gloger <wg@malloc.de>
8477 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
8479 2002-03-02 Andreas Schwab <schwab@suse.de>
8481 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8482 'h' flag and positional arg.
8483 * stdio-common/tst-printf.c (rfg3): New function to test
8484 positional arguments.
8485 (main): Fix some warnings.
8487 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8489 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8490 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8492 2002-03-13 Ulrich Drepper <drepper@redhat.com>
8494 * grp/initgroups.c (__nss_group_data): Declare as hidden.
8496 * include/locale.h (_nl_C_locobj): Declare as hidden.
8498 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8499 * time/strptime.c (_nl_C_LC_TIME): Likewise.
8501 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8503 * include/sys/gmon.h: Declare _gmonparam as hidden.
8505 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8506 (__ctype32_wctrans): Likewise.
8507 (__ctype32_width): Likewise.
8509 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8512 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8514 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
8515 hidden. Change all users of these variables.
8517 * posix/regex_internal.h (__re_error_msgid): Renamed from
8518 re_error_msgid. Declare as hidden.
8519 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
8522 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8523 (__printf_function_table): Likewise.
8524 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8526 (__printf_function_table): Likewise.
8528 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8529 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8531 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8532 * nss/nsswitch.c: Declare _nss_*_database as hidden.
8534 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8535 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8537 2002-03-12 Ulrich Drepper <drepper@redhat.com>
8539 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8540 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8541 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8542 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8543 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8544 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8545 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8546 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8547 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8548 _nl_C_LC_CTYPE_width: Declare as hidden.
8549 * include/locale.h: Declare _nl_locale_file_list.
8550 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8551 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8552 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8553 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8554 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8555 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8556 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8557 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8558 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8559 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8560 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8561 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8562 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8563 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8564 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8565 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8566 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8567 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8568 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8569 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8570 _nl_C_LC_CTYPE_width, and as hidden.
8571 * locale/findlocale.c: Declare _nl_C as hidden.
8572 * locale/newlocale.c: Likewise.
8573 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
8574 _nl_locale_file_list.
8575 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8576 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8577 Define _nl_C_locobj as hidden.
8579 * malloc/mtrace.c (_mtrace_file): Define as hidden.
8580 (_mtrace_line): Likewise.
8582 * include/time.h: Declare __mon_yday as hidden.
8583 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8585 * libio/libioP.h: Declare __libio_codecvt as hidden.
8586 * libio/fileops.c: Declare __libio_translit as hidden.
8587 * libio/iofwide.c: Define __libio_translit as hidden.
8589 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8590 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8591 * login/getutline_r.c: Likewise.
8592 * login/utmpname.c: Likewise.
8594 * login/utmp-private.h: Declare __libc_utmp_file_functions,
8595 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8596 __libc_utmp_file_name as hidden.
8598 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8599 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8600 * locale/freelocale.c: Likewise.
8601 * locale/lc-time.c: Likewise.
8603 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8604 (__libc_ptyname2): Likewise.
8605 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8607 (__libc_ptyname2): Likewise.
8609 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8610 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8611 * sysdeps/generic/init-first.c: Likewise.
8612 * sysdeps/i386/init-first.c: Likewise.
8613 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8614 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8615 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8616 * sysdeps/sh/init-first.c: Likewise.
8617 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8618 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8620 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8621 (_itowa_upper_digits): Likewise.
8623 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8624 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8627 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8628 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8629 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8630 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8632 * gmon/gmon.c (__bb_head): Define as hidden.
8633 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8635 * argp/argp-parse.c (_argp_hang): Define as static.
8637 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8638 handling in latest compilers.
8640 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8642 * libio/fileops.c (_IO_file_jumps): Likewise.
8643 * libio/stdfiles.c (_IO_list_all): Likewise.
8644 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8646 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8648 * include/malloc.h: Add __libc_malloc_initialized declaration
8649 here. Mark variable hidden.
8650 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8652 * elf/dl-open.c (__libc_argc): Declare as hidden.
8653 (__libc_argv): Likewise.
8654 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8655 (__libc_argv): Likewise.
8656 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8657 __libc_argv as hidden.
8658 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8659 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8660 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8661 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8663 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8664 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8665 * stdlib/erand48.c: Likewise.
8666 * stdlib/jrand48.c: Likewise.
8667 * stdlib/lcong48.c: Likewise.
8668 * stdlib/lrand48.c: Likewise.
8669 * stdlib/mrand48.c: Likewise.
8670 * stdlib/nrand48.c: Likewise.
8671 * stdlib/seed48.c: Likewise.
8672 * stdlib/srand48.c: Likewise.
8674 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8675 (_itoa_lower_digits_internal): New declaration.
8676 (_itoa_upper_digits_internal): New declaration.
8677 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8678 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8679 (_itoa_upper_digits_internal): New declaration.
8680 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8682 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8683 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8685 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8686 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8688 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8689 (_itowa_lower_digits): Likewise.
8690 (_itowa_upper_digits): Likewise.
8691 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8692 (_itowa_upper_digits): Likewise.
8694 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8695 not already defined.
8696 (GERMANIC_PLURAL): Declare as hidden.
8698 * posix/getopt.c (__getopt_initialized): Declare as hidden.
8699 (attribute_hidden): Define as empty macro if not already defined.
8701 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8702 (__gconv_max_path_elem_len): Likewise.
8703 (__gconv_path_envvar): Likewise.
8705 * math/Makefile (gmp-objs): Remove mp_clz_tab.
8706 * stdlib/Makefile (aux): Remove mp_clz_tab.
8707 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
8709 * stdlib/exit.h (__exit_funcs): Declare as hidden.
8711 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8713 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8714 _nl_category_names, _nl_category_name_sizes, _nl_current,
8715 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8717 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8718 (_nl_current_default_domain): Likewise
8719 (_nl_state_lock): Likewise.
8720 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8721 (_nl_current_default_domain): Likewise
8722 (_nl_state_lock): Likewise.
8723 * intl/bindtextdom.c (_nl_state_lock): Likewise.
8725 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8726 (_fpioconst_pow10): Likewise.
8728 * include/time.h (_tmbuf): Add attribute_hidden.
8730 * time/tzset.c (tzstring_list): Define as static.
8732 * include/time.h: Add attribute_hidden to __tzname_cur_max and
8733 __use_tzfile declaration.
8735 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8736 and __wcsmbs_last_locale declaration.
8738 2002-02-25 Paul Eggert <eggert@twinsun.com>
8740 * timezone/Makefile (tzbases): Move systemv from here...
8741 (tzlinks): to here, since the entries in systemv were all changed
8742 from Zone to Link lines in tz-2001a. Bug reported (and patch
8743 tested) by Peter Breitenlohner.
8745 2002-03-07 Jakub Jelinek <jakub@redhat.com>
8747 * time/tst-posixtz.c (tests): Add new tests.
8748 (main): Test whether tzset() sets daylight properly.
8750 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8752 * time/tzset.c (tz_compute): Move __daylight, __tzname and
8753 __tzname_cur_max setting...
8754 (tzset_internal): ...here.
8756 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8758 * time/tzset.c (compute_change): Don't return any value.
8759 (tz_compute): Likewise. Don't handle southern hemisphere here.
8760 (__tz_convert): But here.
8762 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8764 * manual/examples/mkfsock.c: Include <string.h> as well.
8765 Patch by Alain De Carolis <alaind@wseurope.com>.
8767 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
8769 * posix/regexec.c (re_match): Fix incorrect register sizes.
8770 (re_search): Likewise.
8772 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8774 * posix/regcomp.c (regfree): Remove a disused condition.
8775 * posix/regex_internal.c (re_acquire_state): Likewise.
8776 (re_acquire_state_context): Likewise.
8777 (register_state): Remove a redundant malloc invocation.
8778 * posix/regex_internal.h: (re_state_table_entry): Simplify
8781 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8783 * posix/regcomp.c (regcomp): Add __builtin_expect to error
8784 handling conditions.
8785 (regerror): Likewise.
8786 (regfree): Likewise.
8787 (re_compile_internal): Likewise.
8788 (init_dfa): Likewise.
8789 (init_word_char): Likewise.
8790 (create_initial_state): Likewise.
8791 (analyze): Likewise.
8792 (analyze_tree): Likewise.
8793 (duplicate_node): Likewise.
8794 (calc_eclosure): Likewise.
8795 (calc_eclosure_iter): Likewise.
8797 (parse_reg_exp): Likewise.
8798 (parse_branch): Likewise.
8799 (parse_expression): Likewise.
8800 (parse_subexp): Likewise.
8801 (parse_dup_op): Likewise.
8802 (parse_bracket_exp): Likewise.
8803 (build_equiv_class): Likewise.
8804 (build_charclass): Likewise.
8805 (build_word_op): Likewise.
8806 (fetch_number): Likewise.
8807 (create_tree): Likewise.
8808 (duplicate_tree): Likewise.
8809 * posix/regex.c (BE): New macro.
8810 * posix/regexec.c (re_match): Add __builtin_expect to error
8811 handling conditions.
8812 (re_match_2): Likewise.
8813 (re_search): Likewise.
8814 (re_search_internal): Likewise.
8815 (check_matching): Likewise.
8816 (proceed_next_node): Likewise.
8817 (set_regs): Likewise.
8818 (sift_states_backward): Likewise.
8819 (add_epsilon_backreference): Likewise.
8820 (transit_state): Likewise.
8821 (transit_state_sb): Likewise.
8822 (transit_state_mb): Likewise.
8823 (transit_state_bkref): Likewise.
8824 (transit_state_bkref_loop): Likewise.
8825 (build_trtable): Likewise.
8826 (group_nodes_into_DFAstates): Likewise.
8827 (match_ctx_init): Likewise.
8828 (match_ctx_add_entry): Likewise.
8829 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8830 to error handling conditions.
8831 (re_string_construct_toupper): Likewise.
8832 (build_wcs_buffer): Likewise.
8833 (build_wcs_upper_buffer): Likewise.
8834 (build_upper_buffer): Likewise.
8835 (re_string_translate_buffer): Likewise.
8836 (re_node_set_alloc): Likewise.
8837 (re_node_set_init_1): Likewise.
8838 (re_node_set_init_2): Likewise.
8839 (re_node_set_init_copy): Likewise.
8840 (re_node_set_intersect): Likewise.
8841 (re_node_set_init_union): Likewise.
8842 (re_node_set_merge): Likewise.
8843 (re_node_set_insert): Likewise.
8844 (re_dfa_add_node): Likewise.
8845 (re_acquire_state): Likewise.
8846 (re_acquire_state_context): Likewise.
8847 (create_new_state_common): Likewise.
8848 (register_state): Likewise.
8849 (create_ci_new_state): Likewise.
8850 (create_cd_new_state): Likewise.
8851 (re_string_context_at): Remove redundant condition.
8853 2002-01-16 Roger Sayle <roger@eyesopen.com>
8855 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8857 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8859 2002-03-11 Jakub Jelinek <jakub@redhat.com>
8861 * sysdeps/i386/elf/configure.in: Fix comment.
8863 * sysdeps/sparc/sparc64/configure.in: New file.
8864 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8865 if .dynamic comes before .got.
8866 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8868 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8869 HP_TIMING_ACCUM): Fix typos.
8871 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8873 * string/strfry.c: Add some more randomness to the seed.
8874 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8876 * po/es.po: Update from translation team.
8877 * po/fr.po: Likewise.
8879 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8881 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8882 when determining type of format.
8883 Patch by James Antill <james@anqd.org> [PR libc/2787].
8885 2002-03-04 Jakub Jelinek <jakub@redhat.com>
8887 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8889 2002-03-11 Roland McGrath <roland@frob.com>
8891 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8893 * Versions.def (libc): Add GLIBC_2.2.6.
8894 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8895 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8896 __errno_location instead of __hurd_errno_location, and don't inline it.
8897 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8898 * hurd/errno.c: New file.
8899 * hurd/Makefile (routines): Add errno.
8901 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8903 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8904 ridiculously large widths and precisions [PR libc/3026].
8906 2002-03-11 Andreas Jaeger <aj@suse.de>
8908 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8910 Patch by Susanne Oberhauser <froh@SuSE.de>.
8912 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8914 * inet/rexec.c (ahostbuf): Define as static.
8916 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8917 (__ctype32_wctrans): Likewise.
8918 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8919 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8920 (__ctype32_wctrans): Likewise.
8921 (__ctype32_width): Likewise.
8923 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8924 They were never exported anyway.
8926 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8927 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
8929 * include/sys/gmon.h: Declare _gmonparam.
8931 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8932 symbols for getdents64. They were never exported.
8934 2002-03-09 Roland McGrath <roland@frob.com>
8936 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8937 Reported by Jon Arney <jarney1@cox.net>.
8939 2002-02-23 Roland McGrath <roland@frob.com>
8941 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8943 (__hurd_errno_location): Function removed.
8945 2002-03-06 Andreas Jaeger <aj@suse.de>
8947 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8950 2002-03-04 Andreas Jaeger <aj@suse.de>
8952 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8954 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8957 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8959 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8961 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8963 * sysdeps/x86_64/bits/setjmp.h: New file.
8965 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8967 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8969 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8971 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8972 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8974 2002-02-28 Bo Thorsen <bo@suse.de>
8976 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8979 2002-03-03 Andreas Jaeger <aj@suse.de>
8981 * sysdeps/x86_64/bits/wordsize.h: New file.
8983 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8984 * elf/tst-tlsmod1.c: Likewise.
8986 * posix/regcomp.c: Get regex.h from include dir for internal
8989 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8990 to libc-internal.h and include it.
8991 * include/libc-internal.h: Add __init_misc.
8993 * misc/init-misc.c: Include libc-internal.h for prototypes.
8995 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8997 * misc/error.c [_LIBC]: Include libioP.h for prototype of
9000 2002-03-03 Ulrich Drepper <drepper@redhat.com>
9002 * posix/regcomp.c: Compatibility changes to allow using the code
9005 2002-02-28 Hartvig Ekner <hartvige@mips.com>
9007 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
9010 2002-03-02 Ulrich Drepper <drepper@redhat.com>
9012 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
9013 of .str elements in the returned data structure.
9015 * elf/elf.h: Add Alpha TLS bits.
9017 2002-02-28 Jakub Jelinek <jakub@redhat.com>
9019 * sysdeps/unix/sysv/linux/nice.c: New file.
9021 2002-03-01 Ulrich Drepper <drepper@redhat.com>
9023 * elf/Makefile (dl-routines): Add dl-origin.
9024 (elide-routines.os): Add dl-origin.
9025 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
9026 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
9028 * include/libc-symbols.c: Define attribute_hidden depending on
9029 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
9031 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
9032 * elf/dl-load.c: Likewise.
9033 * elf/rtld.c: Likewise.
9034 * include/unistd.h: Declare __libc_enable_secure_internal.
9035 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
9036 Use INTUSE with __libc_enable_secure.
9037 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9039 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
9040 * elf/dl-error.c: Likewise,
9041 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
9043 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
9044 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
9045 function definition. Use INTDEF with _dl_get_origin.
9046 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9048 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
9049 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
9051 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
9052 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
9053 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
9055 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
9056 * elf/dl-deps.c: Likewise.
9057 * elf/dl-error.c: Likewise.
9058 * elf/dl-fini.c: Likewise.
9059 * elf/dl-init.c: Likewise.
9060 * elf/dl-load.c: Likewise.
9061 * elf/dl-lookup.c: Likewise.
9062 * elf/dl-reloc.c: Likewise.
9063 * elf/dl-version.c: Likewise.
9064 * elf/do-lookup.h: Likewise.
9065 * sysdeps/arm/dl-machine.h: Likewise.
9066 * sysdeps/cris/dl-machine.h: Likewise.
9067 * sysdeps/hppa/dl-machine.h: Likewise.
9068 * sysdeps/i386/dl-machine.h: Likewise.
9069 * sysdeps/m68k/dl-machine.h: Likewise.
9070 * sysdeps/powerpc/dl-machine.h: Likewise.
9071 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9072 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9073 * sysdeps/sh/dl-machine.h: Likewise.
9074 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
9075 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
9076 * sysdeps/x86_64/dl-machine.h: Likewise.
9077 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
9078 _dl_argv[0]. Use INTUSE with _dl_argv.
9079 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
9080 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
9082 2002-02-28 Jakub Jelinek <jakub@redhat.com>
9084 * elf/rtld.c (_rtld_global): Remove .protected.
9085 (_rtld_local): Strong alias to _rtld_global.
9086 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
9088 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
9089 _rtld_local instead of _rtld_global.
9090 (_rtld_local): Add hidden extern, possibly in .sdata section.
9091 * configure.in: Add tests for visibility attribute and .sdata.
9092 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
9093 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
9094 * sysdeps/arm/dl-machine.h: Likewise.
9095 * sysdeps/generic/ldsodefs.h: Likewise.
9096 * sysdeps/hppa/dl-machine.h: Likewise.
9097 * sysdeps/cris/dl-machine.h: Likewise.
9098 * sysdeps/i386/dl-machine.h: Likewise.
9099 * sysdeps/ia64/dl-machine.h: Likewise.
9100 * sysdeps/m68k/dl-machine.h: Likewise.
9101 * sysdeps/mips/mips64/dl-machine.h: Likewise.
9102 * sysdeps/mips/dl-machine.h: Likewise.
9103 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9104 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9105 * sysdeps/sh/dl-machine.h: Likewise.
9106 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9107 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9108 * sysdeps/x86_64/dl-machine.h: Likewise.
9110 2002-02-28 Ulrich Drepper <drepper@redhat.com>
9112 * login/login.c (login): Always initialize ut_line field
9115 2002-02-28 Jakub Jelinek <jakub@redhat.com>
9117 * sysdeps/i386/Makefile (sysdep_routines): Add
9119 (shared-only-routines): Likewise.
9120 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
9121 (shared-only-routines): Likewise.
9122 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
9123 (shared-only-routines): Likewise.
9124 * sysdeps/wordsize-32/divdi3.c: New file.
9126 2002-02-28 Ulrich Drepper <drepper@redhat.com>
9128 * locale/iso-4217.def: Remove obsolete currencies for countries
9131 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
9133 * posix/regcomp.c (regcomp): Remove a redundant condition.
9134 (init_word_char): Add a check on malloc failure.
9135 (create_initial_state): Likewise.
9136 (duplicate_node): Likewise.
9137 (calc_eclosure): Likewise.
9138 (calc_eclosure_iter): Likewise.
9139 (parse_expression): Likewise.
9140 (parse_bracket_exp): Remove unnecessary malloc invocations.
9141 (build_equiv_class): Likewise.
9142 (build_charclass): Likewise.
9143 * posix/regex_internal.c (re_node_set_intersect): Add a check
9145 (re_node_set_add_intersect): Likewise.
9146 (re_node_set_merge): Likewise.
9147 (re_acquire_state): Likewise.
9148 (re_acquire_state_context): Likewise.
9149 (create_newstate_common): Likewise.
9150 (register_state): Likewise.
9151 (create_ci_newstate): Likewise.
9152 (create_cd_newstate): Likewise.
9153 * posix/regex_internal.h: Fix prototypes of re_acquire_state
9154 and re_acquire_state_context.
9155 * posix/regexec.c (regexec): Suit it to the error handling of
9157 (re_match): Likewise.
9158 (re_search): Likewise.
9159 (re_search_internal): Add a check on malloc failure.
9160 (acquire_init_state_context): Likewise.
9161 (check_matching): Likewise.
9162 (proceed_next_node): Likewise.
9163 (set_regs): Likewise.
9164 (sift_states_backward): Likewise.
9165 (sift_states_iter_bkref): Likewise.
9166 (add_epsilon_backreference): Likewise.
9167 (transit_state): Likewise.
9168 (transit_state_sb): Likewise.
9169 (transit_state_mb): Likewise.
9170 (transit_state_bkref_loop): Likewise.
9171 (build_trtable): Likewise.
9172 (group_nodes_into_DFAstates): Likewise.
9173 (match_ctx_init): Likewise.
9174 (match_ctx_add_entry): Likewise.
9176 2002-02-27 Ulrich Drepper <drepper@redhat.com>
9178 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
9179 l_libname if profiling is enabled [PR libc/2916].
9181 * sysdeps/ia64/dl-tls.h: New file.
9183 2002-02-27 Jakub Jelinek <jakub@redhat.com>
9185 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
9186 Work around an Alpha gas bug.
9188 2002-02-27 Ulrich Drepper <drepper@redhat.com>
9190 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
9191 uses read to load the catalog.
9192 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
9194 2002-02-26 Ulrich Drepper <drepper@redhat.com>
9196 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
9197 regex_internal.c, and regex_internal.h.
9198 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
9199 * posix/regex.c: Complete rewrite.
9200 * posix/regexec.c: New file.
9201 * posix/regcomp.c: New file.
9202 * posix/regex_internal.c: New file.
9203 * posix/regex_internal.h: New file.
9204 * posix/regex.h (RE_ICASE): New macro.
9205 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
9207 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
9208 ungetwc. It's a macro.
9209 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
9211 Reported by Jason Merrill <jason@redhat.com>.
9213 2002-02-25 Jakub Jelinek <jakub@redhat.com>
9215 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
9216 position to fp->_offset if it is set.
9217 * stdio-common/Makefile (tests): Add tst-fdopen.
9218 * stdio-common/tst-fdopen.c: New test.
9220 2002-02-25 Jakub Jelinek <jakub@redhat.com>
9222 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
9223 * stdio-common/tst-ungetc.c (main): Add another test.
9225 2002-02-25 Ulrich Drepper <drepper@redhat.com>
9227 * assert/assert-perr.c: Use INTUSE to reference functions and variables
9228 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
9229 aliases. Add prototypes for the new aliases.
9230 * assert/assert.c: Likewise.
9231 * include/libc-symbols.h: Likewise.
9232 * include/stdio.h: Likewise.
9233 * include/netinet/in.h: Likewise.
9234 * include/rpc/auth.h: Likewise.
9235 * include/rpc/auth_unix.h: Likewise.
9236 * include/rpc/key_prot.h: Likewise.
9237 * include/rpc/pmap_prot.h: Likewise.
9238 * include/rpc/pmap_rmt.h: Likewise.
9239 * include/rpc/rpc_msg.h: Likewise.
9240 * include/rpc/xdr.h: Likewise.
9241 * inet/gethstbyad_r.c: Likewise.
9242 * inet/gethstbynm2_r.c: Likewise.
9243 * inet/gethstbynm_r.c: Likewise.
9244 * inet/gethstent_r.c: Likewise.
9245 * inet/in6_addr.c: Likewise.
9246 * libio/__fpurge.c: Likewise.
9247 * libio/filedoalloc.c: Likewise.
9248 * libio/fileops.c: Likewise.
9249 * libio/ftello.c: Likewise.
9250 * libio/ftello64.c: Likewise.
9251 * libio/genops.c: Likewise.
9252 * libio/iofclose.c: Likewise.
9253 * libio/iofdopen.c: Likewise.
9254 * libio/iofflush.c: Likewise.
9255 * libio/iofflush_u.c: Likewise.
9256 * libio/iofgetpos.c: Likewise.
9257 * libio/iofgetpos64.c: Likewise.
9258 * libio/iofgets.c: Likewise.
9259 * libio/iofgets_u.c: Likewise.
9260 * libio/iofopen.c: Likewise.
9261 * libio/iofopncook.c: Likewise.
9262 * libio/iofputs.c: Likewise.
9263 * libio/iofread.c: Likewise.
9264 * libio/iofread_u.c: Likewise.
9265 * libio/iofsetpos.c: Likewise.
9266 * libio/iofsetpos64.c: Likewise.
9267 * libio/ioftell.c: Likewise.
9268 * libio/iofwrite.c: Likewise.
9269 * libio/iogetline.c: Likewise.
9270 * libio/iogets.c: Likewise.
9271 * libio/iogetwline.c: Likewise.
9272 * libio/iolibio.h: Likewise.
9273 * libio/iopadn.c: Likewise.
9274 * libio/iopopen.c: Likewise.
9275 * libio/ioseekoff.c: Likewise.
9276 * libio/ioseekpos.c: Likewise.
9277 * libio/iosetbuffer.c: Likewise.
9278 * libio/iosetvbuf.c: Likewise.
9279 * libio/ioungetc.c: Likewise.
9280 * libio/ioungetwc.c: Likewise.
9281 * libio/iovdprintf.c: Likewise.
9282 * libio/iovsprintf.c: Likewise.
9283 * libio/iovsscanf.c: Likewise.
9284 * libio/libioP.h: Likewise.
9285 * libio/memstream.c: Likewise.
9286 * libio/obprintf.c: Likewise.
9287 * libio/oldfileops.c: Likewise.
9288 * libio/oldiofclose.c: Likewise.
9289 * libio/oldiofdopen.c: Likewise.
9290 * libio/oldiofgetpos.c: Likewise.
9291 * libio/oldiofgetpos64.c: Likewise.
9292 * libio/oldiofopen.c: Likewise.
9293 * libio/oldiofsetpos.c: Likewise.
9294 * libio/oldiofsetpos64.c: Likewise.
9295 * libio/oldiopopen.c: Likewise.
9296 * libio/oldstdfiles.c: Likewise.
9297 * libio/putc.c: Likewise.
9298 * libio/setbuf.c: Likewise.
9299 * libio/setlinebuf.c: Likewise.
9300 * libio/stdfiles.c: Likewise.
9301 * libio/stdio.c: Likewise.
9302 * libio/strops.c: Likewise.
9303 * libio/vasprintf.c: Likewise.
9304 * libio/vscanf.c: Likewise.
9305 * libio/vsnprintf.c: Likewise.
9306 * libio/vswprintf.c: Likewise.
9307 * libio/wfiledoalloc.c: Likewise.
9308 * libio/wfileops.c: Likewise.
9309 * libio/wgenops.c: Likewise.
9310 * libio/wstrops.c: Likewise.
9311 * malloc/mtrace.c: Likewise.
9312 * misc/error.c: Likewise.
9313 * misc/syslog.c: Likewise.
9314 * nss/getXXbyYY_r.c: Likewise.
9315 * nss/getXXent_r.c: Likewise.
9316 * nss/hosts-lookup.c: Likewise.
9317 * stdio-common/getw.c
9318 * stdio-common/printf-prs.c: Likewise.
9319 * stdio-common/printf_fp.c: Likewise.
9320 * stdio-common/printf_size.c: Likewise.
9321 * stdio-common/putw.c: Likewise.
9322 * stdio-common/scanf.c: Likewise.
9323 * stdio-common/sprintf.c: Likewise.
9324 * stdio-common/tmpfile64.c: Likewise.
9325 * stdio-common/vfprintf.c: Likewise.
9326 * stdio-common/vfscanf.c: Likewise.
9327 * stdlib/strfmon.c: Likewise.
9328 * sunrpc/auth_des.c: Likewise.
9329 * sunrpc/auth_none.c: Likewise.
9330 * sunrpc/auth_unix.c: Likewise.
9331 * sunrpc/authdes_prot.c: Likewise.
9332 * sunrpc/authuxprot.c: Likewise.
9333 * sunrpc/clnt_perr.c: Likewise.
9334 * sunrpc/clnt_raw.c: Likewise.
9335 * sunrpc/clnt_tcp.c: Likewise.
9336 * sunrpc/clnt_udp.c: Likewise.
9337 * sunrpc/clnt_unix.c: Likewise.
9338 * sunrpc/key_call.c: Likewise.
9339 * sunrpc/key_prot.c: Likewise.
9340 * sunrpc/openchild.c: Likewise.
9341 * sunrpc/pm_getmaps.c: Likewise.
9342 * sunrpc/pm_getport.c: Likewise.
9343 * sunrpc/pmap_clnt.c: Likewise.
9344 * sunrpc/pmap_prot.c: Likewise.
9345 * sunrpc/pmap_prot2.c: Likewise.
9346 * sunrpc/pmap_rmt.c: Likewise.
9347 * sunrpc/rpc_cmsg.c: Likewise.
9348 * sunrpc/rpc_prot.c: Likewise.
9349 * sunrpc/svc_authux.c: Likewise.
9350 * sunrpc/svc_raw.c: Likewise.
9351 * sunrpc/svc_simple.c: Likewise.
9352 * sunrpc/svc_tcp.c: Likewise.
9353 * sunrpc/svc_udp.c: Likewise.
9354 * sunrpc/svc_unix.c: Likewise.
9355 * sunrpc/xdr.c: Likewise.
9356 * sunrpc/xdr_array.c: Likewise.
9357 * sunrpc/xdr_mem.c: Likewise.
9358 * sunrpc/xdr_rec.c: Likewise.
9359 * sunrpc/xdr_ref.c: Likewise.
9360 * sunrpc/xdr_stdio.c: Likewise.
9361 * sysdeps/generic/_strerror.c: Likewise.
9362 * sysdeps/generic/printf_fphex.c: Likewise.
9363 * sysdeps/generic/tmpfile.c: Likewise.
9364 * sysdeps/gnu/errlist.awk: Likewise.
9365 * sysdeps/gnu/errlist.c: Likewise.
9367 * libio/Makefile (routines): Remove iosprint.
9368 * libio/iosprintf.c: Removed
9371 2002-02-24 Ulrich Drepper <drepper@redhat.com>
9373 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
9374 non_dynamic_init and exported now.
9375 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
9376 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
9378 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
9379 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9380 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9382 2002-02-23 Ulrich Drepper <drepper@redhat.com>
9384 * elf/dl-close.c (free_slotinfo): Check for end of list and return
9387 * locale/iso-639.def: Add language codes for Walloon.
9389 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
9390 total number of relocations performed.
9392 * elf/sprof.c (load_profdata): If do_test provide information as
9393 to why loading failed.
9394 * elf/dl-profile.c (_dl_start_profile): Initialize all of
9397 * csu/set-init.c: Moved to...
9398 * sysdeps/mach/hurd/set-init.c: ...here. New file.
9399 * csu/Makefile: Don't compile set-init.
9400 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
9401 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
9403 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9404 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9405 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
9407 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
9410 2002-02-22 Ulrich Drepper <drepper@redhat.com>
9412 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
9413 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
9414 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
9415 (_dl_deallocate_tls): New function.
9416 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
9419 2002-02-21 Jakub Jelinek <jakub@redhat.com>
9421 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
9422 * stdio-common/tst-fseek.c (main): Add test for this.
9424 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
9426 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
9428 2002-02-19 Jakub Jelinek <jakub@redhat.com>
9430 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
9431 pointer before dereferencing.
9433 2002-02-18 Roland McGrath <roland@frob.com>
9435 * sysdeps/mach/hurd/times.c: Fix typo in last change.
9437 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
9438 Use task_policy in place of task_priority.
9440 * sysdeps/generic/bits/mman.h
9441 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
9442 * sysdeps/mach/msync.c: New file.
9444 * sysdeps/mach/powerpc/syscall.S: New file.
9446 * mach/msg.c [MACH_MSG_OVERWRITE]
9447 (__mach_msg_trap, __mach_msg_overwrite): New functions.
9448 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
9450 * sysdeps/mach/configure.in: Check for clock.defs to put into
9451 mach_interface_list.
9452 * sysdeps/mach/configure: Regenerated.
9454 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
9455 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
9456 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
9457 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
9458 (mach-shortcuts): Add device_read_overwrite_request,
9459 device_read_overwrite, vm_read_overwrite, thread_switch.
9461 * configure.in (base_machine): Set to $machine by default.
9462 * configure: Regenerated.
9464 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
9465 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
9466 * sysdeps/mach/configure: Regenerated.
9467 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
9469 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
9471 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
9473 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
9474 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
9476 2002-02-17 Roland McGrath <roland@frob.com>
9478 * sysdeps/mach/hurd/times.c
9479 [NO_CREATION_TIME] (startup_time): New static variable.
9480 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
9481 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9482 creation_time from task_basic_info.
9483 (__times): Use __gettimeofday instead of __host_get_time.
9485 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9486 Use untyped Mach IPC message format.
9488 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9490 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9491 _S_catch_exception_raise_state_identity,
9492 _hurdsig_fault_catch_exception_raise_state,
9493 _hurdsig_fault_catch_exception_raise_state_identity.
9495 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9497 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9498 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9500 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9501 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9503 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9504 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
9505 them as no-op macros.
9506 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9507 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9509 * sysdeps/powerpc/dl-machine.h
9510 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9512 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9513 Use untyped Mach IPC message format.
9515 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9516 Handle untyped Mach IPC message formats.
9518 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9519 Expect different argument conventions when this is defined.
9520 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9521 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9522 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9523 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9524 for OSF Mach variant.
9525 (faulted): Use mig_reply_error_t for REPLY.
9526 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9527 in __thread_set_exception_ports call.
9528 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9529 __mach_port_set_attributes in place of __mach_port_set_qlimit.
9531 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9532 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9533 on Darwin, which includes bogons.
9535 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9536 variable LOADBASE so it's not declared when it's not used.
9538 2002-02-16 Roland McGrath <roland@frob.com>
9540 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9541 to use BI.creation_time.
9543 * mach/Machrules (MIG): Add -x c to CPP value passed down.
9545 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9546 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9547 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9548 host_page_size instead of vm_statistics.
9550 * sysdeps/mach/Makefile (mach-before-compile): Don't include
9551 mach_interface.h here, since not all variants use that name.
9553 * sysdeps/mach/configure.in: Add some checks for Mach headers
9554 to ensure a sane installation.
9555 (mach_interface_list): Define this variable by checking for .defs
9556 files found in various variants.
9557 * configure.in (mach_interface_list): AC_SUBST this.
9558 * config.make.in (mach-interface-list): New substituted variable.
9559 * mach/Makefile (user-interfaces): Define this using the value
9560 of $(mach-interface-list) instead of mach, mach4.
9561 Updated other references to mach_interface to use it as well.
9563 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9565 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9566 mig_reply_error_t for OSF Mach variant.
9568 * mach/Makefile (routines): Remove bootprivport.
9569 * mach/bootprivport.c: File removed. It has never been used.
9571 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9572 Grok the OSF flavor of message format.
9573 (mach_msg_destroy_port): For MAKE_SEND and
9574 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9575 no-senders notification.
9577 2002-02-06 Roland McGrath <roland@frob.com>
9579 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9580 to here if 2.0 compatibility enabled ...
9581 (libc: GLIBC_2.1.3): ... from here.
9583 2002-02-15 Ulrich Drepper <drepper@redhat.com>
9585 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9587 * elf/dl-close.c (_dl_close): Likewise.
9589 2002-02-14 Ulrich Drepper <drepper@redhat.com>
9591 * elf/Makefile: Add rules to build and run tst-tls8.
9592 * elf/tst-tls8.c: New file.
9593 * elf/tst-tlsmod4.c: New file.
9595 * stdlib/test-a64l.c (tests): Add more test cases.
9597 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9598 Reported by Walter Harms <WHarms@bfs.de>.
9600 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
9602 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9603 definitions for struct sigcontext.
9604 Suggested by David Mosberger-Tang.
9606 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9608 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
9609 for removing reference of module in slotinfo list.
9610 (_dl_close): Use remove_slotinfo.
9611 * sysdeps/generic/dl-tls.c: General pretty printing.
9612 (oom): Define only if SHARED.
9613 (_dl_next_tls_modid): Correct starting point for the case we assume
9614 there is a gap. Add missing instruction grouping (doh!). Correct
9615 tests for reaching maximum index.
9616 * elf/Makefile: Add rules to build and run tst-tls7.
9617 * elf/tst-tls7.c: New file.
9618 * elf/tst-tlsmod3.c: New file.
9620 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9622 * elf/tst-tlsmod2.c: Likewise.
9624 * elf/dl-close.c (_dl_close): When closing an object using TLS
9625 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9626 true. Increment dl_tls_generation only if we closed any TLS-using
9628 * elf/tst-tls6.c: New file.
9629 * elf/Makefile: Add rules to build and run tst-tls6.
9631 * po/da.po: Update from translation team.
9633 * locale/categories.def: Fix typo [PR libc/2948].
9634 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9636 * locale/iso-4217.def: Update from official version [PR libc/2950].
9637 * glibcbug.in: Honor TMPDIR [PR libc/2951].
9638 * locale/programs/ld-collate.c (collate_finish): Bail out with a
9639 message if input is too confusion instead of using assert.
9640 (collate_read): Don't crash on unknown symbol [PR libc/2952].
9641 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9643 * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9644 * elf/tst-tls2.c: Likewise.
9645 * elf/tst-tls3.c: Likewise.
9647 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9649 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9651 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9653 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9654 if this is really necessary.
9656 * elf/dl-close.c (_dl_close): Implement freeing entries in the
9658 (free_mem): Free memory for the slotinfo array if possible.
9660 2002-02-12 Andreas Schwab <schwab@suse.de>
9662 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9664 2002-02-12 Ulrich Drepper <drepper@redhat.com>
9666 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9668 (oom): New function.
9669 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9670 (_dl_determine_tlsoffset): Likewise.
9671 (_dl_allocate_tls): Likewise.
9672 (__TLS_GET_ADDR): Define if not already defined.
9673 (_dl_tls_symaddr): New function.
9674 (allocate_and_init): New function.
9675 (__tls_get_addr): Actually implement handling of generation counter
9676 and deferred allocation.
9677 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9678 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9680 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9681 Declare _dl_tls_symaddr.
9682 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9684 * include/link.h (struct link_map): Remove l_tls_nextimage and
9686 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9687 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9688 (_dl_vsym): Likewise.
9689 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9691 (dl_main): Allow PT_TLS be present for empty segment. Remove
9692 nextimage list handling. Instead add all modules using TLS to
9693 dl_tls_dtv_slotinfo_list.
9694 * elf/dl-open.c (dl_open_worker): After successfully loading all
9695 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9696 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9697 empty segment don't do anything. Remove handling of initimage list.
9698 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9699 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9700 * elf/dl-minimal.c: Define __libc_memalign.
9701 * elf/dl-support.c: Remove _dl_initimage_list. Add
9702 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9704 * include/stdlib.h: Declare __libc_memalign.
9706 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9707 * elf/tst-tls4.c: New file.
9708 * elf/tst-tls5.c: New file.
9709 * elf/tst-tlsmod2.c: New file.
9711 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9713 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9715 * elf/tst-tls1.c: Use test-skeleton.c.
9716 * elf/tst-tls2.c: Likewise.
9717 * elf/tst-tls3.c: Likewise.
9719 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9721 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9723 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9725 2002-02-10 Ulrich Drepper <drepper@redhat.com>
9727 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9729 * elf/tst-tls3.c: New file.
9730 * elf/tst-tlsmod1.c: New file.
9731 * elf/Makefile: Add rules to build and run tst-tls3.
9733 * sysdeps/i386/dl-machine.h: Include <tls.h>.
9734 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9737 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9739 * po/fr.po: Update from translation team.
9741 * elf/tls-macros.h: Add alternative macros for use in PIC.
9743 * elf/dl-lookup.c: Include <tls.h>.
9744 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9746 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9747 required by passing pointer to last element of the list.
9749 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9750 l_tls_initimage to a place where it actually is performed.
9752 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9753 after globfree() calls.
9755 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9756 (openaux): Pass open_mode as new last argument to _dl_map_object.
9757 (_dl_map_object_deps): Add new argument open_mode. Initialize
9758 open_mode element of args variable with it.
9759 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9760 _dl_map_object_deps.
9761 * elf/rtld.c (dl_main): Add zero as last parameter to
9762 _dl_map_object_deps call.
9763 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9764 * elf/nodlopen2.c: New file.
9765 * elf/nodlopenmod2.c: New file.
9766 * elf/Makefile: Add rules to build and run nodlopen2.
9768 * elf/tst-tls1.c: Move TLS helper macros to...
9769 * elf/tls-macros.h: ...here. New file.
9770 * elf/tst-tls2.c: New file.
9771 * elf/Makefile (tests): Add tst-tls2.
9772 (distribute): Add tls-macros.h.
9774 * po/sv.po: Update from translation team.
9776 * elf/tst-tls1.c (main): Add complete set of tests. Split
9777 architecture specific definitions from the actual test code.
9779 * po/tr.po: Update from translation team.
9781 2002-02-09 Ulrich Drepper <drepper@redhat.com>
9783 * elf/Makefile (tests): Add tst-tls1.
9784 * elf/tst-tls1.c: New file.
9786 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9787 alignment of TCB for now.
9789 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9790 initialization image for the application itself.
9792 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9793 loop to initialize TLS block.
9795 2002-02-08 Richard Henderson <rth@redhat.com>
9797 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9798 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9800 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9802 2002-02-09 Jakub Jelinek <jakub@redhat.com>
9804 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9806 2002-02-08 Ulrich Drepper <drepper@redhat.com>
9808 * po/ca.po: Update from translation team.
9809 * po/sk.po: Likewise.
9811 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9812 (dl_main): Move dtv/static TLS handling before relocation.
9813 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
9814 TLS_INIT_TP to allocate and install the dtv/static TLS block.
9815 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9816 so far uses TLS initialize GL(dl_tls_static_size) and
9817 GL(dl_tls_static_align) to account for the TCB.
9818 (_dl_allocate_tls): New function.
9819 * sysdeps/generic/ldsodefs.h (rtld_global): Add
9820 _dl_initial_dtv_malloced.
9822 * configure.in: Test for __builtin_memset more realistically.
9824 * csu/version.c (banner): If TLS support is available say so.
9826 2002-02-04 H.J. Lu <hjl@gnu.org>
9828 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9830 (__dl_runtime_resolve): Likewise.
9832 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9835 2001-11-15 H.J. Lu <hjl@gnu.org>
9837 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9838 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9840 * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9842 2002-02-07 H.J. Lu <hjl@gnu.org>
9844 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9846 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9849 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9851 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9853 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9854 ___tls_get_addr_internal.
9855 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9857 * po/ko.po: Update from translation team.
9859 2002-02-07 Jakub Jelinek <jakub@redhat.com>
9861 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9862 attribute, change __pad{1,2} type to unsigned int.
9863 (struct stat64): Remove packed attribute.
9865 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9867 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9869 2002-02-07 Andreas Schwab <schwab@suse.de>
9871 * configure.in: Fix check for -zcombreloc.
9873 2002-02-06 H.J. Lu <hjl@gnu.org>
9875 * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9876 * configure.in: Check if __builtin_memset really works.
9877 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9878 __GNUC_PREREQ (2, 96) before using __builtin_memset.
9880 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9882 * io/bug-ftw3.c (main): Don't try the test if root.
9884 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
9886 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9888 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9889 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9890 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9892 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9893 a weak alias for __clone.
9894 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9895 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9896 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9897 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9898 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9899 a weak alias for __mmap64.
9901 2002-02-05 H.J. Lu <hjl@gnu.org>
9903 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9904 (atomic_add): Likewise.
9905 (compare_and_swap): Likewise.
9906 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9908 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9910 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9912 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9913 alignment of the TCB and store total size and alignment of static
9914 TLS block in _dl_tls_static_size and _dl_tls_static_align.
9915 tls_index is a typedef.
9916 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9917 _dl_tls_static_align.
9918 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9919 * elf/dl-support.c: Define _dl_tls_static_size and
9920 _dl_tls_static_align.
9922 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9924 * configure.in: Add --without-tls option.
9925 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9926 --without-tls is given.
9928 * sysdeps/generic/dl-tls.c: Include <tls.h>.
9930 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9932 2002-02-06 Roland McGrath <roland@frob.com>
9934 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9935 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9937 * scripts/versions.awk: Improve error message for missing version.
9938 Each version inherits from the last one only if they have the same
9939 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9940 but not GLIBC_x and FOO_y.
9942 * scripts/firstversions.awk: Handle libraries that don't have each
9943 particular version named in the third column of shlib-versions.
9945 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9947 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9949 * Versions.def [ld]: Add GLIBC_2.3.
9950 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9951 * elf/Makefile (dl-routines): Add dl-tls.
9952 (distribute): Add dl-tls.h.
9953 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9954 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9955 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9956 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9957 along with the other info in the link map. Change queueing of init
9958 images for double linked list. Use _dl_next_tls_modid to compute
9960 * elf/rtld.c (_dl_start_final): Store alignment requirement
9961 along with the other info in rtld map and executable map.
9962 (dl_main): Add ld.so to the init image list if necessary. Compute
9963 final module ID with _dl_next_tls_modid.
9964 * include/link.h (struct link_map): Add l_tls_previmage and
9966 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9967 * sysdeps/i386/elf/Versions: New file.
9968 * sysdeps/generic/dl-tls.c: New file.
9969 * sysdeps/generic/dl-tls.h: New file.
9970 * sysdeps/i386/dl-tls.h: New file.
9972 2002-02-06 Roland McGrath <roland@frob.com>
9974 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9975 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9977 2002-01-05 Roland McGrath <roland@frob.com>
9979 * sysdeps/mach/configure.in: New file.
9980 * sysdeps/mach/configure: New generated file.
9982 * mach/Makefile (user-interfaces): Remove default_pager_helper.
9983 It has never been used by anything.
9985 2002-02-06 H.J. Lu <hjl@gnu.org>
9987 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9990 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9992 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9993 attribute((packed)) to counter stupid people misusing gcc options.
9994 (struct stat64): Likewise.
9996 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9998 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
9999 the variables which are used as booleans.
10001 2002-02-06 Andreas Jaeger <aj@suse.de>
10003 * include/libc-symbols.h (INTUSE): Renamed from INT.
10004 * elf/dl-deps.c: Change users.
10005 * sysdeps/generic/dl-sysdep.c: Likewise.
10006 * sysdeps/generic/dl-cache.c: Likewise.
10007 * elf/dl-reloc.c: Likewise.
10008 * elf/rtld.c: Likewise.
10009 * elf/dl-version.c: Likewise.
10010 * elf/dl-load.c: Likewise.
10011 * elf/dl-dst.h: Likewise.
10012 * elf/dl-init.c: Likewise.
10013 * elf/dl-error.c: Likewise.
10014 * elf/dl-fini.c: Likewise.
10015 * elf/dl-runtime.c: Likewise.
10016 * elf/do-lookup.h: Likewise.
10018 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
10020 * stdio-common/_itowa.h: Likewise.
10022 2002-02-05 Ulrich Drepper <drepper@redhat.com>
10024 * elf/dl-minimal.c: Define _itoa_lower_digits.
10026 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
10029 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
10030 loading modules with the DF_STATIC_TLS flag set.
10031 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
10033 * include/link.h (struct link_map): Add l_flags field.
10034 * elf/elf.h (DF_STATIC_TLS): New definition.
10036 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
10037 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
10039 * elf/rtld.c (process_dl_debug): Correct printing help message.
10040 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
10043 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
10044 definition and pass &errno in use of this variable.
10045 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
10047 2002-02-04 Andreas Schwab <schwab@suse.de>
10049 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
10050 * locale/programs/charmap-dir.c: Wrap calls that output messages
10051 with WITH_CUR_LOCALE. Include "localedef.h" first.
10052 * locale/programs/charmap.c: Likewise.
10053 * locale/programs/ld-address.c: Likewise.
10054 * locale/programs/ld-collate.c: Likewise.
10055 * locale/programs/ld-ctype.c: Likewise.
10056 * locale/programs/ld-identification.c: Likewise.
10057 * locale/programs/ld-measurement.c: Likewise.
10058 * locale/programs/ld-messages.c: Likewise.
10059 * locale/programs/ld-monetary.c: Likewise.
10060 * locale/programs/ld-name.c: Likewise.
10061 * locale/programs/ld-numeric.c: Likewise.
10062 * locale/programs/ld-paper.c: Likewise.
10063 * locale/programs/ld-telephone.c: Likewise.
10064 * locale/programs/ld-time.c: Likewise.
10065 * locale/programs/linereader.c: Likewise.
10066 * locale/programs/linereader.h: Likewise.
10067 * locale/programs/localedef.c: Likewise.
10068 * locale/programs/locfile.c: Likewise.
10069 * locale/programs/repertoire.c: Likewise.
10071 2002-02-05 Ulrich Drepper <drepper@redhat.com>
10073 * elf/rtld.c (_dl_start_final): Determine load address to locate
10074 ehdr with GL(dl_rtld_map).l_map_start.
10076 * po/ca.po: Update from translation team.
10078 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
10079 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
10081 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10082 _dl_tls_module_cnt.
10083 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
10085 2002-02-04 Ulrich Drepper <drepper@redhat.com>
10087 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
10088 * include/link.h (struct link_map): Add various members for TLS
10090 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
10091 _rtld_tlsoffset, add _dl_initimage_list.
10092 * sysdeps/i386/dl-lookupcfg.h: New file.
10093 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
10094 TLS relocation. When using TLS we now use RESOLVE_MAP.
10095 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
10098 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
10101 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
10102 thread-pointer as soon as possible.
10103 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
10104 elements in rtld_global.
10105 * sysdeps/generic/tls.h: New file.
10106 * elf/Makefile (distribute): Add tls.h.
10107 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
10108 relocations. Not complete yet.
10110 * resolv/resolv.h: Allow user to define __need_res_state and only
10111 define __res_start structure then.
10112 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
10114 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
10115 dl_cpuclock_offset initialization to _dl_start_final.
10116 (_dl_show_auxv): Avoid unnecessary sign extension.
10117 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
10119 2002-02-03 Ulrich Drepper <drepper@redhat.com>
10121 * config.h.in: Add HAVE_TLS_SUPPORT.
10122 * sysdeps/i386/elf/configure.in: New file.
10124 2002-02-03 Andreas Schwab <schwab@suse.de>
10126 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
10127 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
10129 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
10131 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
10132 alloca if the memory reqirements are too high.
10134 2002-02-03 Ulrich Drepper <drepper@redhat.com>
10136 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
10137 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
10138 the former is available anyway and speed isn't important here.
10139 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
10140 * elf/dl-version.c (match_symbol): Likewise.
10141 (_dl_check_map_versions): Likewise.
10142 * elf/rtld.c (process_envvars): Likewise.
10143 (print_statistics): Likewise.
10144 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
10145 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
10146 bases. Add assert to catch uses of unimplemented features.
10147 (__strsep): Add assert to catch uses of unimplemented features.
10148 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
10149 and avoid inline optimization.
10150 * elf/rtld.c (process_envvars): Likewise.
10151 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
10152 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
10153 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
10155 2002-02-02 Ulrich Drepper <drepper@redhat.com>
10157 * stdio-common/_itoa.h: Minor simplifications of the code.
10158 * stdio-common/_itoa.c: Likewise.
10160 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
10161 instead of _dl_printf for debugging info output.
10163 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
10164 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
10166 2002-02-01 H.J. Lu <hjl@gnu.org>
10168 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
10169 (atomic_add): Likewise.
10170 (compare_and_swap): Return 0 only when failed to compare. Use
10173 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
10176 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
10178 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
10180 2002-02-02 Ulrich Drepper <drepper@redhat.com>
10182 * elf/dl-minimal.c (__strsep): New minimal implementation.
10184 2002-02-02 Paul Eggert <eggert@twinsun.com>
10186 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
10187 (__mktime_internal): If no tm_isdst is requested, prefer solutions
10188 with tm_isdst > 0 when the requested time falls within a
10189 spring-forward gap [PR libc/2894].
10191 2002-02-03 Andreas Schwab <schwab@suse.de>
10193 * stdio-common/tst-rndseek.c: Increase timeout.
10195 2002-02-02 Ulrich Drepper <drepper@redhat.com>
10197 Change ld.so to not use functions which are exported. One cannot
10198 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
10200 * include/libc-symbols.h: Define INT and INTDEF.
10201 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
10202 _dl_signal_error_internal, _dl_map_object_internal,
10203 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
10204 _dl_lookup_versioned_symbol_internal,
10205 _dl_relocate_object_internal, _dl_debug_state_internal,
10206 _dl_start_profile_internal, and _dl_unload_cache_internal.
10207 * include/dlfcn.h: Declare _dl_catch_error_internal.
10208 * elf/rtld.c: Use INT for calls to any of the *_internal functions
10209 above. Add INTDEF to function definitions.
10210 * elf/dl-debug.c: Likewise.
10211 * elf/dl-deps.c: Likewise.
10212 * elf/dl-dst.h: Likewise.
10213 * elf/dl-error.c: Likewise.
10214 * elf/dl-fini.c: Likewise.
10215 * elf/dl-init.c: Likewise.
10216 * elf/dl-load.c: Likewise.
10217 * elf/dl-lookup.c: Likewise.
10218 * elf/dl-misc.c: Likewise.
10219 * elf/dl-open.c: Likewise.
10220 * elf/dl-profile.c: Likewise.
10221 * elf/dl-reloc.c: Likewise.
10222 * elf/dl-runtime.c: Likewise.
10223 * elf/dl-version.c: Likewise.
10224 * elf/do-lookup.h: Likewise.
10225 * sysdeps/generic/dl-cache.c: Likewise.
10226 * sysdeps/generic/dl-sysdep.c: Likewise.
10227 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
10228 instead of _dl_init.
10229 * sysdeps/arm/dl-machine.h: Likewise.
10230 * sysdeps/cris/dl-machine.h: Likewise.
10231 * sysdeps/hppa/dl-machine.h: Likewise.
10232 * sysdeps/i386/dl-machine.h: Likewise.
10233 * sysdeps/ia64/dl-machine.h: Likewise.
10234 * sysdeps/m68k/dl-machine.h: Likewise.
10235 * sysdeps/mips/dl-machine.h: Likewise.
10236 * sysdeps/mips/mips64/dl-machine.h: Likewise.
10237 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10238 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10239 * sysdeps/sh/dl-machine.h: Likewise.
10240 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10241 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10242 * sysdeps/x86_64/dl-machine.h: Likewise.
10243 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
10245 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
10246 and _dl_debug_initialize.
10248 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
10250 * elf/rtld.c (dl_main): Avoid strrchr.
10251 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
10252 result of readlink. Search from the back for '/'.
10254 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
10255 strncpy if possible.
10257 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
10259 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
10260 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
10261 strspn, and strcspn.
10262 (process_envvars): Don't use strcspn.
10264 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
10265 (_dl_dst_substitute): Likewise.
10267 2002-02-01 Ulrich Drepper <drepper@redhat.com>
10269 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
10270 code which is never used when relocating ld.so itself.
10272 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
10273 starting ld.so itself. Move l_addr variable initialization closer
10275 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
10277 2002-02-01 Jakub Jelinek <jakub@redhat.com>
10279 * Versions.def (libc): Add GLIBC_PRIVATE.
10280 (libdb, libnss_db, libdb1): Remove.
10281 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
10282 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
10283 (libpthread): Add GLIBC_PRIVATE.
10284 (libresolv): Likewise, remove GLIBC_2.1.
10285 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
10286 GLIBC_2.2.3, GLIBC_2.3.
10287 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
10288 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
10289 _dl_sym, _dl_vsym): Likewise.
10290 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
10291 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
10292 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
10293 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
10294 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
10295 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
10296 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
10297 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
10299 (_dl_object_relocation_scope): Remove.
10300 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
10301 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
10302 __gconv_cache): Move to GLIBC_PRIVATE.
10303 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
10304 __internal_setnetgrent): Likewise.
10305 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
10306 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
10307 * locale/Versions (__collate_element_hash, __collate_element_strings,
10308 __collate_symbol_classes, __collate_symbol_hash,
10309 __collate_symbol_strings, _nl_current_LC_COLLATE,
10310 _nl_current_LC_CTYPE): Likewise.
10311 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
10312 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
10313 (libnss_nis, libnss_nisplus): Likewise.
10314 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
10315 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
10316 (libnss_files): Move all symbols to GLIBC_PRIVATE.
10317 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
10318 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
10319 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
10320 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
10321 __ns_get16, __ns_samename): Likewise.
10322 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
10323 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
10325 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
10326 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
10327 __libc_connect): Likewise.
10328 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
10330 * stdlib/Versions (__libc_system): Likewise.
10331 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
10332 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
10333 * sysdeps/ia64/fpu/Versions: Likewise.
10334 * sysdeps/ia64/Versions: Likewise.
10335 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
10336 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
10338 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
10339 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
10340 __libc_sigaction): Likewise.
10341 * termios/Versions (__libc_tcdrain): Likewise.
10343 * misc/sys/cdefs (__attribute_noinline__): Define.
10344 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
10345 __attribute_noinline__.
10347 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
10348 * elf/dl-xstat64.c: New file.
10349 * elf/dl-fxstat64.c: New file.
10350 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
10351 don't export __fxstat64 at multiple versions.
10352 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
10353 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
10355 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
10357 * locale/program/ld-collate.c (collate_finish): Assign a wide
10358 char collation sequence value to multi character collating
10359 elements, and avoid over writing by non-character elements.
10361 2002-02-01 Ulrich Drepper <drepper@redhat.com>
10363 * elf/Makefile (distribute): Add dl-procinfo.c.
10364 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
10365 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10367 2002-02-01 Jakub Jelinek <jakub@redhat.com>
10369 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
10371 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
10372 _rtld_global struct.
10373 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10374 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
10375 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10376 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
10377 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
10378 _dl_fpu_control_set): Remove unused externs.
10379 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
10380 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
10381 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
10382 related variables in _rtld_global struct.
10383 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
10384 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
10387 2002-02-01 Ulrich Drepper <drepper@redhat.com>
10389 * sysdeps/generic/dl-procinfo.c: New file.
10391 2002-02-01 Andreas Schwab <schwab@suse.de>
10393 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
10395 2002-02-01 Ulrich Drepper <drepper@redhat.com>
10397 * elf/rtld.c (_dl_start): Mark as internal_function.
10398 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
10400 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
10401 General pretty printing.
10403 2002-01-31 Ulrich Drepper <drepper@redhat.com>
10405 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
10406 * elf/dl-reloc.c: Pretty printing.
10407 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
10408 procinfo-related variables in rtld_global struct.
10409 * elf/dl-support.c: Likewise.
10410 * elf/rtld.c: Likewise.
10411 * sysdeps/i386/i686/Makefile: Likewise.
10412 * sysdeps/i386/i686/hp-timing.c: Likewise.
10413 * sysdeps/i386/i686/hp-timing.h: Likewise.
10414 * sysdeps/ia64/Makefile: Likewise.
10415 * sysdeps/ia64/hp-timing.c: Likewise.
10416 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
10417 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
10418 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
10419 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
10420 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10421 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
10422 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
10423 * sysdeps/x86_64/Makefile: Likewise.
10425 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
10426 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
10427 _dl_debug_fd to rtld_global.
10428 * elf/Versions: Likewise.
10429 * elf/dl-close.c: Likewise.
10430 * elf/dl-iteratephdr.c: Likewise.
10431 * elf/dl-lookup.c: Likewise.
10432 * elf/dl-misc.c: Likewise.
10433 * elf/dl-open.c: Likewise.
10434 * elf/dl-support.c: Likewise.
10435 * elf/do-lookup.h: Likewise.
10436 * elf/rtld.c: Likewise.
10437 * sysdeps/generic/dl-cache.c: Likewise.
10438 * sysdeps/generic/dl-sysdep.c: Likewise.
10439 * sysdeps/ia64/Versions: Likewise.
10440 * sysdeps/unix/clock_gettime.c: Likewise.
10441 * sysdeps/unix/clock_settime.c: Likewise.
10442 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10443 * sysdeps/sparc/Versions: Removed.
10444 * sysdeps/i386/i686/Versions : Removed.
10445 * sysdeps/x86_64/Versions: Removed.
10446 * configure.in: Define HAVE_PROTECTED if .protected is available.
10447 * config.h.in: Add entry for HAVE_PROTECTED.
10449 2002-01-31 Jakub Jelinek <jakub@redhat.com.
10451 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
10452 code in struct _rtld_global. Export this struct, remove all
10453 exports for the signal variables.
10454 * sysdeps/arm/dl-machine: Likewise.
10455 * sysdeps/generic/dl-origin: Likewise.
10456 * sysdeps/generic/dl-sysdep: Likewise.
10457 * sysdeps/generic/dl-cache: Likewise.
10458 * sysdeps/hppa/dl-fptr: Likewise.
10459 * sysdeps/hppa/dl-machine: Likewise.
10460 * sysdeps/cris/dl-machine: Likewise.
10461 * sysdeps/i386/dl-machine: Likewise.
10462 * sysdeps/ia64/dl-machine: Likewise.
10463 * sysdeps/m68k/dl-machine: Likewise.
10464 * sysdeps/mach/hurd/dl-sysdep: Likewise.
10465 * sysdeps/mips/mips64/dl-machine: Likewise.
10466 * sysdeps/mips/dl-machine: Likewise.
10467 * sysdeps/powerpc/elf/libc-start: Likewise.
10468 * sysdeps/powerpc/dl-machine: Likewise.
10469 * sysdeps/powerpc/dl-start: Likewise.
10470 * sysdeps/sparc/sparc32/dl-machine: Likewise.
10471 * sysdeps/sparc/sparc64/dl-machine: Likewise.
10472 * sysdeps/sh/dl-machine: Likewise.
10473 * sysdeps/s390/s390-32/dl-machine: Likewise.
10474 * sysdeps/s390/s390-64/dl-machine: Likewise.
10475 * sysdeps/unix/sysv/aix/libc-start: Likewise.
10476 * sysdeps/unix/sysv/aix/start-libc: Likewise.
10477 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
10478 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
10479 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
10480 * sysdeps/x86_64/dl-machine: Likewise.
10482 2002-01-31 Ulrich Drepper <drepper@redhat.com>
10484 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10487 2002-01-31 Andreas Schwab <schwab@suse.de>
10489 * sysdeps/posix/readv.c: Check for ssize_t overflow.
10491 2002-01-31 Andreas Schwab <schwab@suse.de>
10493 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10494 reference to _dl_pagesize.
10496 2002-01-30 Ulrich Drepper <drepper@redhat.com>
10498 * Versions.def [ld]: Add GLIBC_2.3.
10499 * elf/dl-addr.c: Move global variables for SHARED code in struct
10500 _rtld_global. Export this struct, remove all exports for the
10502 * elf/dl-close.c: Likewise.
10503 * elf/dl-conflict.c: Likewise.
10504 * elf/dl-debug.c: Likewise.
10505 * elf/dl-deps.c: Likewise.
10506 * elf/dl-dst.h: Likewise.
10507 * elf/dl-error.c: Likewise.
10508 * elf/dl-fini.c: Likewise.
10509 * elf/dl-init.c: Likewise.
10510 * elf/dl-iteratephdr.c: Likewise.
10511 * elf/dl-libc.c: Likewise.
10512 * elf/dl-load.c: Likewise.
10513 * elf/dl-lookup.c: Likewise.
10514 * elf/dl-minimal.c: Likewise.
10515 * elf/dl-object.c: Likewise.
10516 * elf/dl-open.c: Likewise.
10517 * elf/dl-profile.c: Likewise.
10518 * elf/dl-profstub.c: Likewise.
10519 * elf/dl-reloc.c: Likewise.
10520 * elf/dl-runtime.c: Likewise.
10521 * elf/dl-support.c: Likewise.
10522 * elf/dl-sym.c: Likewise.
10523 * elf/dl-version.c: Likewise.
10524 * elf/do-lookup.h: Likewise.
10525 * elf/do-rel.h: Likewise.
10526 * elf/dynamic-link.h: Likewise.
10527 * elf/rtld.c: Likewise.
10528 * sysdeps/generic/dl-cache.c: Likewise.
10529 * sysdeps/generic/dl-sysdep.c: Likewise.
10530 * sysdeps/generic/ldsodefs.h: Likewise.
10531 * sysdeps/generic/libc-start.c: Likewise.
10532 * sysdeps/i386/dl-machine.h: Likewise.
10533 * sysdeps/ia64/dl-fptr.c: Likewise.
10534 * sysdeps/ia64/dl-machine.h: Likewise.
10535 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10536 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10537 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10538 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10539 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10540 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10541 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10542 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10544 2002-01-29 Ulrich Drepper <drepper@redhat.com>
10546 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10548 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10550 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10552 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10554 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10556 2002-01-29 Ben Collins <bcollins@debian.org>
10558 * string/bits/string2.h (__mempcpy): Protect size arg for
10559 addition when using __builtin_memcpy.
10561 2002-01-29 Ulrich Drepper <drepper@redhat.com>
10563 * stdlib/Makefile (tests): Add tst-qsort.
10564 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
10566 * manual/signal.texi (Process Signal Mask): Document that
10567 pthread_sigmask, not sigprocmask, must be used in MT programs.
10568 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10570 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10572 * misc/Makefile (tests): Add tst-hsearch.
10573 * misc/tst-hsearch.c: New file.
10575 2002-01-18 Wolfram Gloger <wg@malloc.de>
10577 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10578 * malloc/malloc.h: Likewise.
10579 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10580 * malloc/arena.c: New file.
10581 * malloc/hooks.c: New file.
10582 * malloc/tst-mallocstate.c: New file.
10583 * malloc/Makefile: Add new testcase tst-mallocstate.
10584 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
10586 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10588 * stdlib/msort.c: Remove last patch. The optimization violates the
10589 same rule which qsort.c had problems with.
10591 2002-01-27 Paul Eggert <eggert@twinsun.com>
10593 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10594 to a pivot element that lies outside the array to be sorted, as
10595 ISO C99 requires that the comparison function be called only with
10596 addresses of array elements [PR libc/2880].
10598 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10600 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10601 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
10603 * timezone/asia: Update from tzdata2002b.
10604 * timezone/australasia: Likewise.
10605 * timezone/backward: Likewise.
10606 * timezone/europe: Likewise.
10607 * timezone/leapseconds: Likewise.
10608 * timezone/iso3166.tab: Likewise.
10609 * timezone/zone.tab: Likewise.
10611 2002-01-23 Richard Henderson <rth@redhat.com>
10613 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10615 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10617 * string/strxfrm.c: Allocate one more byte for rulearr and clear
10618 this element [PR libc/2855].
10620 * string/strcoll.c: Handle zero-length arguments specially
10623 2002-01-23 Jakub Jelinek <jakub@redhat.com>
10625 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10626 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10627 short lengths and constant src.
10628 (strcpy): Don't optimize for gcc 3.0+.
10629 (__stpcpy): For gcc 3.0+, don't use
10630 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10631 for short string literal src.
10633 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10635 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10638 2001-01-22 Paul Eggert <eggert@twinsun.com>
10640 * manual/llio.texi (Linked Channels, Cleaning Streams):
10641 Make it clearer that a just-opened input stream might need cleaning.
10643 2002-01-21 H.J. Lu <hjl@gnu.org>
10645 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10646 Don't use label at end of compound statement.
10648 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
10650 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10651 Remove test for negative integer arg; sin_pi does it correctly.
10653 2002-01-20 Ulrich Drepper <drepper@redhat.com>
10655 * nscd/Makefile (distribute): Filter out xmalloc.c.
10657 2002-01-19 Ulrich Drepper <drepper@redhat.com>
10659 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10660 Set offset if read end wasn't the buffer end.
10661 (_IO_file_seekoff_mmap): New function.
10662 (_IO_file_xsgetn_mmap): New function.
10663 (_IO_file_jumps_mmap): Use the two new functions.
10664 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10666 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10667 _IO_file_underflow_mmap.
10668 * libio/iofopen.c: Don't position file descriptor at end of file.
10669 * libio/tst-widetext.c: Improve error messages.
10670 * stdio-common/tst-rndseek.c: Likewise.
10672 2002-01-18 Ulrich Drepper <drepper@redhat.com>
10674 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10675 end of enum for !_GNU_SOURCE.
10676 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10677 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10678 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10679 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10680 values unless _GNU_SOURCE.
10682 * iconvdata/tcvn5712-1.c: Minor cleanups.
10684 2002-01-18 Andreas Schwab <schwab@suse.de>
10686 * sysdeps/unix/sysv/linux/configure.in
10687 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10689 2002-01-16 Roger Sayle <roger@eyesopen.com>
10691 * stdlib/msort.c (msort_with_tmp): Replace implementation with
10692 more efficient "Towers of Hanoi" mergesort.
10693 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10694 for generic, sizeof(int) and sizeof(long) variants respectively.
10696 2002-01-17 Ulrich Drepper <drepper@redhat.com>
10698 * manual/syslog.texi (openlog): Describe possible problems with
10700 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10702 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
10703 * nscd/connections.c (begin_drop_privileges): New function.
10704 (finish_drop_privileges): New function.
10705 (nscd_init): Call the new functions which also install all groups
10706 for the server user.
10707 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10708 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10710 2002-01-17 H.J. Lu <hjl@gnu.org>
10712 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10713 `const' from `got'.
10715 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
10717 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10718 instructions for pointer operations.
10719 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10721 2002-01-17 Andreas Jaeger <aj@suse.de>
10723 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10724 __uint128_t build-in.
10726 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10727 PowerPC, sync with 2.2 branch.
10729 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10731 * posix/getconf.c: Update copyright year.
10732 * nss/getent.c: Likewise.
10733 * nscd/nscd_nischeck.c: Likewise.
10734 * iconv/iconvconfig.c: Likewise.
10735 * iconv/iconv_prog.c: Likewise.
10736 * elf/ldconfig.c: Likewise.
10737 * catgets/gencat.c: Likewise.
10738 * csu/version.c: Likewise.
10739 * elf/ldd.bash.in: Likewise.
10740 * elf/sprof.c (print_version): Likewise.
10741 * locale/programs/locale.c: Likewise.
10742 * locale/programs/localedef.c: Likewise.
10743 * nscd/nscd.c (print_version): Likewise.
10744 * debug/xtrace.sh: Likewise.
10745 * malloc/memusage.sh: Likewise.
10746 * malloc/mtrace.pl: Likewise.
10748 2002-01-16 Andreas Schwab <schwab@suse.de>
10750 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10751 reliably remove "-ia64" from rtld name.
10753 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10755 * iconvdata/gb18030.c: Bug fixes and support for more characters.
10756 Patch by Yu Shao <yshao@redhat.com>.
10758 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
10760 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10761 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10762 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10764 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
10766 * sysdeps/s390/fpu/libm-test-ulps: Update.
10768 2002-01-11 Ulrich Drepper <drepper@redhat.com>
10770 * elf/elf.h: Update x86 relocations.
10772 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10774 * locale/programs/charmap.c (new_width): Check whether byte
10775 sequences for both ends of range have the same length.
10777 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10779 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10781 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10783 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10785 (__full_ieee754_sqrt): Add __attribute_used__.
10787 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10789 * sysdeps/generic/group_member.c (__group_member): Also check
10790 groups[0] [PR libc/2781].
10792 2002-01-08 Ulrich Drepper <drepper@redhat.com>
10794 * Makefile (distribute): Add scripts/cpp.
10795 * elf/Makefile (distribute): Add reldep6mod[01234].c,
10796 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10797 unwind-dw2-fde.h, and dwarf2.h.
10798 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10799 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10800 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10801 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10803 2002-01-07 Roland McGrath <roland@frob.com>
10805 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10806 volatile on type of ARGC so the compiler doesn't get clever.
10808 2002-01-07 Andreas Jaeger <aj@suse.de>
10810 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10811 * sysdeps/i386/bits/byteswap.h: Likewise.
10812 * sysdeps/ia64/bits/byteswap.h: Likewise.
10813 * sysdeps/m68k/bits/byteswap.h: Likewise.
10814 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10815 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10817 2002-01-02 Bruno Haible <bruno@clisp.org>
10819 * intl/plural.y: Fix %expect count.
10821 2002-01-03 Jakub Jelinek <jakub@redhat.com>
10823 * elf/Makefile (routines, shared-only-routines): Add
10824 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10825 * elf/elf.h (PT_GNU_EH_FRAME): Define.
10826 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10827 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10828 Optimize if .eh_frame section contains no FDEs.
10829 (__register_frame, __deregister_frame_info_bases,
10830 __deregister_frame): Likewise.
10831 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10832 DW_CFA_restore handling.
10834 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
10836 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10838 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10839 for x < 0.25 and restore original range reduction method.
10840 (__ieee754_lgammal_r): Make sure signgam is set before returning.
10842 2002-01-07 Ulrich Drepper <drepper@redhat.com>
10844 * libio/fileops.c (_IO_file_underflow_mmap): New function.
10845 (_IO_file_close_mmap): New function.
10846 (_IO_file_jumps_mmap): New variable.
10847 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10848 trying to convert rest of byte buffer.
10849 (_IO_wfile_underflow_mmap): New function.
10850 (_IO_wfile_jumps_mmap): New variable.
10851 * libio/iofopen.c (__fopen_maybe_mmap): New function.
10852 (__fopen_internal): New function. Split out from _IO_new_fopen.
10853 (_IO_new_fopen): Call __fopen_internal.
10854 * libio/iofopen64.c: Just call __fopen_internal.
10855 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10857 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10858 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10859 _IO_file_close_mmap.
10861 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10862 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10864 * stdio-common/Makefile (tests): Add tst-rndseek.
10865 * stdio-common/tst-rndseek.c: New file.
10867 2002-01-05 Roland McGrath <roland@frob.com>
10869 * config.h.in (HAVE_MIG_RETCODE): New #undef.
10870 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10871 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10872 * sysdeps/mach/hurd/configure: Regenerated.
10874 2002-01-03 Ulrich Drepper <drepper@redhat.com>
10876 * elf/elf.h: Add more TLS definitions.
10878 2002-01-02 Ulrich Drepper <drepper@redhat.com>
10880 * include/features.h (__GLIBC_MINOR__): Bump to 3.
10882 2002-01-02 Roland McGrath <roland@frob.com>
10884 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10885 __sigisemptyset. Don't use MASK uninitialized.
10887 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10888 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10889 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10890 __sigdelset, __sigaddset, __sigorset.
10892 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10893 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10895 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10896 _hurd_ports is null.
10898 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10899 for old CMU and new OSF Mach interface flavors.
10900 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10901 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10903 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10905 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10906 Pass extra arguments to task_create for OSF variant.
10907 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10909 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10910 conditional on [HAVE_AUX_VECTOR].
10912 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10913 mach_msg_timeout_t as type of final argument.
10915 * hurd/privports.c (__get_privileged_ports):
10916 Change host_priv_t to mach_port_t in argument type.
10917 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10920 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10921 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
10922 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10923 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10924 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10925 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10927 2002-01-01 Roland McGrath <roland@frob.com>
10929 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10931 2002-01-01 Ulrich Drepper <drepper@redhat.com>
10933 * include/stdlib.h: Define inlines for the _l variants of the strto*
10936 2002-01-01 Roland McGrath <roland@frob.com>
10938 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10940 * mach/Machrules (MIG): Set CPP as well as CC.
10942 2001-12-31 Ulrich Drepper <drepper@redhat.com>
10944 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10945 locale to parse /proc/loadavg [PR libc/2760].
10947 2001-12-31 Jakub Jelinek <jakub@redhat.com>
10949 * elf/dl-conflict.c: Include sys/param.h.
10950 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10951 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10953 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10954 literals to avoid warnings.
10956 2001-12-31 Andreas Jaeger <aj@suse.de>
10958 * configure.in: Don't check for gsed since we do not use it anywhere.
10960 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10962 * io/fts.c: Update from BSD to fix memory leaks.
10964 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10966 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10967 * elf/chroot_canon.c: Likewise.
10968 * elf/dl-object.c: Likewise.
10969 * iconv/iconv_charmap.c: Likewise.
10970 * iconv/iconv_prog.c: Likewise.
10971 * libio/iogetdelim.c: Likewise.
10972 * locale/lc-time.c: Likewise.
10973 * stdlib/canonicalize.c: Likewise.
10974 * sunrpc/svc.c: Likewise.
10975 * sysdeps/generic/glob.c: Likewise.
10977 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10979 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10980 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10981 remove high order bit from the program counter.
10982 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10984 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10986 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10987 unnecessary code and add missing reloc types.
10988 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10989 case for reloc type R_390_NONE.
10991 2001-12-28 Andreas Jaeger <aj@suse.de>
10993 * io/bug-ftw3.c: Include string.h for prototypes.
10995 * crypt/md5test.c (main): Remove unused variable.
10997 * dlfcn/modstatic.c: Add prototype to avoid warning.
10999 2001-12-26 Roland McGrath <roland@frob.com>
11001 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
11002 check only (SS->pending & MASK) for the signal to return.
11003 From Jeroen Dekkers <jeroen@dekkers.cx>.
11005 2001-12-22 Roland McGrath <roland@frob.com>
11007 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
11008 Use preprocessor #if conditionals instead of `if' to avoid
11009 warnings about divide by zero in dead code.
11011 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
11012 _hurd_port_init, and __hurd_self_sigstate.
11014 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
11016 2001-12-21 Andreas Jaeger <aj@suse.de>
11018 * elf/dblloadmod1.c: Add prototype to avoid warning.
11019 * elf/dblloadmod2.c: Likewise.
11020 * elf/dblloadmod3.c: Likewise.
11021 * elf/reldepmod5.c: Likewise.
11022 * elf/reldepmod6.c: Likewise.
11024 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
11025 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
11026 used on all architectures.
11028 * sunrpc/svc_tcp.c: Add noreturn attribute for
11029 svctcp_rendezvous_abort.
11030 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
11032 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
11035 2001-12-19 Jakub Jelinek <jakub@redhat.com>
11037 * manual/llio.texi (aio_fsync): Fix a typo.
11038 Patch by Tammy Fox <tfox@redhat.com>.
11040 2001-12-18 Jakub Jelinek <jakub@redhat.com>
11042 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
11043 stack bias from child stack pointer before passing it to clone syscall.
11045 2001-12-18 Ulrich Drepper <drepper@redhat.com>
11047 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
11049 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
11050 Reported by Thorsten Kukuk <kukuk@suse.de>.
11052 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
11055 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
11057 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
11059 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
11060 conforming: return EBADF if file descriptor is invalid and EINVAL
11061 if file descriptor is no valid tty.
11062 * login/tst-grantpt.c: New file.
11063 * login/Makefile (tests): Add tst-grantpt.
11065 2001-12-17 Ulrich Drepper <drepper@redhat.com>
11067 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
11068 different than implemented in last patch.
11069 * io/bug-ftw3.c: Adjust test for changed handling of
11070 inaccessibility of toplevel dir.
11072 2001-12-16 Roland McGrath <roland@frob.com>
11074 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
11075 * grp/initgroups.c (internal_getgrouplist): Likewise.
11077 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
11078 `default:' to silence new GCC warning.
11079 Rewrite cast of lvalue to silence new GCC warning.
11081 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
11083 * sysdeps/mach/hurd/spawni.c: New file, by me with a
11084 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
11086 2001-12-14 Ulrich Drepper <drepper@redhat.com>
11088 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
11089 Patch by Stephen R. van den Berg.
11091 * crypt/md5.h: Define md5_uintptr.
11093 2001-12-13 Ulrich Drepper <drepper@redhat.com>
11095 * libio/tst_swprintf.c (main): Add test for string argument with
11097 * stdio-common/Makefile (tests): Add tst-sprintf.
11098 * stdio-common/tst-sprintf.c: New file.
11100 2001-12-13 Andreas Schwab <schwab@suse.de>
11102 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
11103 zero precision with wide character string format.
11105 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
11107 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
11108 but have a user supplied buffer, return the empty buffer, not NULL.
11110 2001-12-13 Ulrich Drepper <drepper@redhat.com>
11112 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
11113 Patch by Eric Sharkey <sharkey@netrics.com>.
11115 * crypt/md5test.c (main): Add test for multiple calls to
11116 __md5_process_bytes to itererate over input string.
11118 2001-12-12 Ulrich Drepper <drepper@redhat.com>
11120 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
11121 from __nis_findfastest. Take timeout value from parameter.
11122 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
11123 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
11124 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
11126 2001-12-12 Andreas Jaeger <aj@suse.de>
11128 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
11129 combreloc test so that it works in this case.
11131 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
11133 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
11135 * sysdeps/sh/Makefile: New file.
11136 * sysdeps/sh/_mcount.S: New file.
11137 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
11138 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
11140 2001-12-11 Ulrich Drepper <drepper@redhat.com>
11142 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
11143 limitation [PR libc/2564].
11145 2001-12-11 Jakub Jelinek <jakub@redhat.com>
11147 * elf/Makefile (dl-routines): Add conflict.
11148 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
11149 (ld.so): Add _begin local symbol.
11150 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
11152 * elf/dl-deps.c (_dl_build_local_scope): New function.
11153 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
11155 * elf/do-rel.h (VALIDX): Define.
11156 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
11157 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
11159 * elf/dl-conflict.c: New file.
11160 * elf/dl-lookup.c (_dl_debug_bindings): New function.
11161 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
11163 (_dl_lookup_symbol_skip): Likewise.
11164 (_dl_lookup_versioned_symbol): Likewise.
11165 (_dl_lookup_versioned_symbol_skip): Likewise.
11166 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
11167 define to ElfW(Rel).
11168 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
11169 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
11171 Don't adjust address dynamic tags if l_addr is 0.
11172 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
11173 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
11174 (VALIDX, ADDRIDX): Define.
11175 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
11176 (dl_main): Print library list for LD_TRACE_PRELINKING.
11177 If prelinking information can be used, skip relocating libraries and
11178 call _dl_resolve_conflicts instead.
11179 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
11180 * elf/dl-load.c (_dl_map_object): Don't create fake libs
11181 if LD_TRACE_PRELINKING.
11182 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
11184 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
11185 (DL_DEBUG_PRELINK): Define.
11186 (_dl_resolve_conflicts): Add prototype.
11188 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
11189 .plt for prelinked libraries where prelinking info cannot be used.
11190 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
11191 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
11192 * sysdeps/arm/bits/link.h: New file.
11193 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
11194 content of .got[1].
11195 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11196 (ELF_MACHINE_PLT_REL): Define.
11197 (elf_machine_rela, elf_machine_rela_relative): New functions.
11198 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
11199 of adjusting it if prelinked and prelinking cannot be used.
11200 * sysdeps/i386/bits/link.h: New file.
11201 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
11202 content of .got[1].
11203 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11204 (ELF_MACHINE_PLT_REL): Define.
11205 (elf_machine_rela, elf_machine_rela_relative): New functions.
11206 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
11207 of adjusting it if prelinked and prelinking cannot be used.
11208 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
11209 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
11210 to find out map for R_PPC_JMP_SLOT relocs.
11211 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
11212 (OPCODE_BA): Define.
11213 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11214 libraries where prelinking info cannot be used.
11215 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
11216 (elf_machine_fixup_plt): Call sparc_fixup_plt.
11217 (elf_machine_rela): Set value to 0 if relocating conflicts.
11218 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
11219 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
11220 (sparc64_fixup_plt): Fix a typo.
11221 (elf_machine_rela): Set value to 0 if relocating conflicts.
11222 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
11223 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11224 libraries where prelinking info cannot be used.
11225 * sysdeps/sh/bits/link.h: New file.
11226 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
11227 content of .got[1].
11228 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
11229 of adjusting it if prelinked and prelinking cannot be used.
11230 * sysdeps/s390/s390-32/bits/link.h: New file.
11231 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
11232 Save original content of .got[1].
11233 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11234 of adjusting it if prelinked and prelinking cannot be used.
11235 * sysdeps/s390/s390-64/bits/link.h: New file.
11236 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
11237 Save original content of .got[1].
11238 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11239 of adjusting it if prelinked and prelinking cannot be used.
11240 * sysdeps/x86_64/bits/link.h: New file.
11241 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
11242 Save original content of .got[1].
11243 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
11244 of adjusting it if prelinked and prelinking cannot be used.
11246 2001-12-11 Ulrich Drepper <drepper@redhat.com>
11248 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
11249 where appropriate instead of numbers. Little optimizations.
11251 2001-12-10 Roland McGrath <roland@frob.com>
11253 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
11256 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
11257 set to GLIBC_2.2.5, not GLIBC_2.2.4.
11259 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
11260 Fix conditionals so this is set by default for stdio and not for libio.
11261 * sysdeps/mach/hurd/configure: Regenerated.
11263 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
11265 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
11267 2001-12-10 Ulrich Drepper <drepper@redhat.com>
11269 * io/Makefile (tests): Add bug-ftw3.
11270 * io/bug-ftw3.c: New file.
11272 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
11273 matches and GLOB_NOCHECK is set.
11274 * posix/globtest.sh: Correct expected result for NOCHECK test.
11276 * po/ca.po: Update from translation team.
11278 2001-12-09 Ulrich Drepper <drepper@redhat.com>
11280 Implement transliteration of characters in strings of the locale
11282 * locale/programs/linereader.c: Adjust for additional parameter to
11284 (get_string): If character <Uxxxx> is not found try to transliterate
11286 * locale/programs/ld-ctype.c: Adjust for additional parameter to
11287 lr_token. Add const to charmap parameter of all functions.
11288 (find_translit, find_translit2): New functions.
11289 * locale/programs/charmap.c: Adjust for additional parameter to
11291 * locale/programs/repertoire.c: Likewise.
11292 * locale/programs/linereader.h: Likewise.
11293 * locale/programs/ld-address.c: Likewise. Add const to charmap
11294 parameter of all functions.
11295 * locale/programs/ld-collate.c: Likewise.
11296 * locale/programs/ld-identification.c: Likewise.
11297 * locale/programs/ld-measurement.c: Likewise.
11298 * locale/programs/ld-messages.c: Likewise.
11299 * locale/programs/ld-monetary.c: Likewise.
11300 * locale/programs/ld-name.c: Likewise.
11301 * locale/programs/ld-numeric.c: Likewise.
11302 * locale/programs/ld-paper.c: Likewise.
11303 * locale/programs/ld-paper.c: Likewise.
11304 * locale/programs/ld-telephone.c: Likewise.
11305 * locale/programs/ld-time.c: Likewise.
11306 * locale/programs/locfile.c: Likewise.
11307 * locale/programs/localedef.c: Likewise.
11308 * locale/programs/localedef.h: Likewise.
11309 * locale/programs/locfile.h: Likewise. Add declaration for
11311 * locale/programs/simple-hash.c: Add const to first parameter of
11312 find_entry, iterate_table, and lookup.
11313 * locale/programs/simple-hash.h: Likewise.
11314 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
11316 * include/locale.h: Define __LC_LAST.
11317 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
11319 2001-12-07 Geoff Keating <geoffk@redhat.com>
11321 * sysdeps/powerpc/Dist: Update for recent FP changes.
11322 * sysdeps/powerpc/fpu/Dist: Likewise.
11324 2001-12-07 Andreas Schwab <schwab@suse.de>
11326 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
11328 2001-12-06 Geoff Keating <geoffk@redhat.com>
11330 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
11331 save/restore functions here.
11332 (libm-support): Don't define these functions here.
11333 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
11335 * sysdeps/powerpc/fe_nomask.c: Move to...
11336 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
11337 * sysdeps/powerpc/fprrest.S: Move to...
11338 * sysdeps/powerpc/fpu/fprrest.S: ... here.
11339 * sysdeps/powerpc/fprsave.S: Move to...
11340 * sysdeps/powerpc/fpu/fprsave.S: ... here.
11342 2001-12-06 Ulrich Drepper <drepper@redhat.com>
11344 * sysdeps/unix/sysv/linux/opensock.c: New file.
11346 2001-12-06 Geoff Keating <geoffk@redhat.com>
11348 * config.make.in (with-fp): Define from configure.
11349 * configure.in: Substitute with_fp.
11350 * configure: Regenerate.
11351 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
11352 specified, and don't change FPU environment.
11354 2001-12-06 Ulrich Drepper <drepper@redhat.com>
11356 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
11357 * assert/assert.c: Check result of __asprintf call and don't use
11358 string if it failed.
11359 * assert/assert-perr.c: Likewise.
11360 * inet/rcmd.c: Likewise.
11361 * locale/programs/localedef.c (main): Check result of
11362 construct_output_path and exit if it failed.
11363 (construct_output_path): Check result of asprintf and mkdir calls and
11364 fail if they failed.
11365 * posix/getopt.c: Check result of __asprintf calls and fail if
11367 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
11369 2001-12-05 Ulrich Drepper <drepper@redhat.com>
11371 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
11373 * sysdeps/generic/strncase.c: Likewise.
11374 * string/tester.c: Add tests for strcasecmp and strncasecmp.
11376 2001-12-05 Geoff Keating <geoffk@redhat.com>
11378 * scripts/cpp: Test the exit status from 'type', not 'awk'.
11380 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
11381 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
11382 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
11383 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
11384 * sysdeps/powerpc/fclrexcpt.c: Move to...
11385 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
11386 * sysdeps/powerpc/fpu_control.h: Move to...
11387 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
11389 2001-12-05 Ulrich Drepper <drepper@redhat.com>
11391 * iconvdata/ibm1129.h: Remove duplicate mappings.
11392 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
11393 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
11394 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11396 * timezone/zic.c: Fix handling of turnaround times.
11397 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
11399 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
11401 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
11404 2001-12-05 Ulrich Drepper <drepper@redhat.com>
11406 * posix/regex.c: For use outside glibc defined bounded pointer
11407 macros here. Patch by Jim Meyering <jim@meyering.net>.
11409 * iconvdata/Makefile (modules): Add TCVN5712-1.
11410 * iconvdata/TESTS: Add TCVN5712-1.
11411 * iconvdata/gconv-modules: Likewise.
11412 * iconvdata/tcvn5712-1.c: New file.
11413 * iconvdata/testdata/TCVN-5712: New file.
11414 * iconvdata/testdata/TCVN-5712..UTF8: New file.
11416 2001-12-04 Ulrich Drepper <drepper@redhat.com>
11418 * iconvdata/cp1258.c: Optimize conversion from UCS4.
11420 2001-12-02 Roland McGrath <roland@frob.com>
11422 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
11424 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
11425 Reported by Jeff Bailey <jbailey@nisa.net>.
11427 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
11428 Reported by Jeff Bailey <jbailey@nisa.net>.
11430 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
11431 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
11432 Reported by Jeff Bailey <jbailey@nisa.net>.
11434 2001-12-01 Roland McGrath <roland@frob.com>
11436 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
11437 missing backslash in test arguments.
11438 * sysdeps/mach/hurd/configure: Regenerated.
11440 2001-11-26 Roland McGrath <roland@frob.com>
11442 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
11443 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
11445 2001-11-30 Ulrich Drepper <drepper@redhat.com>
11447 * iconvdata/Makefile (modules): Add ARMSCII-8.
11448 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
11449 * iconvdata/armscii-8.c: New file.
11451 2001-11-29 Jakub Jelinek <jakub@redhat.com>
11453 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
11454 don't match, fix {{a,b},c} globbing, clean up.
11455 Patch by Flavio Veloso <flaviovs@magnux.com>.
11456 * posix/globtest.sh: Add new tests.
11458 2001-11-29 Andreas Jaeger <aj@suse.de>
11460 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
11461 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
11463 * sysdeps/generic/abort.c: Include libioP.h for
11464 _IO_flush_all_lockp prototype.
11466 2001-11-29 Ulrich Drepper <drepper@redhat.com>
11468 * posix/regex.h: Define __restrict_arr correctly.
11470 2001-11-28 Ulrich Drepper <drepper@redhat.com>
11472 * iconvdata/ibm1163.c: New file.
11473 * iconvdata/ibm1163.h: New file.
11474 * iconvdata/ibm1164.c: New file.
11475 * iconvdata/ibm1164.h: New file.
11476 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
11477 * iconvdata/Makefile: Likewise.
11478 * iconvdata/testdata/IBM1163: New file.
11479 * iconvdata/testdata/IBM1163..UTF8: New file.
11480 * iconvdata/testdata/IBM1164: New file.
11481 * iconvdata/testdata/IBM1164..UTF8: New file.
11482 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11484 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
11485 * iconvdata/ibm1124.h: Likewise.
11486 * iconvdata/ibm1132.h: Likewise.
11487 * iconvdata/ibm1133.h: Likewise.
11488 * iconvdata/ibm1160.h: Likewise.
11489 * iconvdata/ibm1161.h: Likewise.
11490 * iconvdata/ibm1162.h: Likewise.
11491 * iconvdata/ibm856.h: Likewise.
11492 * iconvdata/ibm922.h: Likewise.
11493 * iconvdata/ibm930.h: Likewise.
11494 * iconvdata/ibm932.h: Likewise.
11495 * iconvdata/ibm933.h: Likewise.
11496 * iconvdata/ibm935.h: Likewise.
11497 * iconvdata/ibm937.h: Likewise.
11498 * iconvdata/ibm939.h: Likewise.
11499 * iconvdata/ibm943.h: Likewise.
11500 * iconvdata/ibm930.c: Pretty printing.
11501 * iconvdata/ibm937.c: Avoid access accross array boundary.
11503 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11504 the current locale's codeset.
11505 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11506 empty input string.
11507 * iconv/iconv_prog.c: Pass empty strings as default value for to-
11508 and from-charset. Don't determine locale's charset here.
11510 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
11511 as the old _IO_flush_all but lock only if parameter is nonzero.
11512 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11513 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11514 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11515 if libio is used [PR libc/2575].
11517 2001-11-28 Jakub Jelinek <jakub@redhat.com>
11519 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11520 __signbitl): Only define for ISO C99.
11522 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
11524 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11525 herrnop to NETDB_INTERNAL if we run out of buffer space.
11527 2001-11-28 Ulrich Drepper <drepper@redhat.com>
11529 * nss/nss_files/files-XXX.c (internal_getent): Correct input
11530 overflow test for platforms with signed char.
11531 Reported by Andrew Haley <aph@cambridge.redhat.com>.
11533 2001-11-28 Bruno Haible <bruno@clisp.org>
11535 * locale/programs/simple-hash.c (lookup_2): Remove function.
11536 (insert_entry_2): Call lookup instead of lookup_2.
11538 2001-03-04 Bruno Haible <bruno@clisp.org>
11540 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11542 2001-10-31 Bruno Haible <bruno@clisp.org>
11544 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11546 2001-03-21 Bruno Haible <bruno@clisp.org>
11548 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11549 chokes on empty macro arguments.
11550 * intl/plural.y: Add #pragma for alloca on AIX 3.
11552 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11554 * intl/dcigettext.c (guess_category_value): Only implement for
11555 glibc. Otherwise rely on function _nl_locale_name which isn't
11556 present in the glibc sources.
11558 2001-09-24 Bruno Haible <bruno@clisp.org>
11560 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11561 transliteration when building on a glibc system but outside glibc.
11563 2001-09-22 Bruno Haible <bruno@clisp.org>
11565 * intl/plural-eval.c: New file, extracted from dcigettext.c.
11566 * intl/dcigettext.c (plural_eval): Remove function, moved to
11567 intl/plural-eval.c.
11568 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11569 Include plural-eval.c.
11571 2001-09-22 Bruno Haible <bruno@clisp.org>
11573 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11574 don't start with a digit; nplurals must be positive.
11576 2001-09-02 Bruno Haible <bruno@clisp.org>
11578 * intl/plural-exp.h: New file, extracted from gettextP.h.
11579 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11580 * intl/gettextP.h (struct expression, struct parse_args,
11581 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11582 * intl/loadmsgcat.c: Include plural-exp.h.
11583 (PLURAL_PARSE): Move macro to plural-exp.h.
11584 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11586 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
11587 EXTRACT_PLURAL_EXPRESSION.
11588 (_nl_unload_domain): Update.
11589 * intl/dcigettext.c: Include plural-exp.h.
11590 * intl/plural.y: Include plural-exp.h, not gettextP.h.
11591 (FREE_EXPRESSION): Move macro to plural-exp.h.
11592 * intl/Makefile (routines): Add plural-exp.
11593 (distribute): Add plural-exp.h.
11595 2001-07-28 Bruno Haible <bruno@clisp.org>
11597 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11598 isdigit, tolower argument to 'unsigned char'.
11599 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11601 * intl/localealias.c (read_alias_file): Cast isspace argument to
11604 2001-10-20 Bruno Haible <bruno@clisp.org>
11606 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11608 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11609 with the variable 'index' in plural_lookup.
11610 * intl/l10nflist.c (strchr): Likewise.
11611 * intl/localealias.c (strchr): Likewise.
11613 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11614 * intl/bindtextdom.c: Likewise.
11615 * intl/dcigettext.c: Likewise.
11616 * intl/dgettext.c: Likewise.
11617 * intl/dngettext.c: Likewise.
11618 * intl/explodename.c: Likewise.
11619 * intl/finddomain.c: Likewise.
11620 * intl/gettext.c: Likewise.
11621 * intl/l10nflist.c: Likewise.
11622 * intl/loadmsgcat.c: Likewise.
11623 * intl/localealias.c: Likewise.
11624 * intl/ngettext.c: Likewise.
11625 * intl/textdomain.c: Likewise.
11626 * intl/gettext.h: Assume <limits.h> exists.
11628 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11630 * stdio-common/Makefile (tests): Add scanf11.
11631 * stdio-common/scanf11.c: New file.
11633 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11635 * version.h (RELEASE): Define as development.
11636 (VERSION): Set to 2.2.90.
11638 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
11640 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11641 * nis/nss_nis/nis-grp.c: Likewise.
11642 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11644 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11645 * nis/nss_nis/nis-pwd.c: Likewise.
11646 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11648 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11649 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11650 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11652 * nscd/grpcache.c: Use strtoul instead of atol.
11653 * nscd/pwdcache.c: Likewise.
11654 * nss/getent.c: Likewise.
11656 2001-11-27 Paul Eggert <eggert@twinsun.com>
11658 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11659 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11661 2001-11-19 Bruno Haible <bruno@clisp.org>
11663 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11665 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11666 improves the quality of the hash function, especially for short
11669 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11671 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11672 are found call conv_error and not input_error [PR libc/2669].
11674 * math/bits/mathcalls.h: Mark ceil and floor as const.
11675 Reported by David Mosberger.
11677 2001-11-21 Jim Meyering <meyering@lucent.com>
11679 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11680 Define to be __-prefixed.
11681 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11683 2001-11-26 Andreas Jaeger <aj@suse.de>
11685 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11688 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
11690 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11693 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11694 unused variables. Fix threshold for returning 1.0.
11696 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11699 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11700 remove unused variables.
11702 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11704 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11705 include local math header files.
11707 2001-11-22 Andreas Jaeger <aj@suse.de>
11709 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11712 2001-11-21 Andreas Jaeger <aj@suse.de>
11714 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11716 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11719 2001-11-15 Andreas Jaeger <aj@suse.de>
11721 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11722 compilers that support it.
11724 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11725 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11726 * stdlib/stdlib.h: Likewise.
11728 2001-11-17 Ulrich Drepper <drepper@redhat.com>
11730 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11731 statement with gotos.
11732 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11734 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
11736 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11738 2001-11-15 Ulrich Drepper <drepper@redhat.com>
11740 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11742 2001-10-02 Jakub Jelinek <jakub@redhat.com>
11743 H.J. Lu <hjl@gnu.org>
11745 * Versions.def (libc): Add GCC_3.0.
11746 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11747 if gcc supports this flag.
11748 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11749 (gcc3): Allow glibc to be compiled with gcc 3.x.
11750 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11751 * config.make.in (static-libgcc, unwind-find-fde): Add.
11752 * Makerules (build-shlib-helper, build-module-helper): Use it.
11753 * scripts/versions.awk: Make sure GLIBC_ versions come first.
11754 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11756 (_fini): Call __deregister_frame_info_bases if
11757 __register_frame_info_bases was used to register.
11758 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11760 (__register_frame_info_bases, __register_frame_info_table_bases,
11761 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11762 * elf/Makefile (routines): Add unwind-dw2-fde.
11763 (shared-only-routines): Add unwind-dw2-fde.
11764 * sysdeps/alpha/gccframe.h: New file.
11765 * sysdeps/arm/gccframe.h: New file.
11766 * sysdeps/generic/framestate.c: New file.
11767 * sysdeps/generic/dwarf2.h: New file.
11768 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11769 * sysdeps/generic/unwind-dw2-fde.c: New file.
11770 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11771 * sysdeps/generic/unwind-dw2-fde.h: New file.
11772 * sysdeps/generic/unwind-dw2.c: New file.
11773 * sysdeps/generic/unwind-pe.h: New file.
11774 * sysdeps/generic/unwind.h: New file.
11775 * sysdeps/hppa/gccframe.h: New file.
11776 * sysdeps/i386/gccframe.h: New file.
11777 * sysdeps/m68k/gccframe.h: New file.
11778 * sysdeps/mips/gccframe.h: New file.
11779 * sysdeps/powerpc/gccframe.h: New file.
11780 * sysdeps/s390/gccframe.h: New file.
11781 * sysdeps/sh/gccframe.h: New file.
11782 * sysdeps/sparc/gccframe.h: New file.
11783 * sysdeps/vax/gccframe.h: New file.
11784 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11785 Set on all architectures except ia64.
11786 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11788 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11789 __deregister_frame_info): Move to elf/Versions.
11790 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11791 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11792 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11793 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11794 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11795 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11796 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11797 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11798 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11799 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11800 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11801 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11802 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11803 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11804 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11805 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11806 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11807 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11809 2001-11-15 Jeff Law <law@redhat.com>
11811 * posix/regex.c (uintptr_t): Do not provide a definition if the
11812 system provided one.
11814 2001-11-13 Roland McGrath <roland@frob.com>
11816 * stdio-common/tmpfile.c: Moved to ...
11817 * sysdeps/generic/tmpfile.c: ... here.
11818 * sysdeps/mach/hurd/tmpfile.c: New file.
11820 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11821 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11822 (fopenport): Define as weak alias.
11824 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11825 * libio/libioP.h: ... to here.
11827 2001-11-12 Ulrich Drepper <drepper@redhat.com>
11829 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11830 program header twice. Construct list with the needed information.
11832 2001-11-10 Ulrich Drepper <drepper@redhat.com>
11834 * po/ca.po: Update from translation team.
11836 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11837 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
11838 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11839 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11841 2001-11-10 Andreas Jaeger <aj@suse.de>
11843 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11844 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11845 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11847 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11849 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11851 * elf/dl-load.c (is_dst): New function.
11852 (_dl_dst_count): Use is_dst to check for DST variable.
11853 (_dl_dst_substitute): Likewise.
11855 2001-11-09 Roland McGrath <roland@frob.com>
11857 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11858 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11859 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11860 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11861 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11862 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11863 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11864 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11865 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11866 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11867 * sysdeps/mach/hurd/powerpc/Dist: New file.
11869 * hurd/privports.c (__get_privileged_ports):
11870 Only contact the proc server if necessary for this call.
11871 Suggested by Neal H Walfield <neal@cs.uml.edu>.
11872 Check error return for mach_port_mod_refs.
11874 2001-11-09 Andreas Schwab <schwab@suse.de>
11876 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11878 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11880 * elf/dl-load.c (lose): Remove some unnecessary code. The new
11881 object is always the last in the list.
11882 (_dl_map_object_from_fd): Delete code to remove from object list
11883 when DF_1_NOOPEN is seen. This is done in lose.
11885 2001-11-08 Ulrich Drepper <drepper@redhat.com>
11887 * elf/dl-object.c (_dl_new_object): Various small optimizations.
11889 2001-11-07 Ulrich Drepper <drepper@redhat.com>
11891 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11892 HWCAP_CHECK macro code.
11894 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11895 Now returns MAP_FAILED on error.
11896 * elf/rtld.c: Adjust caller.
11897 * sysdeps/generic/dl-cache.c: Likewise.
11898 * sysdeps/generic/ldsodefs.h: Adjust description.
11900 * elf/dl-version.c (match_symbol): Optimize error handling for size.
11901 (_dl_check_map_versions): Likewise.
11903 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11905 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11906 _dl_signal_error directly, always use lose. Set fd to -1 after
11908 (lose): Don't call close if fd == -1.
11910 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
11912 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
11913 Also fix typo @code {mbsinit} to @code{mbsinit}.
11915 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11917 * elf/dl-profile.c: Replace state variable with simple flag named
11918 running. Remove commented-out code.
11920 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11921 (_dl_init_paths): Likewise.
11922 (_dl_map_object_from_fd): Likewise.
11923 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11925 2001-11-06 Roland McGrath <roland@frob.com>
11927 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11928 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11930 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11931 sysdeps/powerpc/elf/sysdep.h.
11932 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11934 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11936 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
11938 (process_envvars): Some more optimizations.
11939 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11941 * elf/elf.h: Add dynamic tag definitions for prelinking.
11943 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11944 Rewrite code to remove environment varables for SUID binaries.
11945 Small optimization in LD_PROFILE handling.
11946 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11948 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11950 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11952 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11953 strings. Change type of second parameter.
11954 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11957 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11959 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
11961 * manual/string.texi: Fix typos.
11962 * manual/examples/argp-ex2.c: Likewise.
11964 2001-11-05 Roland McGrath <roland@frob.com>
11966 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11967 the more-specific unix/sysv/linux/powerpc file and breaks everything.
11968 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11969 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11970 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11971 here, put under [__ELF__].
11973 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11975 * manual/charset.texi: Extensive editing work.
11976 * manual/nss.texi: Likewise.
11977 Changes by Dennis Grace <dgrace@us.ibm.com>.
11979 2001-11-04 Roland McGrath <roland@frob.com>
11981 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11982 parameter to dir_mkfile.
11984 2001-11-02 Jakub Jelinek <jakub@redhat.com>
11986 * string/bits/string2.h (__strndup): If n is smaller than len, set
11988 * string/tester.c (test_strndup): New function.
11991 2001-11-01 Ulrich Drepper <drepper@redhat.com>
11993 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11995 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11996 * scripts/cpp: New file.
11998 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11999 for rtld_search_dirs content. Minor optimizations.
12001 2001-10-31 Ulrich Drepper <drepper@redhat.com>
12003 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
12004 avoiding unnecessary duplication.
12006 2001-10-31 Jakub Jelinek <jakub@redhat.com>
12008 * elf/dl-load.c (_dl_map_object): If library was found using
12009 LD_LIBRARY_PATH, don't try RUNPATH list.
12011 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
12013 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
12014 Correct second argument of register_dump call.
12015 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
12018 2001-10-31 Ulrich Drepper <drepper@redhat.com>
12020 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
12022 * iconvdata/TESTS: Likewise.
12023 * iconvdata/gconv-modules: Likewise.
12024 * iconvdata/ibm1132.c: New file.
12025 * iconvdata/ibm1132.h: New file.
12026 * iconvdata/ibm1133.c: New file.
12027 * iconvdata/ibm1133.h: New file.
12028 * iconvdata/ibm1162.c: New file.
12029 * iconvdata/ibm1162.h: New file.
12030 * iconvdata/testdata/IBM1132: New file.
12031 * iconvdata/testdata/IBM1132..UTF8: New file.
12032 * iconvdata/testdata/IBM1133: New file.
12033 * iconvdata/testdata/IBM1133..UTF8: New file.
12034 * iconvdata/testdata/IBM1162: New file.
12035 * iconvdata/testdata/IBM1162..UTF8: New file.
12036 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
12038 * string/string.h: Fix typo in comment.
12039 * wcsmbs/wchar.h: Likewise.
12041 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
12043 * manual/getopt.texi (getopt_long, getopt_long_only): Include
12044 const in type of longopts parameter.
12046 2001-10-29 Andreas Jaeger <aj@suse.de>
12048 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
12050 2001-10-29 Kevin Ryde <user42@zip.com.au>
12052 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
12053 output, clarify `#' behaviour on 0.
12054 (Floating-Point Conversions): Clarify that %g only uses %e when
12055 the exponent would be greater than 1.
12057 2001-10-28 Roland McGrath <roland@frob.com>
12059 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
12060 * sysdeps/mach/powerpc/machine-sp.h: New file.
12061 * sysdeps/mach/powerpc/sysdep.h: New file.
12062 * sysdeps/mach/powerpc/thread_state.h: New file.
12064 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
12065 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
12066 expect to need the same thing on every platform.
12068 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
12069 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
12071 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
12072 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
12073 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
12074 Move all these assembly-related definitions to ...
12075 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
12077 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
12078 by Peter Bruin <pjbruin@dds.nl>.
12080 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
12081 packing results for a `poll' call.
12083 2001-10-26 Ulrich Drepper <drepper@redhat.com>
12085 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
12087 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
12088 bracket expression.
12090 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12092 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
12094 2001-10-24 H.J. Lu <hjl@gnu.org>
12096 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
12097 Use __BEGIN_DECLS/__END_DECLS around prototypes.
12098 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
12100 2001-10-21 Jim Meyering <meyering@lucent.com>
12102 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
12103 this code would end up calling gettext even in packages built
12104 with --disable-nls.
12105 * posix/getopt.c (_): Likewise.
12106 * posix/regex.c (_): Likewise.
12108 2001-10-26 Ulrich Drepper <drepper@redhat.com>
12110 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
12111 lookup not ip6.int.
12112 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
12113 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
12115 2001-10-19 Jakub Jelinek <jakub@redhat.com>
12117 * misc/sys/cdefs.h (__attribute_used__): Define.
12118 * elf/rtld.c (_dl_start): Add __attribute_used__.
12119 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
12121 2001-10-25 Andreas Schwab <schwab@suse.de>
12123 * stdlib/a64l.c: Expect least significant digit first.
12124 * stdlib/l64a.c: Produce least significant digit first.
12125 * stdlib/Makefile (tests): Add test-a64l.
12126 * stdlib/test-a64l.c: New file.
12127 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
12129 2001-10-21 Ulrich Drepper <drepper@redhat.com>
12131 * po/sk.po: Update from translation team.
12133 2001-10-18 Ulrich Drepper <drepper@redhat.com>
12135 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
12137 2001-10-18 Andreas Schwab <schwab@suse.de>
12139 * math/libm-test.inc (print_ulps): Print ulp values rounded to
12141 (print_function_ulps): Likewise.
12142 (print_complex_function_ulps): Likewise.
12143 (print_max_error): Likewise.
12144 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
12146 2001-10-16 Andreas Schwab <schwab@suse.de>
12148 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
12151 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
12152 BSD_SETJMP or BSD__SETJMP is defined, resp.
12153 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
12154 a tail call to __sigsetjmp that would require extending the
12156 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
12157 * sysdeps/m68k/bsd-setjmp.S: Deleted.
12158 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
12159 Reported by Jes Sorensen <jes@trained-monkey.org>.
12161 2001-10-16 Andreas Jaeger <aj@suse.de>
12163 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
12164 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
12165 close PR libc/2589.
12167 2001-10-15 Ulrich Drepper <drepper@redhat.com>
12169 * po/ca.po: New file. Contributed by the translation team.
12171 2001-10-15 Ralf Baechle <ralf@gnu.org>
12173 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
12174 a varargs prototype. Remove dependency from kernel header files.
12176 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
12177 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
12179 2001-10-14 Ulrich Drepper <drepper@redhat.com>
12181 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
12182 to generate hexadecimal identifier.
12183 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
12185 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
12187 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
12189 2001-10-14 Ulrich Drepper <drepper@redhat.com>
12191 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
12192 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
12193 Contributed by Stephen L Moshier <moshier@mediaone.net>.
12195 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
12196 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12197 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
12198 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
12199 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
12200 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
12202 * timezone/africa: Update from tzdata2001d.
12203 * timezone/asia: Likewise.
12204 * timezone/australasia: Likewise.
12205 * timezone/backward: Likewise.
12206 * timezone/europe: Likewise.
12207 * timezone/leapseconds: Likewise.
12208 * timezone/northamerica: Likewise.
12209 * timezone/southamerica: Likewise.
12210 * timezone/zone.tab: Likewise.
12212 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
12214 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
12215 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
12217 2001-10-12 Ulrich Drepper <drepper@redhat.com>
12219 * elf/elf.h (PT_TLS): New definition.
12221 2001-10-10 Jeff Bailey <jbailey@nisa.net>
12223 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
12226 2001-10-07 Roland McGrath <roland@frob.com>
12228 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
12230 2001-10-10 Ulrich Drepper <drepper@redhat.com>
12232 * elf/elf.h: Add more ELFOSABI_* constants.
12234 2001-10-04 Ben Collins <bcollins@debian.org>
12236 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
12237 decleration of __need_wchar_t.
12239 2001-10-03 Jakub Jelinek <jakub@redhat.com>
12241 * string/bits/string2.h (__strsep_g): Add prototype.
12242 (__strsep): Use it.
12243 * string/Versions (__strsep): Remove.
12244 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
12246 2001-10-07 Ulrich Drepper <drepper@redhat.com>
12248 * manua/llio.texi: Clarify file references added by mmap.
12249 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12251 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
12253 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
12254 Add sc_loadrs and sc_rbs_bas to match current kernel.
12256 2001-09-27 Jakub Jelinek <jakub@redhat.com>
12258 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
12260 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
12262 2001-09-27 Jakub Jelinek <jakub@redhat.com>
12264 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
12265 object has been bumped because of relocation dependency, avoid
12266 duplicates in l_scope.
12267 (show_scope): Fix typos.
12268 * elf/Makefile: Add rules to build and run reldep6.
12269 * elf/reldep6.c: New file.
12270 * elf/reldep6mod0.c: New file.
12271 * elf/reldep6mod1.c: New file.
12272 * elf/reldep6mod2.c: New file.
12273 * elf/reldep6mod3.c: New file.
12274 * elf/reldep6mod4.c: New file.
12276 2001-09-26 Jakub Jelinek <jakub@redhat.com>
12278 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
12280 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
12281 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
12282 for non-lazy binding. Fix .plt[32768+] handling.
12283 (elf_machine_plt_value): Don't add addend.
12284 (elf_machine_rela): Call sparc64_fixup_plt instead of
12285 elf_machine_fixup_plt.
12286 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
12287 dynamic linker at 0xfffff800XXXXXXXX.
12289 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
12291 2001-09-28 Ulrich Drepper <drepper@redhat.com>
12293 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
12295 2001-09-25 Jakub Jelinek <jakub@redhat.com>
12297 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
12298 declare __cmsg_data field if its size would be bigger than 0.
12299 (CMSG_DATA): Adjust accordingly.
12300 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
12301 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
12302 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
12303 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
12304 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12305 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
12306 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12308 2001-09-25 Ulrich Drepper <drepper@redhat.com>
12310 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
12311 * iconvdata/testdata/IBM1160: New file.
12312 * iconvdata/testdata/IBM1160..UTF8: New file.
12313 * iconvdata/testdata/IBM1161: New file.
12314 * iconvdata/testdata/IBM1161..UTF8: New file.
12315 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12317 2001-09-24 Ulrich Drepper <drepper@redhat.com>
12319 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
12320 UL_SETFSIZE computations better.
12322 * rt/Makefile: Remove use of filter for librt again.
12324 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
12325 UL_SETFSIZE computations better.
12327 * string/Versions: Export __strsep for GLIBC_2.2.5.
12328 * string/bits/string2.h: Define all __STRING_INLINE functions if
12329 _FORCE_INLINES is defined.
12330 Use int instead of char of parameter types.
12331 (__strsep): Don't use __strsep_g. Don't define it.
12332 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
12333 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
12335 (__stpcpy_a_small): Renamed from __stpcpy_small.
12336 (__strcspn_c1): Don't define if _FORCE_INLINES.
12337 (__strspn_c1): Likewise.
12339 2001-09-22 Ben Collins <bcollins@debian.org>
12341 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
12342 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
12343 * sysdeps/ia64/bits/sigaction.h: Likewise.
12344 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
12346 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
12348 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
12350 2001-09-24 Jakub Jelinek <jakub@redhat.com>
12352 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
12354 2001-09-24 Ulrich Drepper <drepper@redhat.com>
12356 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
12358 2001-09-20 H.J. Lu <hjl@gnu.org>
12360 * include/dlfcn.h (__RTLD_SPROF): New definiton.
12361 * elf/dl-open.c (dl_open_worker): Return immediately after loading
12363 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
12364 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
12366 2001-09-20 H.J. Lu <hjl@gnu.org>
12368 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
12371 2001-09-22 Ulrich Drepper <drepper@redhat.com>
12373 * nss/getent.c: Accept -s parameter to overwrite rules in
12374 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
12376 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
12377 with as many ".0" as necessary to form a complete address
12378 inet_network understands.
12380 * nss/getent.c: Various cleanups. Use simpler and fewer function
12383 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12385 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
12387 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
12389 2001-09-22 Ulrich Drepper <drepper@redhat.com>
12391 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
12393 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
12394 * iconvdata/ibm1160.c: New file.
12395 * iconvdata/ibm1160.h: New file.
12396 * iconvdata/ibm1161.c: New file.
12397 * iconvdata/ibm1161.h: New file.
12398 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12400 2001-09-19 Jakub Jelinek <jakub@redhat.com>
12402 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
12403 difference between base address and first PT_LOAD's virtual address,
12404 not the base address.
12406 2001-09-11 Tom Rix <trix@redhat.com>
12408 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
12409 ifdef for __getopt_clean_environment.
12410 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
12412 2001-09-22 Andreas Jaeger <aj@suse.de>
12414 * elf/reldep4.c (main): Add proper prototype to fix warning.
12416 * elf/reldep5.c (main): Remove unused variable.
12418 * math/math_private.h: Add prototypes.
12420 2001-09-21 Andreas Jaeger <aj@suse.de>
12422 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
12423 * sysdeps/x86_64/Dist: New file.
12424 * sysdeps/x86_64/soft-fp/Dist: New file.
12426 * sysdeps/gnu/Dist: Remove eval.c.
12428 2001-09-20 Ulrich Drepper <drepper@redhat.com>
12430 * malloc/memusage.c (realloc): Don't count already allocated
12431 memory in the sums.
12432 (me): Always use dlsym() to find the real implementations.
12434 * malloc/memusage.sh: Make -n option actually do something.
12436 2001-09-20 Andreas Jaeger <aj@suse.de>
12438 * elf/elf.h (R_390_NUM): Correct value.
12440 * Versions.def: Add missing versions 2.2.3 for libthread_db and
12443 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
12444 for x86-64, install x86-64 into */lib64.
12446 * shlib-versions: Add x86-64.
12448 * elf/elf.h: Add x86-64 relocations.
12450 2001-09-19 Ulrich Drepper <drepper@redhat.com>
12452 * po/fr.po: Update from translation team.
12454 2001-09-19 Andreas Jaeger <aj@suse.de>
12456 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
12457 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
12458 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
12459 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
12460 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12461 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
12462 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
12463 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
12464 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
12465 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
12466 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
12467 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
12468 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
12469 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
12470 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
12471 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
12472 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
12473 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12474 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
12475 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
12476 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
12477 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
12478 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
12479 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
12480 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
12481 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12482 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12483 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12484 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12485 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12486 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12487 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12488 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12489 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12490 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12491 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12492 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12493 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12494 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12495 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12496 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12497 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12498 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12499 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12500 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12501 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12502 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12503 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12504 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12505 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12506 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12507 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12508 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12509 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12510 * sysdeps/unix/x86_64/sysdep.S: New file.
12511 * sysdeps/unix/x86_64/sysdep.h: New file.
12512 * sysdeps/x86_64/Implies: New file.
12513 * sysdeps/x86_64/Makefile: New file.
12514 * sysdeps/x86_64/Versions: New file.
12515 * sysdeps/x86_64/__longjmp.S: New file.
12516 * sysdeps/x86_64/abort-instr.h: New file.
12517 * sysdeps/x86_64/atomicity.h: New file.
12518 * sysdeps/x86_64/bits/endian.h: New file.
12519 * sysdeps/x86_64/bits/setjmp.h: New file.
12520 * sysdeps/x86_64/bits/string.h: New file.
12521 * sysdeps/x86_64/bp-asm.h: New file.
12522 * sysdeps/x86_64/bsd-_setjmp.S: New file.
12523 * sysdeps/x86_64/bsd-setjmp.S: New file.
12524 * sysdeps/x86_64/dl-machine.h: New file.
12525 * sysdeps/x86_64/elf/initfini.c: New file.
12526 * sysdeps/x86_64/elf/start.S: New file.
12527 * sysdeps/x86_64/ffs.c: New file.
12528 * sysdeps/x86_64/ffsll.c: New file.
12529 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12530 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12531 * sysdeps/x86_64/fpu/e_acosl.c: New file.
12532 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12533 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12534 * sysdeps/x86_64/fpu/e_expl.c: New file.
12535 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12536 * sysdeps/x86_64/fpu/e_log10l.S: New file.
12537 * sysdeps/x86_64/fpu/e_log2l.S: New file.
12538 * sysdeps/x86_64/fpu/e_logl.S: New file.
12539 * sysdeps/x86_64/fpu/e_powl.S: New file.
12540 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12541 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12542 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12543 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12544 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12545 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12546 * sysdeps/x86_64/fpu/fegetenv.c: New file.
12547 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12548 * sysdeps/x86_64/fpu/fegetround.c: New file.
12549 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12550 * sysdeps/x86_64/fpu/fesetenv.c: New file.
12551 * sysdeps/x86_64/fpu/fesetround.c: New file.
12552 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12553 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12554 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12555 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12556 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12557 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12558 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12559 * sysdeps/x86_64/fpu/s_atanl.c: New file.
12560 * sysdeps/x86_64/fpu/s_cosl.S: New file.
12561 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12562 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12563 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12564 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12565 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12566 * sysdeps/x86_64/fpu/s_logbl.c: New file.
12567 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12568 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12569 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12570 * sysdeps/x86_64/fpu/s_rintl.c: New file.
12571 * sysdeps/x86_64/fpu/s_significandl.c: New file.
12572 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12573 * sysdeps/x86_64/fpu/s_sinl.S: New file.
12574 * sysdeps/x86_64/fpu/s_tanl.S: New file.
12575 * sysdeps/x86_64/gmp-mparam.h: New file.
12576 * sysdeps/x86_64/hp-timing.c: New file.
12577 * sysdeps/x86_64/hp-timing.h: New file.
12578 * sysdeps/x86_64/htonl.S: New file.
12579 * sysdeps/x86_64/memusage.h: New file.
12580 * sysdeps/x86_64/setjmp.S: New file.
12581 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12582 * sysdeps/x86_64/stackinfo.h: New file.
12583 * sysdeps/x86_64/sysdep.h: New file.
12584 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12586 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12589 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12591 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12592 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12594 2001-09-18 Andreas Schwab <schwab@suse.de>
12596 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12597 list, now that l_scope is a pointer.
12599 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12602 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
12604 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12605 (elf_machine_rela_relative): Add a missing declaration.
12607 2001-09-18 Jakub Jelinek <jakub@redhat.com>
12609 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12610 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12611 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12612 ldd-rewrite scripts.
12614 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12616 * elf/ldd.bash.in: Update copyright message.
12618 2001-09-17 H.J. Lu <hjl@gnu.org>
12620 * hurd/hurdmalloc.c (bcopy): Removed.
12621 (realloc): Replace bcopy with memcpy.
12622 * hurd/path-lookup.c (file_name_path_scan): Likewise.
12623 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12624 * sunrpc/rpcinfo.c (pmapdump): Likewise.
12626 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12627 (gethostbyaddr): Likewise.
12628 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12630 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12632 * sysdeps/gnu/eval.c: Removed.
12634 2001-09-18 Andreas Jaeger <aj@suse.de>
12636 * sysdeps/i386/fpu/s_logbl.S: Move to ...
12637 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12639 * sysdeps/i386/fpu/s_rintl.S: Move to ...
12640 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12642 * sysdeps/i386/fpu/s_significandl.S: Move to ...
12643 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12645 2001-09-16 Ulrich Drepper <drepper@redhat.com>
12647 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12650 2001-09-14 H.J. Lu <hjl@gnu.org>
12652 * sysdeps/mips/fpu/libm-test-ulps: Updated.
12654 2001-09-14 Ulrich Drepper <drepper@redhat.com>
12656 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12657 Patch by Florian La Roche <laroche@redhat.com>.
12659 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12661 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12664 2001-09-14 Andreas Schwab <schwab@suse.de>
12666 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
12667 Sumner <bls@sgi.com>.
12668 * posix/execlp.c: Likewise.
12670 2001-09-13 Jakub Jelinek <jakub@redhat.com>
12672 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12673 is already found earlier in the search scope.
12675 2001-09-12 Jakub Jelinek <jakub@redhat.com>
12677 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12680 2001-09-13 Ulrich Drepper <drepper@redhat.com>
12682 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12684 2001-09-12 Ulrich Drepper <drepper@redhat.com>
12686 * config.h.in: Enforce optimization to be used.
12687 * Makeconfig (preprocess-versions): Define ASSEMBLER.
12688 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12689 * posix/Makefile (annexc-CFLAGS): Define to -O.
12690 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12692 2001-09-11 Ulrich Drepper <drepper@redhat.com>
12694 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12695 Patch by Stephan Kulow.
12697 2001-09-08 Ben Collins <bcollins@debian.org>
12699 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12700 usage of RESOLVE() (r_type, not reloc->r_type).
12702 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12704 * elf/dl-object.c: Avoid allocating extra memory block for name.
12705 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12706 allocated separately.
12707 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12709 2001-09-08 H.J. Lu <hjl@gnu.org>
12711 * po/zh_TW.po: Fix a typo.
12713 2001-09-07 Tom Rix <trix@redhat.com>
12715 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12717 2001-08-26 Tom Rix <trix@redhat.com>
12719 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12720 command line options.
12721 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12722 * sysdeps/unix/sysv/aix/start.c: Removed.
12723 * sysdeps/unix/sysv/aix/start-libc.c: New file.
12724 * sysdeps/unix/sysv/aix/init-first.c: New file.
12725 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12727 2001-09-08 Ben Collins <bcollins@debian.org>
12729 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12730 * sysdeps/generic/dl-machine.h: Likewise.
12731 * sysdeps/hppa/dl-fptr.c: Likewise.
12732 * sysdeps/ia64/dl-fptr.c: Likewise.
12733 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12734 * sysdeps/mips/dl-machine.h: Likewise.
12735 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12736 * sysdeps/powerpc/dl-machine.c: Likewise.
12738 2001-09-07 Ben Collins <bcollins@debian.org>
12740 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12742 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12744 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12746 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12747 dependencies if necessary.
12749 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12750 loaded directly) determine length if l_initfini list by iterating
12751 over its elements. Minor optimizations.
12752 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12753 for dependency objects.
12754 If object was already loaded check whether any of the dependencies
12755 is already on the relocation dependency list. If yes, remove the
12756 latter. Minor optimizations.
12757 * elf/dl-lookup.c (add_dependency): Add check for self reference of
12758 maps here. Search l_initfini list only if the object was loaded
12759 directly and not only as a dependency.
12760 (_dl_lookup_symbol): Add relocation dependency also if object
12761 is not in global scope. Remove test for self-reference here.
12762 (_dl_lookup_versioned_symbol): Likewise.
12763 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
12764 element of first name record.
12765 * elf/loadtest.c: Add some more test to recognize early if an object
12767 * elf/Makefile: Add rules to build and run reldep5.
12768 * elf/reldep5.c: New file.
12769 * elf/reldepmod5.c: New file.
12770 * elf/reldepmod6.c: New file.
12772 * elf/reldep2.c: Fix typo.
12774 2001-09-07 Ulrich Drepper <drepper@redhat.com>
12776 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12777 elements. Change l_scope to be a pointer only.
12778 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12779 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12780 here add searchlist of newly open file to the dependency's scope.
12781 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12782 only searchlist from its scope. Free own scope array if necessary.
12783 * elf/Makefile (tests): Add dblload and dblunload now.
12785 2001-09-06 Andreas Jaeger <aj@suse.de>
12787 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12790 2001-09-05 Ulrich Drepper <drepper@redhat.com>
12792 * elf/Makefile: Add rules to build new tests. Don't run them yet since
12794 * elf/dblload.c: New file.
12795 * elf/dblloadmod1.c: New file.
12796 * elf/dblloadmod2.c: New file.
12797 * elf/dblloadmod3.c: New file.
12798 * elf/dblunload.c: New file.
12800 2001-09-04 Richard Henderson <rth@redhat.com>
12802 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12803 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12805 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12807 Correct very misleading message for error in failed runtime relocation.
12808 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12809 place of the error.
12810 (_dl_signal_cerror): Likewise.
12811 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12812 * elf/dl-close.c: Likewise.
12813 * elf/dl-deps.c: Likewise.
12814 * elf/dl-load.c: Likewise.
12815 * elf/dl-lookup.c: Likewise.
12816 * elf/dl-open.c: Likewise.
12817 * elf/dl-reloc.c: Likewise.
12818 * elf/dl-sym.c: Likewise.
12819 * elf/dl-version.c: Likewise.
12820 * sysdeps/generic/dl-sysdep.c: Likewise.
12822 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12824 * iconv/strtab.c (strtabinit): Initialize null Strent.
12825 (newstring): Move len == 0 handling...
12826 (strtabadd): ...here.
12827 If len == 1, return null Strent.
12828 When inserting a suffix of an existing string, check if
12829 it is not equal to some suffix already recorded.
12830 Copy left and right members over if adding longer string.
12832 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12834 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12836 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12837 (__syscall_gethostname): Add prototype.
12839 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12841 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12843 2001-09-02 Ulrich Drepper <drepper@redhat.com>
12845 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12847 2001-08-27 Roland McGrath <roland@frob.com>
12849 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12850 short, copy that much into NAME anyway before returning error.
12852 2001-09-01 Richard Henderson <rth@redhat.com>
12854 * sysdeps/alpha/elf/Dist: Remove file.
12855 * sysdeps/alpha/elf/Makefile: Remove file.
12856 * sysdeps/alpha/elf/crtbegin.S: Remove file.
12857 * sysdeps/alpha/elf/crtend.S: Remove file.
12858 * sysdeps/alpha/elf/initfini.c: New file.
12860 2001-09-01 Mark Kettenis <kettenis@gnu.org>
12862 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12863 * iconv/tst-iconv3.c: Likewise.
12865 2001-09-01 Jakub Jelinek <jakub@redhat.com>
12867 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12869 2001-09-01 Ulrich Drepper <drepper@redhat.com>
12871 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12873 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12874 * iconv/iconv_prog.c (insert_cache): New function.
12875 (print_known_names): If cache is used call insert_cache to use the
12876 information from the cache [PR libc/2509].
12878 2001-08-31 Ulrich Drepper <drepper@redhat.com>
12880 * time/strptime.c (strptime_internal): Recognize 'l' format and
12881 handle it like 'I' for symmetry with strftime.
12883 2001-08-31 Richard Henderson <rth@redhat.com>
12885 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12886 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12887 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12888 (print_statistics): Make scalar unsigned long long.
12889 * sysdeps/alpha/hp-timing.h: New file.
12891 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12893 * stdio-common/perror.c (perror): Save errno early, pass it
12894 down to perror_internal.
12895 (perror_internal): Add errnum argument.
12897 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12899 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12900 Don't add old memory content for R_ALPHA_REFQUAD.
12902 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12904 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12907 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12908 instead of open, __close instead of close, __getpagesize instead
12911 * string/argz-stringify.c (__argz_stringify): Use __strnlen
12912 instead of strnlen.
12913 * include/string.h (strndupa): Redefine here to use __strnlen
12914 instead of strnlen.
12915 * string/strndup.c (__strndup): Use __strnlen not strnlen.
12917 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12920 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12922 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12923 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
12924 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12925 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12926 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12927 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12928 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12930 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12932 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12934 2001-08-30 Andreas Jaeger <aj@suse.de>
12936 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12937 contributed Stephen L Moshier.
12939 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12941 * sunrpc/etc.rpc (sgi_fam): Add.
12943 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12945 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12947 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12949 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12950 first is from a previous call.
12951 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12953 2001-08-29 Andreas Schwab <schwab@suse.de>
12955 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12957 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12959 * config.make.in (INSTALL_SCRIPT): Define.
12960 * Makeconfig (INSTALL_SCRIPT): Define.
12961 * Makerules (do-install-script): New macro to install scripts using
12963 (install-bin-script): New rule to install scripts with
12965 (install-bin-script-nosubdir): New rule.
12966 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12967 (distinfo-vars): Add $(install-bin-script).
12968 * Rules (others): Likewise.
12969 * Makefile (glibcbug): Install with install-bin-script.
12970 * debug/Makefile (xtrace): Likewise.
12971 (catchsegv): Likewise.
12972 * elf/Makefile (ldd): Likewise.
12973 * malloc/Makefile (mtrace): Likewise.
12974 * timezone/Makefile (tzselect): Likewise.
12976 2001-08-29 H.J. Lu <hjl@gnu.org>
12978 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12979 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12980 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12982 2001-08-29 Andreas Schwab <schwab@suse.de>
12984 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12986 2001-08-28 H.J. Lu <hjl@gnu.org>
12988 * Makeconfig (combreloc-LDFLAGS): New variable.
12989 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12990 * config.make.in (have-z-combreloc): New variable.
12991 * configure.in: Substitute libc_cv_z_combreloc.
12993 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12995 * po/sv.po: Update from translation team.
12996 * po/fr.po: Likewise.
12997 * po/da.po: Likewise.
12999 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
13001 * Makerules: Fix a typo: MD% -> MD5.
13003 2001-08-28 Ulrich Drepper <drepper@redhat.com>
13005 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
13006 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
13008 2001-08-28 Andreas Jaeger <aj@suse.de>
13010 * manual/libc-texinfo.sh: Add entry about free manuals.
13012 * manual/contrib.texi (Contributors): Fix cross reference.
13014 * manual/libc.texinfo (Copying): Include freemanuals.
13016 * manual/Makefile (appendices): Add freemanuals.
13018 * manual/freemanuals.texi: New file.
13019 Patch by Brian Youmans <3diff@gnu.org>.
13021 * manual/libm-err-tab.pl: Pretty print more platforms, print a
13024 * manual/math.texi (Errors in Math Functions): Fix grammar, start
13025 table on separate page.
13026 Patch by Brian Youmans <3diff@gnu.org>.
13028 2001-08-27 Ulrich Drepper <drepper@redhat.com>
13030 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
13031 the connection went down after we first used it try to connect
13032 again and resend the message before printing to the console.
13033 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
13035 2001-08-27 Jakub Jelinek <jakub@redhat.com>
13037 * string/tst-strlen.c (main): Test strnlen (, -1) too.
13038 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
13041 2001-08-27 Ulrich Drepper <drepper@redhat.com>
13043 * iconv/strtab.c (searchstring): Use correct length for comparison.
13044 (strtabadd): Account total size correct if new string has old string as
13047 2001-08-27 Jakub Jelinek <jakub@redhat.com>
13049 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
13051 2001-08-27 Andreas Jaeger <aj@suse.de>
13053 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
13055 * math/libm-test.inc (j0_test): Add extra tests.
13056 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
13057 not x, in Hankel approximation.
13058 Patches by Stephen L Moshier.
13060 2001-08-26 Ulrich Drepper <drepper@redhat.com>
13062 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
13065 * configure.in: Fix test for .rela.dyn section.
13067 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
13069 2001-08-26 Jakub Jelinek <jakub@redhat.com>
13071 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
13072 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
13073 Pass type_class to _dl_lookup_*.
13074 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
13075 Pass around just type_class instead of noexec, noplt pair.
13076 (_dl_lookup_versioned_symbol): Likewise.
13077 (_dl_lookup_symbol_skip): Pass around just type_class instead of
13078 noexec, noplt pair.
13079 (_dl_lookup_versioned_symbol_skip): Likewise.
13080 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
13081 * elf/do-lookup.h (do_lookup): Likewise.
13082 * include/link.h (struct link_map): Replace noexec and noplt fields
13083 in l_lookup_cache with type_class field.
13084 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
13085 ELF_RTYPE_CLASS_COPY): Define.
13086 Adjust prototypes for _dl_lookup_symbol and
13087 _dl_lookup_versioned_symbol.
13088 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
13089 elf_machine_lookup_noexec_p): Remove.
13090 (elf_machine_type_class): Define.
13091 * sysdeps/arm/dl-machine.h: Likewise.
13092 * sysdeps/hppa/dl-machine.h: Likewise.
13093 * sysdeps/cris/dl-machine.h: Likewise.
13094 * sysdeps/i386/dl-machine.h: Likewise.
13095 * sysdeps/ia64/dl-machine.h: Likewise.
13096 * sysdeps/m68k/dl-machine.h: Likewise.
13097 * sysdeps/mips/mips64/dl-machine.h: Likewise.
13098 * sysdeps/mips/dl-machine.h: Likewise.
13099 * sysdeps/powerpc/dl-machine.h: Likewise.
13100 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13101 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13102 * sysdeps/sh/dl-machine.h: Likewise.
13103 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13104 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13106 2001-08-26 Ulrich Drepper <drepper@redhat.com>
13108 * manual/message.texi (Advanced gettext functions): Change
13109 description of plural forms for Slovak.
13110 Reported by Marcel Telka <marcel@telka.sk>.
13112 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
13113 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
13115 2001-08-26 Jakub Jelinek <jakub@redhat.com>
13117 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
13118 typo. Patch by Florian La Roche <laroche@redhat.com>.
13120 2001-08-26 Ulrich Drepper <drepper@redhat.com>
13122 * include/link.h (struct link_map): Add l_lookup_cache element.
13123 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
13124 (RESOLVE_MAP): Likewise.
13125 (_dl_relocate_object): Remove cache initialization.
13126 * elf/dl-lookup.c: Rip out cache handling code.
13127 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
13130 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
13131 remove some __builtin_expect.
13132 (_dl_lookup_versioned_symbol): Likewise.
13134 * config.h.in: Add HAVE_Z_COMBRELOC.
13135 * configure.in: Add test for -z combreloc.
13137 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
13138 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
13139 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
13140 case to almost no code.
13142 2001-08-25 Ulrich Drepper <drepper@redhat.com>
13144 * po/tr.po: Update from translation team.
13146 2001-08-24 Andreas Jaeger <aj@suse.de>
13148 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
13151 2001-08-24 Ulrich Drepper <drepper@redhat.com>
13153 * elf/rtld.c (print_statistics): Printf % after percent values.
13154 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
13156 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
13157 don't have to compute the hash value and initialize current_value.
13158 Move reference_name variable to where it is needed.
13159 (_dl_lookup_versioned_symbol): Likewise.
13161 2001-08-24 Roland McGrath <roland@frob.com>
13163 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
13164 Just test that strerror returns non-null for a few errno codes.
13166 2001-08-23 Roland McGrath <roland@frob.com>
13168 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
13169 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
13171 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
13173 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
13176 2001-08-24 Ulrich Drepper <drepper@redhat.com>
13178 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
13181 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
13182 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
13184 * elf/rtld.c: Include <sys/param.h>.
13185 * elf/dl-reloc.c: Likewise.
13187 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
13189 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
13190 empty to prevent junk from being generated.
13191 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
13193 2001-08-24 Jakub Jelinek <jakub@redhat.com>
13195 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
13196 records. Rename endrel to relative, initialize it to r, and use it
13197 in elf_machine_rel_relative calls. Point r after relative relocs.
13199 2001-08-24 Ulrich Drepper <drepper@redhat.com>
13201 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
13204 2001-08-24 Jakub Jelinek <jakub@redhat.com>
13206 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
13207 necessary. Undefine newly defined macros at the end.
13208 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
13209 Rename from elf_machine_rel_relative.
13210 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
13211 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
13212 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
13213 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
13215 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
13217 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
13218 Fix argument types.
13219 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
13220 Fix argument types.
13221 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
13222 Likewise. Fix argument types.
13223 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
13224 Likewise. Fix argument types.
13225 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
13226 Fix argument types.
13227 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
13228 ElfW(Rel) in argument.
13229 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
13232 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
13234 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
13236 2001-08-24 Andreas Jaeger <aj@suse.de>
13238 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
13239 Stephen L Moshier <moshier@mediaone.net>.
13241 2001-08-24 Ulrich Drepper <drepper@redhat.com>
13243 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
13244 first if RELCOUNT is set.
13246 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
13247 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
13248 elf_machine_rel_relative.
13249 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
13250 Minor optimizations.
13251 * sysdeps/arm/dl-machine.h: Likewise.
13252 * sysdeps/cris/dl-machine.h: Likewise.
13253 * sysdeps/hppa/dl-machine.h: Likewise.
13254 * sysdeps/i386/dl-machine.h: Likewise.
13255 * sysdeps/ia64/dl-machine.h: Likewise.
13256 * sysdeps/m68k/dl-machine.h: Likewise.
13257 * sysdeps/mips/dl-machine.h: Likewise.
13258 * sysdeps/powerpc/dl-machine.h: Likewise.
13259 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13260 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13261 * sysdeps/sh/dl-machine.h: Likewise.
13262 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13263 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13265 2001-08-23 Roland McGrath <roland@frob.com>
13267 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
13269 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
13270 sysdeps/mach version. Implement counting ("recursive") mutexes
13271 on top of cthreads mutexes.
13272 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
13274 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
13275 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
13276 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13277 __libc_clean_end): Define these to call the cleanup function after
13278 normal exit when they're supposed to.
13280 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
13281 Take new first arg DOIT, a boolean saying whether to really install
13282 any cleanup handler.
13283 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
13284 (__libc_cleanup_end): Likewise.
13285 * sysdeps/generic/bits/libc-lock.h: Same changes.
13286 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
13287 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
13288 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
13290 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
13291 * sysdeps/generic/bits/stdio-lock.h
13292 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
13294 2001-08-23 Jakub Jelinek <jakub@redhat.com>
13296 * elf/ldconfig.c (search_dir): Remove stale symlinks.
13298 2001-08-23 Jakub Jelinek <jakub@redhat.com>
13300 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
13302 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
13304 (_dl_lookup_versioned_symbol): Likewise.
13305 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
13307 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
13308 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
13309 (lookup_cache, lookup_cache_versioned): Add declarations.
13311 2001-08-23 Ulrich Drepper <drepper@redhat.com>
13313 * stdlib/tst-random.c (main): Swap parameters in fail call.
13314 Patch by Pete Bevin <pete@petebevin.com>.
13316 2001-08-23 Jakub Jelinek <jakub@redhat.com>
13318 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
13320 2001-08-23 Ulrich Drepper <drepper@redhat.com>
13322 * malloc/obstack.c: Indent preprocessor directives.
13323 Patch by Jim Meyering <meyering@ascend.com>.
13325 * po/ja.po: Update from translation team.
13327 2001-08-23 Roland McGrath <roland@frob.com>
13329 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
13331 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
13332 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
13334 2001-08-22 Roland McGrath <roland@frob.com>
13336 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
13337 __libc_lock_define_recursive.
13338 * elf/dl-open.c: Don't declare it here any more.
13339 * elf/dl-close.c: Likewise.
13340 * elf/dl-lookup.c: Likewise.
13341 * elf/dl-iteratephdr.c: Likewise.
13342 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
13343 __libc_lock_unlock_recursive.
13344 * elf/dl-close.c (_dl_close): Likewise
13345 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
13346 * elf/dl-open.c (_dl_open): Likewise
13348 * sysdeps/generic/bits/libc-lock.h
13349 (__libc_lock_define_recursive): New macro.
13350 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
13351 (_IO_lock_lock): Use __libc_lock_lock_recursive.
13352 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
13354 * conform/conformtest.pl (checknamespace): Sort the output list.
13356 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
13357 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
13358 definitions conditional on [__USE_XOPEN].
13360 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
13361 these unconditionally, not only use [__USE_BSD], so as to match
13362 the sysdeps/unix/sysv/linux files.
13364 2001-08-22 Ulrich Drepper <drepper@redhat.com>
13366 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
13369 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
13372 2001-08-22 Roland McGrath <roland@frob.com>
13374 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
13375 conditionalization of sa_handler/sa_sigaction member types to
13376 match the sysdeps/unix/sysv/linux file.
13378 2001-08-22 Ulrich Drepper <drepper@redhat.com>
13380 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
13381 symbol sizes a bit better.
13383 * sysdeps/ia64/strncpy.S: Complete rewrite.
13384 Contributed by Jakub Jelinek <jakub@redhat.com>.
13386 * string/stratcliff.c (main): Add strncpy test.
13388 2001-08-22 Roland McGrath <roland@frob.com>
13390 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
13391 and don't declare unsetenv or _environ directly.
13392 (unsetenv): Return int, not void. Use __environ instead of _environ.
13394 2001-08-01 Mark Kettenis <kettenis@gnu.org>
13396 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
13397 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
13398 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
13399 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
13400 test for cmsg struct size.
13402 2001-04-23 Paul Eggert <eggert@twinsun.com>
13404 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
13405 Rename __argc to ___argc in prototypes to avoid compatibility
13406 problems with systems that reserve the identifier "__argc".
13407 Similarly for __argv.
13409 2001-08-21 Roland McGrath <roland@frob.com>
13411 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
13413 * mach/Makefile (tests): Removed.
13414 * mach/hello.c: File removed.
13416 2001-08-22 Ulrich Drepper <drepper@redhat.com>
13418 * po/sv.po: Update from translation team.
13420 * stdio-common/vfscanf.c: Fix handling of %l[].
13421 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
13423 * libio/Makefile (tests): Add tst-sscanf.
13424 * libio/tst-sscanf.c: New file.
13426 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
13427 * malloc/mtrace.c (tr_where): dli_sname always points to a
13428 non-empty string if != NULL.
13429 Reported by Tim Janik <timj@gtk.org>.
13431 2001-08-22 Jakub Jelinek <jakub@redhat.com>
13433 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
13434 buf. Free resources on failure.
13435 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
13436 (makefd_xprt): Likewise.
13437 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
13438 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
13439 * sunrpc/auth_unix.c (authunix_create): Likewise.
13441 2001-08-21 Jakub Jelinek <jakub@redhat.com>
13443 * string/strnlen.c: Remove.
13444 * sysdeps/generic/strnlen.c: New file.
13445 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
13447 2001-08-21 Roland McGrath <roland@frob.com>
13449 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
13450 as a macro, not an extern inline function.
13452 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
13453 * Versions.def (libc): Add GLIBC_2.2.5 set.
13454 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
13455 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
13457 2001-08-20 Roland McGrath <roland@frob.com>
13459 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
13460 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
13462 2001-08-21 Ulrich Drepper <drepper@redhat.com>
13464 * string/bits/string2.h: Remove strnlen optimization here.
13465 * sysdeps/i386/i486/bits/string.h: Add it here.
13467 2001-08-21 Wolfram Gloger <wg@malloc.de>
13469 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
13471 2001-08-21 Ulrich Drepper <drepper@redhat.com>
13473 * po/gl.po: Update from translation team.
13475 2001-08-20 Ulrich Drepper <drepper@redhat.com>
13477 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
13478 * misc/err.c (convert_and_print): Likewise.
13480 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13483 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
13485 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13486 change of the gregset_t type.
13487 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13489 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
13491 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13493 2001-08-20 Ulrich Drepper <drepper@redhat.com>
13495 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13497 * string/strnlen.c: Fix the implementation. We cannot use memchr.
13499 2001-08-18 Mark Kettenis <kettenis@gnu.org>
13501 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13502 before calling the cthreads initialization code.
13504 2001-08-20 Ulrich Drepper <drepper@redhat.com>
13506 * argp/argp-help.c: Fix two problems introduced in last change.
13508 * include/dirent.h: Include <dirstream.h> first.
13510 2001-08-19 Ulrich Drepper <drepper@redhat.com>
13512 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13514 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13515 * sunrpc/xdr_rec.c: Likewise.
13516 * sunrpc/xdr_mem.c: Likewise.
13517 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13518 * sunrpc/rpc_cmsg.c: Likewise.
13519 * sunrpc/getrpcport.c (getrpcport): Likewise.
13520 * sunrpc/clnt_simp.c (callrpc): Likewise.
13521 * sunrpc/clnt_gen.c (clnt_create): Likewise.
13522 * string/envz.c: Likewise.
13524 * po/ko.po: Update from translation team.
13526 * argp/argp-help.c: Handle wide oriented stderr stream.
13528 2001-08-18 Ulrich Drepper <drepper@redhat.com>
13530 * sysdeps/generic/strtol.c: Little optimizations. Add some
13533 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13535 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13536 * wcsmbs/wcwidth.c (wcwdith): Likewise.
13537 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13539 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13541 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13543 * time/time.h (struct timespec): Use __time_t for tv_sec element.
13545 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
13546 wchar_t for function declarations and defintions.
13548 * misc/sys/select.h: Define __need_time_t before including <time.h>.
13549 Define suseconds_t if it hasn't happened yet.
13551 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13553 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13555 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13558 * conform/data/stddef.h-data: Remove wint_t.
13560 * conform/conformtest.pl: Change namespace test to take #undef
13561 lines into account.
13563 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13565 * conform/data/sys/socket.h-data: Add sockatmark.
13567 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13569 * io/fts.c: Update from recent BSD source.
13571 2001-08-17 Roland McGrath <roland@frob.com>
13573 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13574 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13577 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13579 * locale/duplocale.c (__duplocale): Also initialize the special
13580 __ctype_* elements.
13582 * conform/data/netdb.h-data: Adjust gai_strerror return type.
13584 2001-08-17 Andreas Jaeger <aj@suse.de>
13586 * misc/getpass.c: Include wchar.h for prototypes.
13587 * malloc/obstack.c: Likewise.
13589 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13591 * sunrpc/svc_simple.c (universal): Use __write instead of write.
13593 * wcsmbs/wcscoll.c: Also define __wcscoll.
13594 * include/wchar.h: Declare __wcscoll.
13596 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13597 * libio/vwprintf.c: Likewise.
13598 * libio/wprintf.c: Likewise.
13600 * iconv/gconv_cache.c: Use __munmap instead of munmap.
13602 2001-08-16 Ulrich Drepper <drepper@redhat.com>
13604 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13605 instead of mbrtowc.
13606 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13607 wcslen, and __wcscoll instead of wcscoll.
13609 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13611 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13612 __getuid instead of getuid.
13614 * stdio-common/perror.c (perror): Use __close instead of close.
13615 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13616 * libio/freopen.c (freopen): Likewise.
13617 * libio/freopen64.c (freopen64): Likewise.
13619 * libio/tst-ungetwc2.c (main): Define str const.
13621 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13622 * libio/fwprintf.c: Also define __fwprintf.
13623 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13624 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13625 * assert/assert-perr.c: Likewise.
13626 * assert/assert.c: Likewise.
13627 * gmon/gmon.c: Likewise.
13628 * inet/rcmd.c: Likewise.
13629 * malloc/obstack.c: Likewise.
13630 * misc/err.c: Likewise.
13631 * misc/error.c: Likewise.
13632 * misc/getpass.c: Likewise.
13633 * posix/getopt.c: Likewise.
13634 * resolv/res_hconf.c: Likewise.
13635 * stdio-common/perror.c: Likewise.
13636 * stdio-common/psignal.c: Likewise.
13637 * stdlib/fmtmsg.c: Likewise.
13638 * sunrpc/auth_unix.c: Likewise.
13639 * sunrpc/clnt_perr.c: Likewise.
13640 * sunrpc/clnt_tcp.c: Likewise.
13641 * sunrpc/clnt_udp.c: Likewise.
13642 * sunrpc/clnt_unix.c: Likewise.
13643 * sunrpc/svc_simple.c: Likewise.
13644 * sunrpc/svc_tcp.c: Likewise.
13645 * sunrpc/svc_udp.c: Likewise.
13646 * sunrpc/svc_unix.c: Likewise.
13647 * sunrpc/xdr.c: Likewise.
13648 * sunrpc/xdr_array.c: Likewise.
13649 * sunrpc/xdr_rec.c: Likewise.
13650 * sunrpc/xdr_ref.c: Likewise.
13651 * sysdeps/generic/wordexp.c: Likewise.
13653 * po/it.po: Update from translation team.
13655 * misc/err.c: Handle wide oriented stderr stream.
13657 2001-08-14 Tom Rix <trix@redhat.com>
13659 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13660 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13662 2001-08-13 Tom Rix <trix@redhat.com>
13664 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13665 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13668 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
13670 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13671 Store the access registers to the ucontext structure.
13672 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13675 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13676 Load the access registers from the ucontext structure.
13677 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13680 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13681 offsets to the new ucontext layout.
13682 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13684 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13685 of the ucontext structure.
13686 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13688 2001-08-15 Ulrich Drepper <drepper@redhat.com>
13690 * misc/error.c (error): Handle wide oriented stderr stream correctly.
13691 (error_at_line): Likewise.
13693 * stdio-common/perror.c (perror): Implement according to standard.
13694 The stream orientation must not be changed if the stream was not
13695 oriented before the call.
13696 * stdio-common/Makefile (tests): Add tst-perror.
13697 * stdio-common/tst-perror.c: New file.
13700 See ChangeLog.12 for earlier changes.