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

NAME

t6alloc_blk, t6free_blk - allocate and free security attribute control structure and buffer

SYNOPSIS

cc [ flags ... ] file ... -lt6

#include <tsix/t6attrs.h>

t6attr_t t6alloc_blk(t6mask_t mask)

void t6free_blk(t6attr_t t6ctl)

DESCRIPTION

t6alloc_blk allocates a t6attr_t structure , which is an opaque handle used to access the full set of security attributes supported on the system. See man pages for t6get_attr(3N) and t6set_attr(3N) for more information on how generic TSIX application programs can access security attributes referenced by t6attr_t without knowing how references are built between the t6attr_t structure and the sets of security attributes for each individual TSIX operating system (OS) vendor. If t6alloc_blk is successful, the opaque handle is returned that can be used to set or get individual attributes to or from this control structure. t6alloc_blk allocates space in the control structure for all attributes specified in the mask paramater.

t6free_blk should be used in conjunction with t6alloc_blk to free the opaque control structure and any space within it.

RETURN VALUE

On successful completion, t6alloc_blk returns a pointer to the t6attr_t structure. Otherwise it returns a pointer.

SEE ALSO

libt6(3N) , t6get_attr(3N) , t6set_attr(3N)

WARNING

For generic TSIX applications, use t6free_blk to free memory allocated by t6alloc_blk for better portability.

NOTES


Table of Contents