shithub: fuzz

ref: bafb7ededb9b9de3f3e01614a2b22c059713f7ea
dir: /main.c/

View raw version
#include <u.h>
#include <libc.h>
#include "fuzz.h"

void
usage(void)
{
	fprint(2, "usage: %s [-n rounds] calls\n", argv0);
	exits("usage");
}

void
main(int argc, char *argv[])
{
	int nrounds = 1;
	int i;

	ARGBEGIN{
		case 'n':
			// Number of rounds to iterate fuzzing for
			nrounds = atoi(ARGF());
			break;
		default:
			usage();
	}ARGEND

	// Acquire a list of calls specified by spaces (fuzz -n 1 read write seek)
	
	
	for(i = 0; i < nrounds; i++){
		
	}

	exits(nil);
}