OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. |
| 5 */ |
| 6 |
| 7 #include <unistd.h> |
| 8 |
| 9 extern int main(int argc, char **argv); |
| 10 |
| 11 /* |
| 12 * This is the true entry point for untrusted code. |
| 13 * See comments in native_client/src/include/minsfi_priv.h for the layout of |
| 14 * the 'info' data structure. |
| 15 */ |
| 16 int _start(uint32_t info[]) { |
| 17 int argc = info[0]; |
| 18 char **argv = (char**) (info + 1); |
| 19 |
| 20 return main(argc, argv); |
| 21 } |
OLD | NEW |