Create YAML for common file operation failures

Added File.errors.yaml and File.metadata.yaml for
logging failures related to file operations.

Change-Id: I0c934b35f0763ee8fc9722da7696705114d54437
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/xyz/openbmc_project/Common/File.errors.yaml b/xyz/openbmc_project/Common/File.errors.yaml
new file mode 100644
index 0000000..aef5f1d
--- /dev/null
+++ b/xyz/openbmc_project/Common/File.errors.yaml
@@ -0,0 +1,5 @@
+- name: Open
+  description: Failed to open a file
+
+- name: Seek
+  description: Failed to seek a file
diff --git a/xyz/openbmc_project/Common/File.metadata.yaml b/xyz/openbmc_project/Common/File.metadata.yaml
new file mode 100644
index 0000000..0e12eaf
--- /dev/null
+++ b/xyz/openbmc_project/Common/File.metadata.yaml
@@ -0,0 +1,15 @@
+- name: Open
+    - str: "ERRNO=%d"
+      type: int32
+    - str: "PATH=%s"
+      type: string
+
+- name: Seek
+    - str: "OFFSET=%ll"
+      type: int64
+    - str: "WHENCE=%d"
+      type: int32
+    - str: "ERRNO=%d"
+      type: int32
+    - str: "PATH=%s"
+      type: string