]> gitweb.michael.orlitzky.com - apply-default-acl.git/blob - src/libadacl.h
configure.ac: "autoupdate" to autoconf-2.71.
[apply-default-acl.git] / src / libadacl.h
1 /**
2 * @file libadacl.h
3 *
4 * @brief The public API for libadacl.
5 *
6 */
7
8 #include <stdbool.h> /* the "bool" type */
9 #include <sys/stat.h> /* the "struct stat" type */
10
11 /* Most of the libacl functions return 1 for success, 0 for failure,
12 * and -1 on error. We follow suit.
13 */
14 #define ACL_ERROR -1
15 #define ACL_FAILURE 0
16 #define ACL_SUCCESS 1
17
18 int apply_default_acl(const char* path, bool recursive);