| ENOSYS(1) | Команди користувача | ENOSYS(1) |
enosys - інструмент для завершення системних викликів помилкою з кодом ENOSYS
enosys [--syscall|-s системний-виклик] команда
enosys is a simple command to execute a child process for which certain syscalls fail with errno ENOSYS.
It can be used to test the behavior of applications in the face of missing syscalls as would happen when running on old kernels.
-s, --syscall
-i, --ioctl
-l, --list
-m, --list-ioctl
-d, --dump[=файл]
The dump can for example be used by setpriv --seccomp-filter.
-h, --help
-V, --version
# fail syscall "fallocate" with ENOSYS enosys -s fallocate ...
# fail syscall "fallocate" with ENOMEM enosys -s fallocate:ENOMEM ...
# fail syscall "fallocate" with value 12/ENOMEM enosys -s fallocate:12 ...
# fail ioctl FIOCLEX with ENOTTY enosys -i FIOCLEX ...
# fail ioctl FIOCLEX with ENOMEM enosys -i FIOCLEX:ENOMEM ...
# вийти з помилкою для ioctl FIOCLEX зі значенням 12/ENOMEM enosys -i FIOCLEX:12 ...
enosys exits with the status code of the executed process. The following values have special meanings:
1
2
Thomas Weißschuh <thomas@t-8ch.de>
Для звітування щодо вад скористайтеся системою стеження за вадами <https://github.com/util-linux/util-linux/issues>
Програма enosys є частиною пакунка util-linux, який можна отримати з архіву ядра Linux <https://www.kernel.org/pub/linux/utils/util-linux/>.
| 2025-05-09 | util-linux 2.41 |