| .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 |