Create Temporary Files. More...
#include <stdio.h> Include dependency graph for tmp.h:
 Include dependency graph for tmp.h: This graph shows which files directly or indirectly include this file:
 This graph shows which files directly or indirectly include this file:Go to the source code of this file.
| Macros | |
| #define | buf_mktemp(buf) | 
| #define | buf_mktemp_pfx_sfx(buf, prefix, suffix) | 
| #define | mutt_file_mkstemp() | 
| Functions | |
| void | buf_mktemp_full (struct Buffer *buf, const char *prefix, const char *suffix, const char *src, int line) | 
| Create a temporary file. | |
| FILE * | mutt_file_mkstemp_full (const char *file, int line, const char *func) | 
| Create temporary file safely. | |
Create Temporary Files.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file tmp.h.
| #define buf_mktemp | ( | buf | ) | 
| #define buf_mktemp_pfx_sfx | ( | buf, | |
| prefix, | |||
| suffix ) | 
| #define mutt_file_mkstemp | ( | ) | 
| void buf_mktemp_full | ( | struct Buffer * | buf, | 
| const char * | prefix, | ||
| const char * | suffix, | ||
| const char * | src, | ||
| int | line ) | 
Create a temporary file.
| buf | Buffer for result | 
| prefix | Prefix for filename | 
| suffix | Suffix for filename | 
| src | Source file of caller | 
| line | Source line number of caller | 
Definition at line 51 of file tmp.c.
 Here is the call graph for this function:
 Here is the call graph for this function:| FILE * mutt_file_mkstemp_full | ( | const char * | file, | 
| int | line, | ||
| const char * | func ) | 
Create temporary file safely.
| file | Source file of caller | 
| line | Source line number of caller | 
| func | Function name of caller | 
| ptr | FILE handle | 
| NULL | Error, see errno | 
Create and immediately unlink a temp file using mkstemp().
Definition at line 77 of file tmp.c.
 Here is the call graph for this function:
 Here is the call graph for this function: