File:  [Research Unix] / researchv10no / ipc / mgrs / ns / tester.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

#include <sys/types.h>
#include <signal.h>
#include <sysent.h>
#include <libc.h>
#include <fio.h>
#include <ipc.h>
#include <string.h>
#include <errno.h>
#include "dbtypes.h"

/*
 *  global
 */
Ordered *o;
Tuple *dblist;
char *errstr;

main()
{
	int i;
	Tuple *t;
	char buf[512];
	char outbuf[sizeof(Fbuffer)];

	Finit(2, outbuf);
	for(;;){
		o = new Ordered(12);
		for(i=0; i<1650; i++){
			strcpy(buf, "att,org att,org att,org att,org att,org att,org");
			t = new Tuple(buf, o, &dblist);
		}
		fprint(2, "after creating %x\n", sbrk(0));
		delete o;
		freetuplelist(&dblist);
		fprint(2, "after deleting %x\n", sbrk(0));
	}
}

unix.superglobalmegacorp.com

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