Searched refs:lockbuf (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | lockinst.c | 81 static char lockbuf[LCKBUFSIZ]; variable 100 (void) memset(lockbuf, 0, LCKBUFSIZ); in wrlockdata() 102 (void) snprintf(lockbuf, sizeof (lockbuf), in wrlockdata() 107 if (write(fd, lockbuf, LF_SIZE) == LF_SIZE) in wrlockdata() 125 if (read(fd, lockbuf, LF_SIZE) != LF_SIZE) { in rdlockdata() 139 (void) sscanf(lockbuf, "%ld %s %s %s %u", &lock_pid, in rdlockdata()
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmsac.c | 50 char lockbuf[16]; /* large enough for a PID string */ in openpid() local 67 (void) snprintf(lockbuf, sizeof (lockbuf), "%ld", getpid()); in openpid() 68 (void) write(Lckfd, lockbuf, strlen(lockbuf) + 1); in openpid()
|