diff options
author | Filip Bozuta <Filip.Bozuta@syrmia.com> | 2020-06-19 14:33:30 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2020-06-29 13:08:48 +0200 |
commit | 5844f4bc4111248b9de0c2efa422cafcdaa69cf1 (patch) | |
tree | be74b18e9ddf4b0700a5e80307d003afc602e400 /linux-user/qemu.h | |
parent | af861deaed5aa979522ec72425913295dc050f10 (diff) |
linux-user: Add strace support for printing arguments of chown()/lchown()
This patch implements strace argument printing functionality for syscalls:
*chown, lchown - change ownership of a file
int chown(const char *pathname, uid_t owner, gid_t group)
int lchown(const char *pathname, uid_t owner, gid_t group)
man page: https://www.man7.org/linux/man-pages/man2/lchown.2.html
Implementation notes:
Both syscalls use strings as arguments and thus a separate
printing function was stated in "strace.list" for them.
Both syscalls share the same number and types of arguments
and thus share a same definition in file "syscall.c".
This defintion uses existing functions "print_string()" to
print the string argument and "print_raw_param()" to print
other two arguments that are of basic types.
Signed-off-by: Filip Bozuta <Filip.Bozuta@syrmia.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200619123331.17387-6-filip.bozuta@syrmia.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/qemu.h')
0 files changed, 0 insertions, 0 deletions