File:  [ELWIX - Embedded LightWeight unIX -] / libaitrpc / inc / defs.h
Revision 1.1.1.1.2.2: download - view: text, annotated - select for diffs - revision graph
Fri Jun 18 15:47:33 2010 UTC (14 years ago) by misho
Branches: rpc1_0
Diff to: branchpoint 1.1.1.1: preferred, unified
fix shutdown and write logic for handling shutdown command

    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.2 2010/06/18 15:47:33 misho Exp $
    7: *
    8: *************************************************************************/
    9: #ifndef __DEFS_H
   10: #define __DEFS_H
   11: 
   12: 
   13: #define DEF_RPC_TIMEOUT		3
   14: 
   15: 
   16: #define LOGERR	{ \
   17: 			rpc_Errno = errno; \
   18: 			strlcpy(rpc_Error, strerror(errno), STRSIZ); \
   19: 		}
   20: 
   21: 
   22: extern pthread_mutex_t rpc_mtx;
   23: extern int rpc_Kill;
   24: 
   25: extern int rpc_Errno;
   26: extern char rpc_Error[];
   27: 
   28: inline void rpc_SetErr(int eno, char *estr, ...);
   29: 
   30: 
   31: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>