mv cursetree/pty subdir

This commit is contained in:
Emile Clark-Boman 2025-09-13 10:47:48 +10:00
parent 878be07a71
commit 69745c81f7
7 changed files with 1 additions and 1 deletions

30
cursetree/pty/_pty.h Normal file
View file

@ -0,0 +1,30 @@
#ifndef DORNE_MKPTY_H
#define DORNE_MKPTY_H
#include <errno.h>
#include <limits.h>
#include <sys/types.h>
#include <unistd.h>
#ifdef PATH_MAX
#define TTYNAME_MAX PATH_MAX
#else
#define TTYNAME_MAX 512
#endif /* PATH_MAX */
#define BIND(fdsrc, fddst) \
while (dup2(fdsrc, fddst) == -1 && errno == EBUSY) \
;
/* Custom implementation of glibc::openpty() */
int mkpty(int *fdmx, int *fds);
/* Custom implementation of glibc::login_tty() */
void bindpty(const int fdty);
/* Custom implementation of glibc::forkpty() */
pid_t forkmkpty(int *fdmx);
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 */