1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-13 19:34:33 +00:00

Switch to using POSIX pseudoterminals.

Previously, we were using SysV pseudo-terminals on Solaris and BSD
pseudo-terminals on other Unix platforms. BSD pseudo-terminals have
been deprecated on Linux and are no longer available in some kernel
configurations.

The POSIX API is basically the same as the SysV API, apart from using
`posix_openpt` instead of `open` with `/dev/ptmx`.

Closes interlisp/medley#121.
This commit is contained in:
Bruce Mitchener
2021-01-02 12:51:14 +07:00
parent 67d6a799db
commit a271917a61
3 changed files with 7 additions and 71 deletions

View File

@@ -1,7 +1,2 @@
int fork_Unix(void);
#ifdef FULLSLAVENAME
int ForkUnixShell(int slot, char *PtySlave, char *termtype, char *shellarg);
#else
int ForkUnixShell(int slot, char ltr, char numb, char *termtype, char *shellarg);
#endif