Commit Graph

3625 Commits

Author SHA1 Message Date
Ulrich Drepper
9b014809fa Update.
* locale/Versions [libc] (GLIBC_2.2): Add localeconv.
	* locale/localeconv.c: Make function versioned (with same definition).
2000-05-30 20:37:26 +00:00
Ulrich Drepper
a907bff941 Update.
2000-05-30  Ulrich Drepper  <drepper@redhat.com>

	* elf/Makefile (modules-names): Strip before using it.
2000-05-30 20:09:44 +00:00
Andreas Jaeger
e82a029517 Update.
2000-05-30  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
	* sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
	* sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
	* sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
	* sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
	* sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
2000-05-30 12:50:54 +00:00
Andreas Jaeger
03fad0ecf6 Update.
2000-05-29  Andreas Jaeger  <aj@suse.de>

	* elf/readlib.c (interpreters): Use LD_SO since this is supported
	for all platforms.
2000-05-30 06:57:03 +00:00
Ulrich Drepper
c8d3281732 Update.
* Makefile: Add GNU make magic.
2000-05-30 04:00:03 +00:00
Ulrich Drepper
3846463e07 Update.
2000-05-29  Ulrich Drepper  <drepper@redhat.com>

	* inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
	Removed.
	* inet/rcmd.c: Remove __P.  Remove unused variables.
	(iruserfopen): Make first parameter const.
	(ruserok_sa): Return result of ruserok2_sa.
	(__checkhost_sa): Correctly iterate through results of getaddrinfo.
	* inet/rexec.c: Remove unused variables.  Other small cleanups.
	* inet/ruserpass.c: Remove __P.  Remove unused variables.
	(ruserpass): Check results of memory allocation.
	* include/netdb.h: Add prototype for ruserpass.
2000-05-29 18:04:55 +00:00
Ulrich Drepper
a8322b4fa9 Update.
2000-05-29  Jakub Jelinek  <jakub@redhat.com>

	* inet/rcmd.c (rresvport_af): Use correct port number.

