syscall.sh / m68k / lchown32
lchown32
change ownership of a file
sys_lchown(const char *filename, uid_t user, gid_t group)
| number | 212 (0xd4) |
|---|---|
| abi | common |
| entry point | sys_lchown |
| since | Linux 5.0 |
| man page | lchown32(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
d0 | 212, the syscall number |
d1 | const char *filename |
d2 | uid_t user |
d3 | gid_t group |
d0 | the return value |
Then run trap #0 to enter the kernel.
Same syscall on other architectures
- x86 198
- arm 198
- microblaze 198
- sh 198
- sparc 31
Get this as JSON: https://api.syscall.sh/v2/syscalls/m68k/lchown32