blob: d64e2127bc506265d8df3583da8ee94f0d187123 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "pty.h"
#include "syscall.h"
int openpty(int *amaster, int *aslave, char *name,
/*const struct termios*/ void *termp,
/*const struct winsize*/ void *winp) {
SYS_OPENPTY_PARAMS args = {
.amaster = amaster,
.aslave = aslave,
.name = name,
.termp = termp,
.winp = winp,
};
return syscall(SYS_OPENPTY, &args, 0, 0, 0, 0);
}
|