t6dup_attr - duplicate security attributes
cc [ flags ... ] file ...
t6attr_t t6dup_attr(const t6attr_t src)
t6dup_attr allocates a new t6attr_t control structure and buffer space
large enough to hold the set of security attributes in the t6attr_t
control structure src which is passed in as an argument. It then copies
that set of attributes specified by src into the newly allocated
structure. Upon successful completion, the newly created t6attr_t handle
Also note that t6dup_attr(src) is equivalent to t6dup_blk(src).
NULL is returned and errno is set to an appropriate value, if t6dup_attr
is unable to allocate sufficient memory for the new attributes. Upon
successful completion, a new t6attr_t handle is returned.
[ENOMEM] t6dup_attr was unable to allocate enough memory for the
requested attribute block.
libt6(3N), t6alloc_blk(3N) and t6dup_blk(3n)
PPPPaaaaggggeeee 1111 [ Back ]