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 #ifndef BIN_PROCESS_H_ | 5 #ifndef BIN_PROCESS_H_ |
6 #define BIN_PROCESS_H_ | 6 #define BIN_PROCESS_H_ |
7 | 7 |
8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
9 #include "bin/io_buffer.h" | 9 #include "bin/io_buffer.h" |
10 #include "bin/lockers.h" | 10 #include "bin/lockers.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 class Process { | 80 class Process { |
81 public: | 81 public: |
82 // Start a new process providing access to stdin, stdout, stderr and | 82 // Start a new process providing access to stdin, stdout, stderr and |
83 // process exit streams. | 83 // process exit streams. |
84 static int Start(const char* path, | 84 static int Start(const char* path, |
85 char* arguments[], | 85 char* arguments[], |
86 intptr_t arguments_length, | 86 intptr_t arguments_length, |
87 const char* working_directory, | 87 const char* working_directory, |
88 char* environment[], | 88 char* environment[], |
89 intptr_t environment_length, | 89 intptr_t environment_length, |
| 90 bool detached, |
90 intptr_t* in, | 91 intptr_t* in, |
91 intptr_t* out, | 92 intptr_t* out, |
92 intptr_t* err, | 93 intptr_t* err, |
93 intptr_t* id, | 94 intptr_t* id, |
94 intptr_t* exit_handler, | 95 intptr_t* exit_handler, |
95 char** os_error_message); | 96 char** os_error_message); |
96 | 97 |
97 static bool Wait(intptr_t id, | 98 static bool Wait(intptr_t id, |
98 intptr_t in, | 99 intptr_t in, |
99 intptr_t out, | 100 intptr_t out, |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 intptr_t data_size_; | 276 intptr_t data_size_; |
276 | 277 |
277 // Number of free bytes in the last node in the list. | 278 // Number of free bytes in the last node in the list. |
278 intptr_t free_size_; | 279 intptr_t free_size_; |
279 }; | 280 }; |
280 | 281 |
281 } // namespace bin | 282 } // namespace bin |
282 } // namespace dart | 283 } // namespace dart |
283 | 284 |
284 #endif // BIN_PROCESS_H_ | 285 #endif // BIN_PROCESS_H_ |
OLD | NEW |