add custom pty interface

This commit is contained in:
Emile Clark-Boman 2025-09-09 15:43:54 +10:00
parent bd87f194f2
commit c68fc6de5e
3 changed files with 170 additions and 0 deletions

14
cli/mkpty.h Normal file
View file

@ -0,0 +1,14 @@
#ifndef DORNE_MKPTY_H
#define DORNE_MKPTY_H
#include <sys/types.h>
/* Custom implementations of openpty() */
int mkpty(int *fdmx, int *fds);
/* Custom implementations of forkpty() */
pid_t forkmkpty();
int setptsxy(const unsigned short rows, const unsigned short cols, const int fds);
int getptsxy(unsigned short *rows, unsigned short *cols, const int fds);
#endif /* DORNE_MKPTY_H */