Lines Matching refs:tty
182 checktty(const char *tty)
188 (void)strlcat(ttyfile, tty, sizeof(ttyfile));
190 /* make sure the tty exists */
203 makelock(char *buf, size_t bufsiz, const char *tty)
206 (void)strlcat(buf, tty, bufsiz);
212 ttylock(const char *tty, int flags, pid_t *locker)
216 _DIAGASSERT(tty != NULL);
218 if (checktty(tty) != 0)
222 return pidlock(makelock(lockfile, sizeof(lockfile), tty),
227 ttyunlock(const char *tty)
231 _DIAGASSERT(tty != NULL);
233 if (checktty(tty) != 0)
237 return unlink(makelock(lockfile, sizeof(lockfile), tty));