| 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 #ifndef NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H_ | 6 #ifndef NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H_ |
| 7 #define NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H_ | 7 #define NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H_ |
| 8 | 8 |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 * Some of the IRT interfaces below are disabled under PNaCl because | 63 * Some of the IRT interfaces below are disabled under PNaCl because |
| 64 * they are deprecated or not portable. The list of IRT interfaces | 64 * they are deprecated or not portable. The list of IRT interfaces |
| 65 * that are allowed under PNaCl can be found in the Chromium repo in | 65 * that are allowed under PNaCl can be found in the Chromium repo in |
| 66 * ppapi/native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.c. | 66 * ppapi/native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.c. |
| 67 * | 67 * |
| 68 * Interfaces with "-dev" in the query string are not | 68 * Interfaces with "-dev" in the query string are not |
| 69 * permanently-supported stable interfaces. They might be removed in | 69 * permanently-supported stable interfaces. They might be removed in |
| 70 * future versions of Chromium. | 70 * future versions of Chromium. |
| 71 */ | 71 */ |
| 72 | 72 |
| 73 #define NACL_IRT_INSTANCE_v0_1 "nacl-irt-instance-0.1" |
| 74 struct nacl_irt_instance { |
| 75 int (*init)(void); |
| 76 void (*destroy)(void); |
| 77 }; |
| 78 |
| 73 #define NACL_IRT_BASIC_v0_1 "nacl-irt-basic-0.1" | 79 #define NACL_IRT_BASIC_v0_1 "nacl-irt-basic-0.1" |
| 74 struct nacl_irt_basic { | 80 struct nacl_irt_basic { |
| 75 void (*exit)(int status); | 81 void (*exit)(int status); |
| 76 int (*gettod)(struct timeval *tv); | 82 int (*gettod)(struct timeval *tv); |
| 77 int (*clock)(clock_t *ticks); | 83 int (*clock)(clock_t *ticks); |
| 78 int (*nanosleep)(const struct timespec *req, struct timespec *rem); | 84 int (*nanosleep)(const struct timespec *req, struct timespec *rem); |
| 79 int (*sched_yield)(void); | 85 int (*sched_yield)(void); |
| 80 int (*sysconf)(int name, int *value); | 86 int (*sysconf)(int name, int *value); |
| 81 }; | 87 }; |
| 82 | 88 |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 NaClExceptionHandler *old_handler); | 384 NaClExceptionHandler *old_handler); |
| 379 int (*exception_stack)(void *stack, size_t size); | 385 int (*exception_stack)(void *stack, size_t size); |
| 380 int (*exception_clear_flag)(void); | 386 int (*exception_clear_flag)(void); |
| 381 }; | 387 }; |
| 382 | 388 |
| 383 #if defined(__cplusplus) | 389 #if defined(__cplusplus) |
| 384 } | 390 } |
| 385 #endif | 391 #endif |
| 386 | 392 |
| 387 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H */ | 393 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H */ |
| OLD | NEW |