aboutsummaryrefslogtreecommitdiffstats
path: root/libexec_input_text_gift.c
blob: 94b09c3d3eb3bf9f668af21f2837e2486d031983 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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