/*************************************************************************
* (C) 2008 AITNET ltd - Sofia/Bulgaria - <misho@aitbg.com>
* by Michael Pounov <misho@openbsd-bg.org>
*
* $Author: misho $
* $Id: defs.h,v 1.1.1.1.2.2 2010/08/26 00:06:38 misho Exp $
*
*************************************************************************/
#ifndef __DEFS_H
#define __DEFS_H
#define MAX_STR 255
#define MEM_MODE 0640
#define LOGERR { \
sessErrno = errno; \
bzero(sessError, MAX_STR + 1); \
strncpy(sessError, strerror(errno), MAX_STR); \
}
/*
union semun {
int val;
struct semid_ds *buf;
unsigned short int *array;
struct seminfo *__buf;
};
*/
extern int sessErrno;
extern char sessError[];
#endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>