After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 524831 - PATCH: add g_mkdtemp()
PATCH: add g_mkdtemp()
Status: RESOLVED DUPLICATE of bug 118563
Product: glib
Classification: Platform
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2008-03-28 17:14 UTC by Jeffrey Stedfast
Modified: 2008-08-15 03:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
g_mkdtemp.patch (3.54 KB, patch)
2008-03-28 17:15 UTC, Jeffrey Stedfast
none Details | Review

Description Jeffrey Stedfast 2008-03-28 17:14:42 UTC
I've found that it is often nice to have a function similar to mkdtemp() when writing a variety of applications. I've now implemented my own mkdtemp() equivalent over 3 times in various GNOME apps, so I think it might qualify as being useful to put into glib :)
Comment 1 Jeffrey Stedfast 2008-03-28 17:15:32 UTC
Created attachment 108187 [details] [review]
g_mkdtemp.patch
Comment 2 Jeffrey Stedfast 2008-05-15 16:39:35 UTC
ping. any comments/suggestions?
Comment 3 Matthias Clasen 2008-08-15 03:27:26 UTC
This is a dupe of bug 118563.
Over there, I commented that it might be a good idea to also add an analogue of g_file_open_tmp.

void g_dir_create_tmp (const gchar  *tmpl,
                       gchar       **name_used,
                       GError      **error);


At the very least this will have to wait until 2.19 opens at this point.
Comment 4 Matthias Clasen 2008-08-15 03:28:31 UTC

*** This bug has been marked as a duplicate of 118563 ***