File:  [ELWIX - Embedded LightWeight unIX -] / libaitcfg / inc / defs.h
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Wed Sep 9 09:07:31 2009 UTC (14 years, 7 months ago) by misho
Branches: MAIN
CVS tags: cfg4_0, cfg3_2, cfg3_1, HEAD, CFG3_2, CFG3_1, CFG3_0
prepare ver

/*************************************************************************
* (C) 2008 AITNET ltd - Sofia/Bulgaria - <misho@aitbg.com>
*  by Michael Pounov <misho@openbsd-bg.org>
*
* $Author: misho $
* $Id: defs.h,v 1.2 2009/09/09 09:07:31 misho Exp $
*
*************************************************************************/
#ifndef __DEFS_H
#define __DEFS_H

#define MAX_STR		255

#define LOGERR	{ \
			cfgErrno = errno; \
			bzero(cfgError, MAX_STR + 1); \
			strncpy(cfgError, strerror(errno), MAX_STR); \
		}


extern int cfgErrno;
extern char cfgError[];


#endif

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