| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #include "platform/globals.h" | 5 #include "platform/globals.h" |
| 6 #if defined(HOST_OS_WINDOWS) | 6 #if defined(HOST_OS_WINDOWS) |
| 7 | 7 |
| 8 #include "bin/process.h" | 8 #include "bin/process.h" |
| 9 | 9 |
| 10 #include <process.h> // NOLINT | 10 #include <process.h> // NOLINT |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 intptr_t* err_; | 659 intptr_t* err_; |
| 660 intptr_t* id_; | 660 intptr_t* id_; |
| 661 intptr_t* exit_handler_; | 661 intptr_t* exit_handler_; |
| 662 char** os_error_message_; | 662 char** os_error_message_; |
| 663 | 663 |
| 664 private: | 664 private: |
| 665 DISALLOW_ALLOCATION(); | 665 DISALLOW_ALLOCATION(); |
| 666 DISALLOW_IMPLICIT_CONSTRUCTORS(ProcessStarter); | 666 DISALLOW_IMPLICIT_CONSTRUCTORS(ProcessStarter); |
| 667 }; | 667 }; |
| 668 | 668 |
| 669 int Process::Start(const char* path, | 669 int Process::Start(Namespace* namespc, |
| 670 const char* path, |
| 670 char* arguments[], | 671 char* arguments[], |
| 671 intptr_t arguments_length, | 672 intptr_t arguments_length, |
| 672 const char* working_directory, | 673 const char* working_directory, |
| 673 char* environment[], | 674 char* environment[], |
| 674 intptr_t environment_length, | 675 intptr_t environment_length, |
| 675 ProcessStartMode mode, | 676 ProcessStartMode mode, |
| 676 intptr_t* in, | 677 intptr_t* in, |
| 677 intptr_t* out, | 678 intptr_t* out, |
| 678 intptr_t* err, | 679 intptr_t* err, |
| 679 intptr_t* id, | 680 intptr_t* id, |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1036 } | 1037 } |
| 1037 if (signal_handlers == NULL) { | 1038 if (signal_handlers == NULL) { |
| 1038 USE(SetConsoleCtrlHandler(SignalHandler, false)); | 1039 USE(SetConsoleCtrlHandler(SignalHandler, false)); |
| 1039 } | 1040 } |
| 1040 } | 1041 } |
| 1041 | 1042 |
| 1042 } // namespace bin | 1043 } // namespace bin |
| 1043 } // namespace dart | 1044 } // namespace dart |
| 1044 | 1045 |
| 1045 #endif // defined(HOST_OS_WINDOWS) | 1046 #endif // defined(HOST_OS_WINDOWS) |
| OLD | NEW |