summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2015-12-27 15:30:13 +0000
committerjilles <jilles@FreeBSD.org>2015-12-27 15:30:13 +0000
commita0fabd0e1abc05233002d9227139019d3bf322cc (patch)
tree8ae2d3b579dc3291f9db84b9e4de2fb8c9dd836c /lib
parentec568734f0f790fdf079f1ad4f5cbbd6704e1159 (diff)
downloadFreeBSD-src-a0fabd0e1abc05233002d9227139019d3bf322cc.zip
FreeBSD-src-a0fabd0e1abc05233002d9227139019d3bf322cc.tar.gz
MFC r292513: 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.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/clock_gettime.26
-rw-r--r--lib/libc/sys/gettimeofday.24
2 files changed, 2 insertions, 8 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
diff --git a/lib/libc/sys/gettimeofday.2 b/lib/libc/sys/gettimeofday.2
index 23cc059..888cbcd 100644
--- a/lib/libc/sys/gettimeofday.2
+++ b/lib/libc/sys/gettimeofday.2
@@ -28,7 +28,7 @@
.\" @(#)gettimeofday.2 8.2 (Berkeley) 5/26/95
.\" $FreeBSD$
.\"
-.Dd May 26, 1995
+.Dd December 20, 2015
.Dt GETTIMEOFDAY 2
.Os
.Sh NAME
@@ -110,8 +110,6 @@ system call even when the system is secure.
The following error codes may be set in
.Va errno :
.Bl -tag -width Er
-.It Bq Er EFAULT
-An 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