add custom pty interface
This commit is contained in:
parent
bd87f194f2
commit
c68fc6de5e
3 changed files with 170 additions and 0 deletions
14
cli/mkpty.h
Normal file
14
cli/mkpty.h
Normal 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue