xref: /third_party/ltp/include/lapi/execveat.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/include/lapi/
1f08c3bdfSopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later
2f08c3bdfSopenharmony_ci/*
3f08c3bdfSopenharmony_ci * Copyright (C) 2018 MediaTek Inc.  All Rights Reserved.
4f08c3bdfSopenharmony_ci */
5f08c3bdfSopenharmony_ci
6f08c3bdfSopenharmony_ci#ifndef LAPI_EXECVEAT_H__
7f08c3bdfSopenharmony_ci#define LAPI_EXECVEAT_H__
8f08c3bdfSopenharmony_ci
9f08c3bdfSopenharmony_ci#include <sys/types.h>
10f08c3bdfSopenharmony_ci#include "config.h"
11f08c3bdfSopenharmony_ci#include "lapi/syscalls.h"
12f08c3bdfSopenharmony_ci
13f08c3bdfSopenharmony_ci#if !defined(HAVE_EXECVEAT)
14f08c3bdfSopenharmony_cistatic inline int execveat(int dirfd, const char *pathname,
15f08c3bdfSopenharmony_ci			   char *const argv[], char *const envp[],
16f08c3bdfSopenharmony_ci			   int flags)
17f08c3bdfSopenharmony_ci{
18f08c3bdfSopenharmony_ci	return tst_syscall(__NR_execveat, dirfd, pathname, argv, envp, flags);
19f08c3bdfSopenharmony_ci}
20f08c3bdfSopenharmony_ci#endif
21f08c3bdfSopenharmony_ci
22f08c3bdfSopenharmony_ci#endif /* LAPI_EXECVEAT_H__ */
23

Indexes created Thu Nov 07 10:32:03 CST 2024