|
|
1.1 root 1: /* sys_init.c - System tailoring initialisation */
2:
3: #ifndef lint
4: static char *rcsid = "$Header: /f/osi/dsap/common/RCS/sys_init.c,v 7.0 89/11/23 21:47:47 mrose Rel $";
5: #endif
6:
7: /*
8: * $Header: /f/osi/dsap/common/RCS/sys_init.c,v 7.0 89/11/23 21:47:47 mrose Rel $
9: *
10: *
11: * $Log: sys_init.c,v $
12: * Revision 7.0 89/11/23 21:47:47 mrose
13: * Release 6.0
14: *
15: */
16:
17: /*
18: * NOTICE
19: *
20: * Acquisition, use, and distribution of this module and related
21: * materials are subject to the restrictions of a license agreement.
22: * Consult the Preface in the User's Manual for the full terms of
23: * this agreement.
24: *
25: */
26:
27:
28: /* LINTLIBRARY */
29:
30: #include "quipu/util.h"
31: #include "tailor.h"
32:
33: extern char *oidtable;
34: extern char *dsa_address;
35: extern char *myname;
36: extern LLog * log_dsap;
37:
38: dsap_init(acptr,avptr)
39: int *acptr;
40: char *** avptr;
41: {
42: char * name;
43: char ** ptr;
44: int cnt;
45: extern int parse_line;
46:
47: parse_line = 0; /* stop 'line 1:' being printed in tailor file errors */
48:
49: if (acptr == (int *) NULL)
50: name= "unknown";
51: else
52: name = **avptr;
53:
54: isodetailor (name, 1); /* must be called before any isodefile() */
55: log_dsap -> ll_file = strdup ("./dsap.log");
56: ll_hdinit (log_dsap, name);
57:
58: DLOG (log_dsap,LLOG_TRACE,("Initialisation"));
59:
60: if (acptr != (int *) NULL) {
61: cnt = *acptr;
62: ptr = *avptr;
63: }
64: (void) tai_args (acptr,avptr);
65:
66: if (dsap_tai_init() != OK)
67: fatal (-1,"Tailor failure");
68:
69: if (dsa_address == NULLCP)
70: if (myname != NULLCP)
71: dsa_address = myname;
72: else
73: fatal (-1, "dsa_address not set");
74:
75: if (acptr != (int *)NULL)
76: (void) tai_args (&cnt,&ptr); /* second call IS needed */
77: else
78: (void) tai_args (acptr,avptr);
79:
80: LLOG (log_dsap,LLOG_NOTICE,("Loading oid table (%s)",oidtable));
81: load_oid_table (oidtable);
82:
83: DLOG (log_dsap,LLOG_TRACE ,("*** Starting ***"));
84: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.