Lines Matching refs:rc

71 	int		rc;
85 rc = smbsr_decode_vwv(sr, SMB_TRANSHDR_ED_FMT,
89 if (rc != 0)
101 rc = smbsr_decode_data(sr, "%.U", sr, &stn);
103 rc = smbsr_decode_data(sr, "%s", sr, &stn);
105 if (rc != 0) {
143 rc = smbsr_encode_empty_result(sr);
144 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
175 int rc;
194 rc = smbsr_decode_vwv(sr, SMB_TRANSSHDR_ED_FMT, &tpscnt, &tdscnt,
197 if (rc != 0)
273 int rc;
275 rc = smbsr_decode_vwv(sr, "wwwwwwwl2.wwww", &fid, &category, &function,
279 if (rc != 0)
307 int rc;
309 rc = smbsr_decode_vwv(sr, SMB_TRANSHDR_ED_FMT, &tpscnt, &tdscnt,
313 if (rc != 0)
355 rc = smbsr_encode_empty_result(sr);
356 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
387 int rc;
406 rc = smbsr_decode_vwv(sr, SMB_TRANS2SHDR_ED_FMT, &tpscnt, &tdscnt,
409 if (rc != 0)
462 int rc;
468 if ((rc = smb_pre_nt_transact_create(sr, xa)) == 0)
469 rc = smb_nt_transact_create(sr, xa);
473 rc = smb_nt_transact_notify_change(sr, xa);
476 rc = smb_nt_transact_query_security_info(sr, xa);
479 rc = smb_nt_transact_set_security_info(sr, xa);
482 rc = smb_nt_transact_ioctl(sr, xa);
485 rc = smb_nt_transact_query_quota(sr, xa);
488 rc = smb_nt_transact_set_quota(sr, xa);
491 rc = smb_nt_transact_rename(sr, xa);
499 switch (rc) {
507 return (rc);
537 rc = smbsr_encode_result(sr, 18+n_setup, total_bytes,
555 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
581 int rc;
583 rc = smbsr_decode_vwv(sr, SMB_NT_TRANSHDR_ED_FMT, &MaxSetupCount,
588 if (rc != 0)
631 rc = smbsr_encode_empty_result(sr);
632 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
663 int rc;
682 rc = smbsr_decode_vwv(sr, SMB_TRANS2SHDR_ED_FMT, &tpscnt, &tdscnt,
685 if (rc != 0)
738 int rc;
741 rc = xa->req_disp_data >= xa->smb_tdscnt &&
745 return (rc);
1076 int rc;
1078 rc = smb_mbc_decodef(&xa->req_param_mb, "%sww", sr,
1083 if (rc != 0)
1449 int rc, pos;
1458 rc = smb_mbc_decodef(&xa->req_setup_mb, "ww", &opcode,
1460 if (rc != 0)
1464 if ((rc = smb_mbc_decodef(&xa->req_param_mb, "w",
1468 rc = SDRC_SUCCESS;
1472 rc = smb_trans_nmpipe(sr, xa);
1477 rc = SDRC_SUCCESS;
1487 if ((rc = smb_mbc_decodef(&xa->req_param_mb, "%wss", sr,
1493 rc = smb_trans_net_share_enum(sr, xa);
1497 rc = smb_trans_net_share_getinfo(sr, xa);
1501 rc = smb_trans_net_server_getinfo(sr, xa);
1505 rc = smb_trans_net_user_getinfo(sr, xa);
1509 rc = smb_trans_net_workstation_getinfo(sr, xa);
1513 rc = smb_trans_net_server_enum2(sr, xa);
1521 switch (rc) {
1528 return (rc);
1557 rc = smbsr_encode_result(sr, 10+n_setup, total_bytes,
1575 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
1578 rc = NERR_BufTooSmall;
1582 rc = ERROR_NOT_SUPPORTED;
1587 rc = smbsr_encode_result(sr, 10, 4, "bww2.wwwwwwb.www",
1594 rc,
1596 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
1602 int rc, pos;
1623 rc = smb_com_trans2_open2(sr, xa);
1627 rc = smb_com_trans2_create_directory(sr, xa);
1640 rc = smb_com_trans2_find_first2(sr, xa);
1653 rc = smb_com_trans2_find_next2(sr, xa);
1666 rc = smb_com_trans2_query_fs_information(sr, xa);
1670 rc = smb_com_trans2_set_fs_information(sr, xa);
1683 rc = smb_com_trans2_query_path_information(sr, xa);
1696 rc = smb_com_trans2_query_file_information(sr, xa);
1700 rc = smb_com_trans2_set_path_information(sr, xa);
1704 rc = smb_com_trans2_set_file_information(sr, xa);
1708 rc = smb_com_trans2_get_dfs_referral(sr, xa);
1716 switch (rc) {
1723 return (rc);
1771 rc = smbsr_encode_result(sr, 10+n_setup, total_bytes,
1789 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
1792 rc = NERR_BufTooSmall;
1796 rc = ERROR_NOT_SUPPORTED;
1801 rc = smbsr_encode_result(sr, 10, 4, "bww2.wwwwwwb.www",
1808 rc,
1810 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
1966 int rc;
1974 rc = 0;
1976 rc = ERROR_INVALID_HANDLE;
1981 return (rc);
2006 int rc;
2010 rc = 0; /* error ("not complete") */
2012 rc = 1; /* Yes, "complete" */
2027 return (rc);