aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_disk_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-10 10:48:29 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-10 10:48:29 +0000
commitf1be08d58422d8b9dc24eb7bce2b6ad050e093fd (patch)
tree82f0b4c9ed95630dffa893f85c5969e313626f89 /src/include/gnunet_disk_lib.h
parentc25db0cd4a0c561323b47cdd880866eab473ed49 (diff)
downloadgnunet-f1be08d58422d8b9dc24eb7bce2b6ad050e093fd.tar.gz
gnunet-f1be08d58422d8b9dc24eb7bce2b6ad050e093fd.zip
-integrate mkdirp with testing
Diffstat (limited to 'src/include/gnunet_disk_lib.h')
-rw-r--r--src/include/gnunet_disk_lib.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h
index d6ec0fe80..ae9cdbbe9 100644
--- a/src/include/gnunet_disk_lib.h
+++ b/src/include/gnunet_disk_lib.h
@@ -356,6 +356,21 @@ GNUNET_DISK_mktemp (const char *t);
356 356
357 357
358/** 358/**
359 * Create an (empty) temporary file on disk. If the given name is not
360 * an absolute path, the current 'TMPDIR' will be prepended. In any case,
361 * 6 random characters will be appended to the name to create a unique
362 * filename.
363 *
364 * @param t component to use for the name;
365 * does NOT contain "XXXXXX" or "/tmp/".
366 * @return NULL on error, otherwise name of fresh
367 * file on disk in directory for temporary files
368 */
369char *
370GNUNET_DISK_mkdtemp (const char *t);
371
372
373/**
359 * Open a file. Note that the access permissions will only be 374 * Open a file. Note that the access permissions will only be
360 * used if a new file is created and if the underlying operating 375 * used if a new file is created and if the underlying operating
361 * system supports the given permissions. 376 * system supports the given permissions.