diff options
Diffstat (limited to 'kernel/tests/include/lapi/execveat.h')
-rw-r--r-- | kernel/tests/include/lapi/execveat.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/kernel/tests/include/lapi/execveat.h b/kernel/tests/include/lapi/execveat.h new file mode 100644 index 0000000..a7406f7 --- /dev/null +++ b/kernel/tests/include/lapi/execveat.h @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2018 MediaTek Inc. All Rights Reserved. + */ + +#ifndef EXECVEAT_H +#define EXECVEAT_H + +#include <sys/types.h> +#include "config.h" +#include "lapi/syscalls.h" + +#if !defined(HAVE_EXECVEAT) +int execveat(int dirfd, const char *pathname, + char *const argv[], char *const envp[], + int flags) +{ + return tst_syscall(__NR_execveat, dirfd, pathname, argv, envp, flags); +} +#endif + +#endif /* EXECVEAT_H */ |