Commit graph

9136 commits

Author SHA1 Message Date
Roland McGrath 3899afcb76 2002-09-27 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/sysdep.h
	(__NR_pread, __NR_pwrite): Define these to __NR_pread64, __NR_pwrite64
	if not defined.
2002-09-28 04:15:00 +00:00
Ulrich Drepper 6546c95f67 SysV shared memory definitions for Linux/PA. 2002-09-28 04:05:23 +00:00
Ulrich Drepper 0d1ef15f59 (Hash Search Function): Describe that memory must be cleared before calling hcreate_r. 2002-09-28 03:51:42 +00:00
Roland McGrath 7c2a2aafbb 2002-09-27 Roland McGrath <roland@redhat.com>
* sysdeps/x86_64/tls.h [__ASSEMBLER__]: Don't include <pt-machine.h>.
2002-09-28 03:26:03 +00:00
Roland McGrath 1c99af9113 * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment. 2002-09-27 19:59:04 +00:00
Roland McGrath d54bcd1e22 * sysdeps/powerpc/powerpc64/Makefile
[$(build-shared) = yes] (pic-ccflag): Define it.
	[$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
2002-09-27 19:45:50 +00:00
Roland McGrath 82c02215ce * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
unneeded TLS cases.
2002-09-27 08:29:54 +00:00
Roland McGrath 8323008c64 * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
unconditionally.  Set dli_fname to _dl_argv[0] only for main program.

2002-09-27  Roland McGrath  <roland@redhat.com>

	* elf/dl-addr.c (_dl_addr): Add a cast.

	* sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
	TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.

	* elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
	R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
	R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
	(R_X86_64_NUM): Update the value.
2002-09-27 07:29:51 +00:00
Roland McGrath 29c082c513 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
	addend.
	* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
	the same l_addr computation.
	* sysdeps/sparc/sparc64/configure.in: Removed.
	* sysdeps/sparc/sparc64/configure: Removed.
	* config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
2002-09-27 03:24:18 +00:00
Roland McGrath 8243d6f1b7 2002-09-24 Jakub Jelinek <jakub@redhat.com>
* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
	rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
	addend.
	* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
	the same l_addr computation.
	* sysdeps/sparc/sparc64/configure.in: Removed.
	* sysdeps/sparc/sparc64/configure: Removed.
	* config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
2002-09-27 03:23:45 +00:00
Ulrich Drepper 9a88a2d7b3 Update.
2002-09-26  Ulrich Drepper  <drepper@redhat.com>

	* elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
	if necessary.
	* elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
	* elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
	symbol table if necessary.
2002-09-27 03:17:20 +00:00
Ulrich Drepper 58c9f058a2 (elf_get_dynamic_info): Also relocate DT_HASH entry if necessary. 2002-09-27 02:56:54 +00:00
Roland McGrath ba967ec556 * stdlib/longlong.h: Replaced with current version from GCC mainline,
last modified 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>.
2002-09-26 22:33:24 +00:00
Roland McGrath 41b0afab29 2002-09-26 Roland McGrath <roland@redhat.com>
* stdlib/longlong.h: Replaced with current version from GCC mainline,
	last modified 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>.
2002-09-26 22:32:54 +00:00
Andreas Jaeger 0638e1c4ee * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
Patch by Guido Guenther <agx@sigxcpu.org>.
2002-09-25 11:14:50 +00:00
Andreas Jaeger 44c49908a1 Add syscall_exit. 2002-09-25 11:09:55 +00:00
Roland McGrath 9dabf4a6fa * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS). 2002-09-25 07:20:01 +00:00
Roland McGrath 8027e18876 2002-09-25 Roland McGrath <roland@redhat.com>
* Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
2002-09-25 07:19:28 +00:00
Ulrich Drepper b4d8d06a49 Update.
2002-09-24  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
2002-09-25 06:47:44 +00:00
Ulrich Drepper 1ad484c629 Recognize nptl add-on name. 2002-09-25 06:44:02 +00:00
Roland McGrath 29514aade7 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
__libc_write, __libc_lseek64, to ...
	(ld: GLIBC_PRIVATE): ... here.
