Searched refs:pty_name (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython2/Lib/ |
D | pty.py | 64 pty_name = '/dev/pty' + x + y 66 fd = os.open(pty_name, os.O_RDWR)
|
/external/ppp/pppd/ |
D | sys-linux.c | 2619 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 …]
|
D | sys-solaris.c | 2749 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);
|