Opens a temporary file. See the
on most UNIX-like systems.
The parameter is a string that should follow the rules for
mkstemp() templates, i.e. contain the string “XXXXXX”.
g_mkstemp_full() is slightly more flexible than
in that the sequence does not have to occur at the very end of the
template and you can pass a
mode and additional
flags. The X
string will be modified to form the name of a file that didn’t exist.
The string should be in the GLib file name encoding. Most importantly,
on Windows it should be in UTF-8.
|This function is not directly available to language bindings|
The data is owned by the caller of the function. The value is a file system path, using the OS encoding.
Flags to pass to an
open()call in addition to O_EXCL and O_CREAT, which are passed automatically.
Permissions to create the temporary file with.