cctools
mkdir_recursive.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2015- The University of Notre Dame
3 This software is distributed under the GNU General Public License.
4 See the file COPYING for details.
5 */
6 
7 #ifndef MKDIR_RECURSIVE_H
8 #define MKDIR_RECURSIVE_H
9 
10 #include "compat-at.h"
11 
12 #include <fcntl.h>
13 #include <sys/stat.h>
14 
24 int mkdirat_recursive(int fd, const char *path, mode_t mode);
25 
32 int mkdir_recursive(const char *path, mode_t mode);
33 
34 
42 int mkdirat_recursive_parents(int fd, const char *path, mode_t mode);
43 
50 int mkdir_recursive_parents(const char *path, mode_t mode);
51 
52 #endif
int mkdirat_recursive(int fd, const char *path, mode_t mode)
Create a new directory recursively.
int mkdir_recursive_parents(const char *path, mode_t mode)
Create needed parent directories of a file or directory.
at syscall compatibility layer.
int mkdir_recursive(const char *path, mode_t mode)
Create a new directory recursively.
int mkdirat_recursive_parents(int fd, const char *path, mode_t mode)
Create needed parent directories of a file or directory.