Home | History | Annotate | Download | only in lpd

Lines Matching defs:lfd

98 static int	lfd;		/* lock file descriptor */
185 lfd = open(LO, O_WRONLY|O_CREAT, 0644);
186 if (lfd < 0) {
190 if (flock(lfd, LOCK_EX|LOCK_NB) < 0) {
196 ftruncate(lfd, 0);
201 if (write(lfd, line, i) != i) {
231 if (fchmod(lfd, stb.st_mode & 0777) < 0)
247 (void)lseek(lfd, pidoff, 0);
249 if (write(lfd, line, i) != i)
259 if (fstat(lfd, &stb) == 0) {
268 if (fchmod(lfd, stb.st_mode & 0777) < 0)
282 if (ftruncate(lfd, pidoff) < 0)