summaryrefslogtreecommitdiff
path: root/userland/libc/pty.c
blob: b7ddf009f1fce2e6b7d58fec251ebceba75bdc34 (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,
 };
 syscall(SYS_OPENPTY, &args, 0, 0, 0, 0);
}