Searched refs:ptmx (Results 1 – 6 of 6) sorted by relevance
/glibc-2.36/login/ |
D | openpty.c | 94 int ptmx, ret = -1, terminal = -1; in __openpty() local 98 ptmx = __getpt (); in __openpty() 99 if (ptmx == -1) in __openpty() 102 if (grantpt (ptmx)) in __openpty() 105 if (unlockpt (ptmx)) in __openpty() 110 terminal = __ioctl (ptmx, TIOCGPTPEER, O_RDWR | O_NOCTTY); in __openpty() 117 if (pts_name (ptmx, &buf, sizeof (_buf))) in __openpty() 133 *pptmx = ptmx; in __openpty() 138 if (pts_name (ptmx, &buf, sizeof (_buf))) in __openpty() 148 __close (ptmx); in __openpty()
|
D | tst-grantpt.c | 84 int ptmx = posix_openpt (O_RDWR); in test_not_ptmx() local 85 TEST_VERIFY_EXIT (ptmx >= 0); in test_not_ptmx() 86 TEST_COMPARE (grantpt (ptmx), 0); in test_not_ptmx() 87 TEST_COMPARE (unlockpt (ptmx), 0); in test_not_ptmx() 90 TEST_COMPARE (unlockpt (ptmx), 0); in test_not_ptmx() 92 const char *name = ptsname (ptmx); in test_not_ptmx() 104 xclose (ptmx); in test_not_ptmx()
|
D | forkpty.c | 29 int ptmx, terminal, pid; in __forkpty() local 31 if (openpty (&ptmx, &terminal, name, termp, winp) == -1) in __forkpty() 37 __close (ptmx); in __forkpty() 42 __close (ptmx); in __forkpty() 49 *pptmx = ptmx; in __forkpty()
|
/glibc-2.36/posix/ |
D | tst-spawn6.c | 211 int ptmx = posix_openpt (0); in do_test() local 212 if (ptmx == -1) in do_test() 218 TEST_VERIFY_EXIT (grantpt (ptmx) == 0); in do_test() 219 TEST_VERIFY_EXIT (unlockpt (ptmx) == 0); in do_test() 222 TEST_VERIFY_EXIT (ioctl (ptmx, TIOCSCTTY, NULL) == 0); in do_test() 223 while (dup2 (ptmx, STDIN_FILENO) == -1 && errno == EBUSY) in do_test() 225 while (dup2 (ptmx, STDOUT_FILENO) == -1 && errno == EBUSY) in do_test() 227 while (dup2 (ptmx, STDERR_FILENO) == -1 && errno == EBUSY) in do_test() 229 TEST_VERIFY_EXIT (ptsname_r (ptmx, ptmxpath, sizeof ptmxpath) == 0); in do_test() 230 xclose (ptmx); in do_test()
|
/glibc-2.36/manual/ |
D | terminal.texi | 1955 @c the BSD implementation. The posix implementation opens the ptmx
|
/glibc-2.36/ |
D | NEWS | 966 use legacy (BSD) pseudo-terminals and assume that if /dev/ptmx exists 1017 [26053] libc: unlockpt fails with ENOTTY for non-ptmx descriptors
|