Lines Matching refs:stbuf
125 struct stat stbuf; in abortpr() local
136 if (stat(line, &stbuf) >= 0) { in abortpr()
137 if (chmod(line, (stbuf.st_mode & 0777) | 0100) < 0) in abortpr()
399 struct stat stbuf; in enablepr() local
408 if (stat(line, &stbuf) >= 0) { in enablepr()
409 if (chmod(line, stbuf.st_mode & 0767) < 0) in enablepr()
456 struct stat stbuf; in disablepr() local
464 if (stat(line, &stbuf) >= 0) { in disablepr()
465 if (chmod(line, (stbuf.st_mode & 0777) | 010) < 0) in disablepr()
531 struct stat stbuf; in putmsg() local
539 if (stat(line, &stbuf) >= 0) { in putmsg()
540 if (chmod(line, (stbuf.st_mode & 0777) | 0110) < 0) in putmsg()
671 struct stat stbuf; in startpr() local
680 if (ena && stat(line, &stbuf) >= 0) { in startpr()
681 if (chmod(line, stbuf.st_mode & (ena == 2 ? 0666 : 0677)) < 0) in startpr()
730 struct stat stbuf; in prstat() local
737 if (stat(line, &stbuf) >= 0) { in prstat()
739 (stbuf.st_mode & 010) ? "disabled" : "enabled"); in prstat()
741 (stbuf.st_mode & 0100) ? "disabled" : "enabled"); in prstat()
774 (void)fstat(fd, &stbuf); in prstat()
775 if (stbuf.st_size > 0) { in prstat()
824 struct stat stbuf; in stoppr() local
833 if (stat(line, &stbuf) >= 0) { in stoppr()
834 if (chmod(line, (stbuf.st_mode & 0777) | 0100) < 0) in stoppr()
864 struct stat stbuf; in topq() local
910 if (changed && stat(LO, &stbuf) >= 0) in topq()
911 (void)chmod(LO, (stbuf.st_mode & 0777) | 01); in topq()