| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2008 The Native Client Authors. All rights reserved. | 2 * Copyright 2008 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /* | 7 /* |
| 8 * NaCl error codes. | 8 * NaCl error codes. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef SERVICE_RUNTIME_NACL_ERROR_CODE_H__ | 11 #ifndef SERVICE_RUNTIME_NACL_ERROR_CODE_H__ |
| 12 #define SERVICE_RUNTIME_NACL_ERROR_CODE_H__ 1 | 12 #define SERVICE_RUNTIME_NACL_ERROR_CODE_H__ 1 |
| 13 | 13 |
| 14 #ifdef __cplusplus | 14 #ifdef __cplusplus |
| 15 extern "C" { | 15 extern "C" { |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 typedef enum NaClErrorCode { | 18 typedef enum NaClErrorCode { |
| 19 LOAD_OK, | 19 LOAD_OK, |
| 20 LOAD_STATUS_UNKNOWN, /* load status not available yet */ | 20 LOAD_STATUS_UNKNOWN, /* load status not available yet */ |
| 21 LOAD_UNSUPPORTED_OS_PLATFORM, | 21 LOAD_UNSUPPORTED_OS_PLATFORM, |
| 22 LOAD_DEP_UNSUPPORTED, |
| 22 LOAD_INTERNAL, | 23 LOAD_INTERNAL, |
| 23 LOAD_READ_ERROR, | 24 LOAD_READ_ERROR, |
| 24 LOAD_TOO_MANY_PROG_HDRS, | 25 LOAD_TOO_MANY_PROG_HDRS, |
| 25 LOAD_PROG_HDR_SIZE_TOO_SMALL, | 26 LOAD_PROG_HDR_SIZE_TOO_SMALL, |
| 26 LOAD_BAD_ELF_MAGIC, | 27 LOAD_BAD_ELF_MAGIC, |
| 27 LOAD_NOT_32_BIT, | 28 LOAD_NOT_32_BIT, |
| 28 LOAD_NOT_64_BIT, | 29 LOAD_NOT_64_BIT, |
| 29 LOAD_BAD_ABI, | 30 LOAD_BAD_ABI, |
| 30 LOAD_NOT_EXEC, | 31 LOAD_NOT_EXEC, |
| 31 LOAD_BAD_MACHINE, | 32 LOAD_BAD_MACHINE, |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 char const *NaClErrorString(NaClErrorCode errcode); | 80 char const *NaClErrorString(NaClErrorCode errcode); |
| 80 | 81 |
| 81 /* deprecated */ | 82 /* deprecated */ |
| 82 char const *NaClAppLoadErrorString(NaClErrorCode errcode); | 83 char const *NaClAppLoadErrorString(NaClErrorCode errcode); |
| 83 | 84 |
| 84 #ifdef __cplusplus | 85 #ifdef __cplusplus |
| 85 } /* end of extern "C" */ | 86 } /* end of extern "C" */ |
| 86 #endif | 87 #endif |
| 87 | 88 |
| 88 #endif | 89 #endif |
| OLD | NEW |