summaryrefslogtreecommitdiffstats
path: root/kernel/tests/include/lapi/syncfs.h
blob: e5d29fa96a6b98f651686bb43a3c74d8e5ed7d02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (c) 2019 Linaro Limited. All rights reserved.
 * Author: Sumit Garg <sumit.garg@linaro.org>
 */

#ifndef SYNCFS_H
#define SYNCFS_H

#include "config.h"
#include <sys/types.h>
#include "lapi/syscalls.h"

#if !defined(HAVE_SYNCFS)
int syncfs(int fd)
{
	return tst_syscall(__NR_syncfs, fd);
}
#endif

#endif /* SYNCFS_H */