OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "bin/io_natives.h" | 5 #include "bin/io_natives.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include "bin/builtin.h" | 10 #include "bin/builtin.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 V(IOService_NewServicePort, 0) \ | 37 V(IOService_NewServicePort, 0) \ |
38 V(Platform_NumberOfProcessors, 0) \ | 38 V(Platform_NumberOfProcessors, 0) \ |
39 V(Platform_OperatingSystem, 0) \ | 39 V(Platform_OperatingSystem, 0) \ |
40 V(Platform_PathSeparator, 0) \ | 40 V(Platform_PathSeparator, 0) \ |
41 V(Platform_LocalHostname, 0) \ | 41 V(Platform_LocalHostname, 0) \ |
42 V(Platform_ExecutableName, 0) \ | 42 V(Platform_ExecutableName, 0) \ |
43 V(Platform_Environment, 0) \ | 43 V(Platform_Environment, 0) \ |
44 V(Platform_ExecutableArguments, 0) \ | 44 V(Platform_ExecutableArguments, 0) \ |
45 V(Platform_PackageRoot, 0) \ | 45 V(Platform_PackageRoot, 0) \ |
46 V(Platform_GetVersion, 0) \ | 46 V(Platform_GetVersion, 0) \ |
47 V(Process_Start, 10) \ | 47 V(Process_Start, 11) \ |
48 V(Process_Wait, 5) \ | 48 V(Process_Wait, 5) \ |
49 V(Process_Kill, 3) \ | 49 V(Process_Kill, 3) \ |
50 V(Process_SetExitCode, 1) \ | 50 V(Process_SetExitCode, 1) \ |
51 V(Process_GetExitCode, 0) \ | 51 V(Process_GetExitCode, 0) \ |
52 V(Process_Exit, 1) \ | 52 V(Process_Exit, 1) \ |
53 V(Process_Sleep, 1) \ | 53 V(Process_Sleep, 1) \ |
54 V(Process_Pid, 1) \ | 54 V(Process_Pid, 1) \ |
55 V(Process_SetSignalHandler, 1) \ | 55 V(Process_SetSignalHandler, 1) \ |
56 V(Process_ClearSignalHandler, 1) \ | 56 V(Process_ClearSignalHandler, 1) \ |
57 V(SecureSocket_Connect, 10) \ | 57 V(SecureSocket_Connect, 10) \ |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 struct NativeEntries* entry = &(IOEntries[i]); | 133 struct NativeEntries* entry = &(IOEntries[i]); |
134 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { | 134 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { |
135 return reinterpret_cast<const uint8_t*>(entry->name_); | 135 return reinterpret_cast<const uint8_t*>(entry->name_); |
136 } | 136 } |
137 } | 137 } |
138 return NULL; | 138 return NULL; |
139 } | 139 } |
140 | 140 |
141 } // namespace bin | 141 } // namespace bin |
142 } // namespace dart | 142 } // namespace dart |
OLD | NEW |