opnsense-src/tests/sys
Kyle Evans 472ced39ef Implement a close_range(2) syscall
close_range(min, max, flags) allows for a range of descriptors to be
closed. The Python folk have indicated that they would much prefer this
interface to closefrom(2), as the case may be that they/someone have special
fds dup'd to higher in the range and they can't necessarily closefrom(min)
because they don't want to hit the upper range, but relocating them to lower
isn't necessarily feasible.

sys_closefrom has been rewritten to use kern_close_range() using ~0U to
indicate closing to the end of the range. This was chosen rather than
requiring callers of kern_close_range() to hold FILEDESC_SLOCK across the
call to kern_close_range for simplicity.

The flags argument of close_range(2) is currently unused, so any flags set
is currently EINVAL. It was added to the interface in Linux so that future
flags could be added for, e.g., "halt on first error" and things of this
nature.

This patch is based on a syscall of the same design that is expected to be
merged into Linux.

Reviewed by:	kib, markj, vangyzen (all slightly earlier revisions)
Differential Revision:	https://reviews.freebsd.org/D21627
2020-04-12 21:23:19 +00:00
..
acl Set required program for all acl tests 2019-09-05 18:54:46 +00:00
aio lio_listio_empty_nowait_thread sometimes does *not* hang. 2020-01-04 18:59:46 +00:00
audit Fix and simplify code by using ATF_REQUIRE_FEATURE macro 2019-04-01 14:21:32 +00:00
auditpipe Introduce test program for auditpipe(4) 2018-07-26 00:16:41 +00:00
capsicum Integrate capsicum-test into the FreeBSD test suite 2019-04-01 21:24:50 +00:00
cddl zfs: multiple improvements to the zpool_add tests 2019-10-10 02:17:45 +00:00
common Add tests verifying IPv4/IPv6 output for TCP/UDP/raw paths. 2020-03-23 12:21:32 +00:00
devrandom random(4): Fortuna: allow increased concurrency 2019-06-17 20:29:13 +00:00
fifo other: Fix several typos and minor errors 2017-12-27 03:23:58 +00:00
file Implement a close_range(2) syscall 2020-04-12 21:23:19 +00:00
fs fusefs: avoid cache corruption with buggy fuse servers 2020-03-11 04:29:45 +00:00
geom Temporarily skip sys.geom.class.gate.ggate_test.ggated in CI 2020-03-11 10:42:05 +00:00
kern Temporarily skip flakey test case sys.kern.ptrace_test.ptrace__parent_exits_before_child 2020-02-11 23:17:58 +00:00
kqueue kqueue tests: fix -fno-common build 2020-04-06 23:08:07 +00:00
mac Reduce nc timeout in sys.mac.portacl.* 2020-02-11 20:41:51 +00:00
mqueue DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
net Add routing tests verifying basic RTM_CHANGE functionality. 2020-04-02 20:02:33 +00:00
netinet carp tests: Basic functionality test 2020-04-12 16:13:05 +00:00
netinet6 Add tests verifying IPv4/IPv6 output for TCP/UDP/raw paths. 2020-03-23 12:21:32 +00:00
netipsec ipsec tests: Skip if ipsec.ko is not loaded 2019-05-16 02:18:57 +00:00
netmap netmap: add test cases for multiple host rings 2019-04-13 12:50:47 +00:00
netpfil Skip sys.netpfil.pf.nat.exhaust on all platforms as it not only fails on amd64 2020-03-13 16:44:48 +00:00
opencrypto Refactor driver and consumer interfaces for OCF (in-kernel crypto). 2020-03-27 18:25:23 +00:00
pjdfstest Tag pjdfstest symlink with pkgbase package 2020-02-12 17:37:32 +00:00
posixshm posixshm: implement posix_fallocate(2) 2020-01-08 19:08:44 +00:00
sys Revert r357246 2020-01-29 22:37:01 +00:00
vfs vfs_lookup: Allow PATH_MAX-1 symlinks 2017-11-17 19:25:39 +00:00
vm Adjust tests after page fault changes in r352807 2019-09-29 15:17:58 +00:00
Makefile tests: Enable net tests 2020-02-13 14:09:09 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
Makefile.inc Use MK_CHECK_USE_SANDBOX in tests/..., to deal with the fact that 2017-08-02 22:24:08 +00:00