t6cmp_attrs(3N)

t6cmp_attrs - Compare two security attributes

As shipped in IRIX 6.5.30. Last changed in IRIX 6.5.15.

NAME
     t6cmp_attrs - Compare two security attributes

SYNOPSIS
     cc [ flags ... ] file

     #include <sys/t6attrs.h>

     int t6cmp_attrs(const t6attr_t *attr1, t6attr_t *attr2)

DESCRIPTION
     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.

RETURN VALUE
     -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.

ERROR
     [EINVAL]       If attr1 or attr2 are invalid.

SEE ALSO
     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).

SOURCE
     Trusted Systems Interoperability Group

NOTES