Lines Matching refs:ERRCHK
81 #define ERRCHK(expr) if ((error = expr) != 0) goto errout macro
120 ERRCHK(md_get_mem(mdp, sid->sid_authority, 6, MB_MSYSTEM)); in md_get_sid()
124 ERRCHK(md_get_uint32le(mdp, subauthp)); in md_get_sid()
146 ERRCHK(mb_put_uint8(mbp, sid->sid_revision)); in mb_put_sid()
147 ERRCHK(mb_put_uint8(mbp, sid->sid_subauthcount)); in mb_put_sid()
148 ERRCHK(mb_put_mem(mbp, sid->sid_authority, 6, MB_MSYSTEM)); in mb_put_sid()
152 ERRCHK(mb_put_uint32le(mbp, *subauthp)); in mb_put_sid()
208 ERRCHK(md_get_uint8(&tmp_md, &ace_hdr.ace_type)); in md_get_ace()
209 ERRCHK(md_get_uint8(&tmp_md, &ace_hdr.ace_flags)); in md_get_ace()
210 ERRCHK(md_get_uint16le(&tmp_md, &ace_hdr.ace_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()
237 ERRCHK(md_get_mem(mdp, NULL, ace_hdr.ace_size, MB_MSYSTEM)); in md_get_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()
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()
355 ERRCHK(md_get_ace(mdp, acep)); in md_get_acl()
381 ERRCHK(mb_put_uint8(mbp, acl->acl_revision)); in mb_put_acl()
382 ERRCHK(mb_put_uint8(mbp, 0)); /* pad1 */ in mb_put_acl()
388 ERRCHK(mb_put_uint16le(mbp, acl->acl_acecount)); in mb_put_acl()
389 ERRCHK(mb_put_uint16le(mbp, 0)); /* pad2 */ in mb_put_acl()
393 ERRCHK(mb_put_ace(mbp, *acep)); in mb_put_acl()
453 ERRCHK(md_get_uint8(mdp, &sd->sd_revision)); in md_get_ntsd()
454 ERRCHK(md_get_uint8(mdp, &sd->sd_rmctl)); in md_get_ntsd()
455 ERRCHK(md_get_uint16le(mdp, &sd->sd_flags)); in md_get_ntsd()
456 ERRCHK(md_get_uint32le(mdp, &owneroff)); in md_get_ntsd()
457 ERRCHK(md_get_uint32le(mdp, &groupoff)); in md_get_ntsd()
458 ERRCHK(md_get_uint32le(mdp, &sacloff)); in md_get_ntsd()
459 ERRCHK(md_get_uint32le(mdp, &dacloff)); in md_get_ntsd()
477 ERRCHK(md_get_acl(&tmp_md, &sd->sd_sacl)); in md_get_ntsd()
482 ERRCHK(md_get_acl(&tmp_md, &sd->sd_dacl)); in md_get_ntsd()
487 ERRCHK(md_get_sid(&tmp_md, &sd->sd_owner)); in md_get_ntsd()
492 ERRCHK(md_get_sid(&tmp_md, &sd->sd_group)); in md_get_ntsd()
523 ERRCHK(mb_put_uint8(mbp, sd->sd_revision)); in mb_put_ntsd()
524 ERRCHK(mb_put_uint8(mbp, sd->sd_rmctl)); in mb_put_ntsd()
525 ERRCHK(mb_put_uint16le(mbp, flags)); in mb_put_ntsd()
543 ERRCHK(mb_put_acl(mbp, sd->sd_sacl)); in mb_put_ntsd()
547 ERRCHK(mb_put_acl(mbp, sd->sd_dacl)); in mb_put_ntsd()
551 ERRCHK(mb_put_sid(mbp, sd->sd_owner)); in mb_put_ntsd()
555 ERRCHK(mb_put_sid(mbp, sd->sd_group)); in mb_put_ntsd()