mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-26 20:03:54 -06:00
linux-user: Support F_ADD_SEALS and F_GET_SEALS fcntls
Also reorder blocks so that they are all in the same order everywhere. Signed-off-by: Shu-Chun Weng <scw@google.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20201218193213.3566856-2-scw@google.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
48202c7124
commit
2bb963ff6b
3 changed files with 50 additions and 13 deletions
|
@ -2066,11 +2066,34 @@ print_fcntl(void *cpu_env, const struct syscallname *name,
|
|||
break;
|
||||
case TARGET_F_SETLEASE:
|
||||
qemu_log("F_SETLEASE,");
|
||||
print_raw_param(TARGET_ABI_FMT_ld, arg2, 0);
|
||||
print_raw_param(TARGET_ABI_FMT_ld, arg2, 1);
|
||||
break;
|
||||
case TARGET_F_GETLEASE:
|
||||
qemu_log("F_GETLEASE");
|
||||
break;
|
||||
#ifdef F_DUPFD_CLOEXEC
|
||||
case TARGET_F_DUPFD_CLOEXEC:
|
||||
qemu_log("F_DUPFD_CLOEXEC,");
|
||||
print_raw_param(TARGET_ABI_FMT_ld, arg2, 1);
|
||||
break;
|
||||
#endif
|
||||
case TARGET_F_NOTIFY:
|
||||
qemu_log("F_NOTIFY,");
|
||||
print_raw_param(TARGET_ABI_FMT_ld, arg2, 1);
|
||||
break;
|
||||
#ifdef F_GETOWN_EX
|
||||
case TARGET_F_GETOWN_EX:
|
||||
qemu_log("F_GETOWN_EX,");
|
||||
print_pointer(arg2, 1);
|
||||
break;
|
||||
#endif
|
||||
#ifdef F_SETOWN_EX
|
||||
case TARGET_F_SETOWN_EX:
|
||||
qemu_log("F_SETOWN_EX,");
|
||||
print_pointer(arg2, 1);
|
||||
break;
|
||||
#endif
|
||||
#ifdef F_SETPIPE_SZ
|
||||
case TARGET_F_SETPIPE_SZ:
|
||||
qemu_log("F_SETPIPE_SZ,");
|
||||
print_raw_param(TARGET_ABI_FMT_ld, arg2, 1);
|
||||
|
@ -2078,14 +2101,16 @@ print_fcntl(void *cpu_env, const struct syscallname *name,
|
|||
case TARGET_F_GETPIPE_SZ:
|
||||
qemu_log("F_GETPIPE_SZ");
|
||||
break;
|
||||
case TARGET_F_DUPFD_CLOEXEC:
|
||||
qemu_log("F_DUPFD_CLOEXEC,");
|
||||
print_raw_param(TARGET_ABI_FMT_ld, arg2, 1);
|
||||
#endif
|
||||
#ifdef F_ADD_SEALS
|
||||
case TARGET_F_ADD_SEALS:
|
||||
qemu_log("F_ADD_SEALS,");
|
||||
print_raw_param("0x"TARGET_ABI_FMT_lx, arg2, 1);
|
||||
break;
|
||||
case TARGET_F_NOTIFY:
|
||||
qemu_log("F_NOTIFY,");
|
||||
print_raw_param(TARGET_ABI_FMT_ld, arg2, 0);
|
||||
case TARGET_F_GET_SEALS:
|
||||
qemu_log("F_GET_SEALS");
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
print_raw_param(TARGET_ABI_FMT_ld, arg1, 0);
|
||||
print_pointer(arg2, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue