Diff for /libaitio/src/pty.c between versions 1.2 and 1.3

version 1.2, 2011/10/31 13:53:51 version 1.3, 2012/03/29 01:31:34
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 48  SUCH DAMAGE. Line 48  SUCH DAMAGE.
   
 /*  /*
  * ioAllocPTY() Allocate new PTY and TTY   * ioAllocPTY() Allocate new PTY and TTY
    *
  * @ptyfd = master fd, pty   * @ptyfd = master fd, pty
  * @ttyfd = slave fd, tty   * @ttyfd = slave fd, tty
  * @name = tty device name if not null   * @name = tty device name if not null
Line 77  ioAllocPTY(int *ptyfd, int *ttyfd, char * __restrict n Line 78  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)   * @ptyfd = master fd, pty (==-1 skip closing pty)
  * @ttyname = tty filename   * @ttyname = tty filename
  * return: none   * return: none
Line 98  ioFreePTY(int ptyfd, const char *ttyname) Line 100  ioFreePTY(int ptyfd, const char *ttyname)
   
 /*  /*
  * ioChgWinPTY() Change window size of PTY   * ioChgWinPTY() Change window size of PTY
    *
  * @ptyfd = master fd, pty   * @ptyfd = master fd, pty
  * @row = row   * @row = row
  * @col = col   * @col = col
Line 125  ioChgWinPTY(int ptyfd, u_short row, u_short col, u_sho Line 128  ioChgWinPTY(int ptyfd, u_short row, u_short col, u_sho
   
 /*  /*
  * ioSetOwnerTTY() Set owner to TTY   * ioSetOwnerTTY() Set owner to TTY
    *
  * @ttyname = tty filename   * @ttyname = tty filename
  * @UID = uid   * @UID = uid
  * @GID = gid   * @GID = gid
Line 174  ioSetOwnerTTY(const char *ttyname, uid_t UID, gid_t GI Line 178  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   * @ttyfd = slave fd, tty
  * @ttyname = tty filename   * @ttyname = tty filename
  * return: -1 error or 0 ok   * return: -1 error or 0 ok
Line 235  ioSetSidTTY(int *ttyfd, const char *ttyname) Line 240  ioSetSidTTY(int *ttyfd, const char *ttyname)
   
 /*  /*
  * ioSetRAWMode() Enter into RAW mode   * ioSetRAWMode() Enter into RAW mode
    *
  * @fd = tty fd   * @fd = tty fd
  * @otio = saved old termios for later restore if !=NULL   * @otio = saved old termios for later restore if !=NULL
  * return: -1 error or 0 ok   * return: -1 error or 0 ok
Line 274  ioSetRAWMode(int fd, struct termios *otio) Line 280  ioSetRAWMode(int fd, struct termios *otio)
   
 /*  /*
  * ioRestoreMode() Restore termios to tty fd   * ioRestoreMode() Restore termios to tty fd
    *
  * @fd = tty fd   * @fd = tty fd
  * @tio = termios structure for restore   * @tio = termios structure for restore
  * return: -1 error or 0 ok   * return: -1 error or 0 ok
Line 291  ioRestoreMode(int fd, struct termios tio) Line 298  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   * @ptyfd = master fd, pty
  * @name = tty device name if not null   * @name = tty device name if not null
  * @namesiz = name length, must be above 63 bytes.   * @namesiz = name length, must be above 63 bytes.

Removed from v.1.2  
changed lines
  Added in v.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>