Create Temporary Files. More...
#include "config.h"#include <errno.h>#include <inttypes.h>#include <limits.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include "mutt/lib.h"#include "config/lib.h"#include "tmp.h"#include "globals.h"#include "neomutt.h"
Include dependency graph for tmp.c:Go to the source code of this file.
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.c.
| 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:| 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: