diff options
author | Tobias Brunner <tobias@strongswan.org> | 2008-08-28 07:47:55 +0000 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2008-08-28 07:47:55 +0000 |
commit | 6c20579a43a73916574f887bf6dc67bc122c0c65 (patch) | |
tree | d3d1f513c4596ade3ee3b25816f57e66a62bad76 /src/libstrongswan/utils.h | |
parent | 018ae7c1aa68047c49f446c5d26d8433038c74eb (diff) | |
download | strongswan-6c20579a43a73916574f887bf6dc67bc122c0c65.tar.bz2 strongswan-6c20579a43a73916574f887bf6dc67bc122c0c65.tar.xz |
mkdir_p: utility function to create a directory and all required parent directories
Diffstat (limited to 'src/libstrongswan/utils.h')
-rw-r--r-- | src/libstrongswan/utils.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstrongswan/utils.h b/src/libstrongswan/utils.h index 251a3ebc4..4d05ce58b 100644 --- a/src/libstrongswan/utils.h +++ b/src/libstrongswan/utils.h @@ -1,4 +1,5 @@ /* + * Copyright (C) 2008 Tobias Brunner * Copyright (C) 2008 Martin Willi * Hochschule fuer Technik Rapperswil * @@ -219,6 +220,15 @@ void *clalloc(void *pointer, size_t size); void memxor(u_int8_t dest[], u_int8_t src[], size_t n); /** + * Creates a directory and all required parent directories. + * + * @param path path to the new directory + * @param mode permissions of the new directory/directories + * @return TRUE on success + */ +bool mkdir_p(const char *path, mode_t mode); + +/** * returns null */ void *return_null(); |