t6get_attr(3N)
t6get_attr, t6set_attr - Get or set security attributes
As shipped in IRIX 6.5.7. Unchanged since IRIX 6.5.
NAME t6get_attr, t6set_attr - Get or set security attributes SYNOPSIS cc [ flags ... ] file -lt6 #include <tsix/t6attrs.h> void *t6get_attr(t6attr_id_t attr_type, const t6attr_t t6ctl) int t6set_attr(t6attr_id_t attr_type, const void *attr_buf, t6attr_t t6ctl) DESCRIPTION t6get_attr() takes a control structure, t6ctl, and attribute type, attr_type, and returns a pointer to the requested attribute value (type) from the opaque control structure t6ctl. attr_type contains a number defined in <sys/t6attrs.h> that specifies what type of attribute that the caller is interested in getting. Only one type can be specified per call. Returned value by t6get_attr() should be type cast to the standard type that represents the type indicated by attr_type. t6set_attr() replaces the requested attribute value (type) in t6ctl with the value pointed to by attr_buf. Type of the attribute is specified in attr_type as one of the numbers defined in <sys/t6attrs.h>. RETURN VALUE On successful completion, t6get_attr() returns a pointer to the appropriate value if it exists in the attribute structure, otherwise it returns NULL. t6set_attr() returns 0 if the attribute structure can contain the requested attribute, otherwise it returns -1 and does not change the attribute structure. SEE ALSO libt6(3N), t6attr_alloc(3N), t6create_attr(3N), t6free_attr(3N). SOURCE Trusted Systems Interoperability Group NOTES