Lines Matching refs:rc

52 	int rc;
58 rc = smbsr_decode_vwv(sr, "wwl", &sr->smb_fid, &count, &off);
67 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
83 int rc;
94 rc = smb_write_truncate(sr, param);
96 rc = smbsr_decode_data(sr, "D", &param->rw_vdb);
98 if ((rc != 0) || (param->rw_vdb.vdb_len != param->rw_count)) {
106 rc = smb_common_write(sr, param);
109 if (rc != 0) {
111 smbsr_errno(sr, rc);
115 rc = smbsr_encode_result(sr, 1, 0, "bww", 1,
117 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
137 int rc;
144 rc = smbsr_decode_vwv(sr, "wwll12.", &sr->smb_fid,
147 rc = smbsr_decode_vwv(sr, "wwll", &sr->smb_fid,
157 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
174 int rc = 0;
185 rc = smb_write_truncate(sr, param);
190 rc = smbsr_decode_data(sr, ".#B", param->rw_count,
193 if ((rc != 0) || (param->rw_vdb.vdb_len != param->rw_count)) {
201 rc = smb_common_write(sr, param);
204 if (rc != 0) {
206 smbsr_errno(sr, rc);
213 rc = smbsr_encode_result(sr, 1, 0, "bww", 1, count, 0);
214 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
241 int rc;
247 rc = smbsr_decode_vwv(sr, "wwlw", &sr->smb_fid, &count, &off, &remcnt);
255 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
272 int rc = 0;
288 rc = smbsr_encode_result(sr, 1, 0, "bww", 1, 0, 0);
289 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
293 rc = smbsr_decode_data(sr, "D", &param->rw_vdb);
295 if ((rc != 0) || (param->rw_count != param->rw_vdb.vdb_len)) {
303 if ((rc = smb_common_write(sr, param)) != 0) {
305 smbsr_errno(sr, rc);
317 rc = smbsr_encode_result(sr, 1, 0, "bww", 1,
319 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
347 int rc;
354 rc = smbsr_decode_vwv(sr, "4.wl4.wwwwwl", &sr->smb_fid,
362 rc = smbsr_decode_vwv(sr, "4.wl4.wwwww", &sr->smb_fid,
371 rc = -1;
388 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
406 int rc;
425 rc = smbsr_decode_data(sr, "#.#B", param->rw_dsoff, param->rw_count,
428 if ((rc != 0) || (param->rw_vdb.vdb_len != param->rw_count)) {
437 if ((rc = smb_common_write(sr, param)) != 0) {
440 smbsr_errno(sr, rc);
448 rc = smbsr_encode_result(sr, 6, 0, "bb1.wwwwww",
451 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
466 int rc = 0;
474 rc = smb_lock_range_access(sr, node, param->rw_offset,
476 if (rc != NT_STATUS_SUCCESS) {
488 rc = smb_fsop_write(sr, sr->user_cr, node,
491 if (rc)
492 return (rc);
514 if ((rc = smb_opipe_write(sr, &param->rw_vdb.vdb_uio)) != 0)
519 rc = EACCES;
523 if (rc != 0)
524 return (rc);
529 return (rc);
550 int rc;
571 rc = smb_node_setattr(sr, node, sr->user_cr, ofile, &attr);
572 if (rc != 0)
573 return (rc);