syscall.sh / m68k / chown
chown
change ownership of a file
sys_chown16(const char *filename, old_uid_t user, old_gid_t group)
| number | 16 (0x10) |
|---|---|
| abi | common |
| entry point | sys_chown16 |
| since | Linux 5.0 |
| man page | chown(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
d0 | 16, the syscall number |
d1 | const char *filename |
d2 | old_uid_t user |
d3 | old_gid_t group |
d0 | the return value |
Then run trap #0 to enter the kernel.
Same syscall on other architectures
- x64 92
- x86 182
- arm 182
- x32 1073741916
- ppc64 181
- ppc 181
- s390x 212
- mips64 5090
- mipsn32 6090
- mipso32 4202
- alpha 16
- microblaze 182
- parisc 180
- sh 182
- sparc 13
- sparc64 13
- xtensa 45
Get this as JSON: https://api.syscall.sh/v2/syscalls/m68k/chown