xref: /aosp_15_r20/external/ltp/include/lapi/syncfs.h (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) 2019 Linaro Limited. All rights reserved.
4  * Author: Sumit Garg <[email protected]>
5  */
6 
7 #ifndef LAPI_SYNCFS_H__
8 #define LAPI_SYNCFS_H__
9 
10 #include "config.h"
11 #include <sys/types.h>
12 #include "lapi/syscalls.h"
13 
14 #if !defined(HAVE_SYNCFS)
syncfs(int fd)15 static inline int syncfs(int fd)
16 {
17 	return tst_syscall(__NR_syncfs, fd);
18 }
19 #endif
20 
21 #endif /* LAPI_SYNCFS_H__ */
22