1filter_create_fp(3) util/filter.h filter_create_fp(3)
2
3
4
6 filter_create_fp - similar to filter_create_fd except with buffered
7 FILE*
8
10 #include <util/filter.h>
11
12
13 NEOERR *filter_create_fp(const char *cmd, FILE **in, FILE **out, FILE **err,
14 pid_t *pid);
15
16
17
18
20 cmd -> the sub command to execute. Will be executed with
21 /bin/sh -c
22 in -> pointer to return the stdin pipe, or NULL if you don't
23 want the stdin pipe
24 out -> pointer to return the stdout pipe, or NULL if you don't
25 want the stdout pipe
26 err -> pointer to return the stderr pipe, or NULL if you don't
27 want the stderr pipe
28
29
31 filter_create_fp is identical to filter_create_fd, except each of the
32 pipes is wrapped in a buffered stdio FILE
33
34
36 in -> the stdin FILE of the sub process
37 out -> the stdout FILE of the sub process
38 err -> the stderr FILE of the sub process
39 pid -> the pid of the sub process
40
41
43 filter_wait(3), filter_create_fp(3), filter_create_fd
44
45
46
47ClearSilver 12 July 2007 filter_create_fp(3)