]> Savannah Git Hosting - gnulib.git/commitdiff
posix_openpt: Fix compilation error.
authorBruno Haible <bruno@clisp.org>
Wed, 19 Oct 2011 09:49:39 +0000 (11:49 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 19 Oct 2011 09:49:39 +0000 (11:49 +0200)
* lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
* doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
Mention the openpty module as an alternative.

ChangeLog
doc/posix-functions/posix_openpt.texi
lib/posix_openpt.c

index a2f95ec98bc3ab749659bfb47c5703ab94fdbef0..c9eb1eefd57736ebb5e41f792ea14848f7535e32 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-19  Bruno Haible  <bruno@clisp.org>
+
+       posix_openpt: Fix compilation error.
+       * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
+       * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
+       Mention the openpty module as an alternative.
+
 2011-10-19  Bruno Haible  <bruno@clisp.org>
 
        Support for old NeXTstep 3.3 frexp().
index 86653c14c4a0b51894772bc49a377940b3653632..0c0cb213dcaf79b873b80a525f52ee879b562554 100644 (file)
@@ -12,9 +12,15 @@ Portability problems fixed by Gnulib:
 This function is missing on some platforms:
 MacOS X 10.3, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, HP-UX 11.23, IRIX 6.5, OSF/1 5.1,
 Solaris 9, Cygwin 1.5.x, mingw, MSVC 9, Interix 3.5, BeOS.
-However, the replacement may fail with ENOSYS on some platforms.
+However, the replacement may fail with @code{ENOSYS} or @code{ENOENT} on
+some platforms.
 @end itemize
 
 Portability problems not fixed by Gnulib:
 @itemize
 @end itemize
+
+Note that when using this function to open the master side of a
+pseudo-terminal, you still need platform dependent code to open the
+corresponding slave side.  The Gnulib module @code{openpty} provides
+an easy-to-use API that does both at once.
index b2e4999c29602ce107bd9a1795475ed9a8e8562e..3b7d4cf08fd15dd0fbb52248a5f5697ee5821586 100644 (file)
@@ -23,7 +23,7 @@
 #include <errno.h>
 
 int
-posix_openpty (int flags)
+posix_openpt (int flags)
 {
   int master;