Lines Matching defs:pty
4 * Allocates a pty(4) device, and sends the specified number of packets of the
60 int pty;
68 "parent: started; opening PTY and spawning child\n");
69 pty = pty_open();
70 child = child_spawn(ptsname(pty));
86 "parent: attempting to write %zu bytes to PTY\n",
88 if ((size = write(pty, dbuf, buffer_size)) == -1) {
93 (void)printf("parent: wrote %zd bytes to PTY\n", size);
104 (void)printf("parent: closing PTY\n");
105 (void)close(pty);
138 atf_tc_fail_errno("Couldn't pty(4) device");
316 atf_tc_set_md_var(tc, "descr", "Checks that writing to pty "
330 atf_tc_set_md_var(tc, "descr", "Checks that writing to pty "