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, 8 months ago) by misho
Branches: MAIN
CVS tags: cfg4_0, cfg3_2, cfg3_1, HEAD, CFG3_2, CFG3_1, CFG3_0
prepare ver

    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>