Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(807)

Unified Diff: src/include/minsfi.h

Issue 539683002: MinSFI: Add loader (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/include/minsfi.h
diff --git a/src/include/minsfi.h b/src/include/minsfi.h
new file mode 100644
index 0000000000000000000000000000000000000000..19d419a2f2d3253e479665240e79340de84f3a42
--- /dev/null
+++ b/src/include/minsfi.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2014 The Native Client 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 MINSFI_H
+#define MINSFI_H
+
+#include <stdbool.h>
+
+/*
+ * Initializes the address subspace if it has not been initialized yet and
+ * invokes the entry function of the sandbox.
+ *
+ * Returns EXIT_FAILURE if the sandbox cannot be initialized. Otherwise returns
+ * the exit value returned by the sandbox.
+ */
+int minsfi_exec(void);
+
+/*
+ * Destroys the MinSFI address subspace if there is one. Returns FALSE if
+ * a subspace exists but could not be destroyed.
+ */
+bool minsfi_destroy(void);
+
+#endif // MINSFI_H

Powered by Google App Engine
This is Rietveld 408576698