summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/tty.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/tty.cc')
-rw-r--r--winsup/cygwin/tty.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc
index 829d773aa..515e706a0 100644
--- a/winsup/cygwin/tty.cc
+++ b/winsup/cygwin/tty.cc
@@ -26,6 +26,12 @@ details. */
HANDLE NO_COPY tty_list::mutex = NULL;
extern "C" int
+getpt (void)
+{
+ return open ("/dev/ptmx", O_RDWR | O_NOCTTY);
+}
+
+extern "C" int
posix_openpt (int oflags)
{
return open ("/dev/ptmx", oflags);