Lines Matching defs:error
84 int error;
90 error = stpn_get(pathname, &pnp);
91 if (error)
92 return (error);
93 error = stlookuppn(&pnp, cur_file, needroothandle);
94 return (error);
103 int error = 0;
130 error = ENOTDIR;
136 error = stpn_stripcomponent(pnp, component);
137 if (error)
178 * If an RPC error occurs, error is not changed,
179 * else it is the NFS error if NULL is returned.
181 error = -1;
184 lkp = nfslookup(cfile, component, &error);
187 lkp = nfs3lookup(cfile, component, &error);
190 lkp = nfs4lookup(cfile, component, &error);
200 * Check for RPC error
202 if (error == -1) {
203 printf("lookup: lookup RPC error\n");
204 return (error);
208 * Check for NFS error
211 if ((error != NFSERR_NOENT) &&
212 (error != NFS3ERR_NOENT) &&
213 (error != NFS4ERR_NOENT)) {
215 dprintf("lookup: lkp is NULL with error %d\n", error);
217 return (error);
220 dprintf("lookup: lkp is NULL with error %d\n", error);
226 return (error);
267 error = ELOOP;
272 error = nfsgetsymlink(cdp, &pathp);
275 error = nfs3getsymlink(cdp, &pathp);
278 error = nfs4getsymlink(cdp, &pathp);
283 error = ENOTSUP;
287 if (error)
294 error = stpn_combine(pnp, &linkpath); /* linkpath before pn */
295 if (error)
325 return (error);