* 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.
This commit is contained in:
Ulrich Drepper 2003-07-27 19:02:36 +00:00
parent 54943a039f
commit 35107e0ce4
4 changed files with 9 additions and 10 deletions

View File

@ -1,5 +1,8 @@
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>

View File

@ -1,4 +1,4 @@
/* 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
@ -19,12 +19,12 @@
#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)

View File

@ -31,16 +31,12 @@ ENTRY (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)

View File

@ -10,7 +10,7 @@ setrlimit - setrlimit i:ip __setrlimit setrlimit
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