Home | History | Annotate | Download | only in lpd

Lines Matching defs:stb

147 	struct stat stb;
183 if (stat(LO, &stb) == 0 && (stb.st_mode & S_IXUSR))
229 if (stb.st_mode & S_IXOTH) { /* reset queue flag */
230 stb.st_mode &= ~S_IXOTH;
231 if (fchmod(lfd, stb.st_mode & 0777) < 0)
243 if (stat(q->q_name, &stb) < 0)
259 if (fstat(lfd, &stb) == 0) {
261 if (stb.st_mode & S_IXUSR)
264 if (stb.st_mode & S_IXOTH) {
267 stb.st_mode &= ~S_IXOTH;
268 if (fchmod(lfd, stb.st_mode & 0777) < 0)
545 struct stat stb;
550 if (lstat(file, &stb) < 0 || (fi = open(file, O_RDONLY)) < 0)
557 if (S_ISLNK(stb.st_mode) && fstat(fi, &stb) == 0 &&
558 (stb.st_dev != fdev || stb.st_ino != fino))
888 struct stat stb;
917 if (lstat(file, &stb) < 0 || (f = open(file, O_RDONLY)) < 0)
924 if (S_ISLNK(stb.st_mode) && fstat(f, &stb) == 0 &&
925 (stb.st_dev != fdev || stb.st_ino != fino))
929 (long long)stb.st_size, save_file);
947 for (i = 0; i < stb.st_size; i += BUFSIZ) {
951 if (i + amt > stb.st_size)
952 amt = stb.st_size - i;
1128 struct stat stb;
1171 if (stat(tempfile, &stb) < 0 || stb.st_size == 0 ||