Annotation of libaitcfg/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 4.0.2.3 2008/03/06 10:08:48 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: 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>