--- libaitio/src/pty.c 2012/03/29 01:31:34 1.3 +++ libaitio/src/pty.c 2012/05/14 12:49:21 1.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: pty.c,v 1.3 2012/03/29 01:31:34 misho Exp $ +* $Id: pty.c,v 1.4 2012/05/14 12:49:21 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -47,7 +47,7 @@ SUCH DAMAGE. /* - * ioAllocPTY() Allocate new PTY and TTY + * ioAllocPTY() - Allocate new PTY and TTY * * @ptyfd = master fd, pty * @ttyfd = slave fd, tty @@ -63,7 +63,7 @@ ioAllocPTY(int *ptyfd, int *ttyfd, char * __restrict n { assert(ptyfd && ttyfd); if (!ptyfd || !ttyfd || (name && namesiz < 64)) { - io_SetErr(EINVAL, "Error:: invalid arguments ..."); + io_SetErr(EINVAL, "Invalid arguments"); return -1; } @@ -77,7 +77,7 @@ ioAllocPTY(int *ptyfd, int *ttyfd, char * __restrict n } /* - * ioFreePTY() Release PTY and TTY device + * ioFreePTY() - Release PTY and TTY device * * @ptyfd = master fd, pty (==-1 skip closing pty) * @ttyname = tty filename @@ -99,7 +99,7 @@ ioFreePTY(int ptyfd, const char *ttyname) } /* - * ioChgWinPTY() Change window size of PTY + * ioChgWinPTY() - Change window size of PTY * * @ptyfd = master fd, pty * @row = row @@ -127,7 +127,7 @@ ioChgWinPTY(int ptyfd, u_short row, u_short col, u_sho } /* - * ioSetOwnerTTY() Set owner to TTY + * ioSetOwnerTTY() - Set owner to TTY * * @ttyname = tty filename * @UID = uid @@ -144,7 +144,7 @@ ioSetOwnerTTY(const char *ttyname, uid_t UID, gid_t GI assert(ttyname); if (!ttyname) { - io_SetErr(EINVAL, "Error:: invalid arguments ..."); + io_SetErr(EINVAL, "Invalid arguments"); return -1; } @@ -177,7 +177,7 @@ ioSetOwnerTTY(const char *ttyname, uid_t UID, gid_t GI } /* - * ioSetSidTTY() Makes the process's controlling TTY and sets it to sane modes. + * ioSetSidTTY() - Makes the process's controlling TTY and sets it to sane modes. * * @ttyfd = slave fd, tty * @ttyname = tty filename @@ -201,7 +201,7 @@ ioSetSidTTY(int *ttyfd, const char *ttyname) /* Verify that we are successfully disconnected from the controlling tty. */ fd = open(_PATH_TTY, O_RDWR | O_NOCTTY); if (fd >= 0) { - io_SetErr(ENXIO, "Error:: Failed to disconnect from controlling tty."); + io_SetErr(ENXIO, "Failed to disconnect from controlling tty"); close(fd); return -1; } @@ -239,7 +239,7 @@ ioSetSidTTY(int *ttyfd, const char *ttyname) } /* - * ioSetRAWMode() Enter into RAW mode + * ioSetRAWMode() - Enter into RAW mode * * @fd = tty fd * @otio = saved old termios for later restore if !=NULL @@ -279,7 +279,7 @@ ioSetRAWMode(int fd, struct termios *otio) } /* - * ioRestoreMode() Restore termios to tty fd + * ioRestoreMode() - Restore termios to tty fd * * @fd = tty fd * @tio = termios structure for restore @@ -297,7 +297,7 @@ ioRestoreMode(int fd, struct termios tio) } /* - * ioForkPTY() Fork new process with session leader and new TTY + * ioForkPTY() - Fork new process with session leader and new TTY * * @ptyfd = master fd, pty * @name = tty device name if not null