File: filter_create_fp.3

package info (click to toggle)
clearsilver 0.10.5-3
  • links: PTS
  • area: main
  • in suites: buster
  • size: 3,304 kB
  • ctags: 3,158
  • sloc: ansic: 24,586; python: 4,233; sh: 2,502; cs: 1,429; ruby: 819; java: 735; makefile: 593; perl: 120; lisp: 34; sql: 21
file content (57 lines) | stat: -rw-r--r-- 1,135 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.TH filter_create_fp 3 "12 July 2007" "ClearSilver" "util/filter.h"

.de Ss
.sp
.ft CW
.nf
..
.de Se
.fi
.ft P
.sp
..
.SH NAME
filter_create_fp  - similar to filter_create_fd except with
buffered FILE* 
.SH SYNOPSIS
.Ss
#include <util/filter.h>
.Se
.Ss
NEOERR *filter_create_fp(const char *cmd, FILE **in, FILE **out, FILE **err, 
                         pid_t *pid);

.Se

.SH ARGUMENTS
cmd -> the sub command to execute.  Will be executed with
.br
/bin/sh -c
.br
in -> pointer to return the stdin pipe, or NULL if you don't
.br
want the stdin pipe
.br
out -> pointer to return the stdout pipe, or NULL if you don't
.br
want the stdout pipe
.br
err -> pointer to return the stderr pipe, or NULL if you don't
.br
want the stderr pipe

.SH DESCRIPTION
filter_create_fp is identical to filter_create_fd,
except each of the pipes is wrapped in a buffered stdio FILE 

.SH "RETURN VALUE"
in -> the stdin FILE of the sub process
.br
out -> the stdout FILE of the sub process
.br
err -> the stderr FILE of the sub process
.br
pid -> the pid of the sub process

.SH "SEE ALSO"
.BR filter_wait "(3), "filter_create_fp "(3), "filter_create_fd