syscall.sh / x64 / umask

umask

set file mode creation mask

sys_umask(int mask)
number95 (0x5f)
abicommon
entry pointsys_umask
sinceLinux 3.3
man pageumask(2)
sourceelixir.bootlin.com

Registers

registervalue
rax95, the syscall number
rdiint mask
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/x64/umask