Lines Matching refs:lkfilefd
111 static int lkfilefd = -1;
170 * lkfilefd Lock file file descriptor
190 lkfilefd = open(lockname, O_RDWR|O_CREAT, 0600);
196 return ((lkfilefd != -1) ? TRUE : FALSE);
211 * lkfilefd The device reservation table file's file descriptor
221 if (lkfilefd != -1) rtnval = close(lkfilefd);
225 lkfilefd = -1;
251 * int lkfilefd File descriptor of the open lock file
272 if (fcntl(lkfilefd, F_SETLK, &lkinfo) != -1) locked = TRUE;
297 * lkfilefd File descriptor of the open lockfile
311 cntread = (int)read(lkfilefd, &lkcnt, sizeof (int));
336 * lkfilefd Reads data from this file
359 if (read(lkfilefd, alloc, bufsiz) != (ssize_t)bufsiz)
392 * int lkfilefd File descriptor of the lock file
448 * lkfilefd File descriptor of the lock file
467 if (lseek(lkfilefd, 0L, 0) >= 0L)
470 if (write(lkfilefd, &lockcount, sizeof (int)) == sizeof (int)) {
475 if (!write(lkfilefd, locklist, tblsz) == (ssize_t)tblsz)
502 * lkfilefd The open file descriptor for the open device
519 return (write(lkfilefd, &lk,
602 * lkfilefd File-descriptor of the open lock file
615 noerr = (fcntl(lkfilefd, F_SETLK, &lkinfo) != -1);