aboutsummaryrefslogtreecommitdiffstats
path: root/libexec_pipe_commandsv.c
blob: ee96b7d36d3d4f4921982836dd4a632a71782751 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* See LICENSE file for copyright and license details. */
#include "common.h"
#ifndef TEST


int
libexec_pipe_commandsv(enum libexec_pipe how, struct libexec_command *const *cmds)
{
	size_t n = 0;
	if (!cmds) {
		errno = EINVAL;
		return -1;
	}
	while (cmds[n])
		n++;
	return libexec_pipe_commandsvn(how, cmds, n);
}


#else
LIBEXEC_CONST__ int main(void) {return 0;} /* TODO test */
#endif