ref: d81c60b6c13d3eb4860b57e2aec26dfe2cbd8337
parent: 318a223550e8b803e328bafe623b923d33b4cfec
author: seh <seh@localhost>
date: Sat Nov 24 15:34:33 EST 2018
fix tables being incorrect
--- a/fuzz.h
+++ b/fuzz.h
@@ -7,8 +7,8 @@
#include "mutate.h"
// Number of calls in enum calls
-#define NCALLS 66
-#define NTYPES 4
+#define NCALLS 68
+#define NTYPES 5
// Global variables
// In main.c
@@ -27,6 +27,7 @@
// User space syscall definitions as per libc.h with sc_ prefix added
typedef int call;
enum call {
+sc__exits, // unused -- here for offset
sc_abort , // abort(void);
sc_access , // access(char*, int);
sc_alarm , // alarm(ulong);
@@ -40,7 +41,7 @@
sc_errstr , // errstr(char*, uint);
sc_exec , // exec(char*, char*[]);
sc_execl , // execl(char*, ...);
-sc_exits , // _exits(char*);
+sc_exits , // _exits(char*); // unused
sc_fork , // fork(void);
sc_rfork , // rfork(int);
sc_fauth , // fauth(int, char*);
--- a/input.c
+++ b/input.c
@@ -1101,6 +1101,7 @@
"errstr",
"exec",
"execl",
+"exits",
"fork",
"rfork",
"fauth",
@@ -1152,12 +1153,13 @@
"getppid",
"rerrstr",
"sysname",
-"werrstr"
+"werrstr",
};
// Init callnames here, is extern in fuzz.h
char *typenames[NTYPES]= {
"int",
+"int*",
"long",
"Dir*",
"char*"