File:  [CSRG BSD Unix] / 41BSD / cmd / lisp / lamp.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:53 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD41
BSD 4.1

#include "global.h"

#define PBUFSZ 100000
short pbuf[PBUFSZ];

/* data space for fasl to put counters */
int mcounts[NMCOUNT];
int mcountp = (int) mcounts;
int doprof = TRUE;

lispval
Lmonitor()
{
	extern etext, countbase;

	if (np==lbot) { monitor(0); countbase = 0; }
	else if (TYPE(lbot->val)==INT) 
	 { monitor(2, lbot->val->i, pbuf, 200000, 7000); 
	   countbase = ((int)pbuf) +12; 
	}
	else {
	   monitor(2, sbrk(0), pbuf, 200000, 7000); 
	   countbase = ((int)pbuf) + 12; }
	return(tatom);
}

unix.superglobalmegacorp.com

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