Imported Upstream version 2.4.4p3
[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
22
23 #endif /* PIPESPAWN_H */