File:  [Plan 9 NeXT] / lucent / sys / src / 9 / boot / cyc.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 18:01:02 2018 UTC (8 years, 1 month ago) by root
Branches: lucent, MAIN
CVS tags: plan9, HEAD
Plan 9 NeXT

#include <u.h>
#include <libc.h>
#include <../boot/boot.h>

Method *ilmp;

/*
 *  so that authentication will work, we assume that il always
 *  is configured in with the cyclone.
 */
void
configcyc(Method *mp)
{
	USED(mp);
	for(ilmp = method; ilmp->name; ilmp++)
		if(strcmp(ilmp->name, "il") == 0)
			break;
	if(ilmp->name)
		(*ilmp->config)(ilmp);
}

int
authcyc(void)
{
	if(ilmp->name)
		return (*ilmp->auth)();
	return -1;
}

int
connectcyc(void)
{
	return open("#C/cyc", ORDWR);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.