4a8a9e954ade9921a387a3a64df3b00f15dca882
[debian/amanda] / common-src / pipespawn.h
1 /* Pipespawn can create up to three pipes; These defines set which pointers
2  * should have the other end assigned for a new pipe. If not set, then
3  * pipespawn will use a preexisting fd.
4  */
5 #ifndef PIPESPAWN_H
6 #define PIPESPAWN_H 1
7
8 extern char skip_argument[1];
9
10 #define STDIN_PIPE      (1 << 0)
11 #define STDOUT_PIPE     (1 << 1)
12 #define STDERR_PIPE     (1 << 2)
13 #define PASSWD_PIPE     (1 << 3)
14
15 int pipespawn P((char *prog, int pipedef,
16                  int *stdinfd, int *stdoutfd, int *stderrfd,
17                  ...));
18 int pipespawnv P((char *prog, int pipedef,
19                   int *stdinfd, int *stdoutfd, int *stderrfd,
20                   char **my_argv));
21 int pipespawnv_passwd P((char *prog, int pipedef,
22                   int *stdinfd, int *stdoutfd, int *stderrfd,
23                   char *passwdvar, int *passwdfd,
24                   char **my_argv));
25
26
27 #endif /* PIPESPAWN_H */