11 #define DIM_DELETE 0x10 12 #define MONIT_ONLY 0x20 14 #define TIMED_ONLY 0x80 15 #define MONIT_FIRST 0x100 16 #define MAX_TYPE_DEF 0x100 17 #define STAMPED 0x1000 51 #elif defined(__linux__) 55 #include <sys/types.h> 75 # if defined(__cplusplus) 76 # define _DIM_PROTO(func,param) func param 78 # define _DIM_PROTO(func,param) func () 81 # define _DIM_PROTO(func,param) func () 85 # define _DIM_PROTOE(func,param) __declspec(dllexport) _DIM_PROTO(func,param) 86 # define DllExp __declspec(dllexport) 88 # define _DIM_PROTOE(func,param) __declspec(dllimport) _DIM_PROTO(func,param) 89 # define DllExp __declspec(dllimport) 92 # define _DIM_PROTOE(func,param) _DIM_PROTO(func,param) 97 #if defined (hpux) || defined (__osf__) || defined(_AIX) || defined(WIN32) 108 #define sleep(t) dtq_sleep(t) 117 #define DISABLE_AST long int ast_enable = sys$setast(0); 118 #define ENABLE_AST if (ast_enable == SS$_WASSET) sys$setast(1); 119 #define dim_enable() sys$setast(1); 128 #define DISABLE_SIG sigset_t set, oset; if (DIM_Threads_OFF) {\ 130 sigaddset(&set,SIGIO);\ 131 sigaddset(&set,SIGALRM);\ 132 sigprocmask(SIG_BLOCK,&set,&oset);} 133 #define ENABLE_SIG if (DIM_Threads_OFF) {\ 134 sigprocmask(SIG_SETMASK,&oset,0);} 144 #define DISABLE_AST DISABLE_SIG DIM_LOCK 145 #define ENABLE_AST DIM_UNLOCK ENABLE_SIG 148 #define DIM_LOCK taskLock(); 149 #define DIM_UNLOCK taskUnlock(); 167 #define DIM_LOCK dim_lock(); 168 #define DIM_UNLOCK dim_unlock(); 179 #define DEC_LEVEL (-1) 180 #define DISABLE_AST sigmask(INC_LEVEL); 181 #define ENABLE_AST sigmask(DEC_LEVEL); 186 #define __CXX_CONST const 244 #define getpid _getpid 251 #define sleep(t) dim_sleep(t); 252 #define usleep(t) dim_win_usleep(t); 253 #define pause() dim_pause(); 254 #define wake_up() dim_wake_up(); 255 #define DIM_LOCK dim_lock(); 256 #define DIM_UNLOCK dim_unlock(); 257 #define DISABLE_AST DIM_LOCK 258 #define ENABLE_AST DIM_UNLOCK 269 #if defined (solaris) || (defined (LYNXOS) && !defined (__Lynx__) ) 270 #define my_ctime(t,str,size) ctime_r(t,str,size) 272 #if defined (__linux__) || defined (__Lynx__) 273 #define my_ctime(t,str,size) ctime_r(t,str) 275 #define my_ctime(t,str,size) strcpy(str,(const char *)ctime(t)) 282 #define DIMDNSUNDEF 0x1 283 #define DIMDNSREFUS 0x2 284 #define DIMDNSDUPLC 0x3 285 #define DIMDNSEXIT 0x4 286 #define DIMDNSTMOUT 0x5 288 #define DIMSVCDUPLC 0x10 289 #define DIMSVCFORMT 0x11 290 #define DIMSVCINVAL 0x12 291 #define DIMSVCTOOLG 0x13 293 #define DIMTCPRDERR 0x20 294 #define DIMTCPWRRTY 0x21 295 #define DIMTCPWRTMO 0x22 296 #define DIMTCPLNERR 0x23 297 #define DIMTCPOPERR 0x24 298 #define DIMTCPCNERR 0x25 299 #define DIMTCPCNEST 0x26 301 #define DIMDNSCNERR 0x30 302 #define DIMDNSCNEST 0x31
int dim_get_keepalive_timeout()
int dis_set_dns_port(int port)
dim_long dis_add_dns(char *node_name, int port_number)
int dim_set_dns_node(char *node)
int dim_get_listen_backlog()
dim_get_env_var("EXTRA_DNS_NODE", extra_dns, sizeof(extra_dns))
int dim_get_read_buffer_size()
void * id_get_ptr(int id, SRC_TYPES type)
void dim_usleep(int usecs)
dim_long dim_start_thread(void *(*thread_ast)(void *), dim_long tag)
int dic_set_dns_node(char *node)
void dna_rem_test_write(int conn_id)
void dna_set_test_write(int conn_id, int time)
unsigned int dtq_sleep(int secs)
int dic_set_dns_port(int port)
int dim_get_scheduler_class(int *pclass)
#define _DIM_PROTOE(func, param)
int dim_get_dns_node(char *node)
void dim_set_listen_backlog(int size)
void dtq_start_timer(int time, void(*user_routine)(), dim_long tag)
int dic_get_dns_node(char *node)
int dtq_stop_timer(dim_long tag)
dim_long dic_add_dns(char *node_name, int port_number)
void dim_set_write_timeout(int secs)
int dim_set_scheduler_class(int pclass)
Warning because the service this data corrsponds to might have been last updated longer ago than Local time
int dis_get_dns_node(char *node)
void rout(int *tag, int *buff, int *size)
void dim_set_keepalive_timeout(int secs)
void id_free(int id, SRC_TYPES type)
int dis_set_dns_node(char *node)
int dim_set_dns_port(int port)
int dim_stop_thread(dim_long t_id)
int dim_set_priority(int threadId, int prio)
int id_get(void *ptr, SRC_TYPES type)
int dim_set_write_buffer_size(int size)
void dim_print_date_time()
void dim_print_msg(char *msg, int severity)
int dim_get_write_timeout()
int dim_get_priority(int threadId, int *prio)
int dim_get_write_buffer_size()
int dim_set_read_buffer_size(int size)
void dim_print_date_time_millis()