summaryrefslogtreecommitdiff
path: root/move_mount.c
blob: df150114f0f1d738512c8e95fe09fac6b7b83cbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (c) 2019 Dmitry V. Levin <ldv@altlinux.org>
 * 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/move_mount_flags.h"

SYS_FUNC(move_mount)
{
	print_dirfd(tcp, tcp->u_arg[0]);
	tprints(", ");
	printpath(tcp, tcp->u_arg[1]);
	tprints(", ");
	print_dirfd(tcp, tcp->u_arg[2]);
	tprints(", ");
	printpath(tcp, tcp->u_arg[3]);
	tprints(", ");
	printflags(move_mount_flags, tcp->u_arg[4], "MOVE_MOUNT_???");
	return RVAL_DECODED;
}