Files
autobuild-tools/code/trunk/sys_nicmonitor/const.h
jli a1da11c7f5 the new format
git-svn-id: http://172.17.0.253/svn/soft_pkgs/sys_nicmonitor@146 09c3743a-b0dd-45d3-b506-aa74c7a2a6ef
2010-09-03 06:35:33 +00:00

52 lines
1.1 KiB
C

#ifndef _RTE_CONST_H
#define _RTE_CONST_H
#include <pthread.h>
#define MAX_STRING_LEN 24
#define MAX_EXECMD_LEN 200
#define MAX_FILENAME_LEN 200
#define MAX_CONTEXT 8
#define MAX_HOSTNAME_LEN 24
#define MAX_LOCAL_MESPROC 512
#define MAX_LOCAL_PROCESS MAX_LOCAL_MESPROC
#define MAX_LOCAL_APP 32
#define MAX_LOCAL_NODE 256
#define MAX_SET 256 //max num of event set
#define MAX_EVENT 1300
#define MAX_REG_PROC 20
#define LEN_SHMBLK_BIG 4096
#define MAX_MSGBUF_LEN 32767
#define FREE_PAGE_SIZE 65536
#define MAX_PAGE_NUM 1024
#define MAX_QUE MAX_LOCAL_MESPROC
#define MAX_SEMPHORE_SET MAX_LOCAL_MESPROC*2
#define RTE_HAN 0 // queue number for event handeler0(RTE)
#define EX_EVENT_HAN RTE_HAN // queue number for extrnal event handeler
#define DOMAIN_I 1
#define DOMAIN_II 2
#define DOMAIN_III 3
//Add 20090225
const int PROC_TYPE_RPT =1;
const int PROC_TYPE_UNRPT =0;
//add end
//status for proc and app
const int NON_ACTIVE = 0;
const int ACTIVE = 1;
const int HANGUP = 2;
const int FAILURE = 5;
const int START = 6;
const int STOP = 7;
#endif