Annotation of libaitrpc/inc/defs.h, revision 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: aitcli.c,v 1.2.2.17 2010/06/09 09:32:30 misho Exp $
! 7: *
! 8: *************************************************************************/
! 9: #ifndef __DEFS_H
! 10: #define __DEFS_H
! 11:
! 12:
! 13: #define DEF_CLI_TIMEOUT 10
! 14:
! 15:
! 16: #define LOGERR { \
! 17: rpc_Errno = errno; \
! 18: strlcpy(rpc_Error, strerror(errno), STRSIZ); \
! 19: }
! 20:
! 21:
! 22: extern int rpc_Errno;
! 23: extern char rpc_Error[];
! 24:
! 25: inline void rpc_SetErr(int eno, char *estr, ...);
! 26:
! 27:
! 28: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>