NeoMutt  2022-04-29-247-gc6aae8
Teaching an old dog new tricks
DOXYGEN
filter.h
Go to the documentation of this file.
1
21#ifndef MUTT_LIB_FILTER_H
22#define MUTT_LIB_FILTER_H
23
24#include <stdio.h>
25#include <unistd.h>
26
27#define EXEC_SHELL "/bin/sh"
28
29pid_t filter_create (const char *cmd, FILE **fp_in, FILE **fp_out, FILE **fp_err);
30pid_t filter_create_fd(const char *cmd, FILE **fp_in, FILE **fp_out, FILE **fp_err, int fdin, int fdout, int fderr);
31int filter_wait (pid_t pid);
32
33#endif /* MUTT_LIB_FILTER_H */
int filter_wait(pid_t pid)
Wait for the exit of a process and return its status.
Definition: filter.c:217
pid_t filter_create(const char *cmd, FILE **fp_in, FILE **fp_out, FILE **fp_err)
Set up filter program.
Definition: filter.c:206
pid_t filter_create_fd(const char *cmd, FILE **fp_in, FILE **fp_out, FILE **fp_err, int fdin, int fdout, int fderr)
Run a command on a pipe (optionally connect stdin/stdout)
Definition: filter.c:61