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