ref: 4cd7e0154ebe47590f9b33b1d6c4d7ac3d957afa
dir: /main.c/
#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); }