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
This commit is contained in:
parent
7f7cd1d54c
commit
11022e84d8
@ -29,7 +29,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd December 29, 2009
|
.Dd December 20, 2015
|
||||||
.Dt CLOCK_GETTIME 2
|
.Dt CLOCK_GETTIME 2
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -136,10 +136,6 @@ The
|
|||||||
.Fa clock_id
|
.Fa clock_id
|
||||||
argument
|
argument
|
||||||
was not a valid value.
|
was not a valid value.
|
||||||
.It Bq Er EFAULT
|
|
||||||
The
|
|
||||||
.Fa *tp
|
|
||||||
argument address referenced invalid memory.
|
|
||||||
.It Bq Er EPERM
|
.It Bq Er EPERM
|
||||||
A user other than the super-user attempted to set the time.
|
A user other than the super-user attempted to set the time.
|
||||||
.El
|
.El
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
.\" @(#)gettimeofday.2 8.2 (Berkeley) 5/26/95
|
.\" @(#)gettimeofday.2 8.2 (Berkeley) 5/26/95
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd May 26, 1995
|
.Dd December 20, 2015
|
||||||
.Dt GETTIMEOFDAY 2
|
.Dt GETTIMEOFDAY 2
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -110,8 +110,6 @@ system call even when the system is secure.
|
|||||||
The following error codes may be set in
|
The following error codes may be set in
|
||||||
.Va errno :
|
.Va errno :
|
||||||
.Bl -tag -width Er
|
.Bl -tag -width Er
|
||||||
.It Bq Er EFAULT
|
|
||||||
An argument address referenced invalid memory.
|
|
||||||
.It Bq Er EPERM
|
.It Bq Er EPERM
|
||||||
A user other than the super-user attempted to set the time.
|
A user other than the super-user attempted to set the time.
|
||||||
.El
|
.El
|
||||||
|
Loading…
x
Reference in New Issue
Block a user