File:  [ELWIX - Embedded LightWeight unIX -] / libaitcfg / inc / defs.h
Revision 1.1.1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Tue Sep 30 20:00:26 2008 UTC (15 years, 6 months ago) by misho
Branches: cfg3_0
Diff to: branchpoint 1.1.1.1: preferred, colored
add comments

/*************************************************************************
* (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.1 2008/09/30 20:00:26 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>