aboutsummaryrefslogtreecommitdiffstats
path: root/libexec_input_text_gift.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libexec_input_text_gift.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/libexec_input_text_gift.c b/libexec_input_text_gift.c
new file mode 100644
index 0000000..94b09c3
--- /dev/null
+++ b/libexec_input_text_gift.c
@@ -0,0 +1,19 @@
+/* See LICENSE file for copyright and license details. */
+#include "common.h"
+#ifndef TEST
+
+
+int
+libexec_input_text_gift(struct libexec_command *cmd, int fd, char *text)
+{
+ if (!text) {
+ errno = EINVAL;
+ return -1;
+ }
+ return libexec_input_data_gift(cmd, fd, text, strlen(text));
+}
+
+
+#else
+LIBEXEC_CONST__ int main(void) {return 0;} /* TODO test */
+#endif