]> diplodocus.org Git - nmh/commitdiff
sbr/m_mktemp.h: Move remaining prototypes from h/prototypes.h.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 15 May 2017 14:07:10 +0000 (15:07 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 15 May 2017 14:07:10 +0000 (15:07 +0100)
Gives the normal one header file showing interface exported by one C
file.

34 files changed:
h/prototypes.h
sbr/folder_delmsgs.c
sbr/lock_file.c
sbr/m_backup.c
sbr/m_mktemp.h
sbr/push.c
sbr/seq_save.c
uip/annosbr.c
uip/burst.c
uip/distsbr.c
uip/dropsbr.c
uip/forwsbr.c
uip/inc.c
uip/mhbuild.c
uip/mhbuildsbr.c
uip/mhcachesbr.c
uip/mhfixmsg.c
uip/mhfree.c
uip/mhparse.c
uip/mhshowsbr.c
uip/mhstoresbr.c
uip/post.c
uip/prompter.c
uip/rcvdist.c
uip/rcvstore.c
uip/rcvtty.c
uip/refile.c
uip/rmf.c
uip/send.c
uip/sendsbr.c
uip/slocal.c
uip/viamail.c
uip/whatnowsbr.c
uip/whom.c

index a89fe73..28d21f0 100644 (file)
@@ -257,10 +257,6 @@ char *m_maildir (char *);
 char *m_mailpath (char *);
 char *m_name (int);
 int m_rand (unsigned char *, size_t);
-char *m_mktemp(const char *, int *, FILE **);
-char *m_mktemp2(const char *, const char *, int *, FILE **);
-char *m_mktemps(const char *pfx, const char *suffix, int *, FILE **);
-char *get_temp_dir(void);
 
 /*
  * Create a subprocess and redirect our standard output to it.
@@ -558,9 +554,3 @@ void nmh_credentials_free(nmh_creds_t creds);
  *              - 2: read context, don't check nmh version
  */
 int nmh_init(const char *argv0, int read_context);
-
-/*
- * temporary file management
- */
-int m_unlink(const char *);
-void unregister_for_removal(int remove_files);
index 92c7ca3..e5b6ae2 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <h/mh.h>
 #include <h/utils.h>
+#include "m_mktemp.h"
 
 /*
  * 1) If we are using an external rmmproc, then exec it.
index 0bf82f8..c7002b2 100644 (file)
@@ -17,6 +17,7 @@
 #include <h/signals.h>
 #include <h/utils.h>
 #include <h/mts.h>
+#include "m_mktemp.h"
 
 #ifdef HAVE_SYS_TIME_H
 # include <sys/time.h>
index 05be68a..5a616f2 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <h/mh.h>
+#include "m_mktemp.h"
 
 
 char *
index dbc614f..e26114d 100644 (file)
@@ -5,5 +5,13 @@
  * complete copyright information.
  */
 
+char *m_mktemp(const char *pfx_in, int *fd_ret, FILE **fp_ret);
+char *m_mktemp2(const char *dir_in, const char *pfx_in,
+    int *fd_ret, FILE **fp_ret);
+char *m_mktemps(const char *pfx_in, const char *suffix,
+    int *fd_ret, FILE **fp_ret);
+char *get_temp_dir(void);
+void unregister_for_removal(int remove_files);
+int m_unlink(const char *pathname);
 void remove_registered_files_atexit(void);
 void remove_registered_files(int sig);
index 6c57e6e..d77e375 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <h/mh.h>
 #include <h/signals.h>
+#include "m_mktemp.h"
 
 
 void
index f95b443..787db94 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <h/mh.h>
 #include <h/signals.h>
+#include "m_mktemp.h"
 
 
 /*
index c2aa865..778e2ab 100644 (file)
@@ -8,6 +8,7 @@
 #include <h/mh.h>
 #include <h/tws.h>
 #include <h/utils.h>
+#include "../sbr/m_mktemp.h"
 #include <fcntl.h>
 #include <utime.h>
 
index 888fb31..626e0bd 100644 (file)
@@ -8,6 +8,7 @@
 #include <h/mh.h>
 #include <h/utils.h>
 #include <h/mhparse.h>
+#include "../sbr/m_mktemp.h"
 #include "mhfree.h"
 
 #define BURST_SWITCHES \
index 91eb0a8..a4c4872 100644 (file)
@@ -8,6 +8,7 @@
 #include <h/mh.h>
 #include <fcntl.h>
 #include <h/utils.h>
+#include "../sbr/m_mktemp.h"
 
 static int  hdrfd = NOTOK;
 static int  txtfd = NOTOK;
index 3109bcf..e3fcb0d 100644 (file)
@@ -12,6 +12,7 @@
 #include <h/dropsbr.h>
 #include <h/mts.h>
 #include <h/tws.h>
+#include "../sbr/m_mktemp.h"
 
 #ifdef NTOHLSWAP
 # include <netinet/in.h>
index f6104d2..a412d9a 100644 (file)
@@ -10,6 +10,7 @@
 #include <h/fmt_scan.h>
 #include <h/tws.h>
 #include <h/utils.h>
+#include "../sbr/m_mktemp.h"
 
 /*
  * Take from replsbr.c - a buffer big enough to read in data header lines
index 1bc4b19..fded926 100644 (file)
--- a/uip/inc.c
+++ b/uip/inc.c
@@ -40,6 +40,7 @@
 #include <h/signals.h>
 #include <h/tws.h>
 #include <h/mts.h>
+#include "../sbr/m_mktemp.h"
 
 #ifndef TLS_SUPPORT
 # define TLSminc(a) (a)
index db5362f..1ef90e3 100644 (file)
@@ -14,6 +14,7 @@
 #include <h/mhparse.h>
 #include <h/mhcachesbr.h>
 #include <h/utils.h>
+#include "../sbr/m_mktemp.h"
 #include "mhfree.h"
 
 #define MHBUILD_SWITCHES \
index 8decc9f..26f9e3b 100644 (file)
@@ -21,6 +21,7 @@
 #include <h/mime.h>
 #include <h/mhparse.h>
 #include <h/utils.h>
+#include "../sbr/m_mktemp.h"
 #include "mhfree.h"
 
 #ifdef HAVE_SYS_TIME_H
index fe4f479..2c9a33d 100644 (file)
@@ -14,6 +14,7 @@
 #include <h/mhparse.h>
 #include <h/mhcachesbr.h>
 #include <h/utils.h>
+#include "../sbr/m_mktemp.h"
 
 #ifdef HAVE_SYS_TIME_H
 # include <sys/time.h>
index fdeac8d..9d676cb 100644 (file)
@@ -10,6 +10,7 @@
 #include <h/mhparse.h>
 #include <h/utils.h>
 #include <h/signals.h>
+#include "../sbr/m_mktemp.h"
 #include "mhfree.h"
 #include <fcntl.h>
 
index 6e91623..1bb488d 100644 (file)
@@ -10,6 +10,7 @@
 #include <h/utils.h>
 #include <h/mime.h>
 #include <h/mhparse.h>
+#include "../sbr/m_mktemp.h"
 #include "mhfree.h"
 
 /* The list of top-level contents to display */
index 238fc1a..0be1329 100644 (file)
@@ -13,6 +13,7 @@
 #include <h/mime.h>
 #include <h/mhparse.h>
 #include <h/utils.h>
+#include "../sbr/m_mktemp.h"
 #include "mhfree.h"
 #ifdef HAVE_ICONV
 # include <iconv.h>
index 1e3a4ba..b2cdfb5 100644 (file)
@@ -15,6 +15,7 @@
 #include <h/mhparse.h>
 #include <h/fmt_scan.h>
 #include <h/utils.h>
+#include "../sbr/m_mktemp.h"
 #ifdef HAVE_ICONV
 #   include <iconv.h>
 #endif /* ! HAVE_ICONV */
index b836c07..7d74f1e 100644 (file)
@@ -13,6 +13,7 @@
 #include <h/mime.h>
 #include <h/mhparse.h>
 #include <h/utils.h>
+#include "../sbr/m_mktemp.h"
 
 enum clobber_policy_t {
   NMH_CLOBBER_ALWAYS = 0,
index ff12d0c..44faf72 100644 (file)
@@ -15,6 +15,7 @@
 #include <h/utils.h>
 #include <h/tws.h>
 #include <h/mts.h>
+#include "../sbr/m_mktemp.h"
 
 #ifdef HAVE_SYS_TIME_H
 # include <sys/time.h>
index 3509229..0532c21 100644 (file)
@@ -8,6 +8,7 @@
 #include <h/mh.h>
 #include <fcntl.h>
 #include <h/signals.h>
+#include "../sbr/m_mktemp.h"
 #include <setjmp.h>
 
 #include <termios.h>
index 3707e8b..1ad585d 100644 (file)
@@ -11,6 +11,7 @@
 #include <h/tws.h>
 #include <h/mts.h>
 #include <h/utils.h>
+#include "../sbr/m_mktemp.h"
 
 #define RCVDIST_SWITCHES \
     X("form formfile", 4, FORMSW) \
index 257ef3d..bb07856 100644 (file)
@@ -9,6 +9,7 @@
 #include <fcntl.h>
 #include <h/signals.h>
 #include <h/mts.h>
+#include "../sbr/m_mktemp.h"
 
 #define RCVSTORE_SWITCHES \
     X("create", 0, CRETSW) \
index bd6fc33..3b83708 100644 (file)
@@ -17,6 +17,7 @@
 #include <h/scansbr.h>
 #include <h/tws.h>
 #include <h/mts.h>
+#include "../sbr/m_mktemp.h"
 #include <fcntl.h>
 
 #ifdef HAVE_GETUTXENT
index 906eb89..8beae1b 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <h/mh.h>
 #include <h/utils.h>
+#include "../sbr/m_mktemp.h"
 #include <fcntl.h>
 
 #define REFILE_SWITCHES \
index 36c7f92..7ac660c 100644 (file)
--- a/uip/rmf.c
+++ b/uip/rmf.c
@@ -7,6 +7,7 @@
 
 #include <h/mh.h>
 #include <h/utils.h>
+#include "../sbr/m_mktemp.h"
 
 #define RMF_SWITCHES \
     X("interactive", 0, INTRSW) \
index 4df2827..83e148a 100644 (file)
@@ -8,10 +8,10 @@
 #include <h/mh.h>
 #include <fcntl.h>
 #include <h/utils.h>
-
 #ifdef OAUTH_SUPPORT
 # include <h/oauth.h>
 #endif
+#include "../sbr/m_mktemp.h"
 
 #ifndef CYRUS_SASL
 # define SASLminc(a) (a)
index 6f3c126..64a1ed6 100644 (file)
 
 #ifdef OAUTH_SUPPORT
 #include <h/oauth.h>
+#endif
+#include "../sbr/m_mktemp.h"
 
+#ifdef OAUTH_SUPPORT
 static int setup_oauth_params(char *[], int *, const char *, const char **);
 #endif /* OAUTH_SUPPORT */
 
index 4174d4a..60b222d 100644 (file)
@@ -27,6 +27,7 @@
 #include <h/tws.h>
 #include <h/mts.h>
 #include <h/utils.h>
+#include "../sbr/m_mktemp.h"
 
 #include <pwd.h>
 #include <sys/ioctl.h>
index 6732ddf..e7af770 100644 (file)
@@ -12,6 +12,7 @@
 #include <h/tws.h>
 #include <h/mime.h>
 #include <h/mhparse.h>
+#include "../sbr/m_mktemp.h"
 
 #define VIAMAIL_SWITCHES \
     X("to mailpath", 0, TOSW) \
index 71daf43..3aa9171 100644 (file)
 #include <fcntl.h>
 #include <h/mime.h>
 #include <h/utils.h>
-
 #ifdef OAUTH_SUPPORT
 # include <h/oauth.h>
 #endif
+#include "../sbr/m_mktemp.h"
 
 #define WHATNOW_SWITCHES \
     X("draftfolder +folder", 0, DFOLDSW) \
index edad5d7..f3a49f8 100644 (file)
@@ -8,6 +8,7 @@
 #include <h/mh.h>
 #include <h/utils.h>
 #include <h/signals.h>
+#include "../sbr/m_mktemp.h"
 
 #ifndef CYRUS_SASL
 # define SASLminc(a) (a)