master 46 maint/gnulib/lib/forkpty.c int master, slave, pid; master 48 maint/gnulib/lib/forkpty.c if (openpty (&master, &slave, name, termp, winp) == -1) master 54 maint/gnulib/lib/forkpty.c close (master); master 60 maint/gnulib/lib/forkpty.c close (master); master 67 maint/gnulib/lib/forkpty.c *amaster = master; master 66 maint/gnulib/lib/openpty.c int master; master 72 maint/gnulib/lib/openpty.c slave_name = _getpty (&master, O_RDWR, 0622, 0); master 79 maint/gnulib/lib/openpty.c master = posix_openpt (O_RDWR | O_NOCTTY); master 80 maint/gnulib/lib/openpty.c if (master < 0) master 87 maint/gnulib/lib/openpty.c if (grantpt (master)) master 92 maint/gnulib/lib/openpty.c if (unlockpt (master)) master 96 maint/gnulib/lib/openpty.c slave_name = ptsname (master); master 124 maint/gnulib/lib/openpty.c *amaster = master; master 132 maint/gnulib/lib/openpty.c close (master); master 51 maint/gnulib/lib/posix_openpt.c int master; master 55 maint/gnulib/lib/posix_openpt.c master = open ("/dev/ptc", flags); master 60 maint/gnulib/lib/posix_openpt.c master = -1; master 75 maint/gnulib/lib/posix_openpt.c master = data.cfd; master 84 maint/gnulib/lib/posix_openpt.c master = -1; master 88 maint/gnulib/lib/posix_openpt.c master = -1; master 93 maint/gnulib/lib/posix_openpt.c master = open ("/dev/ptmx", flags); master 107 maint/gnulib/lib/posix_openpt.c return master; master 32 maint/gnulib/tests/test-login_tty.c int master; master 37 maint/gnulib/tests/test-login_tty.c int res = openpty (&master, &slave, NULL, NULL, NULL); master 38 maint/gnulib/tests/test-openpty.c int master; master 43 maint/gnulib/tests/test-openpty.c int res = openpty (&master, &slave, NULL, NULL, NULL); master 78 maint/gnulib/tests/test-openpty.c if (write (master, input, strlen (input)) < (int) strlen (input)) master 106 maint/gnulib/tests/test-openpty.c close (master); master 40 maint/gnulib/tests/test-posix_openpt.c int master; master 45 maint/gnulib/tests/test-posix_openpt.c master = posix_openpt (O_RDWR | O_NOCTTY); master 46 maint/gnulib/tests/test-posix_openpt.c if (master < 0 && errno == ENOSYS) master 52 maint/gnulib/tests/test-posix_openpt.c ASSERT (0 <= master); master 53 maint/gnulib/tests/test-posix_openpt.c name = ptsname (master); master 55 maint/gnulib/tests/test-posix_openpt.c ASSERT (grantpt (master) == 0); master 56 maint/gnulib/tests/test-posix_openpt.c ASSERT (unlockpt (master) == 0); master 72 maint/gnulib/tests/test-posix_openpt.c ASSERT (close (master) == 0);