remove sigsz from io_uring_enter.2

Users shouldn't be concerned with the size of the sigset.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Jeff Moyer
2019-02-08 14:30:16 -05:00
committed by Jens Axboe
parent e377c38ca7
commit bd7ad347f9

View File

@@ -14,7 +14,7 @@ io_uring_enter \- initiate and/or complete asynchronous I/O
.PP .PP
.BI "int io_uring_enter(unsigned int " fd ", unsigned int " to_submit , .BI "int io_uring_enter(unsigned int " fd ", unsigned int " to_submit ,
.BI " unsigned int " min_complete ", unsigned int " flags , .BI " unsigned int " min_complete ", unsigned int " flags ,
.BI " sigset_t *" sig ", size_t " sigsz) .BI " sigset_t *" sig);
.fi .fi
.PP .PP
.SH DESCRIPTION .SH DESCRIPTION
@@ -55,11 +55,7 @@ queue without entering the kernel.
.I sig .I sig
is a pointer to a signal mask (see is a pointer to a signal mask (see
.BR sigprocmask (2)); .BR sigprocmask (2)); if
.I sigsz
is the size of the
.I sig
argument. If
.I sig .I sig
is not NULL, is not NULL,
.BR io_uring_enter () .BR io_uring_enter ()
@@ -72,8 +68,7 @@ call:
.PP .PP
.in +4n .in +4n
.EX .EX
ret = io_uring_enter(fd, 0, 1, ret = io_uring_enter(fd, 0, 1, IORING_ENTER_GETEVENTS, &sig);
IORING_ENTER_GETEVENTS, &sig, sigsz);
.EE .EE
.in .in
.PP .PP
@@ -84,7 +79,7 @@ executing the following calls:
.in +4n .in +4n
.EX .EX
pthread_sigmask(SIG_SETMASK, &sig, &orig); pthread_sigmask(SIG_SETMASK, &sig, &orig);
ret = io_uring_enter(fd, 0, 1, IORING_ENTER_GETEVENTS, NULL, 0); ret = io_uring_enter(fd, 0, 1, IORING_ENTER_GETEVENTS, NULL);
pthread_sigmask(SIG_SETMASK, &orig, NULL); pthread_sigmask(SIG_SETMASK, &orig, NULL);
.EE .EE
.in .in