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