MAN page for: t6get_attr(3n)
Table of Contents

NAME

t6get_attr, t6set_attr - get and set security attributes from/to the security attribute buffer handled by a control structure.

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 <tsix/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 <tsix/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 . 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) , t6alloc_blk(3N) , t6free_blk(3N)

NOTES


Table of Contents