Lines Matching refs:rc
64 int rc;
68 rc = smbsr_decode_vwv(sr, "ww", &setup, &mode);
69 if (rc == 0)
70 rc = smbsr_decode_data(sr, "%S", sr, &identifier);
72 if (rc == 0) {
84 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
100 * rc 0 SDRC_SUCCESS
101 * rc non-zero SDRC_ERROR
107 int rc;
119 if ((rc = smb_common_create(sr)) != NT_STATUS_SUCCESS) {
120 cmn_err(CE_WARN, "smb_com_open_print_file: error rc=%d", rc);
123 if ((rc = smbsr_encode_result(sr, 1, 0,
142 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
157 int rc;
159 rc = smbsr_decode_vwv(sr, "w", &sr->smb_fid);
162 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
178 * rc - 0 success
185 smb_sdrc_t rc;
198 rc = smb_com_close(sr);
202 return (rc);
250 int rc;
256 rc = smbsr_decode_vwv(sr, "w", &sr->smb_fid);
259 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
276 int rc;
296 rc = smb_node_getattr(sr, node, sr->user_cr, sr->fid_ofile, &attr);
297 if (rc != 0) {
313 if ((rc = smb_common_write(sr, param)) != 0) {
315 smbsr_errno(sr, rc);
319 rc = smbsr_encode_empty_result(sr);
320 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);