shithub: fuzz

Download patch

ref: 426a0846cb5b432178c3ddf5ac8955ed1da3f84a
author: henesy <henesy@localhost>
date: Thu Sep 20 09:28:12 EDT 2018

init framework for further dev

--- /dev/null
+++ b/README.md
@@ -1,0 +1,34 @@
+# Fuzz -- A kernel fuzzer from Plan 9 space
+
+## Dependencies
+
+Fuzz(1) is tested on the [9front](http://9front.org) operating system and as such uses its libraries and runs against its kernels. 
+
+Theoretically fuzz could be ported to unix using [plan9port](https://github.com/9fans/plan9port), but this would require a Plan 9 kernel in user space which doesn't really exist outside of [9vx](https://swtch.com/9vx/) which is untested in this regard.
+
+## Building
+
+	mk
+	
+## Installing
+
+	mk install
+
+## Usage
+
+
+
+## Recommended reading
+
+- http://doc.cat-v.org/plan_9/4th_edition/papers/comp
+- http://doc.cat-v.org/plan_9/programming/c_programming_in_plan_9
+- https://lsub.org/who/nemo/9.pdf
+	- http://9.postnix.us/hist/3e/plan9_3e_kernel.tgz
+- http://doc.cat-v.org/plan_9/misc/adding_a_syscall_to_plan_9/plan9_syscall_howto.pdf
+- http://aiju.de/plan_9/plan9-syscalls
+- http://man.cat-v.org/9front/2/intro
+- http://man.cat-v.org/9front/1/syscall
+	- http://mirror.postnix.us/plan9front/sys/src/cmd/syscall/
+- http://mirror.postnix.us/plan9front/sys/src/libc/9syscall/
+- http://lsub.org/who/nemo/9.intro.pdf
+- http://fxr.watson.org/fxr/source/?v=PLAN9
--- /dev/null
+++ b/fuzz.h
@@ -1,0 +1,6 @@
+#ifndef FUZZ_H
+#define FUZZ_H
+
+
+
+#endif
--- /dev/null
+++ b/main.c
@@ -1,0 +1,28 @@
+#include <u.h>
+#include <libc.h>
+#include "fuzz.h"
+
+void
+usage(void)
+{
+	fprint(2, "usage: %s [-k kernel name]\n", argv0);
+	exits("usage");
+}
+
+void
+main(int argc, char *argv[])
+{
+	char *kname;
+
+	ARGBEGIN{
+		case 'k':
+			kname = ARGF();
+			break;
+		default:
+			usage();
+	}ARGEND
+
+	
+
+	exits(nil);
+}
--- /dev/null
+++ b/mkfile
@@ -1,0 +1,13 @@
+</$objtype/mkfile
+
+TARG = fuzz
+
+BIN = /$objtype/bin
+
+OFILES = main.$O
+
+HFILES = fuzz.h
+
+MAN = fuzz.man
+
+</sys/src/cmd/mkone