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

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.4! misho       6: * $Id: defs.h,v 1.1.1.1.2.3 2010/08/26 07:15:57 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: */
1.1.1.1.2.4! misho      31: #ifndef semun
        !            32: union semun {
        !            33:        int             val;            /* value for SETVAL */
        !            34:        struct semid_ds *buf;           /* buffer for IPC_STAT & IPC_SET */
        !            35:        unsigned short  *array;         /* array for GETALL & SETALL */
        !            36: };
        !            37: #endif
        !            38: 
1.1       misho      39: 
                     40: 
                     41: extern int sessErrno;
                     42: extern char sessError[];
                     43: 
                     44: 
                     45: #endif

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