


t6get_attr(3N)                                     t6get_attr(3N)


NNAAMMEE
       t6get_attr,  t6set_attr  - get and set security attributes
       from/to the security attribute buffer handled by a control
       structure.

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>>

       vvooiidd **tt66ggeett__aattttrr((tt66aattttrr__iidd__tt aattttrr__ttyyppee,, ccoonnsstt tt66aattttrr__tt tt66ccttll))

       iinntt tt66sseett__aattttrr((tt66aattttrr__iidd__tt aattttrr__ttyyppee,, ccoonnsstt vvooiidd **aattttrr__bbuuff,, 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6ggeett__aattttrr takes a control structure, tt66ccttll, and attribute
       type, aattttrr__ttyyppee, and returns a pointer  to  the  requested
       attribute  value  (type) from the opaque control structure
       tt66ccttll.    aattttrr__ttyyppee   contains   a   number   defined   in
       <<ttssiixx//tt66aattttrrss..h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  tt66ggeett__aattttrr should be type cast to the
       standard  type  that  represents  the  type  indicated  by
       aattttrr__ttyyppee.

       tt66sseett__aattttrr  replaces  the requested attribute value (type)
       in tt66ccttll with the value pointed to by aattttrr__bbuuff.   Type  of
       the attribute is specified in aattttrr__ttyyppee as one of the num-
       bers defined in <<ttssiixx//tt66aattttrrss..hh>>.

RREETTUURRNN VVAALLUUEE
       On successful completion, tt66ggeett__aattttrr returns a pointer  to
       the appropriate value if it exists in the attribute struc-
       ture, otherwise it returns NNUULLLL.  tt66sseett__aattttrr returns 00  if
       the   attribute   structure   can  contain  the  requested
       attribute, otherwise it returns --11 and does not change the
       attribute structure.

SSEEEE AALLSSOO
       lliibbtt66(3N), tt66aalllloocc__bbllkk(3N), tt66ffrreeee__bbllkk(3N)

NNOOTTEESS













TSIX(RE) 1.1               12 Nov 1995                          1


