summaryrefslogtreecommitdiffstats
path: root/src/kernel/tests/include/lapi/execveat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tests/include/lapi/execveat.h')
-rw-r--r--src/kernel/tests/include/lapi/execveat.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/kernel/tests/include/lapi/execveat.h b/src/kernel/tests/include/lapi/execveat.h
new file mode 100644
index 0000000..a7406f7
--- /dev/null
+++ b/src/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 */