Commit Graph

9882 Commits

Author SHA1 Message Date
Andreas Schwab
b2222ac61c Optimize for kernels which are known to have the vfork syscall. 2003-01-10 14:05:26 +00:00
Ulrich Drepper
29d9a17dba Update.
2003-01-09  Jakub Jelinek  <jakub@redhat.com>

	* posix/test-vfork.c (noop): Add __attribute_noinline__.
	* sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
	* sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
	defining it.
	* sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
	* sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
	* sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
	* sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
	* sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
2003-01-09 20:30:21 +00:00
Ulrich Drepper
8f6a393ea5 (noop): Add __attribute_noinline__. 2003-01-09 19:45:08 +00:00
Andreas Schwab
3fb7e14a57 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated. 2003-01-09 15:30:19 +00:00
Andreas Schwab
de80227fda Regenerated. 2003-01-09 15:30:03 +00:00
Ulrich Drepper
6aca81bb9d Update.
2003-01-08  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
	INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
	argument.
	(INTERNAL_SYSCALL_DECL): Define.

2003-01-06  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
	INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
	argument.
	(INTERNAL_SYSCALL_DECL): Define.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
	* sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
	(INLINE_SYSCALL): Adjust.
	* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
	* sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
	* elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
	add err argument to INTERNAL_SYSCALL* macros.
	* sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
	* sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
	* sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
	* sysdeps/unix/sysv/linux/m68k/getpagesize.c  (__getpagesize):
	Likewise.
	* sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
	* sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
	INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
2003-01-09 04:19:03 +00:00
Ulrich Drepper
f5bf21a780 Update.
Unify symbols in user namespace exported by libc.so and libc.a.
	* argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
	argp_fmtstream_free, and argp_fmtstream_printf.
	* argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
	argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
	argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
	argp_fmtstream_point.
	* gmon/gmon.c: Don't define write_profiling.
	* libio/genops.c: Don't define _cleanup.

	* intl/explodename.c (_nl_find_language.c): Mark as static.
	* intl/loadinfo.h: Remove _nl_find_language prototype.

	* libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
	* libio/libioP.h: Remove declaration.

	* libio/iopopen.c (_IO_proc_jumps): Mark as static.
	* libio/libioP.h: Remove declaration.

	* sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
	* sysdeps/generic/framestate.c: Define STATIC before including
	unwind-dw2.c.
2003-01-08 06:49:39 +00:00
Ulrich Drepper
d3f802f76e Update.
2003-01-07  Ulrich Drepper  <drepper@redhat.com>

	* time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
