]>
diplodocus.org Git - nmh/blob - sbr/m_popen.h
1 /* m_popen.h -- redirect standard output to a popen(3)'d process.
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.
9 * Create a subprocess and redirect our standard output to it.
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.
17 void m_popen(char *name
, int savestdout
);
20 * Wait for the last process opened by m_popen().