--- libaitio/inc/aitio.h 2011/09/22 22:29:01 1.11.2.20 +++ 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.20 2011/09/22 22:29:01 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 @@ -47,8 +47,12 @@ SUCH DAMAGE. #define __AITIO_H +#define COMPAT_43TTY + #include #include +#include +#include #define VACUUM_LEFT 1 @@ -821,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