ref: 7c68bebb0cb78ad5a83607b3fbdfa5f254b16abe
parent: 1d644139584f257efafa1bc4574dc313d2c2d121
author: Steven Sleder <ssleder@iastate.edu>
date: Sat Nov 10 09:02:59 EST 2018
Synced disk like one time
--- a/input.c
+++ b/input.c
@@ -15,6 +15,19 @@
case sc_brk : // brk(void*);
case sc_chdir : // chdir(char*);
case sc_close : // close(int);
+ // increment the round counter
+ (sc->round)++;
+ // with this call, pass the address of the input so that
+ // it's value is directly modified by the input generator
+
+ (sc->List)->
+
+ // open file and write to sync disk
+ File* hjfs = fopen("/srv/hjfs.cmd", "w");
+ fprintf(hjfs, "sync");
+
+ // execute the call
+ break;
case sc_create : // create(char* : int : ulong);
case sc_dup : // dup(int : int);
case sc_errstr : // errstr(char* : uint);
--- a/list.h
+++ b/list.h
@@ -17,7 +17,7 @@
struct List {
Node* root;
- int size;
+ int size;
};
// Create a new list
--- a/mutate.c
+++ b/mutate.c
@@ -1,8 +1,9 @@
#include "fuzz.h"
void
-mut_int()
+mut_int(int* in_val)
{
+
}
void
--- a/mutate.h
+++ b/mutate.h
@@ -1,30 +1,36 @@
#ifndef MUT_H
#define MUT_H
-void mut_int();
+void mut_int(int* in_val);
-void mut_uint();
+void mut_uint(uint* in_val);
-void mut_charstar();
+void mut_char(char* in_val)
-void mut_ucharstar();
+void mut_char_star();
-void mut_charstar_arr();
+void mut_uchar_star();
-void mut_long();
+void mut_char_star_arr();
-void mut_longstar();
+void mut_long(long* in_val);
-void mut_ulong();
+void mut_long_star();
-void mut_vlong();
+void mut_ulong(ulong* in_val);
-void mut_voidstar();
+void mut_vlong(vlong* in_val);
-void mut_IOchunkstar();
+void mut_void_star();
-void mut_dirstar();
+void mut_IOchunk(IOchunk* in_val)
-void mut_dirstar_star();
+void mut_IOchunk_star();
+
+void mut_dir(dir* in_val)
+
+void mut_dir_star();
+
+void mut_dir_star_star();
#endif