syscall.sh / sh / umask
umask
set file mode creation mask
sys_umask(int mask)
| number | 60 (0x3c) |
|---|---|
| abi | common |
| entry point | sys_umask |
| since | Linux 5.0 |
| man page | umask(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 60, the syscall number |
r4 | int mask |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x64 95
- 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
- sparc 60
- sparc64 60
- xtensa 58
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/umask