syscall.sh / nios2 / fchmod
fchmod
change permissions of a file
sys_fchmod(unsigned int fd, umode_t mode)
| number | 52 (0x34) |
|---|---|
| abi | common |
| entry point | sys_fchmod |
| since | Linux 3.19 |
| man page | fchmod(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r2 | 52, the syscall number |
r4 | unsigned int fd |
r5 | umode_t mode |
r2 | the return value |
Then run trap to enter the kernel.
Same syscall on other architectures
- x64 91
- x86 94
- arm64 52
- arm 94
- riscv64 52
- x32 1073741915
- loongarch64 52
- ppc64 94
- ppc 94
- s390x 94
- mips64 5089
- mipsn32 6089
- mipso32 4094
- alpha 124
- arc 52
- csky 52
- hexagon 52
- m68k 94
- microblaze 94
- openrisc 52
- parisc 94
- sh 94
- sparc 124
- sparc64 124
- xtensa 52
Get this as JSON: https://api.syscall.sh/v2/syscalls/nios2/fchmod