io_uring_enter: don't expose sigset_size argument

Applications should not need to care about this, we can pass it in
ourselves. Once the libc support is there, we won't expose this
parameter either.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Jens Axboe
2019-02-08 11:40:17 -07:00
parent f171fa43ab
commit e377c38ca7
3 changed files with 6 additions and 5 deletions

View File

@@ -4,6 +4,7 @@
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/uio.h>
#include <signal.h>
#include "compat.h"
#include "io_uring.h"
@@ -33,8 +34,8 @@ int io_uring_setup(unsigned int entries, struct io_uring_params *p)
}
int io_uring_enter(int fd, unsigned int to_submit, unsigned int min_complete,
unsigned int flags, sigset_t *sig, size_t sigsz)
unsigned int flags, sigset_t *sig)
{
return syscall(__NR_sys_io_uring_enter, fd, to_submit, min_complete,
flags, sig, sigsz);
flags, sig, _NSIG / 8);
}