syscall.sh / x86 / fcntl

fcntl

manipulate file descriptor

sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
number55 (0x37)
abii386
entry pointsys_fcntl
sinceLinux 3.3
man pagefcntl(2)
sourceelixir.bootlin.com

Registers

registervalue
eax55, the syscall number
ebxunsigned int fd
ecxunsigned int cmd
edxunsigned long arg
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/fcntl