Add g_mkdtemp in the spirit of g_mkstemp
authorMatthias Clasen <mclasen@redhat.com>
Sun, 14 Aug 2011 18:09:58 +0000 (14:09 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 14 Aug 2011 18:09:58 +0000 (14:09 -0400)
commitb76bb6713ba12a88fbccdaaf063d916ecd3af0b2
treee20c6789aae418c7c9eab2649aca74c70e493293
parent8377a886857396854069fb7a8309baeb77f144c2
Add g_mkdtemp in the spirit of g_mkstemp

At the same time, also add g_mkdtemp_full and g_dir_make_tmp
variants. The patch also unifies the unique-name-generating
code for all variants of mkstemp and mkdtemp and adds tests
for the new functions.

Based on patches by Paolo Bonzini,
http://bugzilla.gnome.org/show_bug.cgi?id=118563
docs/reference/glib/glib-sections.txt
glib/gfileutils.c
glib/gfileutils.h
glib/glib.symbols
tests/file-test.c