xref: /aosp_15_r20/external/ltp/include/lapi/faccessat.h (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) 2023 FUJITSU LIMITED. All rights reserved.
4  * Copyright (c) Linux Test Project, 2003-2023
5  * Author: Yang Xu <[email protected]>
6  */
7 
8 #ifndef FACCESSAT2_H
9 #define FACCESSAT2_H
10 
11 #include "tst_test.h"
12 #include "config.h"
13 #include "lapi/syscalls.h"
14 
15 #ifndef HAVE_FACCESSAT2
faccessat2(int dirfd,const char * pathname,int mode,int flags)16 int faccessat2(int dirfd, const char *pathname, int mode, int flags)
17 {
18 	return tst_syscall(__NR_faccessat2, dirfd, pathname, mode, flags);
19 }
20 #endif
21 
22 #endif /* FACCESSAT2_H */
23