]> granicus.if.org Git - strace/blob - fsmount.c
tests: add ioctl_evdev-success* test binaries to .gitignore
[strace] / fsmount.c
1 /*
2  * Copyright (c) 2019 Dmitry V. Levin <ldv@altlinux.org>
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: LGPL-2.1-or-later
6  */
7
8 #include "defs.h"
9 #ifdef HAVE_LINUX_MOUNT_H
10 # include <linux/mount.h>
11 #endif
12 #include "xlat/fsmount_flags.h"
13 #include "xlat/mount_attr_flags.h"
14
15 SYS_FUNC(fsmount)
16 {
17         printfd(tcp, tcp->u_arg[0]);
18         tprints(", ");
19
20         printflags(fsmount_flags, tcp->u_arg[1], "FSMOUNT_???");
21         tprints(", ");
22
23         printflags(mount_attr_flags, tcp->u_arg[2], "MOUNT_ATTR_???");
24
25         return RVAL_DECODED | RVAL_FD;
26 }