


t6alloc_blk(3N)                                   t6alloc_blk(3N)


NNAAMMEE
       t6alloc_blk,  t6free_blk  -  allocate  and  free  security
       attribute control structure and buffer

SSYYNNOOPPSSIISS
       cccc [[ ffllaaggss ...... ]] ffiillee ...... --lltt66

       ##iinncclluuddee <<ttssiixx//tt66aattttrrss..hh>>

       tt66aattttrr__tt tt66aalllloocc__bbllkk((tt66mmaasskk__tt mmaasskk))

       vvooiidd tt66ffrreeee__bbllkk((tt66aattttrr__tt tt66ccttll))

DDEESSCCRRIIPPTTIIOONN
       tt66aalllloocc__bbllkk allocates a tt66aattttrr__tt ssttrruuccttuurree,  which  is  an
       opaque  handle  used  to  access  the full set of security
       attributes supported on the system.   See  man  pages  for
       tt66ggeett__aattttrr(3N)  and tt66sseett__aattttrr(3N) for more information on
       how generic TSIX application programs can access  security
       attributes referenced by tt66aattttrr__tt without knowing how ref-
       erences are built between the tt66aattttrr__tt structure  and  the
       sets of security attributes for each individual TSIX oper-
       ating system (OS) vendor.  If tt66aalllloocc__bbllkk  iiss  successful,
       the  opaque  handle is returned that can be used to set or
       get individual attributes to or from this  control  struc-
       ture.   tt66aalllloocc__bbllkk  allocates space in the control struc-
       ture for all attributes specified in the mmaasskk paramater.

       tt66ffrreeee__bbllkk should be used in conjunction with  tt66aalllloocc__bbllkk
       to  free the opaque control structure and any space within
       it.

RREETTUURRNN VVAALLUUEE
       On successful completion, tt66aalllloocc__bbllkk returns a pointer to
       the  tt66aattttrr__tt  structure.   Otherwise  it  returns  a NNUULLLL
       pointer.

SSEEEE AALLSSOO
       lliibbtt66((33NN)),,t6get_attr((33NN)),,t6set_attr((33NN))

WWAARRNNIINNGG
       For generic TSIX applications, use tt66ffrreeee__bbllkk to free mem-
       ory allocated by tt66aalllloocc__bbllkk for better portability.

NNOOTTEESS












TSIX(RE) 1.1               12 Nov 1995                          1


