syscall.sh / x64 / umask
umask
set file mode creation mask
sys_umask(int mask)
| number | 95 (0x5f) |
|---|---|
| abi | common |
| entry point | sys_umask |
| since | Linux 3.3 |
| man page | umask(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 95, the syscall number |
rdi | int mask |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x86 60
- arm64 166
- arm 60
- riscv64 166
- x32 1073741919
- loongarch64 166
- ppc64 60
- ppc 60
- s390x 60
- mips64 5093
- mipsn32 6093
- mipso32 4060
- alpha 60
- arc 166
- csky 166
- hexagon 166
- m68k 60
- microblaze 60
- nios2 166
- openrisc 166
- parisc 60
- sh 60
- sparc 60
- sparc64 60
- xtensa 58
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/umask