Annotation of libaitsess/inc/defs.h, revision 1.1.1.1.2.3
1.1.1.1.2.1 misho 1: /*************************************************************************
2: * (C) 2008 AITNET ltd - Sofia/Bulgaria - <misho@aitbg.com>
3: * by Michael Pounov <misho@openbsd-bg.org>
4: *
5: * $Author: misho $
1.1.1.1.2.3! misho 6: * $Id: defs.h,v 1.1.1.1.2.2 2010/08/26 00:06:38 misho Exp $
1.1.1.1.2.1 misho 7: *
8: *************************************************************************/
1.1 misho 9: #ifndef __DEFS_H
10: #define __DEFS_H
11:
12: #define MAX_STR 255
13:
1.1.1.1.2.2 misho 14: #define MEM_MODE 0640
1.1.1.1.2.3! misho 15: #define MEM_DELIM ":"
1.1.1.1.2.2 misho 16:
1.1 misho 17: #define LOGERR { \
18: sessErrno = errno; \
19: bzero(sessError, MAX_STR + 1); \
20: strncpy(sessError, strerror(errno), MAX_STR); \
21: }
22:
23: /*
24: union semun {
25: int val;
26: struct semid_ds *buf;
27: unsigned short int *array;
28: struct seminfo *__buf;
29: };
30: */
31:
32:
33: extern int sessErrno;
34: extern char sessError[];
35:
36:
37: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>