DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T s

⟦b3916cfe7⟧ TextFile

    Length: 1834 (0x72a)
    Types: TextFile
    Names: »sys_init.c«

Derivation

└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
    └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« 
        └─⟦d3ac74d73⟧ 
            └─⟦this⟧ »isode-5.0/dsap/dua/sys_init.c« 

TextFile

/* sys_init.c - System tailoring initialisation */

#ifndef lint
static char *rcsid = "$Header: /f/osi/dsap/dua/RCS/sys_init.c,v 6.0 89/03/18 23:28:05 mrose Rel $";
#endif

/*
 * $Header: /f/osi/dsap/dua/RCS/sys_init.c,v 6.0 89/03/18 23:28:05 mrose Rel $
 *
 *
 * $Log:	sys_init.c,v $
 * Revision 6.0  89/03/18  23:28:05  mrose
 * Release 5.0
 * 
 */

/*
 *                                NOTICE
 *
 *    Acquisition, use, and distribution of this module and related
 *    materials are subject to the restrictions of a license agreement.
 *    Consult the Preface in the User's Manual for the full terms of
 *    this agreement.
 *
 */


/* LINTLIBRARY */

#include "quipu/util.h"
#include "tailor.h"

extern char *oidtable;
extern char *dsa_address;
extern char *myname;
extern LLog * log_dsap;

dsap_init(acptr,avptr)
int *acptr;
char *** avptr;
{
char * name;
char ** ptr;
int cnt;
extern int parse_line;

	parse_line = 0;		/* stop 'line 1:' being printed in tailor file errors */

	if (acptr == (int *) NULL)
		name= "unknown";
	else
		name = **avptr;

 	isodetailor (name, 1);		/* must be called before any isodefile() */
 	log_dsap -> ll_file = strdup ("./dsap.log");
 	ll_hdinit (log_dsap, name);

	DLOG (log_dsap,LLOG_TRACE,("Initialisation"));

	if (acptr != (int *) NULL) {
		cnt = *acptr;
		ptr = *avptr;
	}
	(void) tai_args (acptr,avptr);

	if (dsap_tai_init() != OK)
		fatal (-1,"Tailor failure");

	if (dsa_address == NULLCP)
		if (myname != NULLCP)
			dsa_address = myname;
		else
			fatal (-1, "dsa_address not set");

	if (acptr != (int *)NULL) 
		(void) tai_args (&cnt,&ptr);  /* second call IS needed */
	else
		(void) tai_args (acptr,avptr);  

	LLOG (log_dsap,LLOG_NOTICE,("Loading oid table (%s)",oidtable));
	load_oid_table (oidtable);
	get_default_acl();

	DLOG (log_dsap,LLOG_TRACE ,("*** Starting ***"));
}