syscall.sh / mipsn32 / chmod
chmod
change permissions of a file
sys_chmod(const char *filename, umode_t mode)
| number | 6088 (0x17c8) |
|---|---|
| abi | n32 |
| entry point | sys_chmod |
| since | Linux 5.0 |
| man page | chmod(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 6088, the syscall number |
a0 | const char *filename |
a1 | umode_t mode |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 90
- x86 15
- arm 15
- x32 1073741914
- ppc64 15
- ppc 15
- s390x 15
- mips64 5088
- mipso32 4015
- alpha 15
- m68k 15
- microblaze 15
- parisc 15
- sh 15
- sparc 15
- sparc64 15
- xtensa 44
Get this as JSON: https://api.syscall.sh/v2/syscalls/mipsn32/chmod