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 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <cstring> | 8 #include <cstring> |
9 | 9 |
| 10 #include "native_client/src/include/nacl_defines.h" |
10 #if NACL_WINDOWS | 11 #if NACL_WINDOWS |
11 # include <io.h> | 12 # include <io.h> |
12 #endif | 13 #endif |
13 | 14 |
14 #include "native_client/src/public/chrome_main.h" | 15 #include "native_client/src/public/chrome_main.h" |
15 #include "native_client/src/public/nacl_app.h" | 16 #include "native_client/src/public/nacl_app.h" |
16 #include "native_client/src/public/nacl_file_info.h" | 17 #include "native_client/src/public/nacl_file_info.h" |
17 #include "native_client/src/shared/platform/nacl_check.h" | 18 #include "native_client/src/shared/platform/nacl_check.h" |
18 #include "native_client/src/shared/platform/nacl_threads.h" | 19 #include "native_client/src/shared/platform/nacl_threads.h" |
19 #include "native_client/src/shared/srpc/nacl_srpc.h" | 20 #include "native_client/src/shared/srpc/nacl_srpc.h" |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 } | 315 } |
315 | 316 |
316 NaClThread thread; | 317 NaClThread thread; |
317 CHECK(NaClThreadCtor(&thread, DummyRendererThread, &thread_args, | 318 CHECK(NaClThreadCtor(&thread, DummyRendererThread, &thread_args, |
318 NACL_KERN_STACK_SIZE)); | 319 NACL_KERN_STACK_SIZE)); |
319 | 320 |
320 NaClChromeMainStartApp(nap, args); | 321 NaClChromeMainStartApp(nap, args); |
321 NaClLog(LOG_FATAL, "NaClChromeMainStartApp() should never return\n"); | 322 NaClLog(LOG_FATAL, "NaClChromeMainStartApp() should never return\n"); |
322 return 1; | 323 return 1; |
323 } | 324 } |
OLD | NEW |