| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #if !defined(DART_IO_DISABLED) | 5 #if !defined(DART_IO_DISABLED) |
| 6 | 6 |
| 7 #include "platform/globals.h" | 7 #include "platform/globals.h" |
| 8 #if defined(TARGET_OS_FUCHSIA) | 8 #if defined(TARGET_OS_FUCHSIA) |
| 9 | 9 |
| 10 #include "bin/process.h" | 10 #include "bin/process.h" |
| (...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 | 729 |
| 730 mx_status_t SetupLaunchpad() { | 730 mx_status_t SetupLaunchpad() { |
| 731 mx_handle_t binary_vmo = launchpad_vmo_from_file(path_); | 731 mx_handle_t binary_vmo = launchpad_vmo_from_file(path_); |
| 732 CHECK_FOR_ERROR(binary_vmo, "launchpad_vmo_from_file"); | 732 CHECK_FOR_ERROR(binary_vmo, "launchpad_vmo_from_file"); |
| 733 binary_vmo_ = binary_vmo; | 733 binary_vmo_ = binary_vmo; |
| 734 | 734 |
| 735 launchpad_t* lp; | 735 launchpad_t* lp; |
| 736 mx_status_t status; | 736 mx_status_t status; |
| 737 | 737 |
| 738 mx_handle_t job = MX_HANDLE_INVALID; | 738 mx_handle_t job = MX_HANDLE_INVALID; |
| 739 status = mx_handle_duplicate(launchpad_get_mxio_job(), MX_RIGHT_SAME_RIGHTS, | 739 status = mx_handle_duplicate(mx_job_default(), MX_RIGHT_SAME_RIGHTS, &job); |
| 740 &job); | |
| 741 CHECK_FOR_ERROR(status, "mx_handle_duplicate"); | 740 CHECK_FOR_ERROR(status, "mx_handle_duplicate"); |
| 742 | 741 |
| 743 status = launchpad_create(job, program_arguments_[0], &lp); | 742 status = launchpad_create(job, program_arguments_[0], &lp); |
| 744 CHECK_FOR_ERROR(status, "launchpad_create"); | 743 CHECK_FOR_ERROR(status, "launchpad_create"); |
| 745 launchpad_ = lp; | 744 launchpad_ = lp; |
| 746 | 745 |
| 747 status = | 746 status = |
| 748 launchpad_arguments(lp, program_arguments_count_, program_arguments_); | 747 launchpad_arguments(lp, program_arguments_count_, program_arguments_); |
| 749 CHECK_FOR_ERROR(status, "launchpad_arguments"); | 748 CHECK_FOR_ERROR(status, "launchpad_arguments"); |
| 750 | 749 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 void Process::ClearSignalHandler(intptr_t signal) { | 843 void Process::ClearSignalHandler(intptr_t signal) { |
| 845 UNIMPLEMENTED(); | 844 UNIMPLEMENTED(); |
| 846 } | 845 } |
| 847 | 846 |
| 848 } // namespace bin | 847 } // namespace bin |
| 849 } // namespace dart | 848 } // namespace dart |
| 850 | 849 |
| 851 #endif // defined(TARGET_OS_FUCHSIA) | 850 #endif // defined(TARGET_OS_FUCHSIA) |
| 852 | 851 |
| 853 #endif // !defined(DART_IO_DISABLED) | 852 #endif // !defined(DART_IO_DISABLED) |
| OLD | NEW |