2003-07-27 Ulrich Drepper <drepper@redhat.com>
+ * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
+ * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
+ * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
* sysdeps/unix/syscalls.list: umask syscall never fails.
2003-07-27 Andreas Jaeger <aj@suse.de>
-/* Copyright (C) 1991,92,96,97,2002 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,96,97,2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
#include <sysdep.h>
#include <asm-syntax.h>
-SYSCALL (time, 1)
+PSEUDO_NOERRNO (time, time, 1)
movl 4(%esp), %edx /* Put passed pointer in %edx. */
testl %edx, %edx /* Is it non-nil? */
je L(null)
movl %eax, (%edx) /* Yes; store the time there. */
L(null):
ret
-PSEUDO_END (time)
+PSEUDO_END_NOERRNO (time)
libc_hidden_def (time)
/* Align stack. */
sub $0x8, %rsp
cfi_adjust_cfa_offset(8)
-
+
movq $VSYSCALL_ADDR_vtime, %rax
callq *%rax
- /* Check error return. */
- cmpl $-4095, %eax
- jae SYSCALL_ERROR_LABEL
-L(pseudo_end):
add $0x8, %rsp
cfi_adjust_cfa_offset(-8)
ret
-PSEUDO_END(time)
+PSEUDO_END_NOERRNO(time)
libc_hidden_def (time)
settimeofday - settimeofday i:PP __settimeofday settimeofday
signal - signal i:ii signal
stime - stime i:p stime
-time - time i:P time
+time - time Ei:P time
times - times i:p __times times
ulimit - ulimit i:ii ulimit
utime - utime i:sP utime