Lines Matching defs:rc
63 int rc;
67 rc = smbsr_decode_vwv(sr, "ww", &setup, &mode);
68 if (rc == 0)
69 rc = smbsr_decode_data(sr, "%S", sr, &identifier);
71 if (rc == 0) {
83 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
99 * rc 0 SDRC_SUCCESS
100 * rc non-zero SDRC_ERROR
106 int rc;
117 if ((rc = smb_common_create(sr)) != NT_STATUS_SUCCESS) {
118 cmn_err(CE_WARN, "smb_com_open_print_file: error rc=%d", rc);
121 if ((rc = smbsr_encode_result(sr, 1, 0,
139 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
154 int rc;
156 rc = smbsr_decode_vwv(sr, "w", &sr->smb_fid);
159 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
175 * rc - 0 success
182 smb_sdrc_t rc;
190 rc = smb_com_close(sr);
195 return (rc);
243 int rc;
249 rc = smbsr_decode_vwv(sr, "w", &sr->smb_fid);
252 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
269 int rc;
302 if ((rc = smb_common_write(sr, param)) != 0) {
304 smbsr_errno(sr, rc);
308 rc = smbsr_encode_empty_result(sr);
309 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);