poll.2: POLLNVAL is returned also for insufficient rights

Reported by:	"Bora Özarslan" <borako.ozarslan@gmail.com>
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2019-02-27 17:52:22 +00:00
parent ca28db3cd8
commit d95826c43d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=344628

View File

@ -28,7 +28,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd November 1, 2018
.Dd February 27, 2019
.Dt POLL 2
.Os
.Sh NAME
@ -127,7 +127,8 @@ should never be present in the
.Fa revents
bitmask at the same time.
.It POLLNVAL
The file descriptor is not open.
The file descriptor is not open,
or in capability mode the file descriptor has insufficient rights.
This flag is always checked, even
if not present in the
.Fa events