From: Eugene Syromyatnikov Date: Thu, 20 Oct 2016 21:48:50 +0000 (+0300) Subject: file_handle: use separate xlat for name_ta_handle_at flags X-Git-Tag: v4.15~182 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e1f1e7a92616fdf4508914b396ee03d91f8efdb;p=strace file_handle: use separate xlat for name_ta_handle_at flags Since the only two flags supported are AT_SYMLINK_FOLLOW and AT_EMPTY_PATH. * xlat/name_to_handle_at_flags.in: New file. * file_handle.c (SYS_FUNC(name_to_handle_at)): Use name_to_handle_at_flags for printing flags parameter. --- diff --git a/file_handle.c b/file_handle.c index 21cf0f18..009915a7 100644 --- a/file_handle.c +++ b/file_handle.c @@ -27,6 +27,8 @@ #include "defs.h" +#include "xlat/name_to_handle_at_flags.h" + #ifndef MAX_HANDLE_SZ # define MAX_HANDLE_SZ 128 #endif @@ -58,7 +60,8 @@ SYS_FUNC(name_to_handle_at) tprints(", "); /* flags */ - printflags(at_flags, tcp->u_arg[4], "AT_???"); + printflags(name_to_handle_at_flags, tcp->u_arg[4], + "AT_???"); return RVAL_DECODED; } @@ -95,7 +98,7 @@ SYS_FUNC(name_to_handle_at) tprints(", "); /* flags */ - printflags(at_flags, tcp->u_arg[4], "AT_???"); + printflags(name_to_handle_at_flags, tcp->u_arg[4], "AT_???"); } return 0; } diff --git a/xlat/name_to_handle_at_flags.in b/xlat/name_to_handle_at_flags.in new file mode 100644 index 00000000..4522a801 --- /dev/null +++ b/xlat/name_to_handle_at_flags.in @@ -0,0 +1,2 @@ +AT_SYMLINK_FOLLOW 0x400 +AT_EMPTY_PATH 0x1000