Searched refs:lkfilefd (Results 1 – 1 of 1) sorted by relevance
/titanic_44/usr/src/lib/libadm/common/ |
H A D | devreserv.c | 111 static int lkfilefd = -1; variable 190 lkfilefd = open(lockname, O_RDWR|O_CREAT, 0600); in _openlkfile() 196 return ((lkfilefd != -1) ? TRUE : FALSE); in _openlkfile() 221 if (lkfilefd != -1) rtnval = close(lkfilefd); in _closelkfile() 225 lkfilefd = -1; in _closelkfile() 272 if (fcntl(lkfilefd, F_SETLK, &lkinfo) != -1) locked = TRUE; in locklkfile() 311 cntread = (int)read(lkfilefd, &lkcnt, sizeof (int)); in getlkcnt() 359 if (read(lkfilefd, alloc, bufsiz) != (ssize_t)bufsiz) in readlocks() 467 if (lseek(lkfilefd, 0L, 0) >= 0L) in writelks() 470 if (write(lkfilefd, &lockcount, sizeof (int)) == sizeof (int)) { in writelks() [all …]
|