File: init_dist.c

package info (click to toggle)
klic 3.003-1.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 7,068 kB
  • ctags: 6,333
  • sloc: ansic: 101,584; makefile: 3,395; sh: 1,321; perl: 312; exp: 131; tcl: 111; asm: 102; lisp: 4; sed: 1
file content (62 lines) | stat: -rw-r--r-- 1,457 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* ---------------------------------------------------------- 
%   (C)1994,1995 Institute for New Generation Computer Technology 
%       (Read COPYRIGHT for detailed information.) 
%   (C)1996, 1997, 1998, 1999 Japan Information Processing Development Center
%       (Read COPYRIGHT-JIPDEC for detailed information.)
----------------------------------------------------------- */
#include <klic/basic.h>
#include <klic/struct.h>
#include <klic/primitives.h>
#include <klic/unify.h>
#include <klic/timing.h>
#include <klic/index.h>

#include <stdio.h>

#include <klic/interpe.h>
#include <klic/distio.h>
#include <klic/rmon.h>

#include <signal.h>
#include <sys/types.h>
#include <unistd.h>

combuf *alloc_combuf();
void init_comm();
void init_rmonitor();

timerstruct before_exec, after_exec;

void init_rusage()
{
  measure(before_exec);
}


static void initiate_global_data()
{
/* Hack to avoid sending %unify when a ReadHook receives answer_value. */
  receive_answer_flag = 0;
  answer_return_exp_index = -1;
/* Hack to avoid sending %unify when a ReadHook receives answer_value. */

  active_exp_entry = 0;

  /* for suspending message */
  susp_msg_list = (struct susp_msg_rec *)0;

  /* Measurement Initialization */
  BZERO((char *)&netstat, sizeof(netstat));

  /* For runtime monitor */
}

void init_dist()
{
  initiate_exp_table();
  initiate_global_data();
  initiate_imp_table();
  init_comm();
  init_rmonitor();
  initiate_decode_stack();
}