OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_NACL_LOADER_NONSFI_NONSFI_ERROR_CODE_H_ | |
6 #define COMPONENTS_NACL_LOADER_NONSFI_NONSFI_ERROR_CODE_H_ | |
7 | |
8 namespace nacl { | |
9 namespace nonsfi { | |
10 | |
11 // The values are temporarily copied from | |
Mark Seaborn
2013/12/12 04:49:48
The reason I wanted to minimise dependencies on se
hidehiko
2013/12/12 09:26:04
Ok, so please let me use nacl_error_code.h for now
| |
12 // native_client/src/trusted/service_runtime/nacl_error_code.h in order to | |
13 // split the dependency to the service_runtime. | |
14 // TODO(hidehiko): Once Bare Metal Mode gets stable enough, we should merge | |
15 // these values to nacl_error_code. | |
16 enum NonSfiErrorCode { | |
17 LOAD_OK = 0, | |
18 LOAD_INTERNAL = 4, | |
19 LOAD_READ_ERROR = 8, | |
20 LOAD_TOO_MANY_PROG_HDRS = 9, | |
21 LOAD_BAD_PHENTSIZE = 10, | |
22 LOAD_BAD_ELF_MAGIC = 11, | |
23 LOAD_NOT_32_BIT = 12, | |
24 LOAD_NOT_64_BIT = 13, | |
25 LOAD_NOT_EXEC = 15, | |
26 LOAD_BAD_MACHINE = 16, | |
27 LOAD_BAD_ELF_VERS = 17, | |
28 LOAD_NO_MEMORY = 20, | |
29 LOAD_UNLOADABLE = 32, | |
30 LOAD_BAD_EHSIZE = 60, | |
31 LOAD_EHDR_OVERFLOW = 61, | |
32 LOAD_PHDR_OVERFLOW = 62, | |
33 }; | |
34 | |
35 } // namespace nonsfi | |
36 } // namespace nacl | |
37 | |
38 #endif // COMPONENTS_NACL_LOADER_NONSFI_NONSFI_ERROR_CODE_H_ | |
OLD | NEW |