Lines Matching defs:rc

357 	int rc;
360 (rc = dfs_intr_ops.dfsops_remote_count(&nroot)) != 0) {
369 "assuming one namespace exists", rc);
1000 int rc, idx;
1038 rc = smb_reparse_svcdel(path, dfs_svc_name(ns_type));
1039 status = (rc == 0) ? ERROR_SUCCESS : ERROR_INTERNAL_ERROR;
1089 int rc;
1106 rc = smb_reparse_svcget(path, dfs_svc_name(ns_type), info);
1107 switch (rc) {
1175 int rc;
1180 rc = smb_unc_init(dfs_path, unc);
1181 switch (rc) {
1495 int rc;
1500 rc = nvlist_add_string(nvl, DFS_ROOT_PROP_SVCTYPE,
1502 rc |= nvlist_add_string(nvl, DFS_ROOT_PROP_CMNT, info->i_comment);
1503 rc |= nvlist_add_string(nvl, DFS_ROOT_PROP_GUID, info->i_guid);
1504 rc |= nvlist_add_uint32(nvl, DFS_ROOT_PROP_STATE, info->i_state);
1505 rc |= nvlist_add_uint32(nvl, DFS_ROOT_PROP_TTL, info->i_timeout);
1506 rc |= nvlist_add_uint32(nvl, DFS_ROOT_PROP_FLAGS, info->i_propflags);
1508 rc |= nvlist_add_string(nvl, DFS_ROOT_PROP_SERVER, t->t_server);
1509 rc |= nvlist_add_string(nvl, DFS_ROOT_PROP_SHARE, t->t_share);
1510 rc |= nvlist_add_uint32(nvl, DFS_ROOT_PROP_TSTATE, t->t_state);
1511 rc |= nvlist_add_uint32(nvl, DFS_ROOT_PROP_PRI_CLASS,
1513 rc |= nvlist_add_uint16(nvl, DFS_ROOT_PROP_PRI_RANK,
1516 if (rc == 0)
1517 rc = nvlist_pack(nvl, buf, bufsz, NV_ENCODE_NATIVE, 0);
1521 return ((rc == 0) ? ERROR_SUCCESS : ERROR_INTERNAL_ERROR);
1538 int rc;
1543 rc = nvlist_lookup_string(nvl, DFS_ROOT_PROP_SVCTYPE, &svctype);
1544 if (rc == ENOENT) {
1549 rc = 0;
1551 rc |= nvlist_lookup_string(nvl, DFS_ROOT_PROP_CMNT, &cmnt);
1552 rc |= nvlist_lookup_string(nvl, DFS_ROOT_PROP_GUID, &guid);
1553 rc |= nvlist_lookup_uint32(nvl, DFS_ROOT_PROP_STATE, &info->i_state);
1554 rc |= nvlist_lookup_uint32(nvl, DFS_ROOT_PROP_TTL, &info->i_timeout);
1555 rc |= nvlist_lookup_uint32(nvl, DFS_ROOT_PROP_FLAGS,
1558 if (rc != 0) {
1593 rc = nvlist_lookup_string(nvl, DFS_ROOT_PROP_SERVER, &t_server);
1594 rc |= nvlist_lookup_string(nvl, DFS_ROOT_PROP_SHARE, &t_share);
1595 rc |= nvlist_lookup_uint32(nvl, DFS_ROOT_PROP_TSTATE, &t_state);
1596 if (rc != 0) {
1604 rc = nvlist_lookup_uint32(nvl, DFS_ROOT_PROP_PRI_CLASS,
1606 if (rc == 0)
1607 rc = nvlist_lookup_uint16(nvl, DFS_ROOT_PROP_PRI_RANK,
1610 if (rc != 0 && rc != ENOENT) {
1614 } else if (rc == 0) {
1661 int rc;
1663 rc = smb_reparse_svcadd(path, dfs_svc_name(ns_type), info);
1664 if (rc != 0) {
1665 switch (rc) {
1750 int rc;
1755 rc = smb_strcasecmp(dn1->dn_uncpath, dn2->dn_uncpath, 0);
1757 if (rc < 0)
1760 if (rc > 0)