Annotation of libaitrpc/inc/defs.h, revision 1.1.1.1.2.3
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 $
1.1.1.1.2.3! misho 6: * $Id: defs.h,v 1.1.1.1.2.2 2010/06/18 15:47:33 misho Exp $
1.1 misho 7: *
8: *************************************************************************/
9: #ifndef __DEFS_H
10: #define __DEFS_H
11:
12:
1.1.1.1.2.2 misho 13: #define DEF_RPC_TIMEOUT 3
1.1 misho 14:
1.1.1.1.2.3! misho 15: #define BLOBSIZ 1460
! 16:
! 17: #define BLOB_FILE "%s/%s:%d-%04x_%08x-%08x_%02x.blob"
! 18:
1.1 misho 19:
20: #define LOGERR { \
21: rpc_Errno = errno; \
22: strlcpy(rpc_Error, strerror(errno), STRSIZ); \
23: }
24:
25:
1.1.1.1.2.1 misho 26: extern int rpc_Kill;
27:
1.1 misho 28: extern int rpc_Errno;
29: extern char rpc_Error[];
30:
31: inline void rpc_SetErr(int eno, char *estr, ...);
32:
33:
34: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>