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

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 $
        !             6: * $Id: global.h,v 1.1.1.1.2.2 2008/09/30 20:00:26 misho Exp $
        !             7: *
        !             8: *************************************************************************/
1.1       misho       9: #ifndef __DEFS_H
                     10: #define __DEFS_H
                     11: 
                     12: #define MAX_STR                255
                     13: 
                     14: #define LOGERR { \
                     15:                        sessErrno = errno; \
                     16:                        bzero(sessError, MAX_STR + 1); \
                     17:                        strncpy(sessError, strerror(errno), MAX_STR); \
                     18:                }
                     19: 
                     20: /*
                     21: union semun {
                     22:        int                     val;
                     23:        struct semid_ds         *buf;
                     24:        unsigned short int      *array;
                     25:        struct seminfo          *__buf;
                     26: };
                     27: */
                     28: 
                     29: 
                     30: extern int sessErrno;
                     31: extern char sessError[];
                     32: 
                     33: 
                     34: #endif

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