syscall.sh / x86 / umask

umask

set file mode creation mask

sys_umask(int mask)
number60 (0x3c)
abii386
entry pointsys_umask
sinceLinux 3.3
man pageumask(2)
sourceelixir.bootlin.com

Registers

registervalue
eax60, the syscall number
ebxint mask
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/umask