Annotation of libaitsess/inc/defs.h, revision 1.1.1.1.2.2

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.2! misho       6: * $Id: defs.h,v 1.1.1.1.2.1 2008/09/30 20:19:48 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
        !            15: 
1.1       misho      16: #define LOGERR { \
                     17:                        sessErrno = errno; \
                     18:                        bzero(sessError, MAX_STR + 1); \
                     19:                        strncpy(sessError, strerror(errno), MAX_STR); \
                     20:                }
                     21: 
                     22: /*
                     23: union semun {
                     24:        int                     val;
                     25:        struct semid_ds         *buf;
                     26:        unsigned short int      *array;
                     27:        struct seminfo          *__buf;
                     28: };
                     29: */
                     30: 
                     31: 
                     32: extern int sessErrno;
                     33: extern char sessError[];
                     34: 
                     35: 
                     36: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>