aaip_0_2.h (libisofs-1.5.2) | : | aaip_0_2.h (libisofs-1.5.4) | ||
---|---|---|---|---|
skipping to change at line 194 | skipping to change at line 194 | |||
-1 failure of system ACL service (see errno) | -1 failure of system ACL service (see errno) | |||
*/ | */ | |||
int aaip_get_acl_text(char *path, char **text, int flag); | int aaip_get_acl_text(char *path, char **text, int flag); | |||
/* Obtain the Extended Attributes and/or the ACLs of the given file in a form | /* Obtain the Extended Attributes and/or the ACLs of the given file in a form | |||
that is ready for aaip_encode(). The returned data objects finally have | that is ready for aaip_encode(). The returned data objects finally have | |||
to be freed by a call with flag bit 15. | to be freed by a call with flag bit 15. | |||
@param path Path to the file | @param path Path to the file | |||
@param num_attrs Will return the number of name-value pairs | @param num_attrs Will return the number of name-value pairs | |||
@param names Will return an array of pointers to 0-terminated names | @param names Will return an array of pointers to 0-terminated names | |||
@param value_lengths Will return an arry with the lenghts of values | @param value_lengths Will return an array with the lengths of values | |||
@param values Will return an array of pointers to 8-bit values | @param values Will return an array of pointers to 8-bit values | |||
@param flag Bitfield for control purposes | @param flag Bitfield for control purposes | |||
bit0= obtain ACLs (access and eventually default) via | bit0= obtain ACLs (access and eventually default) via | |||
system ACL API and encode | system ACL API and encode | |||
bit1= use numeric ACL qualifiers rather than names | bit1= use numeric ACL qualifiers rather than names | |||
bit2= do not obtain attributes other than ACLs | bit2= do not obtain attributes other than ACLs | |||
bit3= do not ignore eventual non-user attributes. | bit3= do not ignore eventual non-user attributes. | |||
I.e. those with a name which does not begin | I.e. those with a name which does not begin | |||
by "user." | by "user." | |||
bit4= do not return trivial ACL that matches st_mode | bit4= do not return trivial ACL that matches st_mode | |||
skipping to change at line 418 | skipping to change at line 418 | |||
int flag); | int flag); | |||
/* Obtain the resulting attributes when aaip_decode_attrs() indicates to | /* Obtain the resulting attributes when aaip_decode_attrs() indicates to | |||
be done or to have the maximum possible amount of result ready. | be done or to have the maximum possible amount of result ready. | |||
The returned data objects get detached from handle making it ready for | The returned data objects get detached from handle making it ready for | |||
the next round of decoding with possibly a different input source. The | the next round of decoding with possibly a different input source. The | |||
returned data objects finally have to be freed by a call with flag bit 15. | returned data objects finally have to be freed by a call with flag bit 15. | |||
@param handle The decoding context created by aaip_decode_attrs() | @param handle The decoding context created by aaip_decode_attrs() | |||
@param num_attrs Will return the number of name-value pairs | @param num_attrs Will return the number of name-value pairs | |||
@param names Will return an array of pointers to 0-terminated names | @param names Will return an array of pointers to 0-terminated names | |||
@param value_lengths Will return an arry with the lenghts of values | @param value_lengths Will return an array with the lengths of values | |||
@param values Will return an array of pointers to 8-bit values | @param values Will return an array of pointers to 8-bit values | |||
@param flag Bitfield for control purposes | @param flag Bitfield for control purposes | |||
bit15= free memory of names, value_lengths, values | bit15= free memory of names, value_lengths, values | |||
*/ | */ | |||
int aaip_get_decoded_attrs(struct aaip_state **handle, size_t *num_attrs, | int aaip_get_decoded_attrs(struct aaip_state **handle, size_t *num_attrs, | |||
char ***names, size_t **value_lengths, char ***values, | char ***names, size_t **value_lengths, char ***values, | |||
int flag); | int flag); | |||
/* ------ ACL representation ------ */ | /* ------ ACL representation ------ */ | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |