Initial check-in of TF-Fuzz.
Author: Gary Morrison <gary.morrison@arm.com>
Signed-off-by: Gary Morrison <gary.morrison@arm.com>
Change-Id: I8f739c3403bf2a2808f33c28910c7bda6aca7887
diff --git a/tools/tf_fuzz/visualStudio/README b/tools/tf_fuzz/visualStudio/README
new file mode 100644
index 0000000..58c40f5b
--- /dev/null
+++ b/tools/tf_fuzz/visualStudio/README
@@ -0,0 +1,16 @@
+.../tf_fuzz/visualStudio directory contents:
+
+unistd.c unistd.h
+
+--------------------------------------------------------------------------------
+
+This is just things to support running and debug under Microsoft Visual Studio.
+So far, it contains a "stand-in" for the unistd.h library, and more specifically,
+the isatty() call in that library, which is used by Lex&YACC. Other functions
+may be added later as needed. At some time in the future, an up-coming "inter-
+active mode" for interactively creating test templates may need an actual working
+isatty(), but that's not ready yet.
+
+--------------
+
+*Copyright (c) 2019-2020, Arm Limited. All rights reserved.*
diff --git a/tools/tf_fuzz/visualStudio/unistd.c b/tools/tf_fuzz/visualStudio/unistd.c
new file mode 100644
index 0000000..4b6c527
--- /dev/null
+++ b/tools/tf_fuzz/visualStudio/unistd.c
@@ -0,0 +1,3 @@
+int isatty(int arg) {
+ return 0;
+}
\ No newline at end of file
diff --git a/tools/tf_fuzz/visualStudio/unistd.h b/tools/tf_fuzz/visualStudio/unistd.h
new file mode 100644
index 0000000..e81dbbb
--- /dev/null
+++ b/tools/tf_fuzz/visualStudio/unistd.h
@@ -0,0 +1,2 @@
+#pragma once
+int isatty(int);
\ No newline at end of file