Lines Matching defs:tty
61 " [-u user] [-t tty] [-c cmd] [-SIGNAL] [cmd]...\n");
106 char *tty = NULL;
183 errx(1, "must specify tty");
184 tty = *av;
252 if (user == NULL && tty == NULL && cmd == NULL && !jflag && ac == 0)
255 if (tty) {
256 if (strncmp(tty, "/dev/", 5) == 0)
257 snprintf(buf, sizeof(buf), "%s", tty);
258 else if (strncmp(tty, "tty", 3) == 0)
259 snprintf(buf, sizeof(buf), "/dev/%s", tty);
261 snprintf(buf, sizeof(buf), "/dev/tty%s", tty);
298 } else if (tty) {
351 if (tty) {