Home
last modified time | relevance | path

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

/xen/tools/console/client/
A Dmain.c105 int xs_fd = xs_fileno(xs), pty_fd = -1; in get_pty_fd() local
124 pty_fd = open(pty_path, O_RDWR | O_NOCTTY); in get_pty_fd()
125 if (pty_fd == -1) in get_pty_fd()
130 } while (pty_fd == -1 && (now = time(NULL)) < start + seconds); in get_pty_fd()
133 if (pty_fd != -1) { in get_pty_fd()
147 if (tcgetattr(pty_fd, &term) < 0) { in get_pty_fd()
148 ioctl(pty_fd, I_PUSH, "ptem"); in get_pty_fd()
149 ioctl(pty_fd, I_PUSH, "ldterm"); in get_pty_fd()
154 return pty_fd; in get_pty_fd()

Completed in 2 milliseconds