aboutsummaryrefslogtreecommitdiffstats
path: root/libexec_open.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec_open.c')
-rw-r--r--libexec_open.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libexec_open.c b/libexec_open.c
new file mode 100644
index 0000000..7aa2698
--- /dev/null
+++ b/libexec_open.c
@@ -0,0 +1,15 @@
+/* See LICENSE file for copyright and license details. */
+#include "common.h"
+#ifndef TEST
+
+
+int
+libexec_open(struct libexec_command *cmd, int fd, const char *file, int flags, mode_t mode)
+{
+ return libexec_openat(cmd, fd, AT_FDCWD, file, flags, mode);
+}
+
+
+#else
+LIBEXEC_CONST__ int main(void) {return 0;} /* TODO test */
+#endif