[Midnightbsd-cvs] src [8161] trunk/lib/libc/sys: sigaction(2), sigwait(2), sigwaitinfo(2): Remove [EFAULT] error
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Sep 16 22:20:13 EDT 2016
Revision: 8161
http://svnweb.midnightbsd.org/src/?rev=8161
Author: laffer1
Date: 2016-09-16 22:20:13 -0400 (Fri, 16 Sep 2016)
Log Message:
-----------
sigaction(2),sigwait(2),sigwaitinfo(2): Remove [EFAULT] error
condition.
Passing an invalid pointer results in undefined behaviour.
The wrappers in libthr access some of the data pointed to by the arguments
in userland, so that an invalid pointer will cause a signal and not an
[EFAULT] error return.
Furthermore, if the [EFAULT] error occurs when the kernel is writing, it is
not a proper error in the sense that the call still commits (changing the
signal disposition or accepting the signal).
Obtained from: FreeBSD
Modified Paths:
--------------
trunk/lib/libc/sys/sigaction.2
trunk/lib/libc/sys/sigwait.2
trunk/lib/libc/sys/sigwaitinfo.2
Modified: trunk/lib/libc/sys/sigaction.2
===================================================================
--- trunk/lib/libc/sys/sigaction.2 2016-09-17 02:17:04 UTC (rev 8160)
+++ trunk/lib/libc/sys/sigaction.2 2016-09-17 02:20:13 UTC (rev 8161)
@@ -28,7 +28,7 @@
.\" From: @(#)sigaction.2 8.2 (Berkeley) 4/3/94
.\" $MidnightBSD$
.\"
-.Dd April 18, 2010
+.Dd September 27, 2012
.Dt SIGACTION 2
.Os
.Sh NAME
@@ -586,13 +586,6 @@
will fail and no new signal handler will be installed if one
of the following occurs:
.Bl -tag -width Er
-.It Bq Er EFAULT
-Either
-.Fa act
-or
-.Fa oact
-points to memory that is not a valid part of the process
-address space.
.It Bq Er EINVAL
The
.Fa sig
Modified: trunk/lib/libc/sys/sigwait.2
===================================================================
--- trunk/lib/libc/sys/sigwait.2 2016-09-17 02:17:04 UTC (rev 8160)
+++ trunk/lib/libc/sys/sigwait.2 2016-09-17 02:20:13 UTC (rev 8161)
@@ -27,7 +27,7 @@
.\"
.\" $MidnightBSD$
.\"
-.Dd August 24, 2011
+.Dd September 27, 2012
.Dt SIGWAIT 2
.Os
.Sh NAME
@@ -107,9 +107,6 @@
.Fa set
argument
specifies one or more invalid signal numbers.
-.It Bq Er EFAULT
-Any arguments point outside the allocated address space or there is a
-memory protection fault.
.El
.Sh SEE ALSO
.Xr sigaction 2 ,
Modified: trunk/lib/libc/sys/sigwaitinfo.2
===================================================================
--- trunk/lib/libc/sys/sigwaitinfo.2 2016-09-17 02:17:04 UTC (rev 8160)
+++ trunk/lib/libc/sys/sigwaitinfo.2 2016-09-17 02:20:13 UTC (rev 8161)
@@ -27,7 +27,7 @@
.\"
.\" $MidnightBSD$
.\"
-.Dd August 24, 2011
+.Dd September 27, 2012
.Dt SIGTIMEDWAIT 2
.Os
.Sh NAME
@@ -172,9 +172,6 @@
.Bl -tag -width Er
.It Bq Er EINTR
The wait was interrupted by an unblocked, caught signal.
-.It Bq Er EFAULT
-Any arguments point outside the allocated address space or there is a
-memory protection fault.
.Pp
.El
The
More information about the Midnightbsd-cvs
mailing list