--- libaitio/inc/aitio.h 2011/09/19 23:09:16 1.11.2.16 +++ libaitio/inc/aitio.h 2011/09/19 23:30:50 1.11.2.17 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.11.2.16 2011/09/19 23:09:16 misho Exp $ +* $Id: aitio.h,v 1.11.2.17 2011/09/19 23:30:50 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -794,6 +794,20 @@ int ioSetOwnerTTY(const char *ttyname, uid_t UID, gid_ * return: -1 error or 0 ok */ int ioSetSidTTY(int *ttyfd, const char *ttyname); +/* + * ioSetRAWMode() Enter into RAW mode + * @fd = tty fd + * @otio = saved old termios for later restore if !=NULL + * return: -1 error or 0 ok + */ +inline int ioSetRAWMode(int fd, struct termios *otio); +/* + * ioRestoreMode() Restore termios to tty fd + * @fd = tty fd + * @tio = termios structure for restore + * return: -1 error or 0 ok + */ +inline int ioRestoreMode(int fd, struct termios tio); #endif