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: defs.h,v 1.2 2009/09/09 09:07:31 misho Exp $
7: *
8: *************************************************************************/
9: #ifndef __DEFS_H
10: #define __DEFS_H
11:
12: #define MAX_STR 255
13:
14: #define LOGERR { \
15: cfgErrno = errno; \
16: bzero(cfgError, MAX_STR + 1); \
17: strncpy(cfgError, strerror(errno), MAX_STR); \
18: }
19:
20:
21: extern int cfgErrno;
22: extern char cfgError[];
23:
24:
25: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>