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