2002-09-25 03:26:16 +00:00
Roland McGrath 160bb40945 * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
(libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
	(libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
	* resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
	(libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
	and _res.
	(libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.

	* elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
	New macros for x86-64.

	* sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
	It was indentical to the linux/bits/time.h file.

	* nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.

	* resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
2002-09-25 01:58:37 +00:00
Roland McGrath 1e78de0594 2002-09-24 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
	It was indentical to the linux/bits/time.h file.
2002-09-25 01:57:50 +00:00
Ulrich Drepper 8693985ac6 Update. 2002-09-24 23:34:51 +00:00
Ulrich Drepper b64f7699cf (td_thr_tls_get_addr): Change second parameter to be the address of the link map in the inferior process. 2002-09-24 23:33:35 +00:00
Roland McGrath 5773e494b1 * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
for gethostname declaration.
2002-09-24 06:40:26 +00:00
Roland McGrath 58e5204270 2002-09-23 Roland McGrath <roland@redhat.com>
* posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
	for gethostname declaration.
2002-09-24 06:26:28 +00:00
Ulrich Drepper 3aea2d44f6 Update.
2002-09-23  Ulrich Drepper  <drepper@redhat.com>

	* po/zh_CN.po: New file.
2002-09-24 05:51:46 +00:00
Ulrich Drepper 5953d9aaf0 Simplified Chinese translations for libc. 2002-09-24 05:42:16 +00:00
Roland McGrath 57b36a0a75 * catgets/open_catalog.c (__open_catalog): Don't use a value type
as the __builtin_expect expression, just the Boolean value.

	* sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
	* sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
	* resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
	* iconvdata/tst-loading.c (main): Likewise.
	* catgets/tst-catgets.c (main): Likewise.
	* stdlib/tst-xpg-basename.c (main): Likewise.
	* stdlib/tst-bsearch.c (main): Likewise.
	* stdio-common/test-vfprintf.c (main): Likewise.
	* stdio-common/tst-rndseek.c (do_test): Likewise.
	* libio/tst_swprintf.c (main): Likewise.
	* libio/tst-fgetws.c (main): Likewise.
	* wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
	* time/tst-posixtz.c (main): Likewise.
	* time/tst-strptime.c (test_tm): Likewise.
	* time/tst-strptime.c (main): Likewise.
	* time/tst-getdate.c (main): Likewise.
	* posix/tst-mmap.c (main): Likewise.
	* posix/tst-getaddrinfo.c (do_test): Likewise.
	* io/tst-getcwd.c (do_test): Likewise.
	* resolv/tst-aton.c (main): Likewise.
	* inet/tst-network.c (main): Likewise.
	* libio/tst-fgetws.c (main): Likewise.
	* sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
	* sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
	for PTYNO.

	* stdlib/msort.c (qsort): Add a cast to silence warning.
	* stdio-common/vfprintf.c (process_string_arg): Likewise.
	* libio/oldfileops.c (_IO_old_do_write): Likewise.
	* sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
	* sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
	* sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
	* argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
	* nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
	* sysdeps/unix/grantpt.c (grantpt): Likewise.
	* libio/tst-widetext.c (main): Likewise.
	* libio/tst-mmap2-eofsync.c (do_test): Likewise.
	* rt/tst-aio.c (test_file): Likewise.
	* rt/tst-aio64.c (test_file): Likewise.
	* resolv/tst-aton.c (main): Likewise.

	* catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.

	* ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
	instead of uint32_t in these macros.
2002-09-24 04:24:25 +00:00
Roland McGrath d45c148997 2002-09-23 Roland McGrath <roland@redhat.com>
* ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
	instead of uint32_t in these macros.
2002-09-24 04:20:50 +00:00
Ulrich Drepper fa00744e51 Update.
* iconv/iconv_prog.c (main): Provide an error message that identifies
	the wrong encoding.

2002-09-22  Bruno Haible  <bruno@clisp.org>

	* iconvdata/tscii.c: New file.
	* iconvdata/testdata/TSCII: New file.
	* iconvdata/testdata/TSCII..UTF8: New file.
	* iconvdata/TSCII.precomposed: New file.
	* iconvdata/TSCII.irreversible: New file.
	* iconvdata/gconv-modules (TSCII): New module.
	* iconvdata/Makefile (modules): Add TSCII.
	(distribute): Add tscii.c.
	* iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
	buffer size.
	* iconvdata/tst-tables.sh: Add TSCII.
	* iconvdata/TESTS: Add TSCII.

2002-09-22  Bruno Haible  <bruno@clisp.org>

	Revert 2002-04-18 patch.
	* iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
	FROM_DIRECTION): Make the FROM direction stateful again.
	* iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
	FROM_DIRECTION): Likewise.

2002-09-22  Bruno Haible  <bruno@clisp.org>
2002-09-24 04:19:03 +00:00
Ulrich Drepper f2a444335f (sysdep_routines, shared-only-routines): Don't add divdi3 here. 2002-09-24 00:05:38 +00:00
Roland McGrath aea6989d9d * iconvdata/tst-e2big.c: New file.
* iconvdata/Makefile (tests): Add tst-e2big.
2002-09-23 17:56:42 +00:00
Roland McGrath 724d8c3f0e * elf/Makefile (test-extras): Define this instead of test-srcs.
* Makerules (all-nonlib): Include $(test-extras) too.
2002-09-23 17:43:42 +00:00
Roland McGrath 2e35d8c8e1 unnecessary with stratcliff 2002-09-23 04:13:42 +00:00
Roland McGrath df075e0920 * string/bug-stpncpy-offend.c: New file.
* string/Makefile (tests): Add it.
2002-09-23 03:57:55 +00:00
Roland McGrath da5ad344ff * sysdeps/hppa/abort-instr.h: New file. 2002-09-23 03:30:48 +00:00
Roland McGrath ab7a6b8d70 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry. 2002-09-23 03:22:49 +00:00
Roland McGrath 15d5a9b98b * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit. 2002-09-22 20:55:21 +00:00
Roland McGrath f0a78dad99 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite. 2002-09-22 20:44:55 +00:00
Roland McGrath 801475c7a9 2002-09-22 Andreas Schwab <schwab@suse.de>
* cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
2002-09-22 20:44:43 +00:00
Andreas Schwab 779bb513cd * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
(isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
	Use GCC builtins.
2002-09-22 16:48:29 +00:00
Andreas Schwab 27c70fd041 * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
(isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]: 
Use GCC builtins.
2002-09-22 16:47:55 +00:00
Roland McGrath 76c3727c5a * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
Correct the value so it covers all platforms, and is computed
	from _DL_PLATFORMS_COUNT rather than hard-wired.
	From Andrew Suffield <asuffield@debian.org>.
2002-09-21 21:14:22 +00:00
Roland McGrath ae221102ff 2002-09-21 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
	Correct the value so it covers all platforms, and is computed
	from _DL_PLATFORMS_COUNT rather than hard-wired.
	From Andrew Suffield <asuffield@debian.org>.
2002-09-21 21:14:11 +00:00
Ulrich Drepper d0ad0a80a6 Update.
* sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
	* sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
	* sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
2002-09-21 05:54:00 +00:00
Ulrich Drepper 6f6867815c Update.
* sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
	locking when using mount tab file.
2002-09-21 05:30:10 +00:00
Ulrich Drepper 5842a7562c Update.
2002-09-20  Ulrich Drepper  <drepper@redhat.com>

	* elf/dl-init.c (_dl_init): Fix test of the size of the
	preinit_array section.
	(call_init): Optimize access to DT_INIT_ARRAY entry a bit.
	Reported by Brian Cabral <cabral@ikuni.com>.
2002-09-21 00:30:44 +00:00
Ulrich Drepper 53fe275883 (_dl_init): Fix test of the size of the preinit_array section. (call_init): Optimize access to DT_INIT_ARRAY entry a bit. 2002-09-20 23:56:18 +00:00