diff options
Diffstat (limited to 'include/lapi/faccessat.h')
-rw-r--r-- | include/lapi/faccessat.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/lapi/faccessat.h b/include/lapi/faccessat.h new file mode 100644 index 000000000..05997d975 --- /dev/null +++ b/include/lapi/faccessat.h @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (c) 2023 FUJITSU LIMITED. All rights reserved. + * Copyright (c) Linux Test Project, 2003-2023 + * Author: Yang Xu <xuyang2018.jy@fujitsu.com> + */ + +#ifndef FACCESSAT2_H +#define FACCESSAT2_H + +#include "tst_test.h" +#include "config.h" +#include "lapi/syscalls.h" + +#ifndef HAVE_FACCESSAT2 +int faccessat2(int dirfd, const char *pathname, int mode, int flags) +{ + return tst_syscall(__NR_faccessat2, dirfd, pathname, mode, flags); +} +#endif + +#endif /* FACCESSAT2_H */ |