Lines Matching refs:pty_name
2554 char pty_name[16];
2565 slprintf(pty_name, sizeof(pty_name), "/dev/pts/%d", ptn);
2566 chmod(pty_name, S_IRUSR | S_IWUSR);
2570 warn("Couldn't unlock pty slave %s: %m", pty_name);
2572 if ((sfd = open(pty_name, O_RDWR | O_NOCTTY)) < 0)
2573 warn("Couldn't open pty slave %s: %m", pty_name);
2581 slprintf(pty_name, sizeof(pty_name), "/dev/pty%c%x",
2583 mfd = open(pty_name, O_RDWR, 0);
2585 pty_name[5] = 't';
2586 sfd = open(pty_name, O_RDWR | O_NOCTTY, 0);
2600 strlcpy(slave_name, pty_name, 16);