Searched refs:Lckfd (Results 1 – 3 of 3) sorted by relevance
/titanic_41/usr/src/cmd/ttymon/ |
H A D | tmsac.c | 54 extern int Lckfd; in openpid() 59 if ((Lckfd = open(PIDFILE, O_RDONLY)) != -1) { in openpid() 60 if (lockf(Lckfd, F_TEST, 0L) == -1) in openpid() 63 (void)close(Lckfd); in openpid() 66 if ((Lckfd = open(PIDFILE, O_WRONLY|O_CREAT|O_TRUNC, 0644 )) != 0) in openpid() 69 if (lockf(Lckfd, F_LOCK, 0L) == -1) in openpid() 73 (void) write(Lckfd, lockbuf, strlen(lockbuf) + 1); in openpid() 75 log("fd(pid)\t = %d", Lckfd); in openpid()
|
H A D | tmglobal.c | 40 int Lckfd; /* for pid file */ variable
|
H A D | tmextern.h | 134 extern int Lckfd;
|