--- libaitio/inc/aitio.h 2013/12/12 15:23:44 1.38.10.15 +++ libaitio/inc/aitio.h 2013/12/12 21:17:53 1.38.10.16 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.38.10.15 2013/12/12 15:23:44 misho Exp $ +* $Id: aitio.h,v 1.38.10.16 2013/12/12 21:17:53 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -94,7 +94,7 @@ typedef void *(*sock_cb_t)(sock_cli_t*); struct tagCliSock { void *cli_parent; int cli_fd; - int cli_pty; + intptr_t cli_pty; sockaddr_t cli_addr; char cli_name[64]; char cli_cmdline[PATH_MAX]; @@ -149,10 +149,17 @@ prog_t *io_progInit(const char *progName, * * @prg = program pool * @execNum = execute program(s) (0 max) - * return: 0 error, >0 executed programs and abs(<0) executed programs with logged error + * return: -1 error, >0 executed programs */ int io_progOpen(prog_t * __restrict prg, unsigned int execNum); /* + * io_progOpen2() - Start program from pool on first unused slot + * + * @prg = program pool + * return: -1 error, >-1 reside at slot + */ +int io_progOpen2(prog_t * __restrict prg); +/* * io_progGrow() - Execute to number of programs in pool * * @prg = program pool @@ -197,7 +204,7 @@ void io_progDestroy(prog_t ** __restrict pprg); * io_progCheck() - Check exit status of program pool * * @prg = program pool - * @re = resurrect program + * @re = resurrect program to init number * return: -1 error or >-1 exited programs */ int io_progCheck(prog_t * __restrict prg, int re);