Lines Matching refs:errno

196 	oerrno = errno;
201 errno = oerrno;
208 * ux!=0 also retains errno for -1 return
225 oerrno = errno;
248 else if (errno == ENOENT)
250 oerrno = errno;
258 errno = oerrno;
271 oerrno = errno;
272 if ((r = sysaccess(path, op)) && errno == ENOENT && execrate(path, buf, sizeof(buf), 0))
274 errno = oerrno;
313 if ((r = syschmod(path, mode)) && errno == ENOENT && execrate(path, buf, sizeof(buf), 0))
315 errno = oerrno;
323 oerrno = errno;
329 errno = oerrno;
480 oerrno = errno;
490 errno = oerrno;
496 errno = EACCES;
502 errno = ENOEXEC;
510 errno = EAGAIN;
673 oerrno = errno;
674 if ((r = syslink(fp, tp)) && errno == ENOENT && execrate(fp, fb, sizeof(fb), 1))
678 errno = oerrno;
720 oerrno = errno;
726 errno = oerrno;
757 oerrno = errno;
760 if (fd < 0 && errno == ENOENT && execrate(path, buf, sizeof(buf), 0))
762 errno = oerrno;
776 errno = oerrno;
807 oerrno = errno;
808 if ((r = sysrename(fp, tp)) && errno == ENOENT && execrate(fp, fb, sizeof(fb), 1))
812 errno = oerrno;
829 oerrno = errno;
830 if ((r = sysstat(path, st)) && errno == ENOENT && execrate(path, buf, sizeof(buf), 0))
832 errno = oerrno;
849 oerrno = errno;
850 if ((r = systruncate(path, offset)) && errno == ENOENT && execrate(path, buf, sizeof(buf), 0))
852 errno = oerrno;
890 oerrno = errno;
904 errno = oerrno;
911 errno = ENOENT;
920 if (errno != ENOENT || !execrate(path, buf, sizeof(buf), 1) || sysaccess(buf, 0))
943 if (errno != ENOTDIR && errno != ENOENT)
960 errno = 0;
963 if (!errno && !sysrename(path, tmp))
969 if (errno == ENOENT)
996 errno = oerrno;
1001 errno = oerrno;
1040 errno = oerrno;
1056 oerrno = errno;
1057 if ((r = sysutimes(path, ut)) && errno == ENOENT && execrate(path, buf, sizeof(buf), 0))
1059 errno = oerrno;
1074 oerrno = errno;
1075 if ((r = sysutime(path, ut)) && errno == ENOENT && execrate(path, buf, sizeof(buf), 0))
1077 errno = oerrno;