--- libaitio/inc/aitio.h 2011/09/19 21:59:57 1.11.2.14 +++ libaitio/inc/aitio.h 2011/09/19 22:41:04 1.11.2.15 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.11.2.14 2011/09/19 21:59:57 misho Exp $ +* $Id: aitio.h,v 1.11.2.15 2011/09/19 22:41:04 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -769,6 +769,24 @@ inline int ioAllocPTY(int *ptyfd, int *ttyfd, char * _ * return: none */ inline void ioFreePTY(const char *ttyname); +/* + * ioChgWinPTY() Change window size of PTY + * @ptyfd = master fd, pty + * @row = row + * @col = col + * @xpxl = x pixels + * @ypxl = y pixels + * return: -1 error or 0 ok + */ +inline int ioChgWinPTY(int ptyfd, u_short row, u_short col, u_short xpxl, u_short ypxl); +/* + * ioSetOwnerPTY() Set owner to PTY + * @ttyname = tty filename + * @UID = uid + * @GID = gid + * return: -1 error or 0 ok + */ +int ioSetOwnerPTY(const char *ttyname, uid_t UID, gid_t GID); #endif