Mercurial > hg > octave-kai > gnulib-hg
changeset 15965:d646eaed80e3
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.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 19 Oct 2011 11:49:39 +0200 |
parents | 916745fe55a6 |
children | 427ccc55d08a |
files | ChangeLog doc/posix-functions/posix_openpt.texi lib/posix_openpt.c |
diffstat | 3 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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().
--- a/doc/posix-functions/posix_openpt.texi +++ b/doc/posix-functions/posix_openpt.texi @@ -12,9 +12,15 @@ 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.