X-Git-Url: https://git.saurik.com/apple/file_cmds.git/blobdiff_plain/864a4b6e4495e8bb9744303352b4f19fccc90738..refs/heads/master:/chmod/chmod_acl.h diff --git a/chmod/chmod_acl.h b/chmod/chmod_acl.h index 0833be4..b4667e9 100644 --- a/chmod/chmod_acl.h +++ b/chmod/chmod_acl.h @@ -31,6 +31,9 @@ * SUCH DAMAGE. */ +#ifndef _CHMOD_ACL_H_ +#define _CHMOD_ACL_H_ + #ifdef __APPLE__ #include #include @@ -78,8 +81,10 @@ extern int compare_acl_entries(acl_entry_t a, acl_entry_t b); 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_ */