ptmx 100 tools/testing/selftests/filesystems/devpts_pts.c static int do_tiocgptpeer(char *ptmx, char *expected_procfd_contents) ptmx 105 tools/testing/selftests/filesystems/devpts_pts.c master = open(ptmx, O_RDWR | O_NOCTTY | O_CLOEXEC); ptmx 107 tools/testing/selftests/filesystems/devpts_pts.c fprintf(stderr, "Failed to open \"%s\": %s\n", ptmx, ptmx 192 tools/testing/selftests/filesystems/devpts_pts.c char ptmx[] = P_tmpdir "/devpts_fs_XXXXXX/ptmx"; ptmx 220 tools/testing/selftests/filesystems/devpts_pts.c ret = snprintf(ptmx, sizeof(ptmx), "%s/ptmx", devpts); ptmx 221 tools/testing/selftests/filesystems/devpts_pts.c if (ret < 0 || (size_t)ret >= sizeof(ptmx)) { ptmx 226 tools/testing/selftests/filesystems/devpts_pts.c ret = do_tiocgptpeer(ptmx, mntpoint); ptmx 256 tools/testing/selftests/filesystems/devpts_pts.c char ptmx[] = P_tmpdir "/devpts_ptmx_XXXXXX"; ptmx 258 tools/testing/selftests/filesystems/devpts_pts.c mntpoint_fd = mkstemp(ptmx); ptmx 265 tools/testing/selftests/filesystems/devpts_pts.c ret = mount("/dev/pts/ptmx", ptmx, NULL, MS_BIND, NULL); ptmx 269 tools/testing/selftests/filesystems/devpts_pts.c "\"%s\" mount namespace\n", ptmx); ptmx 273 tools/testing/selftests/filesystems/devpts_pts.c ret = do_tiocgptpeer(ptmx, "/dev/pts/");