--- libaitio/inc/aitio.h 2011/09/22 22:25:12 1.11.2.19 +++ libaitio/inc/aitio.h 2011/09/25 23:03:46 1.11.2.21 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.11.2.19 2011/09/22 22:25:12 misho Exp $ +* $Id: aitio.h,v 1.11.2.21 2011/09/25 23:03:46 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -47,8 +47,12 @@ SUCH DAMAGE. #define __AITIO_H +#define COMPAT_43TTY + #include #include +#include +#include #define VACUUM_LEFT 1 @@ -764,12 +768,12 @@ int io_Blowfish(unsigned char *pInput, int inLen, unsi inline int ioAllocPTY(int *ptyfd, int *ttyfd, char * __restrict name, int namesiz, struct termios * __restrict term, struct winsize * __restrict winz); /* - * ioFreeTTY() Release PTY and TTY device - * @ptyfd = master fd, pty + * ioFreePTY() Release PTY and TTY device + * @ptyfd = master fd, pty (==-1 skip closing pty) * @ttyname = tty filename * return: none */ -inline void ioFreeTTY(int ptyfd, const char *ttyname); +inline void ioFreePTY(int ptyfd, const char *ttyname); /* * ioChgWinPTY() Change window size of PTY * @ptyfd = master fd, pty