Lines Matching defs:pty
292 char pty[PATH_MAX], *slash;
298 * Construct master PTY name. The slave tty name must be less than
302 if (strlcpy(pty, tty, sizeof(pty)) >= sizeof(pty))
305 slash = strrchr(pty, '/');
310 if (strcmp(pty, tty) == 0)
314 if ((master = open(pty, O_RDWR)) == -1)
315 err(EXIT_FAILURE, "Cannot open `%s'", pty);
326 err(EXIT_FAILURE, "Cannot chown `%s'", pty);
328 err(EXIT_FAILURE, "Cannot chmod `%s'", pty);
330 err(EXIT_FAILURE, "Cannot revoke `%s'", pty);
706 "\t-t tty run in background using pty\n"