Lines Matching refs:rc
59 int rc;
72 rc = sa_share_publish(shdl, share, SA_PROT_SMB, 0, B_FALSE);
77 return (smb_share_lmerr(rc));
90 int rc;
110 rc = sa_share_unpublish(shdl, share, SA_PROT_SMB, 0);
116 return (smb_share_lmerr(rc));
290 int rc = 0;
304 if ((rc = sa_share_set_desc(share, si->shr_cmnt))
307 return (smb_share_lmerr(rc));
319 if ((rc = sa_get_mntpnt_for_path(shdl, si->shr_path, mntpnt,
329 rc = sa_share_set_mntpnt(share, mntpnt);
331 if (rc != SA_OK) {
340 if ((rc = sa_share_set_def_proto(share, SA_PROT_SMB))
343 return (smb_share_lmerr(rc));
352 rc |= sa_share_set_prop(props, SHOPT_AD_CONTAINER,
355 rc |= sa_share_set_prop(props, SHOPT_NONE,
358 rc |= sa_share_set_prop(props, SHOPT_RO,
361 rc |= sa_share_set_prop(props, SHOPT_RW,
365 rc |= sa_share_set_transient(share);
367 rc |= sa_share_set_prop(props, SHOPT_ABE, "true");
369 rc |= sa_share_set_prop(props, SHOPT_CATIA, "true");
371 rc |= sa_share_set_prop(props, SHOPT_GUEST, "true");
373 rc |= sa_share_set_prop(props, SHOPT_DFSROOT, "true");
376 rc |= sa_share_set_prop(props, "Autohome", "true");
377 rc |= nvlist_add_uint32(props, "uid", si->shr_uid);
378 rc |= nvlist_add_uint32(props, "gid", si->shr_gid);
381 rc |= nvlist_add_byte(props, "drive", si->shr_drive);
384 rc |= sa_share_set_prop(props, SHOPT_CSC, csc);
386 rc |= nvlist_add_uint32(props, "type", si->shr_type);
388 if (rc != 0) {