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