--- libaitsess/inc/defs.h 2008/09/30 20:19:48 1.1.1.1.2.1 +++ libaitsess/inc/defs.h 2011/04/30 19:53:56 1.1.1.1.2.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.1.1.1.2.1 2008/09/30 20:19:48 misho Exp $ +* $Id: defs.h,v 1.1.1.1.2.4 2011/04/30 19:53:56 misho Exp $ * *************************************************************************/ #ifndef __DEFS_H @@ -11,6 +11,9 @@ #define MAX_STR 255 +#define MEM_MODE 0640 +#define MEM_DELIM ":" + #define LOGERR { \ sessErrno = errno; \ bzero(sessError, MAX_STR + 1); \ @@ -25,6 +28,14 @@ union semun { struct seminfo *__buf; }; */ +#ifndef semun +union semun { + int val; /* value for SETVAL */ + struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */ + unsigned short *array; /* array for GETALL & SETALL */ +}; +#endif + extern int sessErrno;