summaryrefslogtreecommitdiff
path: root/userland/libc/pty.c
blob: 17b91de08f8ccfaf86633d9ee2e987d0c49019a1 (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);
}