OLD | NEW |
1 // Copyright (c) 2011, 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 | |
10 #include "platform/globals.h" | 9 #include "platform/globals.h" |
11 | 10 |
12 | 11 |
13 class Process { | 12 class Process { |
14 public: | 13 public: |
15 // Start a new process providing access to stdin, stdout, stderr and | 14 // Start a new process providing access to stdin, stdout, stderr and |
16 // process exit streams. | 15 // process exit streams. |
17 static int Start(const char* path, | 16 static int Start(const char* path, |
18 char* arguments[], | 17 char* arguments[], |
19 intptr_t arguments_length, | 18 intptr_t arguments_length, |
(...skipping 10 matching lines...) Expand all Loading... |
30 static bool Kill(intptr_t id); | 29 static bool Kill(intptr_t id); |
31 | 30 |
32 // Indicate that the process with the given pid has exited. | 31 // Indicate that the process with the given pid has exited. |
33 static void Exit(intptr_t id); | 32 static void Exit(intptr_t id); |
34 | 33 |
35 DISALLOW_ALLOCATION(); | 34 DISALLOW_ALLOCATION(); |
36 DISALLOW_IMPLICIT_CONSTRUCTORS(Process); | 35 DISALLOW_IMPLICIT_CONSTRUCTORS(Process); |
37 }; | 36 }; |
38 | 37 |
39 #endif // BIN_PROCESS_H_ | 38 #endif // BIN_PROCESS_H_ |
OLD | NEW |