syscall.sh / nios2 / fchownat

fchownat

change ownership of a file

sys_fchownat(int dfd, const char *filename, uid_t user, gid_t group, int flag)
number54 (0x36)
abicommon
entry pointsys_fchownat
sinceLinux 3.19
man pagefchownat(2)
sourceelixir.bootlin.com

Registers

registervalue
r254, the syscall number
r4int dfd
r5const char *filename
r6uid_t user
r7gid_t group
r8int flag
r2the return value

Then run trap to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/nios2/fchownat