from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

209586

userrating:


May 25th. 2007:
Words

486

Views

258592

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

149883

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





ENOSYS

Section: User Commands (1)
Updated: 202-1-15
Index Return to Main Contents
 

NAME

enosys - utility to make syscalls fail with ENOSYS  

SYNOPSIS

enosys [--syscall|-s syscall] command  

DESCRIPTION

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.  

OPTIONS

-s, --syscall

Syscall to block with ENOSYS. Can be specified multiple times. An alternative error number or name can be specified with a colon.

-i, --ioctl

Ioctl to block with ENOTTY. Can be specified multiple times. An alternative error number or name can be specified with a colon.

-l, --list

List syscalls known to enosys.

-m, --list-ioctl

List ioctls known to enosys.

-d, --dump[=file]

Dump seccomp bytecode filter to standard output.

The dump can for example be used by setpriv --seccomp-filter.

-h, --help

Display help text and exit.

-V, --version

Display version and exit.
 

EXAMPLES

# 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 ...

# fail ioctl FIOCLEX with value 12/ENOMEM
enosys -i FIOCLEX:12 ...
 

EXIT STATUS

enosys exits with the status code of the executed process. The following values have special meanings:

1

internal error

2

system does not provide the necessary functionality
 

AUTHORS

 

SEE ALSO

syscall(2)  

REPORTING BUGS

For bug reports, use the https://github.com/uti-linux/uti-linux/issues <L>issue tracker  

AVAILABILITY

The enosys command is part of the util-linux package which can be downloaded from https://www.kernel.org/pub/linux/utils/uti-linux/ <L>Linux Kernel Archive


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
EXIT STATUS
AUTHORS
SEE ALSO
REPORTING BUGS
AVAILABILITY





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 13.1 ms