Lines Matching refs:rc

393 	int rc;
420 rc = stat(si->shr_path, &st);
421 if (rc != 0) {
435 if ((rc = smb_shr_encode(si, &shrlist)) == 0) {
437 rc = smb_kmod_share(shrlist);
440 if (rc == 0) {
459 * rc == ENOENT means the shared directory doesn't exist
461 return ((rc == ENOENT) ? NERR_UnknownDevDir : NERR_InternalError);
1854 int rc;
1873 rc = pthread_create(&publish_thr, &tattr, smb_shr_publisher, 0);
1876 return (rc);
2378 int rc = 0;
2382 if ((rc = nvlist_alloc(&list, NV_UNIQUE_NAME, 0)) != 0)
2383 return (rc);
2385 if ((rc = nvlist_alloc(&share, NV_UNIQUE_NAME, 0)) != 0) {
2387 return (rc);
2390 if ((rc = nvlist_alloc(&smb, NV_UNIQUE_NAME, 0)) != 0) {
2393 return (rc);
2397 rc |= nvlist_add_string(share, "name", si->shr_name);
2398 rc |= nvlist_add_string(share, "path", si->shr_path);
2399 rc |= nvlist_add_string(share, "desc", si->shr_cmnt);
2402 rc = nvlist_add_string(smb, SHOPT_AD_CONTAINER, si->shr_container);
2404 rc |= nvlist_add_string(smb, SHOPT_NONE, si->shr_access_none);
2406 rc |= nvlist_add_string(smb, SHOPT_RO, si->shr_access_ro);
2408 rc |= nvlist_add_string(smb, SHOPT_RW, si->shr_access_rw);
2411 rc |= nvlist_add_string(smb, SHOPT_ABE, "true");
2413 rc |= nvlist_add_string(smb, SHOPT_CATIA, "true");
2415 rc |= nvlist_add_string(smb, SHOPT_GUEST, "true");
2417 rc |= nvlist_add_string(smb, SHOPT_DFSROOT, "true");
2420 rc |= nvlist_add_string(smb, "Autohome", "true");
2421 rc |= nvlist_add_uint32(smb, "uid", si->shr_uid);
2422 rc |= nvlist_add_uint32(smb, "gid", si->shr_gid);
2426 rc |= nvlist_add_string(smb, SHOPT_CSC, csc);
2428 rc |= nvlist_add_uint32(smb, "type", si->shr_type);
2430 rc |= nvlist_add_nvlist(share, "smb", smb);
2431 rc |= nvlist_add_nvlist(list, si->shr_name, share);
2436 if (rc != 0)
2441 return (rc);