net: add __sys_accept4_file() helper
authorJens Axboe <axboe@kernel.dk>
Thu, 17 Oct 2019 20:41:29 +0000 (14:41 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Oct 2019 18:43:06 +0000 (12:43 -0600)
commitde2ea4b64b75a79ed9cdf9bf30e0e197901084e4
tree141d91c7790a38ad446129c46db262855f3510d7
parentfcb323cc53e29d9cc696d606bb42736b32dd9825
net: add __sys_accept4_file() helper

This is identical to __sys_accept4(), except it takes a struct file
instead of an fd, and it also allows passing in extra file->f_flags
flags. The latter is done to support masking in O_NONBLOCK without
manipulating the original file flags.

No functional changes in this patch.

Cc: netdev@vger.kernel.org
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/socket.h
net/socket.c