2025-09-09 15:43:54 +10:00
|
|
|
#ifndef DORNE_MKPTY_H
|
|
|
|
|
#define DORNE_MKPTY_H
|
|
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
2025-09-09 19:43:54 +10:00
|
|
|
/* Custom implementation of glibc::openpty() */
|
2025-09-09 15:43:54 +10:00
|
|
|
int mkpty(int *fdmx, int *fds);
|
2025-09-09 19:43:54 +10:00
|
|
|
/* Custom implementation of glibc::login_tty() */
|
|
|
|
|
int bindpty(const int fdty);
|
|
|
|
|
/* Custom implementation of glibc::forkpty() */
|
|
|
|
|
pid_t forkmkpty(void);
|
2025-09-09 15:43:54 +10:00
|
|
|
|
|
|
|
|
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 */
|