summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/clock_gettime.2
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2015-12-20 15:11:11 +0000
committerjilles <jilles@FreeBSD.org>2015-12-20 15:11:11 +0000
commit1e23428c2e6763bb7094f632ed24f87120a89475 (patch)
tree3c0666e9da433f09ed63fabe0eb71e74dd36c7fe /lib/libc/sys/clock_gettime.2
parentaebff6f6de1c4f217c7a03ce779fd80b36ce7ec9 (diff)
downloadFreeBSD-src-1e23428c2e6763bb7094f632ed24f87120a89475.zip
FreeBSD-src-1e23428c2e6763bb7094f632ed24f87120a89475.tar.gz
clock_gettime(2),gettimeofday(2): Remove [EFAULT] error.
Depending on system configuration and parameters, clock_gettime() and gettimeofday() may not be system calls. If so, passing an invalid pointer will cause a signal and not an [EFAULT] error. From a standards perspective, this is OK since passing an invalid pointer is undefined behaviour. MFC after: 1 week
Diffstat (limited to 'lib/libc/sys/clock_gettime.2')
-rw-r--r--lib/libc/sys/clock_gettime.26
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libc/sys/clock_gettime.2 b/lib/libc/sys/clock_gettime.2
index 583cc8f..b42432f 100644
--- a/lib/libc/sys/clock_gettime.2
+++ b/lib/libc/sys/clock_gettime.2
@@ -29,7 +29,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 29, 2009
+.Dd December 20, 2015
.Dt CLOCK_GETTIME 2
.Os
.Sh NAME
@@ -136,10 +136,6 @@ The
.Fa clock_id
argument
was not a valid value.
-.It Bq Er EFAULT
-The
-.Fa *tp
-argument address referenced invalid memory.
.It Bq Er EPERM
A user other than the super-user attempted to set the time.
.El
OpenPOWER on IntegriCloud