dorne/cli/mkpty.h

16 lines
484 B
C

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