]> gitweb.michael.orlitzky.com - apply-default-acl.git/blob - src/libadacl.h
a846c88a3b87da170bb739d3ebead4f72aed609a
[apply-default-acl.git] / src / libadacl.h
1 /**
2 * @file libadacl.h
3 *
4 * @brief The public API for libadacl.
5 *
6 */
7
8 /* Most of the libacl functions return 1 for success, 0 for failure,
9 and -1 on error */
10 #define ACL_ERROR -1
11 #define ACL_FAILURE 0
12 #define ACL_SUCCESS 1
13
14 /* Even though most other library functions reliably return -1 for
15 * error, it feels a little wrong to re-use the ACL_ERROR constant.
16 */
17 #define CLOSE_ERROR -1
18 #define NFTW_ERROR -1
19 #define OPEN_ERROR -1
20 #define SNPRINTF_ERROR -1
21 #define STAT_ERROR -1
22
23 int apply_default_acl_ex(const char* path,
24 const struct stat* sp,
25 bool no_exec_mask);
26
27 int apply_default_acl(const char* path, bool no_exec_mask);