t6cmp_attrs(3N) t6cmp_attrs(3N)
t6cmp_attrs - Compare two security attributes
cc [ flags ... ] file
#include <sys/t6attrs.h>
int t6cmp_attrs(const t6attr_t *attr1, t6attr_t *attr2)
t6cmp_attrs compares a set of attributes specified by attr1 to the
attributes in attr2.
Also note that t6cmp_attrs(attr1, attr2) is equivalent to
t6cmp_blk(attr1, attr2), and if the attributes T6_IL and T6_PROC_ATTR are
used in comparing attribute blocks they will be ignored as they are not
implemented.
-1 is returned and the error code is stored in errno, if attr1 or attr2
contain an invalid value.
1 is returned if attr1 and attr2 contain an identical set of attributes
and those attributes are equal to each other.
0 is returned if attr1 and attr2 are different.
[EINVAL] If attr1 or attr2 are invalid.
libt6(3N), t6create_attr(3N), t6free_attr(3N), t6copy_attr(3N),
t6dup_attr(3N), t6get_attr(3N), t6set_attr(3N), t6size_attr(3N),
t6ext_attr(3N), t6new_attr(3N), t6last_attr(3N), t6peek_attr(3N),
t6cmp_blk(3N).
Trusted Systems Interoperability Group
PPPPaaaaggggeeee 1111 [ Back ]
|