File:  [ELWIX - Embedded LightWeight unIX -] / libaitio / inc / defs.h
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 23 22:54:52 2010 UTC (14 years, 4 months ago) by misho
Branches: MAIN
CVS tags: HEAD
Initial revision

    1: /*************************************************************************
    2: * (C) 2010 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.1 2010/02/23 22:54:52 misho Exp $
    7: *
    8: *************************************************************************/
    9: #ifndef __DEFS_H
   10: #define __DEFS_H
   11: 
   12: 
   13: #define STRSIZ		256
   14: 
   15: #define LOGERR	{ \
   16: 			io_Errno = errno; \
   17: 			strlcpy(io_Error, strerror(errno), STRSIZ); \
   18: 		}
   19: 
   20: 
   21: extern int io_Errno;
   22: extern char io_Error[];
   23: 
   24: inline void io_SetErr(int eno, char *estr, ...);
   25: 
   26: 
   27: #endif

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