Lines Matching refs:ERROR
43 #define ERROR(e) {errno=e;goto error;}
83 if (stat(PR_REAL, cur) || stat("/", par) || cur->st_dev == par->st_dev && cur->st_ino == par->st_ino) ERROR(ENOTDIR);
98 if ((d - dots) > (PATH_MAX - 4)) ERROR(ERANGE);
102 if (!(dirp = opendir(dots))) ERROR(errno);
104 if (fstat(dirp->dd_fd, par)) ERROR(errno);
106 if (stat(dots, par)) ERROR(errno);
141 if (!(entry = readdir(dirp))) ERROR(ENOENT);
143 if ((d - dots) > (PATH_MAX - 1 - namlen)) ERROR(ERANGE);
145 if (stat(dots, &tstst)) ERROR(errno);
149 if ((p -= namlen) <= (path + 1)) ERROR(ERANGE);