* SUCH DAMAGE.
*/
+#ifndef _CHMOD_ACL_H_
+#define _CHMOD_ACL_H_
+
#ifdef __APPLE__
#include <pwd.h>
#include <grp.h>
extern unsigned is_canonical(acl_t acl);
extern int find_matching_entry (acl_t acl, acl_entry_t modifier, acl_entry_t *rentry, unsigned match_inherited);
extern unsigned find_canonical_position(acl_t acl, acl_entry_t modifier);
-extern int subtract_from_entry(acl_entry_t rentry, acl_entry_t modifier);
-extern int modify_acl(acl_t *oaclp, acl_entry_t modifier, unsigned int optflags, int position, int inheritance_level, unsigned flag_new_acl);
-extern int modify_file_acl(unsigned int optflags, const char *path, acl_t modifier, int position, int inheritance_level);
+extern int subtract_from_entry(acl_entry_t rentry, acl_entry_t modifier, int *valid_perms);
+extern int modify_acl(acl_t *oaclp, acl_entry_t modifier, unsigned int optflags, int position, int inheritance_level, unsigned flag_new_acl, const char* path);
+extern int modify_file_acl(unsigned int optflags, const char *path, acl_t modifier, int position, int inheritance_level, int follow);
extern uuid_t *name_to_uuid(char *tok, int nametype);
#endif /* __APPLE__*/
+
+#endif /* _CHMOD_ACL_H_ */