Lines Matching refs:rc

57 	int rc;
59 rc = smbsr_decode_data(sr, "%S", sr,
65 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
77 int rc = 0;
92 if ((rc = smb_common_create_directory(sr)) != 0) {
93 smbsr_errno(sr, rc);
97 rc = smbsr_encode_empty_result(sr);
98 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
113 int rc;
121 rc = smb_pathname_reduce(sr, sr->user_cr, fqi->fq_path.pn_path,
123 if (rc != 0)
124 return (rc);
132 rc = smb_fsop_lookup(sr, sr->user_cr, SMB_FOLLOW_LINKS,
134 if (rc == 0) {
139 if (rc != ENOENT) {
141 return (rc);
144 rc = smb_fsop_access(sr, sr->user_cr, fqi->fq_dnode,
146 if (rc != NT_STATUS_SUCCESS) {
162 rc = smb_fsop_mkdir(sr, sr->user_cr, fqi->fq_dnode, fqi->fq_last_comp,
164 if (rc != 0) {
166 return (rc);
204 int rc;
206 rc = smbsr_decode_data(sr, "%S", sr,
212 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
224 int rc;
244 rc = smb_pathname_reduce(sr, sr->user_cr, fqi->fq_path.pn_path,
247 if (rc != 0) {
248 smbsr_errno(sr, rc);
252 rc = smb_fsop_lookup(sr, sr->user_cr, SMB_FOLLOW_LINKS,
254 if (rc != 0) {
255 if (rc == ENOENT)
259 smbsr_errno(sr, rc);
289 rc = smb_node_getattr(sr, fqi->fq_fnode, zone_kcred(), NULL,
291 if (rc != 0) {
292 smbsr_errno(sr, rc);
311 rc = smb_fsop_rmdir(sr, sr->user_cr, fqi->fq_dnode,
317 if (rc != 0) {
318 if (rc == EEXIST)
322 smbsr_errno(sr, rc);
326 rc = smbsr_encode_empty_result(sr);
327 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
359 int rc;
361 rc = smbsr_decode_data(sr, "%S", sr,
367 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
379 int rc;
396 rc = smbsr_encode_empty_result(sr);
397 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
409 rc = smb_pathname_reduce(sr, sr->user_cr, path, tnode, tnode,
411 if (rc != 0) {
412 smbsr_errno(sr, rc);
416 rc = smb_fsop_lookup(sr, sr->user_cr, SMB_FOLLOW_LINKS,
419 if (rc != 0) {
420 if (rc == ENOENT)
424 smbsr_errno(sr, rc);
442 rc = smb_fsop_access(sr, sr->user_cr, node, FILE_TRAVERSE);
446 if (rc != 0) {
452 rc = smbsr_encode_empty_result(sr);
453 return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);