1f08c3bdfSopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later
2f08c3bdfSopenharmony_ci/*
3f08c3bdfSopenharmony_ci * Copyright (c) International Business Machines  Corp., 2007
4f08c3bdfSopenharmony_ci * Copyright (c) 2014 Fujitsu Ltd.
5f08c3bdfSopenharmony_ci */
6f08c3bdfSopenharmony_ci
7f08c3bdfSopenharmony_ci#ifndef LAPI_TEE_H__
8f08c3bdfSopenharmony_ci#define LAPI_TEE_H__
9f08c3bdfSopenharmony_ci
10f08c3bdfSopenharmony_ci#include "config.h"
11f08c3bdfSopenharmony_ci#include "lapi/syscalls.h"
12f08c3bdfSopenharmony_ci
13f08c3bdfSopenharmony_ci#if !defined(HAVE_TEE)
14f08c3bdfSopenharmony_cistatic inline ssize_t tee(int fd_in, int fd_out,
15f08c3bdfSopenharmony_ci                          size_t len, unsigned int flags)
16f08c3bdfSopenharmony_ci{
17f08c3bdfSopenharmony_ci	return tst_syscall(__NR_tee, fd_in, fd_out, len, flags);
18f08c3bdfSopenharmony_ci}
19f08c3bdfSopenharmony_ci#endif
20f08c3bdfSopenharmony_ci
21f08c3bdfSopenharmony_ci#endif /* LAPI_TEE_H__ */
22