Annotation of libaitrpc/inc/defs.h, revision 1.1.1.1.2.6
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.6! misho 6: * $Id: defs.h,v 1.1.1.1.2.5 2010/06/24 11:01:46 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.4 misho 15: #define BLOB_MAX 1460
16: #define BLOBSIZ 1024
17: #define STRSIZ 256
1.1.1.1.2.3 misho 18:
1.1.1.1.2.4 misho 19:
1.1.1.1.2.5 misho 20: #define BLOB_FILE "%s/BLOB-%08x"
1.1.1.1.2.3 misho 21:
1.1 misho 22:
23: #define LOGERR { \
24: rpc_Errno = errno; \
25: strlcpy(rpc_Error, strerror(errno), STRSIZ); \
26: }
27:
28:
1.1.1.1.2.6! misho 29: extern int rpc_Kill, blob_Kill;
1.1.1.1.2.1 misho 30:
1.1 misho 31: extern int rpc_Errno;
32: extern char rpc_Error[];
33:
34: inline void rpc_SetErr(int eno, char *estr, ...);
35:
36:
37: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>