2003-01-08 02:31:28 +00:00
Ulrich Drepper
b5facfdac0 Update.
2003-01-06  Philip Blundell  <philb@gnu.org>

	* sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
	[__LIBC_REENTRANT]: Unify PIC and non-PIC cases.

	* sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
	directive.
	(PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
	(SYSCALL_ERROR): New.
	(SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
	handling code.
	(INTERNAL_SYSCALL): Define.
	(INLINE_SYSCALL): Use it.
	(INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
	* sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
	SYSCALL_ERROR in place of __syscall_error.

2003-01-07  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
	__bswap_32, __bswap_64): Put x into temporary variable
	to avoid warnings.
	[!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
	(inline) functions.
	* sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
	__bswap_32, __bswap_64): Put x into temporary variable
	to avoid warnings.
	[!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
	(inline) functions.
	* sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
	Likewise.

2003-01-07  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
	alias.
2003-01-08 00:22:00 +00:00
Ulrich Drepper
e9c7764ec9 Update.
2003-01-07  Jakub Jelinek  <jakub@redhat.com>

	* elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
	* elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
2003-01-07 18:54:08 +00:00
Ulrich Drepper
95b0af0dd7 Update.
2003-01-07  Ulrich Drepper  <drepper@redhat.com>

	* math/libm-test.inc (significand_test): New function.
	(main): Call it.

	* elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
2003-01-07 17:52:54 +00:00
Ulrich Drepper
f5c8f28593 (significand_test): New function. (main): Call it. 2003-01-07 17:48:42 +00:00
Roland McGrath
b9f266599e * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
arguments.
	(memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
	(strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
	(index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.

	* string/tester.c (test_strcpy): Add test with `void *' arguments.

	* malloc/malloc.c: Mark all _int_* functions as static.
2003-01-07 07:46:18 +00:00
Ulrich Drepper
2e8b940bd8 Update.
* sysdeps/i386/fpu/s_significandl.c (__significandl): Really
	return significand and not the exponent.
	Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2003-01-07 07:44:27 +00:00
Ulrich Drepper
4d464f39c8 (__significandl): Really return significand and not the exponent. 2003-01-07 07:42:11 +00:00
Roland McGrath
f7a1f1a0a1 2003-01-06 Roland McGrath <roland@redhat.com>
* string/tester.c (test_strcpy): Add test with `void *' arguments.
2003-01-07 07:38:02 +00:00
Roland McGrath
6876cdf853 2003-01-06 Roland McGrath <roland@redhat.com>
* sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
	arguments.
	(memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
	(strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
	(index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
2003-01-07 07:37:54 +00:00
Ulrich Drepper
ad5468d69f Update.
* elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explcitly
	taking address of iov in INTERNAL_SYSCALL call.  Patch by Franz Sirl.
2003-01-07 05:50:55 +00:00
Ulrich Drepper
2b31830acf Update.
2003-01-06  Ulrich Drepper  <drepper@redhat.com>

	* malloc/malloc.c: Makr all _int_* functions as static.
2003-01-07 02:45:24 +00:00
Ulrich Drepper
bef1e42fb8 Update.
2003-01-06  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
	* sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
	handling.
	* sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2003-01-07 00:49:44 +00:00
Ulrich Drepper
52f3d21331 Update.
2003-01-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
	support.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
	ftruncate64, truncate64, pread64 and pwrite64 entries.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
	(INLINE_SYSCALL): Add __builtin_expect.
	(LOADARGS_n): Add argument size safety checks.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.

2003-01-06  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
	* sysdeps/generic/creat.c: Include sysdep-cancel.h.
	(LIBC_CANCEL_HANDLED): Add.

	* sysdeps/unix/sysv/linux/alpha/sysdep.h
	(inline_syscall_r0_constraint): Rename to...
	(inline_syscall_r0_out_constraint): ... this.  Add =.
	(inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
2003-01-07 00:42:43 +00:00
Ulrich Drepper
a841816e17 Makefile for Linux/Alpha. 2003-01-06 23:51:32 +00:00
Andreas Schwab
ad1af6c259 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
sure this is always inlined.
	(elf_machine_rela): Likewise.

	* sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
2003-01-06 18:12:00 +00:00
Andreas Schwab
3e40187ac8 (elf_machine_runtime_setup): Make sure this is always inlined. (elf_machine_rela): Likewise. 2003-01-06 18:10:46 +00:00
Roland McGrath
7f6dafc1e2 * Makeconfig (+mkdep): Add -MP flag.
Suggested by Art Haas <ahaas@airmail.net>.
2003-01-06 00:42:06 +00:00
Roland McGrath
30077d51f6 2003-01-04 Roland McGrath <roland@redhat.com>
* Makeconfig (+mkdep): Add -MP flag.
	Suggested by Art Haas <ahaas@airmail.net>.
2003-01-06 00:41:51 +00:00
Ulrich Drepper
d7e650c008 Bump to 0.15. 2003-01-05 20:17:57 +00:00
Ulrich Drepper
a73ab6df85 Update.
* tst-cancel-wrappers.sh: Invoke gawk not awk since we use GNU awk
	features.  Reported by Marijn Ros <marijn@mad.scientist.com>.
2003-01-05 20:10:01 +00:00
Ulrich Drepper
c97c64de01 Update.
Patch by Marijn Ros <marijn@mad.scientist.com>.
2003-01-05 19:35:35 +00:00
Andreas Schwab
c711d9d22a * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC. 2003-01-05 17:16:17 +00:00
Andreas Schwab
c52a5fb98e * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (SINGLE_THREAD_P):
Fix for PIC.
	(CENABLE): Likewise.
	(CDISABLE): Likewise.
2003-01-05 17:10:02 +00:00
Andreas Schwab
8ecfaf1aeb (SINGLE_THREAD_P): Fix for PIC. (CENABLE): Likewise. (CDISABLE): Likewise. 2003-01-05 17:09:21 +00:00
Ulrich Drepper
bbd1745596 Update.
2003-01-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>

	* sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
	SYSCALL_ERROR_HANDLER.
	* sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
	* sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
	Add support for cancellation handling.
	* sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
	SYSCALL_ERROR_HANDLER.
	* sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
	* sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
	Add support for cancellation handling.
	(SYSCALL_ERROR_HANDLER): Define PIC variants.
2003-01-05 11:26:28 +00:00
Ulrich Drepper
bdee30cfe4 Update.
2003-01-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
	__syscall_pread64 and __syscall_pwrite64 cancelable.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
	(INTERNAL_SYSCALL): New macro.
	(LOADARGS_0, LOADARGS_1): Fix.

2003-01-05  Ulrich Drepper  <drepper@redhat.com>

	* Makerules (build-shlip-helper): Unless told otherwise, add
	-Wl,-z,defs to linker command line.
	* rt/Makefile (librt.so): Link with ld.so.
	* dlfcn/Makefile (libdl.so): Likewise.
2003-01-05 11:05:49 +00:00
Ulrich Drepper
73e9ae887f Update.
2003-01-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: New file.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile: New file.
2003-01-05 10:55:15 +00:00
Ulrich Drepper
a7f7b879fb Update.
2003-01-04  Jakub Jelinek  <jakub@redhat.com>

	* internals.h (LIBC_THREAD_GETMEM, LIBC_THREAD_SETMEM): Define
	even if NOT_IN_libc is defined.
2003-01-05 10:21:08 +00:00
Ulrich Drepper
00e58701f3 Update.
2003-01-05  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
	cancellation handling.
	* sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.

2003-01-04  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
	order of parameters passed to kill.

	* sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
2003-01-05 07:05:40 +00:00
Ulrich Drepper
b74121ae4b Update.
* Makefile (tests): Add tst-cancel7.
	(tst-cancel7-ARGS): New variable.
2003-01-05 04:58:18 +00:00
Ulrich Drepper
f0f9eb6ca3 (cancel_handler): Correct order of parameters passed to kill. 2003-01-05 04:10:16 +00:00
Andreas Schwab
6fc56e5eef initializer syntax to C99. 2003-01-04 22:56:19 +00:00
Andreas Schwab
13aa5eff48 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond
fields.
2003-01-04 22:53:07 +00:00
Andreas Schwab
fa4c0623c5 Add nanosecond fields. 2003-01-04 22:51:16 +00:00
Ulrich Drepper
6c9badfd97 Update.
* sysdeps/posix/system.c (do_system): Minor optimizations.  Remove
	unnecessary code.
	Correct reference counter in case SIGQUIT handler installation failed.
2003-01-04 22:41:52 +00:00
Ulrich Drepper
71302f5f86 (do_system): Minor optimizations. Remove unnecessary code. 2003-01-04 22:37:17 +00:00
Roland McGrath
fd4b70ea80 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
(void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
	when compiling Bison 1.875's `bitset bset = obstack_alloc
	(bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
2003-01-04 21:42:58 +00:00
Roland McGrath
134f3e2424 2002-01-03 Paul Eggert <eggert@twinsun.com>
* malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
	(void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
	when compiling Bison 1.875's `bitset bset = obstack_alloc
	(bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
2003-01-04 21:42:30 +00:00
Ulrich Drepper
43cd993307 Update.
2003-01-04  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/posix/system.c (do_system): Correct reference counter in
	case SIGQUIT handler installation failed.
2003-01-04 20:42:48 +00:00
Ulrich Drepper
29bc410c29 Update.
* old_pthread_cond_broadcast.c: Optimize initialization a bit to work
	around gcc defficiencies.
	* old_pthread_cond_signal.c: Likewise.
	* old_pthread_cond_timedwait.c: Likewise.
	* old_pthread_cond_wait.c: Likewise.
2003-01-04 09:45:01 +00:00
Ulrich Drepper
d27a78be34 Update.
2003-01-04  Ulrich Drepper  <drepper@redhat.com>

	* pthreadP.h (pthread_cond_2_0_t): Remove unneeded lock element.
2003-01-04 08:01:29 +00:00
Ulrich Drepper
7edb2ae36f Update.
* Makefile (tests): Add tst-cond7.
	* tst-cond7.c: New file.
2003-01-04 02:52:17 +00:00