Searched refs:pty_name (Results 1 – 3 of 3) sorted by relevance
/external/ppp/pppd/ |
D | sys-linux.c | 2553 char pty_name[16]; local 2564 slprintf(pty_name, sizeof(pty_name), "/dev/pts/%d", ptn); 2565 chmod(pty_name, S_IRUSR | S_IWUSR); 2569 warn("Couldn't unlock pty slave %s: %m", pty_name); 2571 if ((sfd = open(pty_name, O_RDWR | O_NOCTTY)) < 0) 2572 warn("Couldn't open pty slave %s: %m", pty_name); 2580 slprintf(pty_name, sizeof(pty_name), "/dev/pty%c%x", 2582 mfd = open(pty_name, O_RDWR, 0); 2584 pty_name[5] = 't'; 2585 sfd = open(pty_name, O_RDWR | O_NOCTTY, 0); [all …]
|
D | sys-solaris.c | 2741 char *pty_name; local 2750 pty_name = ptsname(mfd); 2751 if (pty_name == NULL) { 2756 if (chown(pty_name, uid, -1) < 0) 2758 if (chmod(pty_name, S_IRUSR | S_IWUSR) < 0) 2763 sfd = open(pty_name, O_RDWR); 2765 error("Couldn't open pty slave %s: %m", pty_name); 2772 dbglog("Using %s", pty_name); 2773 strlcpy(slave_name, pty_name, MAXPATHLEN);
|
/external/qemu/ |
D | qemu-char.c | 1047 char pty_name[PATH_MAX]; in qemu_chr_open_pty() local 1048 #define q_ptsname(x) pty_name in qemu_chr_open_pty() 1050 char *pty_name = NULL; in qemu_chr_open_pty() local 1058 if (openpty(&s->fd, &slave_fd, pty_name, NULL, NULL) < 0) { in qemu_chr_open_pty()
|