File:  [MW Coherent from dump] / coherent / b / bin / ld386 / fake.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:36 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/*
 * Fake versions of driver_alloc and driver_fail
 * to test the loader.
 */
#include "ld.h"
/*
 * build like normal file.
 */
driver_alloc(aouth)
AOUTHDR *aouth;
{
	aouth->text_start = 0xA8;
	aouth->data_start = ((aouth->text_start + aouth->tsize) & 0x0fff)
				+ DATABASE;
	return(1); /* ok */
}

/*
 * Say we got here.
 */
void
driver_fail()
{
	printf("driver_fail called\n");
}

unix.superglobalmegacorp.com

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