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

Side by Side Diff: src/include/minsfi.h

Issue 546883003: MinSFI: Passing arguments to the entry function (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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2014 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef NATIVE_CLIENT_SRC_INCLUDE_MINSFI_H_ 7 #ifndef NATIVE_CLIENT_SRC_INCLUDE_MINSFI_H_
8 #define NATIVE_CLIENT_SRC_INCLUDE_MINSFI_H_ 8 #define NATIVE_CLIENT_SRC_INCLUDE_MINSFI_H_
9 9
10 #include <stdbool.h> 10 #include <stdbool.h>
11 #include <stdint.h> 11 #include <stdint.h>
12 12
13 /* 13 /*
14 * Allocates a memory region for the sandbox and initializes it. Returns TRUE 14 * Allocates a memory region for the sandbox and initializes it. Returns TRUE
15 * if it was successful or if the sandbox has already been initialized. 15 * if it was successful or if the sandbox has already been initialized.
16 */ 16 */
17 bool MinsfiInitializeSandbox(void); 17 bool MinsfiInitializeSandbox(void);
18 18
19 /* 19 /*
20 * Invokes the entry function of the sandbox and returns the exit value 20 * Invokes the entry function of the sandbox and returns the exit value
21 * returned by the sandbox. Returns EXIT_FAILURE if sandbox cannot be invoked, 21 * returned by the sandbox. Returns EXIT_FAILURE if sandbox cannot be invoked,
22 * e.g. because it has not been initialized. 22 * e.g. because it has not been initialized.
23 */ 23 */
24 int MinsfiInvokeSandbox(void); 24 int MinsfiInvokeSandbox(int argc, char **argv);
25 25
26 /* 26 /*
27 * Destroys the MinSFI address subspace if there is one. Returns FALSE if 27 * Destroys the MinSFI address subspace if there is one. Returns FALSE if
28 * a subspace exists but could not be destroyed. 28 * a subspace exists but could not be destroyed.
29 */ 29 */
30 bool MinsfiDestroySandbox(void); 30 bool MinsfiDestroySandbox(void);
31 31
32 #endif // NATIVE_CLIENT_SRC_INCLUDE_MINSFI_H_ 32 #endif // NATIVE_CLIENT_SRC_INCLUDE_MINSFI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698