sbr/lock_file.h \
sbr/m_maildir.h \
sbr/m_mktemp.h \
+ sbr/m_popen.h \
sbr/m_rand.h \
thirdparty/jsmn/jsmn.h \
uip/mhfree.h \
int m_gmprot (void);
char *m_name (int);
-/*
- * Create a subprocess and redirect our standard output to it.
- *
- * Arguments are:
- *
- * name - Name of process to create
- * savestdout - If true, will save the current stdout file descriptor and
- * m_pclose() will close it at the appropriate time.
- */
-void m_popen(char *name, int savestdout);
-
-/*
- * Wait for the last process opened by m_popen().
- */
-void m_pclose(void);
-
void m_unknown(m_getfld_state_t *, FILE *);
int makedir (const char *);
char *message_id (time_t, int);
#include <h/mh.h>
#include <h/signals.h>
+#include "m_popen.h"
static int m_pid = NOTOK; /* Process we're waiting for */
static int sd = NOTOK; /* Original standard output */
--- /dev/null
+/* m_popen.h -- redirect standard output to a popen(3)'d process.
+ *
+ * This code is Copyright (c) 2017, by the authors of nmh. See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
+ */
+
+/*
+ * Create a subprocess and redirect our standard output to it.
+ *
+ * Arguments are:
+ *
+ * name - Name of process to create
+ * savestdout - If true, will save the current stdout file descriptor and
+ * m_pclose() will close it at the appropriate time.
+ */
+void m_popen(char *name, int savestdout);
+
+/*
+ * Wait for the last process opened by m_popen().
+ */
+void m_pclose(void);
#include <h/fmt_scan.h>
#include <h/tws.h>
#include <h/utils.h>
+#include "../sbr/m_popen.h"
#include <setjmp.h>
#include <sys/types.h>
#include <h/mhcachesbr.h>
#include <h/utils.h>
#include "../sbr/m_maildir.h"
+#include "../sbr/m_popen.h"
#include "mhfree.h"
#include "mhshowsbr.h"