]>
diplodocus.org Git - nmh/blob - sbr/m_mktemp.h
1 /* m_mktemp.h -- Construct a temporary file.
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.
8 char *m_mktemp(const char *pfx_in
, int *fd_ret
, FILE **fp_ret
);
9 char *m_mktemp2(const char *dir_in
, const char *pfx_in
,
10 int *fd_ret
, FILE **fp_ret
);
11 char *m_mktemps(const char *pfx_in
, const char *suffix
,
12 int *fd_ret
, FILE **fp_ret
);
13 char *get_temp_dir(void);
14 void unregister_for_removal(int remove_files
);
15 int m_unlink(const char *pathname
);
16 void remove_registered_files_atexit(void);
17 void remove_registered_files(int sig
);