forkpty, openpty: prefer glibc's const-safe prototype
[pspp] / doc / glibc-functions / forkpty.texi
1 @node forkpty
2 @subsection @code{forkpty}
3 @findex forkpty
4
5 Gnulib module: forkpty
6
7 Portability problems fixed by Gnulib:
8 @itemize
9 @item
10 One some systems (at least including Cygwin, Interix, OSF/1 4 and 5,
11 and Mac OS X) linking with @code{-lutil} is not required.
12 @item
13 On glibc, OpenBSD, NetBSD and FreeBSD linking with @code{-lutil} is
14 required.
15 @item
16 The function is declared in pty.h on Cygwin, Interix, OSF/1 4 and 5,
17 and glibc.  It is declared in util.h on Mac OS X, OpenBSD and NetBSD.
18 It is declared in libutil.h on FreeBSD.
19 @item
20 Some platforms declare the function without marking the last two
21 parameters @code{const}.
22 FreeBSD, Cygwin 1.7.1.
23 @end itemize
24
25 Portability problems not fixed by Gnulib:
26 @itemize
27 On some systems (at least including Solaris and HP-UX) the function is
28 missing.
29 @end itemize