diff options
Diffstat (limited to 'src/fsmount.c')
-rw-r--r-- | src/fsmount.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/fsmount.c b/src/fsmount.c new file mode 100644 index 000000000..5922421c2 --- /dev/null +++ b/src/fsmount.c @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2019 Dmitry V. Levin <ldv@strace.io> + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + +#include "defs.h" +#ifdef HAVE_LINUX_MOUNT_H +# include <linux/mount.h> +#endif +#include "xlat/fsmount_flags.h" +#include "xlat/mount_attr_flags.h" + +SYS_FUNC(fsmount) +{ + printfd(tcp, tcp->u_arg[0]); + tprints(", "); + + printflags(fsmount_flags, tcp->u_arg[1], "FSMOUNT_???"); + tprints(", "); + + printflags(mount_attr_flags, tcp->u_arg[2], "MOUNT_ATTR_???"); + + return RVAL_DECODED | RVAL_FD; +} |