Lines Matching refs:stb

148 	struct stat stb;  in printjob()  local
189 statok = stat(pp->lock_file, &stb); in printjob()
190 if (statok == 0 && (stb.st_mode & LFM_PRINT_DIS)) in printjob()
207 statok = stat(pp->lock_file, &stb); in printjob()
235 if (stb.st_mode & LFM_RESET_QUE) { /* reset queue flag */ in printjob()
236 if (fchmod(lfd, stb.st_mode & ~LFM_RESET_QUE) < 0) in printjob()
264 if (stat(q->job_cfname, &stb) < 0) in printjob()
282 if (fstat(lfd, &stb) == 0) { in printjob()
284 if (stb.st_mode & LFM_PRINT_DIS) in printjob()
287 if (stb.st_mode & LFM_RESET_QUE) { in printjob()
290 if (fchmod(lfd, stb.st_mode & ~LFM_RESET_QUE) in printjob()
613 struct stat stb; in print() local
618 if (lstat(file, &stb) < 0 || (fi = open(file, O_RDONLY)) < 0) { in print()
628 if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(fi, &stb) == 0 && in print()
629 (stb.st_dev != fdev || stb.st_ino != fino)) in print()
993 struct stat stb; in sendfile() local
1001 statrc = lstat(file, &stb); in sendfile()
1018 if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(sfd, &stb) == 0 && in sendfile()
1019 (stb.st_dev != fdev || stb.st_ino != fino)) { in sendfile()
1113 statrc = fstat(tfd, &stb); /* to find size of tfile */ in sendfile()
1131 (void) sprintf(buf, "%c%" PRId64 " %s\n", type, stb.st_size, in sendfile()
1134 (void) sprintf(buf, "%c%" PRId64 " %s_c%d\n", type, stb.st_size, in sendfile()
1160 for (i = 0; i < stb.st_size; i += SPL_BUFSIZ) { in sendfile()
1162 if (i + amt > stb.st_size) in sendfile()
1163 amt = stb.st_size - i; in sendfile()
1184 trstat_write(pp, TR_SENDING, stb.st_size, logname, in sendfile()
1552 struct stat stb; in sendmail() local
1593 if (stat(tempstderr, &stb) < 0 || stb.st_size == 0 in sendmail()