summaryrefslogtreecommitdiff
path: root/fsopen.c
blob: 293bbfa524ccaee7a0f0974bf8772aaa1d20946c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * 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/fsopen_flags.h"

SYS_FUNC(fsopen)
{
	printstr(tcp, tcp->u_arg[0]);
	tprints(", ");
	printflags(fsopen_flags, tcp->u_arg[1], "FSOPEN_???");
	return RVAL_DECODED | RVAL_FD;
}