Merge branch 'stable'
[gnulib.git] / doc / glibc-functions / openpty.texi
1 @node openpty
2 @subsection @code{openpty}
3 @findex openpty
4
5 Gnulib module: openpty
6
7 Portability problems fixed by Gnulib:
8 @itemize
9 @item
10 This function is missing on some platforms:
11 AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 11 2010-11.
12 @item
13 One some systems (at least including Cygwin, Interix, OSF/1 4 and 5,
14 and Mac OS X) linking with @code{-lutil} is not required.
15 @item
16 On glibc, OpenBSD, NetBSD and FreeBSD linking with @code{-lutil} is
17 required.
18 @item
19 The function is declared in pty.h on Cygwin, Interix, OSF/1 4 and 5,
20 and glibc.  It is declared in util.h on Mac OS X, OpenBSD and NetBSD.
21 It is declared in libutil.h on FreeBSD.
22 @item
23 Some platforms declare the function without marking the last two
24 parameters @code{const}.
25 FreeBSD, Cygwin 1.7.1.
26 @end itemize
27
28 Portability problems not fixed by Gnulib:
29 @itemize
30 @item
31 This function is missing on some platforms:
32 mingw, MSVC 9.
33 @item
34 After a successful call to @code{openpty}, the application needs to close
35 the master's file descriptor before closing the slave's file descriptor,
36 otherwise the process may hang in a state where it cannot be killed, on
37 some platforms: MacOS X 10.4.11.
38 @end itemize