Searched refs:ptmx (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/testing/selftests/filesystems/ |
| H A 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 …]
|
| /linux/Documentation/filesystems/ |
| H A D | devpts.rst | 11 All mounts of the devpts filesystem now create a ``/dev/pts/ptmx`` node 14 To retain backwards compatibility the a ptmx device node (aka any node 16 of devpts under the name ``pts`` in the same directory as the ptmx device 19 As an option instead of placing a ``/dev/ptmx`` device node at ``/dev/ptmx`` 20 it is possible to place a symlink to ``/dev/pts/ptmx`` at ``/dev/ptmx`` or 21 to bind mount ``/dev/ptx/ptmx`` to ``/dev/ptmx``. If you opt for using 23 the ``ptmxmode=0666``, or ``chmod 0666 /dev/pts/ptmx`` should be called.
|