--- libaitio/inc/aitio.h 2011/09/25 23:03:46 1.11.2.21 +++ libaitio/inc/aitio.h 2011/10/04 14:33:32 1.11.2.22 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.11.2.21 2011/09/25 23:03:46 misho Exp $ +* $Id: aitio.h,v 1.11.2.22 2011/10/04 14:33:32 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -825,6 +825,14 @@ inline int ioRestoreMode(int fd, struct termios tio); */ pid_t ioForkPTY(int *ptyfd, char * __restrict name, int namesiz, struct termios * __restrict term, struct winsize * __restrict winz, struct termios * __restrict otio); + +/* + * ioCreatePIDFile() Create PID file + * @csName = PID filename + * @ifExists = !=0 if filename exists return error + * return: -1 error or 0 ok + */ +inline int ioCreatePIDFile(const char *csName, int ifExists); #endif