diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2011-12-31 00:22:28 +0400 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2011-12-31 00:22:28 +0400 |
commit | d5f3e0ba9a8fe79e6e7eab1ea3d9e675484d1931 (patch) | |
tree | 32a953854b717eb7c20de51024008e1bb1018e9b /winsup/cygwin/tty.cc | |
parent | 3abbe5ea8e73bd3bec13df2984b7082bfef06051 (diff) |
* cygwin.din (getpt): Export.
* posix.sgml (std-gnu): Add getpt.
* tty.cc (getpt): New function.
* include/cygwin/stdlib.h [!__STRICT_ANSI__] (getpt): Declare.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
Diffstat (limited to 'winsup/cygwin/tty.cc')
-rw-r--r-- | winsup/cygwin/tty.cc | 6 |
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); |