From 9ce1d1748f8d7d27b41f7026ee137eb5eed7c224 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 19 Oct 2011 11:49:39 +0200 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ doc/posix-functions/posix_openpt.texi | 8 +++++++- lib/posix_openpt.c | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a2f95ec98b..c9eb1eefd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-10-19 Bruno Haible + + 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 Support for old NeXTstep 3.3 frexp(). diff --git a/doc/posix-functions/posix_openpt.texi b/doc/posix-functions/posix_openpt.texi index 86653c14c4..0c0cb213dc 100644 --- a/doc/posix-functions/posix_openpt.texi +++ b/doc/posix-functions/posix_openpt.texi @@ -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. diff --git a/lib/posix_openpt.c b/lib/posix_openpt.c index b2e4999c29..3b7d4cf08f 100644 --- a/lib/posix_openpt.c +++ b/lib/posix_openpt.c @@ -23,7 +23,7 @@ #include int -posix_openpty (int flags) +posix_openpt (int flags) { int master; -- 2.39.5