Home
last modified time | relevance | path

Searched refs:pty_name (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Lib/
Dpty.py54 pty_name = '/dev/pty' + x + y
56 fd = os.open(pty_name, os.O_RDWR)
/external/python/cpython2/Lib/
Dpty.py64 pty_name = '/dev/pty' + x + y
66 fd = os.open(pty_name, os.O_RDWR)
/external/ppp/pppd/
Dsys-linux.c2619 char pty_name[16]; local
2630 slprintf(pty_name, sizeof(pty_name), "/dev/pts/%d", ptn);
2631 chmod(pty_name, S_IRUSR | S_IWUSR);
2635 warn("Couldn't unlock pty slave %s: %m", pty_name);
2637 if ((sfd = open(pty_name, O_RDWR | O_NOCTTY)) < 0)
2638 warn("Couldn't open pty slave %s: %m", pty_name);
2646 slprintf(pty_name, sizeof(pty_name), "/dev/pty%c%x",
2648 mfd = open(pty_name, O_RDWR, 0);
2650 pty_name[5] = 't';
2651 sfd = open(pty_name, O_RDWR | O_NOCTTY, 0);
[all …]
Dsys-solaris.c2749 char *pty_name; local
2757 pty_name = ptsname(mfd);
2758 if (pty_name == NULL) {
2763 if (chown(pty_name, uid, -1) < 0)
2765 if (chmod(pty_name, S_IRUSR | S_IWUSR) < 0)
2770 sfd = open(pty_name, O_RDWR);
2772 error("Couldn't open pty slave %s: %m", pty_name);
2779 dbglog("Using %s", pty_name);
2780 strlcpy(slave_name, pty_name, MAXPATHLEN);