syscall.sh / x32 / close

close

close a file descriptor

sys_close(unsigned int fd)
number1073741827 (0x40000003)
abicommon
entry pointsys_close
sinceLinux 3.4
man pageclose(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073741827, the syscall number
rdiunsigned int fd
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/close