Searched refs:ptm (Results 1 – 1 of 1) sorted by relevance
45 int ptm; in main() local52 if ((ptm = posix_openpt(O_RDWR)) == -1) { in main()55 if (grantpt(ptm) == -1) { in main()58 if (unlockpt(ptm) == -1) { in main()69 if ((ptr = (char *) ptsname(ptm)) == NULL) { in main()75 close(ptm); in main()88 if (dup2(ptm, STDIN_FILENO) != STDIN_FILENO) { in main()92 n = read(ptm, buf, 511); in main()