diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2006-07-18 12:31:00 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2006-07-18 12:31:00 +0000 |
commit | 90b0df9bec7ed880efa74d299ff85bb40ac96e78 (patch) | |
tree | 111c16fc7c1dc508c240634cacc9c71fb84b8a5b | |
parent | 711391e2dbf2a94d86c6b894072ccb62861c185f (diff) | |
download | newlib-90b0df9bec7ed880efa74d299ff85bb40ac96e78.zip newlib-90b0df9bec7ed880efa74d299ff85bb40ac96e78.tar.gz newlib-90b0df9bec7ed880efa74d299ff85bb40ac96e78.tar.bz2 |
* cygwin.din (posix_openpt): Export.
* tty.cc (posix_openpt): New function.
* include/cygwin/stdlib.h (posix_openpt): Declare.
* include/cygwin/version.h: Bump API minor number.
-rw-r--r-- | winsup/cygwin/ChangeLog | 7 | ||||
-rw-r--r-- | winsup/cygwin/cygwin.din | 1 | ||||
-rw-r--r-- | winsup/cygwin/include/cygwin/stdlib.h | 2 | ||||
-rw-r--r-- | winsup/cygwin/include/cygwin/version.h | 3 | ||||
-rw-r--r-- | winsup/cygwin/tty.cc | 6 |
5 files changed, 18 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 368f7a1..a49c574 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,10 @@ +2006-07-18 Corinna Vinschen <corinna@vinschen.de> + + * cygwin.din (posix_openpt): Export. + * tty.cc (posix_openpt): New function. + * include/cygwin/stdlib.h (posix_openpt): Declare. + * include/cygwin/version.h: Bump API minor number. + 2006-07-17 Christopher Faylor <cgf@timesys.com> GCC 4.1 fixes. diff --git a/winsup/cygwin/cygwin.din b/winsup/cygwin/cygwin.din index ca6a1e4..a80ea38 100644 --- a/winsup/cygwin/cygwin.din +++ b/winsup/cygwin/cygwin.din @@ -976,6 +976,7 @@ poll SIGFE _poll = poll SIGFE popen SIGFE _popen = popen SIGFE +posix_openpt SIGFE posix_regcomp SIGFE posix_regerror SIGFE posix_regexec SIGFE diff --git a/winsup/cygwin/include/cygwin/stdlib.h b/winsup/cygwin/include/cygwin/stdlib.h index 8800510..e034fe8 100644 --- a/winsup/cygwin/include/cygwin/stdlib.h +++ b/winsup/cygwin/include/cygwin/stdlib.h @@ -31,6 +31,8 @@ int grantpt (int); int unlockpt (int); #endif /*__STRICT_ANSI__*/ +int posix_openpt (int); + #ifdef _COMPILING_NEWLIB #define unsetenv UNUSED_unsetenv #define _unsetenv_r UNUSED__unsetenv_r diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h index 3fa1696..293e106 100644 --- a/winsup/cygwin/include/cygwin/version.h +++ b/winsup/cygwin/include/cygwin/version.h @@ -293,12 +293,13 @@ details. */ in6addr_any, in6addr_loopback. 158: Export bindresvport, bindresvport_sa, iruserok_sa, rcmd_af, rresvport_af. + 159: Export posix_openpt. */ /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */ #define CYGWIN_VERSION_API_MAJOR 0 -#define CYGWIN_VERSION_API_MINOR 158 +#define CYGWIN_VERSION_API_MINOR 159 /* There is also a compatibity version number associated with the shared memory regions. It is incremented when incompatible diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc index 018ffe0..f357b7b 100644 --- a/winsup/cygwin/tty.cc +++ b/winsup/cygwin/tty.cc @@ -28,6 +28,12 @@ details. */ extern fhandler_tty_master *tty_master; extern "C" int +posix_openpt (int oflags) +{ + return open ("/dev/ptmx", oflags); +} + +extern "C" int grantpt (int fd) { return 0; |