Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2011-12-31 00:22:28 +0400
committerYaakov Selkowitz <yselkowi@redhat.com>2011-12-31 00:22:28 +0400
commitd5f3e0ba9a8fe79e6e7eab1ea3d9e675484d1931 (patch)
tree32a953854b717eb7c20de51024008e1bb1018e9b /winsup/cygwin/tty.cc
parent3abbe5ea8e73bd3bec13df2984b7082bfef06051 (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.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);