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.1.1.2.3 2010/06/23 15:07:15 misho Exp $
7: *
8: *************************************************************************/
9: #ifndef __DEFS_H
10: #define __DEFS_H
11:
12:
13: #define DEF_RPC_TIMEOUT 3
14:
15: #define BLOBSIZ 1460
16:
17: #define BLOB_FILE "%s/%s:%d-%04x_%08x-%08x_%02x.blob"
18:
19:
20: #define LOGERR { \
21: rpc_Errno = errno; \
22: strlcpy(rpc_Error, strerror(errno), STRSIZ); \
23: }
24:
25:
26: extern int rpc_Kill;
27:
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>