Lines Matching defs:errno
71 n_long errno;
146 * On error, return non-zero and set errno.
157 n_long errno;
189 if (cc == -1 || cc < 4 || repl->errno) {
195 /* errno was set by rpc_call */
199 errno = EBADRPC;
202 if (repl->errno) {
203 errno = ntohl(repl->errno);
229 n_long errno;
234 n_long errno;
309 return errno; /* XXX - from rpc_call */
315 if (replv2->errno) {
317 return ntohl(replv2->errno);
325 if (replv3->errno) {
327 return ntohl(replv3->errno);
368 return errno;
373 if (rdata.d.errno)
374 return ntohl(rdata.d.errno);
388 * Return transfer count or -1 (and set errno)
405 n_long errno;
411 n_long errno;
420 n_long errno;
482 errno = ENOSYS;
487 /* errno was already set by rpc_call */
491 errno = EBADRPC;
497 if (replv2->errno) {
498 errno = ntohl(replv2->errno);
505 if (replv3->errno) {
506 errno = ntohl(replv3->errno);
521 errno = ENOSYS;
528 errno = EBADRPC;
537 * On error, return non-zero and set errno.
547 errno = EINVAL;
572 errno = ENOSYS;
610 return errno;
815 strerror(errno));
817 return errno; /* XXX - from nfs_readdata */