2000-05-26  Andreas Schwab  <schwab@suse.de>

	* Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
	entries in all-sonames.
	($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
	preserving the old name if different for compatibility.
2000-05-29 17:17:31 +00:00
Ulrich Drepper
08c7f6b008 Update.
2000-05-29  Ulrich Drepper  <drepper@redhat.com>

	* posix/Makefile (tests): Add tst-spawn.
	(tst-spawn-ARGS): New variable.
	* posix/tst-spawn.c: New file.

	* posix/spawn_faction_addclose.c: Correctly account for new entry.
	* posix/spawn_faction_adddup2.c: Likewise.
	* posix/spawn_faction_addopen.c: Likewise.
	* posix/spawni.c: Correctly test for success of dup2 calls.

	* posix/tst-preadwrite.c: Check success of malloc call.
2000-05-29 07:31:53 +00:00
Ulrich Drepper
079199de5c Update.
* posix/Makefile (tests): Add tst-exec.
	(tst-exec-ARGS): New variable.
	* posix/tst-exec.c: New file.

	* posix/tst-fork.c: New file.
2000-05-29 04:40:43 +00:00
Ulrich Drepper
31eb0a91a5 Update.
2000-05-28  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/arm/atomicity.h (compare_and_swap): Return result.
2000-05-29 01:00:03 +00:00
Ulrich Drepper
84838b8ff3 Update.
2000-05-04  Andreas Jaeger  <aj@suse.de>

	* string/string.h: Remove __strdup prototype, it's not needed in
	this file anymore.
2000-05-28 22:53:25 +00:00
Ulrich Drepper
c0f3519d2e Update.
* posix/Makefile (tests): Add tst-fork.
2000-05-28 22:14:55 +00:00
Ulrich Drepper
2588068bdf Update.
2000-05-28  Ulrich Drepper  <drepper@redhat.com>

	* resolv/inet_pton.c: Loose __P.
2000-05-28 19:32:08 +00:00
Ulrich Drepper
d1a8bf8514 Update. 2000-05-28 18:36:00 +00:00
Ulrich Drepper
7163e69e10 Update.
2000-05-21  Jakub Jelinek  <jakub@redhat.com>

	* libio/libioP.h (_IO_CHECK_WIDE): Define.
	* libio/iosetbuffer.c (_IO_setbuffer): Use it.
	Call _IO_WSETBUF even for _mode 1.
	* libio/iosetvbuf.c (_IO_setvbuf): Likewise.
	* libio/fileops.c (_IO_new_file_fopen): Return NULL if
	_IO_CHECK_WIDE fails.
2000-05-28 18:32:20 +00:00
Ulrich Drepper
1ef9f0b673 Update.
* po/da.po: New file.
2000-05-28 16:44:57 +00:00
Ulrich Drepper
b160422ecd Update.
* manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
	(Other iconv Implementations): Fix typo.
	Patch by Martin Pool <mbp@wistful.humbug.org.au>.
2000-05-28 16:42:45 +00:00
Ulrich Drepper
e6e813911c Update.
2000-05-28  Ulrich Drepper  <drepper@redhat.com>

	* manual/arith.texi (Rounding Functions): Fix documentation of trunc.
	Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
2000-05-28 16:31:09 +00:00
Andreas Jaeger
741845cb9c Update.
2000-05-27  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
	normal version now.
	* sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
	* sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
	* sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
	* sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
	* sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.

	* sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
	endianness to decide how to pass arguments.
	* sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.

	* elf/vismain.c: Use test-skeleton interface.
	(TEST_FUNCTION): New macro.
	(do_test): Renamed from main.
2000-05-27 16:51:52 +00:00
Ulrich Drepper
b455972fda Update.
2000-05-27  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
	AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.

	* nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
	handling of AI_V4MAPPED flag.

	* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
	of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
	perform lookup for T_A type and tell getanswer_r to convert the
	result with new argument.
	(_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
	Don't convert addresses from IPv4 to IPv6 here.
	(getanswer_r): Take new parameter indicating if mapping from IPv4 to
	IPv6 is wanted.  Allow qtype and type from reply to disagree if
	IPv4 mapping has to be done.  Perform mappings if required by the
	caller and not if RES_USE_INET6 bit in _res.options is set.
	Add several __builtin_expect.
2000-05-27 08:17:05 +00:00
Andreas Jaeger
aac468aee2 Update.
* sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
	of arguments dependend on endianness.
	* sysdeps/unix/sysv/linux/truncate64.c: Likewise.
2000-05-27 06:56:36 +00:00
Ulrich Drepper
e84e339f5f Update.
* catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.

	* elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
2000-05-27 06:18:49 +00:00
Ulrich Drepper
4c540916ea Update.
* elf/dl-load.c (_dl_map_object): Don't ignore RPATHs of loader ==
	NULL.
2000-05-27 05:32:14 +00:00
Ulrich Drepper
0a5503211c Update.
* posix/tst-preadwrite.c: Allow parallel execution of
	tst-preadwrite and tst-preadwrite64.
2000-05-26 20:49:00 +00:00
Ulrich Drepper
ad92208d51 Update.
* posix/Makefile (tests): Add tst-truncate and tst-truncate64.
	* posix/tst-truncate.c: New file.
	* posix/tst-truncate64.c: New file.
2000-05-26 20:31:12 +00:00
Ulrich Drepper
f0b2767b75 Update.
* sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
	was switched.
2000-05-26 19:55:51 +00:00
Ulrich Drepper
bd9df4cdad Update.
* posix/Makefile (tests): Add tst-preadwrite64.
2000-05-26 19:51:15 +00:00
Ulrich Drepper
09bbe3bf4e Update.
2000-05-26  Ulrich Drepper  <drepper@redhat.com>

	* posix/tst-preadwrite.c: Alloc file being used also for testing
	pread64 and pwrite64.
	* posix/tst-preadwrite64.c: New file.
2000-05-26 19:49:46 +00:00
Andreas Jaeger
088b991767 Update.
* sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
	normal version now.
	* sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
	* sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
	* sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
	* sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.

	* sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
	endianness to check how to pass argument.
	* sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
2000-05-26 15:46:14 +00:00
Andreas Jaeger
dc95d15887 Update.
2000-05-26  Andreas Jaeger  <aj@suse.de>

	* elf/ldconfig.h: Update parameter list for process_elf_file.

	* sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
	Add parameter file_length and pass it ot process_elf*file.

	* sysdeps/generic/readelflib.c (check_ptr): New.
	(process_elf_file): Use check_ptr to check all accesses to the
	mmapped file. Add parameter file_length.

	* elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
	library names.

	* sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
	Closes PR libc/1573, reported by Bradley White
	<bww@laurelnetworks.com>.
2000-05-26 10:23:45 +00:00
Ulrich Drepper
81e43fc19b Update.
2000-05-25  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
	__FAST_MATH__ is defined.
2000-05-25 19:10:22 +00:00
Ulrich Drepper
378fbeb49a Update.
2000-05-22  Andreas Jaeger  <aj@suse.de>

	* math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
	CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.

	* manual/math.texi (FP Function Optimizations): Document gcc
	-ffast-math behaviour with mathinlines.

	* sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
	functions unless -ffast-math is given to gcc.
2000-05-25 06:27:20 +00:00
Ulrich Drepper
0f5504179a Update.
2000-05-23  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
	__sincosl): Guard with __USE_GNU.
2000-05-25 06:15:25 +00:00
Ulrich Drepper
db33f7d4ae Update.
* csu/Makefile (routines): Add check_fds.
	* elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
	binaries.  Add various __builtin_expect.
	* sysdeps/generic/libc-start.c: Move check_fds and helper functions...
	* sysdeps/generic/check_fds.c: ...here.  New file.

	* malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
	binaries if file /etc/suid-debug is available.
2000-05-25 05:02:35 +00:00
Ulrich Drepper
acb5ee2e56 Update.
2000-05-24  Ulrich Drepper  <drepper@redhat.com>

	* locale/programs/ld-collate.c (struct element_t): Add mbseqorder
	and wcseqorder members.
	(struct locale_collate_t): Likewise.
	(collate_finish): Assign collation sequence value to each character.
	Create tables for output.
	(collate_output): Write out tables with collation sequence information.
	* locale/C-collate.c: Provide C locale data for collation sequence
	table.
	* locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
	_NL_COLLATE_COLLSEQWC.
	* locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
	_NL_COLLATE_COLLSEQWC.
	* posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
	include fnmatch_loop.c.
	* posix/fnmatch_loop.c: Don't use strcoll while determining whether
	character is matched by range expression.  Use collation sequence
	table.  Outside glibc fall back on simple character value comparison.
2000-05-24 20:22:51 +00:00
Andreas Jaeger
fff82885d2 Update.
* sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
	words.
2000-05-24 16:16:53 +00:00
Andreas Jaeger
a074fa3c2b Update.
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
	Define it for newer kernels.
2000-05-24 15:33:21 +00:00
Andreas Jaeger
ff31ba59a7 Update.
2000-05-24  Andreas Jaeger  <aj@suse.de>

	* intl/Makefile: Run gettext-test only if msgfmt is available.
2000-05-24 09:31:51 +00:00
Ulrich Drepper
5e76a3468a Update.
* elf/dl-sym.c: Minor cleanups.
2000-05-24 01:06:00 +00:00
Ulrich Drepper
2d499f55d7 Update.
* configure.in: Add test for .protected.
	* config.make.in: Add have-protected variable.
2000-05-23 19:23:25 +00:00
Ulrich Drepper
eec8ef5a73 Update.
2000-05-23  Ulrich Drepper  <drepper@redhat.com>

	* elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
	(tests-vis-yes): Add vismain.
	(modules-names): Add $(modules-vis-$(have-protected)).
	(modules-vis-yes): Add vismod1, vismod2, and vismod3.
	Add rules to generate and run vismain.
	* elf/vismain.c: New file.
	* elf/vismod1.c: New file.
	* elf/vismod2.c: New file.
	* elf/vismod3.c: New file.
2000-05-23 18:12:52 +00:00
Andreas Jaeger
bcaad6ee58 Update.
* csu/munch-tmpl.c (__libc_init): Remove K&R support.
	* dirent/scandir64.c: Likewise.
	* pwd/getpw.c: Likewise.
	* stdlib/bsearch.c (bsearch): Likewise.
	* stdlib/tst-strtoll.c: Likewise.
	* localedata/collate-test.c: Likewise.
	* localedata/xfrm-test.c: Likewise.
	* posix/bsd-getpgrp.c: Likewise.
	* sysdeps/alpha/fpu/bits/fenv.h: Likewise.
	* sysdeps/generic/bits/siginfo.h: Likewise.
	* sysdeps/generic/bits/sockaddr.h: Likewise.
	* sysdeps/generic/sys/swap.h: Likewise.
	* sysdeps/generic/sys/sysinfo.h: Likewise.
	* sysdeps/generic/vfork.c: Likewise.
	* sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
	* sysdeps/mach/hurd/fdopen.c: Likewise.
	* sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
	* sysdeps/unix/sysv/linux/poll.c: Likewise.
	* sysdeps/unix/sysv/linux/readv.c: Likewise.
	* sysdeps/unix/sysv/linux/writev.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.

	* misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
	* shadow/lckpwdf.c: Likewise.
	* stdlib/tst-strtol.c: Likewise.
	* sysdeps/generic/tcsetattr.c: Likewise.
	* sysdeps/unix/sysv/linux/ttyname.c: Likewise.
	* sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
2000-05-23 08:43:26 +00:00
Andreas Jaeger
a396d36622 Remove duplicate. 2000-05-23 06:56:29 +00:00
Andreas Jaeger
21ad6b26f4 Update.
2000-05-23  Andreas Jaeger  <aj@suse.de>

	* stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.

	* manual/search.texi (Array Sort Function): Document that qsort is
	not necessarily in-place.

	* sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
	Closes PR libc/1731.

	* stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
2000-05-23 06:37:29 +00:00
Ulrich Drepper
6a7c9bb49a Update.
2000-05-22  Jakub Jelinek  <jakub@redhat.com>

	* elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
	free it and set to (void *) -1.
2000-05-22 16:45:42 +00:00
Ulrich Drepper
3f651a4de3 Update.
2000-05-22  Jakub Jelinek <jakub@redhat.com>

	* stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
	not the second character in the range.
	* stdio-common/tstscanf.c (main): Add testcase for the above.
	Reported by jik@kamens.brookline.ma.us.
2000-05-22 16:41:59 +00:00
Ulrich Drepper
6aa29abe9f Update.
2000-05-21  H.J. Lu  <hjl@gnu.org>

	* elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
	with noexec and noplt parameter.
	(do_lookup): Likewise.

	* elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
	do_lookup.  Support STV_PROTECTED.
	(_dl_lookup_symbol_skip): Likewise.
	(_dl_lookup_versioned_symbol): Likewise.
	(_dl_lookup_versioned_symbol_skip): Likewise.

	* elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.

	* elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
2000-05-22 16:33:19 +00:00
Andreas Jaeger
85153f6c4c Update.
2000-05-21  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
	* sysdeps/i386/bits/huge_val.h: Likewise.
	* sysdeps/ieee754/bits/huge_val.h: Likewise.
	* sysdeps/m68k/bits/huge_val.h: Likewise.
	* sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
	* sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
2000-05-22 09:25:32 +00:00
Andreas Jaeger
5748f418f0 2000-05-22 Andreas Jaeger <aj@suse.de>
* iconv/tst-iconv1.c (main): Remove const from inbuf to follow
	change in iconv.h.
2000-05-22  Andreas Jaeger  <aj@suse.de>

	* iconv/tst-iconv1.c (main): Remove const from inbuf to follow
	change in iconv.h.
2000-05-22 09:01:33 +00:00
Ulrich Drepper
4a624ae307 Update.
2000-05-19  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/i386/i686/sysdep.h
	(SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
	breaks compilation without linuxthreads.
2000-05-22 01:03:59 +00:00