Searched refs:ptmx (Results 1 – 1 of 1) sorted by relevance
/tools/testing/selftests/filesystems/ |
D | devpts_pts.c | 100 static int do_tiocgptpeer(char *ptmx, char *expected_procfd_contents) in do_tiocgptpeer() argument 105 master = open(ptmx, O_RDWR | O_NOCTTY | O_CLOEXEC); in do_tiocgptpeer() 107 fprintf(stderr, "Failed to open \"%s\": %s\n", ptmx, in do_tiocgptpeer() 192 char ptmx[] = P_tmpdir "/devpts_fs_XXXXXX/ptmx"; in verify_non_standard_devpts_mount() local 220 ret = snprintf(ptmx, sizeof(ptmx), "%s/ptmx", devpts); in verify_non_standard_devpts_mount() 221 if (ret < 0 || (size_t)ret >= sizeof(ptmx)) { in verify_non_standard_devpts_mount() 226 ret = do_tiocgptpeer(ptmx, mntpoint); in verify_non_standard_devpts_mount() 256 char ptmx[] = P_tmpdir "/devpts_ptmx_XXXXXX"; in verify_invalid_ptmx_bind_mount() local 258 mntpoint_fd = mkstemp(ptmx); in verify_invalid_ptmx_bind_mount() 265 ret = mount("/dev/pts/ptmx", ptmx, NULL, MS_BIND, NULL); in verify_invalid_ptmx_bind_mount() [all …]
|