OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 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 /* | 7 /* |
8 * NaCl service run-time, non-platform specific system call helper routines. | 8 * NaCl service run-time, non-platform specific system call helper routines. |
9 */ | 9 */ |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... | |
38 int32_t NaClSysExit(struct NaClAppThread *natp, | 38 int32_t NaClSysExit(struct NaClAppThread *natp, |
39 int status); | 39 int status); |
40 | 40 |
41 int32_t NaClSysThreadExit(struct NaClAppThread *natp, | 41 int32_t NaClSysThreadExit(struct NaClAppThread *natp, |
42 uint32_t stack_flag_addr); | 42 uint32_t stack_flag_addr); |
43 | 43 |
44 extern int NaClAclBypassChecks; | 44 extern int NaClAclBypassChecks; |
45 | 45 |
46 void NaClInsecurelyBypassAllAclChecks(void); | 46 void NaClInsecurelyBypassAllAclChecks(void); |
47 | 47 |
48 extern char *NaClRootFolder; | |
Mark Seaborn
2015/06/25 23:55:09
Nit: "Directory" or "Dir" would be preferred over
| |
49 extern size_t NaClRootFolderLen; | |
50 | |
51 void NaClMountRootFolder(char *root); | |
52 | |
53 /* bool */ | |
54 int NaClFileAccessEnabled(void); | |
55 | |
48 /* bool */ | 56 /* bool */ |
49 int NaClSysCommonAddrRangeContainsExecutablePages(struct NaClApp *nap, | 57 int NaClSysCommonAddrRangeContainsExecutablePages(struct NaClApp *nap, |
50 uintptr_t usraddr, | 58 uintptr_t usraddr, |
51 size_t length); | 59 size_t length); |
52 | 60 |
53 /* bool */ | 61 /* bool */ |
54 int NaClSysCommonAddrRangeInAllowedDynamicCodeSpace(struct NaClApp *nap, | 62 int NaClSysCommonAddrRangeInAllowedDynamicCodeSpace(struct NaClApp *nap, |
55 uintptr_t usraddr, | 63 uintptr_t usraddr, |
56 size_t length); | 64 size_t length); |
57 | 65 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
142 int32_t name, | 150 int32_t name, |
143 uint32_t result_addr); | 151 uint32_t result_addr); |
144 | 152 |
145 int32_t NaClSysTestInfoLeak(struct NaClAppThread *natp); | 153 int32_t NaClSysTestInfoLeak(struct NaClAppThread *natp); |
146 | 154 |
147 int32_t NaClSysTestCrash(struct NaClAppThread *natp, int crash_type); | 155 int32_t NaClSysTestCrash(struct NaClAppThread *natp, int crash_type); |
148 | 156 |
149 EXTERN_C_END | 157 EXTERN_C_END |
150 | 158 |
151 #endif /* NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SYSCALL_COMMON_H__ */ | 159 #endif /* NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SYSCALL_COMMON_H__ */ |
OLD | NEW |