| OLD | NEW |
| 1 #ifndef _NACL_RECEIVE_ARGS_H | 1 #ifndef _NACL_RECEIVE_ARGS_H |
| 2 #define _NACL_RECEIVE_ARGS_H | 2 #define _NACL_RECEIVE_ARGS_H |
| 3 | 3 |
| 4 #include <stdlib.h> | 4 #include <stdint.h> |
| 5 | 5 |
| 6 #include "nacl_syscalls.h" | 6 uint32_t *argmsg_fetch (uint32_t *arginfo); |
| 7 | |
| 8 struct process_args; | |
| 9 | |
| 10 struct process_args *argmsg_fetch (void); | |
| 11 size_t argmsg_get_size_on_stack (struct process_args *args); | |
| 12 void argmsg_move_to_stack (struct process_args *args, | |
| 13 void *buf, size_t buf_size); | |
| 14 void jump_to_elf_start (void *buf, uintptr_t entry_func, uintptr_t atexit_func); | |
| 15 | |
| 16 /* We have a typedef for the size of argc on the stack because this | |
| 17 varies between NaCl platforms. | |
| 18 See http://code.google.com/p/nativeclient/issues/detail?id=1226 | |
| 19 TODO(mseaborn): Unify the ABIs. */ | |
| 20 #if defined(__x86_64__) | |
| 21 typedef int64_t argc_type; | |
| 22 #else | |
| 23 typedef int32_t argc_type; | |
| 24 #endif | |
| 25 | 7 |
| 26 #endif | 8 #endif |
| OLD | NEW |