Lines Matching refs:stb
160 struct stat stb;
201 statok = stat(pp->lock_file, &stb);
202 if (statok == 0 && (stb.st_mode & LFM_PRINT_DIS))
216 * been created by open(). Update &stb to match that new file.
219 statok = stat(pp->lock_file, &stb);
247 if (stb.st_mode & LFM_RESET_QUE) { /* reset queue flag */
248 if (fchmod(lfd, stb.st_mode & ~LFM_RESET_QUE) < 0)
276 if (stat(q->job_cfname, &stb) < 0)
294 if (fstat(lfd, &stb) == 0) {
296 if (stb.st_mode & LFM_PRINT_DIS)
299 if (stb.st_mode & LFM_RESET_QUE) {
302 if (fchmod(lfd, stb.st_mode & ~LFM_RESET_QUE)
625 struct stat stb;
630 if (lstat(file, &stb) < 0 || (fi = open(file, O_RDONLY)) < 0) {
640 if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(fi, &stb) == 0 &&
641 (stb.st_dev != fdev || stb.st_ino != fino))
1005 struct stat stb;
1013 statrc = lstat(file, &stb);
1030 if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(sfd, &stb) == 0 &&
1031 (stb.st_dev != fdev || stb.st_ino != fino)) {
1125 statrc = fstat(tfd, &stb); /* to find size of tfile */
1143 (void) sprintf(buf, "%c%" PRId64 " %s\n", type, stb.st_size,
1146 (void) sprintf(buf, "%c%" PRId64 " %s_c%d\n", type, stb.st_size,
1172 for (i = 0; i < stb.st_size; i += SPL_BUFSIZ) {
1174 if (i + amt > stb.st_size)
1175 amt = stb.st_size - i;
1196 trstat_write(pp, TR_SENDING, stb.st_size, logname,
1564 struct stat stb;
1605 if (stat(tempstderr, &stb) < 0 || stb.st_size == 0