freebsd-nq/tests/sys/kern
Gleb Smirnoff 48a55bbfe9 unix: change error code for recvmsg() failed due to RLIMIT_NOFILE
Instead of returning EMSGSIZE pass the error code from fdallocn() directly
to userland.  That would be EMFILE, which makes much more sense.  This
error code is not listed in the specification[1], but the specification
doesn't cover such edge case at all.  Meanwhile the specification lists
EMSGSIZE as the error code for invalid value of msg_iovlen, and FreeBSD
follows that, see sys_recmsg().  Differentiating these two cases will make
a developer/admin life much easier when debugging.

[1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/recvmsg.html

Reviewed by:		markj
Differential revision:	https://reviews.freebsd.org/D35640
2022-06-29 09:42:58 -07:00
..
acct
execve tests: add a basic test for argc == 0 2022-01-26 13:40:27 -06:00
pipe Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
basic_signal.c Stop single stepping in signal handers on arm64 2022-02-07 15:03:23 +00:00
coredump_phnum_helper.c Have the coredump_phnum test ask for the page size 2022-04-07 15:59:32 +01:00
coredump_phnum_test.sh coredump_phnum_test: handle full file system gracefully 2019-10-11 21:23:46 +00:00
fdgrowtable_test.c fdgrowtable_test.c: appease gcc 2020-12-11 22:52:16 +00:00
kcov.c Remove PAGE_SIZE from the kcov tests 2022-06-17 10:43:30 +01:00
kern_copyin.c copyin tests: Use the KERN_PROC_VM_LAYOUT sysctl to fetch layout info 2022-01-17 16:12:43 -05:00
kern_descrip_test.c Fix problems in the kern_maxfiles__increase test 2019-10-08 13:43:05 +00:00
kill_zombie.c
ktls_test.c ktls_test: Permit an option to skip tests not using ifnet TLS. 2022-06-14 10:35:01 -07:00
libkern_crc32.c tests/sys/kern/crc32: Check for SSE4.2 before using it 2021-02-02 09:53:39 +00:00
Makefile tests/unix_passfd: compile SOCK_STREAM and SOCK_DGRAM versions 2022-06-24 09:09:11 -07:00
Makefile.depend
Makefile.inc
module_test.c module_test: Fix some assignments to errno intended to be tests. 2022-03-14 14:05:05 -07:00
pdeathsig_helper.c
pdeathsig.c
ptrace_test.c Add NT_ARM_ADDR_MASK 2022-02-22 17:10:35 +00:00
reaper.c
sched_affinity.c tests: Get rid of invalid since 3e11d3f6 testcase 2022-05-12 22:14:41 +03:00
sendfile_helper.c add a few tests for sendfile. 2020-07-20 20:36:32 +00:00
sendfile_test.sh kyua/qemu: When running in qemu, don't teset sendfile 2022-02-02 14:27:51 -07:00
sigaltstack.c
sigwait.c Fix build after 128b9bf9 2022-04-25 14:45:05 +03:00
sonewconn_overflow.py Clear the dmesg buffer to prevent rotating causes issues 2020-10-06 04:18:42 +00:00
sonewconn_overflow.sh Add a regression test for the changes in r359922 and r359923. 2020-04-16 20:07:34 +00:00
subr_physmem_test.c Handle non-page aligned/sized memory in physmem 2022-04-06 14:13:29 +01:00
sys_getrandom.c
sysctl_kern_proc.c tests: Add some regression tests for a couple of KERN_PROC_* sysctls 2021-12-17 13:10:52 -05:00
unix_dgram.c unix/dgram: smart socket buffers for one-to-many sockets 2022-06-24 09:09:11 -07:00
unix_passfd_dgram.c tests/unix_passfd: compile SOCK_STREAM and SOCK_DGRAM versions 2022-06-24 09:09:11 -07:00
unix_passfd_stream.c tests/unix_passfd: compile SOCK_STREAM and SOCK_DGRAM versions 2022-06-24 09:09:11 -07:00
unix_passfd_test.c unix: change error code for recvmsg() failed due to RLIMIT_NOFILE 2022-06-29 09:42:58 -07:00
unix_seqpacket_test.c
unix_socketpair_test.c
waitpid_nohang.c