Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: runtime/bin/builtin_natives.cc

Issue 10545134: Give Process.kill an optional argument to specify which signal to send. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes based on ager's review. Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/bin/process.h » ('j') | runtime/bin/process.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "bin/builtin.h" 5 #include "bin/builtin.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include "bin/dartutils.h" 10 #include "bin/dartutils.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 V(File_OpenStdio, 1) \ 47 V(File_OpenStdio, 1) \
48 V(File_GetStdioHandleType, 1) \ 48 V(File_GetStdioHandleType, 1) \
49 V(File_NewServicePort, 0) \ 49 V(File_NewServicePort, 0) \
50 V(Logger_PrintString, 1) \ 50 V(Logger_PrintString, 1) \
51 V(Platform_NumberOfProcessors, 0) \ 51 V(Platform_NumberOfProcessors, 0) \
52 V(Platform_OperatingSystem, 0) \ 52 V(Platform_OperatingSystem, 0) \
53 V(Platform_PathSeparator, 0) \ 53 V(Platform_PathSeparator, 0) \
54 V(Platform_LocalHostname, 0) \ 54 V(Platform_LocalHostname, 0) \
55 V(Platform_Environment, 0) \ 55 V(Platform_Environment, 0) \
56 V(Process_Start, 10) \ 56 V(Process_Start, 10) \
57 V(Process_Kill, 2) \ 57 V(Process_Kill, 3) \
58 V(ServerSocket_CreateBindListen, 4) \ 58 V(ServerSocket_CreateBindListen, 4) \
59 V(ServerSocket_Accept, 2) \ 59 V(ServerSocket_Accept, 2) \
60 V(Socket_CreateConnect, 3) \ 60 V(Socket_CreateConnect, 3) \
61 V(Socket_Available, 1) \ 61 V(Socket_Available, 1) \
62 V(Socket_ReadList, 4) \ 62 V(Socket_ReadList, 4) \
63 V(Socket_WriteList, 4) \ 63 V(Socket_WriteList, 4) \
64 V(Socket_GetPort, 1) \ 64 V(Socket_GetPort, 1) \
65 V(Socket_GetRemotePeer, 1) \ 65 V(Socket_GetRemotePeer, 1) \
66 V(Socket_GetError, 1) \ 66 V(Socket_GetError, 1) \
67 V(Socket_GetStdioHandle, 2) \ 67 V(Socket_GetStdioHandle, 2) \
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 } else { 146 } else {
147 ASSERT(id == Builtin::kIOLibrary); 147 ASSERT(id == Builtin::kIOLibrary);
148 url = Dart_NewString(DartUtils::kIOLibURL); 148 url = Dart_NewString(DartUtils::kIOLibURL);
149 } 149 }
150 Dart_Handle builtin_lib = Dart_LookupLibrary(url); 150 Dart_Handle builtin_lib = Dart_LookupLibrary(url);
151 DART_CHECK_VALID(builtin_lib); 151 DART_CHECK_VALID(builtin_lib);
152 // Setup the native resolver for built in library functions. 152 // Setup the native resolver for built in library functions.
153 Dart_Handle result = Dart_SetNativeResolver(builtin_lib, NativeLookup); 153 Dart_Handle result = Dart_SetNativeResolver(builtin_lib, NativeLookup);
154 DART_CHECK_VALID(result); 154 DART_CHECK_VALID(result);
155 } 155 }
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/process.h » ('j') | runtime/bin/process.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698