[PATCH 23/26] file_handle: Use separate xlat for name_ta_handle_at flags
Eugene Syromyatnikov
evgsyr at gmail.com
Mon Oct 24 03:02:44 UTC 2016
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.
---
file_handle.c | 7 +++++--
xlat/name_to_handle_at_flags.in | 2 ++
2 files changed, 7 insertions(+), 2 deletions(-)
create mode 100644 xlat/name_to_handle_at_flags.in
diff --git a/file_handle.c b/file_handle.c
index 21cf0f1..009915a 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 0000000..4522a80
--- /dev/null
+++ b/xlat/name_to_handle_at_flags.in
@@ -0,0 +1,2 @@
+AT_SYMLINK_FOLLOW 0x400
+AT_EMPTY_PATH 0x1000
--
1.7.10.4
More information about the Strace-devel
mailing list