Annotation of libaitio/inc/defs.h, revision 1.1.1.1

1.1       misho       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: aitpwd.c,v 1.1.1.1 2010/02/16 13:18:32 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>