Lines Matching defs:rc

59 	int rc;
65 rc = smbsr_decode_vwv(sr, "wwl", &sr->smb_fid, &count, &off);
74 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
90 int rc;
101 rc = smb_write_truncate(sr, param);
103 rc = smbsr_decode_data(sr, "D", &param->rw_vdb);
105 if ((rc != 0) || (param->rw_vdb.vdb_len != param->rw_count)) {
113 rc = smb_common_write(sr, param);
116 if (rc != 0) {
118 smbsr_errno(sr, rc);
122 rc = smbsr_encode_result(sr, 1, 0, "bww", 1,
124 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
144 int rc;
151 rc = smbsr_decode_vwv(sr, "wwll12.", &sr->smb_fid,
154 rc = smbsr_decode_vwv(sr, "wwll", &sr->smb_fid,
164 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
181 int rc = 0;
192 rc = smb_write_truncate(sr, param);
197 rc = smbsr_decode_data(sr, ".#B", param->rw_count,
200 if ((rc != 0) || (param->rw_vdb.vdb_len != param->rw_count)) {
208 rc = smb_common_write(sr, param);
211 if (rc != 0) {
213 smbsr_errno(sr, rc);
220 rc = smbsr_encode_result(sr, 1, 0, "bww", 1, count, 0);
221 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
248 int rc;
254 rc = smbsr_decode_vwv(sr, "wwlw", &sr->smb_fid, &count, &off, &remcnt);
262 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
279 int rc = 0;
295 rc = smbsr_encode_result(sr, 1, 0, "bww", 1, 0, 0);
296 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
300 rc = smbsr_decode_data(sr, "D", &param->rw_vdb);
302 if ((rc != 0) || (param->rw_count != param->rw_vdb.vdb_len)) {
310 if ((rc = smb_common_write(sr, param)) != 0) {
312 smbsr_errno(sr, rc);
324 rc = smbsr_encode_result(sr, 1, 0, "bww", 1,
326 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
354 int rc;
361 rc = smbsr_decode_vwv(sr, "4.wl4.wwwwwl", &sr->smb_fid,
368 rc = smbsr_decode_vwv(sr, "4.wl4.wwwww", &sr->smb_fid,
384 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
402 int rc;
422 rc = smbsr_decode_data(sr, "#.#B", param->rw_dsoff, param->rw_count,
425 if ((rc != 0) || (param->rw_vdb.vdb_len != param->rw_count)) {
434 if ((rc = smb_common_write(sr, param)) != 0) {
437 smbsr_errno(sr, rc);
445 rc = smbsr_encode_result(sr, 6, 0, "bb1.wwwwww",
448 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
463 int rc = 0;
471 rc = smb_lock_range_access(sr, node, param->rw_offset,
473 if (rc != NT_STATUS_SUCCESS) {
485 rc = smb_fsop_write(sr, sr->user_cr, node,
488 if (rc)
489 return (rc);
502 if ((rc = smb_opipe_write(sr, &param->rw_vdb.vdb_uio)) != 0)
507 rc = EACCES;
511 if (rc != 0)
512 return (rc);
517 return (rc);
538 int rc;
559 rc = smb_node_setattr(sr, node, sr->user_cr, ofile, &attr);
560 if (rc != 0)
561 return (rc);