Lines Matching refs:ace
168 ifree_ace(i_ntace_t *ace) in ifree_ace() argument
171 if (ace == NULL) in ifree_ace()
174 switch (ace->ace_hdr.ace_type) { in ifree_ace()
179 ifree_sid(ace->ace_v2.ace_sid); in ifree_ace()
180 FREESZ(ace, sizeof (i_ntace_v2_t)); in ifree_ace()
193 i_ntace_t *ace = NULL; in md_get_ace() local
218 if ((ace = MALLOC(alloc_size)) == NULL) in md_get_ace()
220 bzero(ace, alloc_size); in md_get_ace()
222 ace->ace_hdr.ace_type = ace_hdr.ace_type; in md_get_ace()
223 ace->ace_hdr.ace_flags = ace_hdr.ace_flags; in md_get_ace()
224 ace->ace_hdr.ace_size = alloc_size; in md_get_ace()
226 ERRCHK(md_get_uint32le(&tmp_md, &ace->ace_v2.ace_rights)); in md_get_ace()
227 ERRCHK(md_get_sid(&tmp_md, &ace->ace_v2.ace_sid)); in md_get_ace()
240 *acep = ace; in md_get_ace()
244 ifree_ace(ace); in md_get_ace()
249 mb_put_ace(mbchain_t *mbp, i_ntace_t *ace) in mb_put_ace() argument
254 if (ace == NULL) in mb_put_ace()
263 ERRCHK(mb_put_uint8(mbp, ace->ace_hdr.ace_type)); in mb_put_ace()
264 ERRCHK(mb_put_uint8(mbp, ace->ace_hdr.ace_flags)); in mb_put_ace()
271 switch (ace->ace_hdr.ace_type) { in mb_put_ace()
277 ERRCHK(mb_put_uint32le(mbp, ace->ace_v2.ace_rights)); in mb_put_ace()
278 ERRCHK(mb_put_sid(mbp, ace->ace_v2.ace_sid)); in mb_put_ace()