OLD | NEW |
(Empty) | |
| 1 /* |
| 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 |
| 4 * found in the LICENSE file. |
| 5 */ |
| 6 |
| 7 #ifndef MINSFI_H |
| 8 #define MINSFI_H |
| 9 |
| 10 #include <stdbool.h> |
| 11 |
| 12 /* |
| 13 * Initializes the address subspace if it has not been initialized yet and |
| 14 * invokes the entry function of the sandbox. |
| 15 * |
| 16 * Returns EXIT_FAILURE if the sandbox cannot be initialized. Otherwise returns |
| 17 * the exit value returned by the sandbox. |
| 18 */ |
| 19 int minsfi_exec(void); |
| 20 |
| 21 /* |
| 22 * Destroys the MinSFI address subspace if there is one. Returns FALSE if |
| 23 * a subspace exists but could not be destroyed. |
| 24 */ |
| 25 bool minsfi_destroy(void); |
| 26 |
| 27 #endif // MINSFI_H |
OLD | NEW |