Index: components/nacl/loader/nonsfi/abi_conversion.h |
diff --git a/components/nacl/loader/nonsfi/abi_conversion.h b/components/nacl/loader/nonsfi/abi_conversion.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..13479e27eb489a9cd4c8dfe437b8774a9e345d3c |
--- /dev/null |
+++ b/components/nacl/loader/nonsfi/abi_conversion.h |
@@ -0,0 +1,21 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_NACL_LOADER_NONSFI_ABI_CONVERSION_H_ |
+#define COMPONENTS_NACL_LOADER_NONSFI_ABI_CONVERSION_H_ |
+ |
+struct stat; |
+struct nacl_abi_stat; |
+ |
+namespace nacl { |
+namespace nonsfi { |
+ |
+// Converts the stat struct from host's to NaCl's ABI. |
+void StatToNaClAbiStat( |
+ const struct stat& host_stat, struct nacl_abi_stat* nacl_stat); |
+ |
+} // namespace nonsfi |
+} // namespace nacl |
+ |
+#endif // COMPONENTS_NACL_LOADER_NONSFI_ABI_CONVERSION_H_ |