]> diplodocus.org Git - nmh/blob - sbr/m_popen.h
mhbuildsbr.c: Flip logic, moving goto to then-block; no need for else.
[nmh] / sbr / m_popen.h
1 /* m_popen.h -- redirect standard output to a popen(3)'d process.
2 *
3 * This code is Copyright (c) 2017, by the authors of nmh. See the
4 * COPYRIGHT file in the root directory of the nmh distribution for
5 * complete copyright information.
6 */
7
8 /*
9 * Create a subprocess and redirect our standard output to it.
10 *
11 * Arguments are:
12 *
13 * name - Name of process to create
14 * savestdout - If true, will save the current stdout file descriptor and
15 * m_pclose() will close it at the appropriate time.
16 */
17 void m_popen(char *name, int savestdout);
18
19 /*
20 * Wait for the last process opened by m_popen().
21 */
22 void m_pclose(void);