pty.c 399 B

1234567891011
  1. #include <syscall.h>
  2. #include <syscall_nums.h>
  3. #include <sys/ioctl.h>
  4. #include <pty.h>
  5. #include <errno.h>
  6. DEFN_SYSCALL5(openpty, SYS_OPENPTY, int *, int *, char *, void *, void *);
  7. int openpty(int * amaster, int * aslave, char * name, const struct termios *termp, const struct winsize * winp) {
  8. __sets_errno(syscall_openpty(amaster,aslave,name,(struct termios *)termp,(struct winsize *)winp));
  9. }