Bug 594034 - Add g_mkstemp_full()

This function exposes more variables than g_mkstemp() and therefor
allows more flexibility when creating temporary files.
The intended use is gio's code for g_file_replace() (see next patch)
This commit is contained in:
Benjamin Otte
2009-09-03 15:36:37 +02:00
parent 16ddefea15
commit 24bec5c5bd
5 changed files with 50 additions and 10 deletions

View File

@@ -99,6 +99,9 @@ gchar *g_file_read_link (const gchar *filename,
/* Wrapper / workalike for mkstemp() */
gint g_mkstemp (gchar *tmpl);
gint g_mkstemp_full (gchar *tmpl,
int flags,
int mode);
/* Wrapper for g_mkstemp */
gint g_file_open_tmp (const gchar *tmpl,