mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 20:42:48 -05:00
New Unix utility function to make a directory path.
Essentially 'mkdir -p' - we try to make each prefix of the pathname, terminating on any error other than EEXIST. Semantics are similar to make_dir_and_check_ours(): we return NULL on success or a dynamically allocated error message string on failure.
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
#include <dlfcn.h> /* Dynamic library loading */
|
||||
#endif /* NO_LIBDL */
|
||||
#include "charset.h"
|
||||
#include <sys/types.h> /* for mode_t */
|
||||
|
||||
#ifdef OSX_GTK
|
||||
/*
|
||||
@ -197,6 +198,7 @@ void noncloexec(int);
|
||||
int nonblock(int);
|
||||
int no_nonblock(int);
|
||||
char *make_dir_and_check_ours(const char *dirname);
|
||||
char *make_dir_path(const char *path, mode_t mode);
|
||||
|
||||
/*
|
||||
* Exports from unicode.c.
|
||||
|
Reference in New Issue
Block a user