syscall.sh / m68k / 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 |
|---|---|
d0 | 94, the syscall number |
d1 | unsigned int fd |
d2 | umode_t mode |
d0 | the return value |
Then run trap #0 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
- 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/m68k/fchmod