Add a Since: tag

This commit is contained in:
Matthias Clasen 2009-09-04 20:41:25 -04:00
parent 2ae69f5124
commit 05c2aeaf33

View File

@ -1144,26 +1144,28 @@ g_file_set_contents (const gchar *filename,
/** /**
* g_mkstemp_full: * g_mkstemp_full:
* @tmpl: template filename * @tmpl: template filename
* @flags: flags to pass to an open() call in addition to O_EXCL and * @flags: flags to pass to an open() call in addition to O_EXCL and
* O_CREAT, which are passed automatically * O_CREAT, which are passed automatically
* @mode: permissios to create the temporary file with * @mode: permissios to create the temporary file with
* *
* Opens a temporary file. See the mkstemp() documentation * Opens a temporary file. See the mkstemp() documentation
* on most UNIX-like systems. * on most UNIX-like systems.
* *
* The parameter is a string that should follow the rules for * The parameter is a string that should follow the rules for
* mkstemp() templates, i.e. contain the string "XXXXXX". * mkstemp() templates, i.e. contain the string "XXXXXX".
* g_mkstemp_full() is slightly more flexible than mkstemp() * g_mkstemp_full() is slightly more flexible than mkstemp()
* in that the sequence does not have to occur at the very end of the * 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 * 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. * 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, * The string should be in the GLib file name encoding. Most importantly,
* on Windows it should be in UTF-8. * on Windows it should be in UTF-8.
* *
* Return value: A file handle (as from open()) to the file * Return value: A file handle (as from open()) to the file
* opened for reading and writing. The file handle should be * opened for reading and writing. The file handle should be
* closed with close(). In case of errors, -1 is returned. * closed with close(). In case of errors, -1 is returned.
*/ *
* Since: 2.22
*/
/* /*
* g_mkstemp_full based on the mkstemp implementation from the GNU C library. * g_mkstemp_full based on the mkstemp implementation from the GNU C library.
* Copyright (C) 1991,92,93,94,95,96,97,98,99 Free Software Foundation, Inc. * Copyright (C) 1991,92,93,94,95,96,97,98,99 Free Software Foundation, Inc.