]> gitweb.michael.orlitzky.com - apply-default-acl.git/blobdiff - src/libadacl.h
doc/COPYING: add one to state the "or later" bit
[apply-default-acl.git] / src / libadacl.h
index a846c88a3b87da170bb739d3ebead4f72aed609a..4e0c75d7520a7c6baeb1218c8d5ae5feee507777 100644 (file)
@@ -5,23 +5,14 @@
  *
  */
 
+#include <stdbool.h>  /* the "bool" type */
+#include <sys/stat.h> /* the "struct stat" type */
+
 /* Most of the libacl functions return 1 for success, 0 for failure,
-   and -1 on error */
+ * and -1 on error. We follow suit.
+*/
 #define ACL_ERROR -1
 #define ACL_FAILURE 0
 #define ACL_SUCCESS 1
 
-/* Even though most other library functions reliably return -1 for
- * error, it feels a little wrong to re-use the ACL_ERROR constant.
- */
-#define CLOSE_ERROR -1
-#define NFTW_ERROR -1
-#define OPEN_ERROR -1
-#define SNPRINTF_ERROR -1
-#define STAT_ERROR -1
-
-int apply_default_acl_ex(const char* path,
-                        const struct stat* sp,
-                        bool no_exec_mask);
-
-int apply_default_acl(const char* path, bool no_exec_mask);
+int apply_default_acl(const char* path, bool recursive);