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

Side by Side Diff: runtime/vm/os_fuchsia.cc

Issue 2523133002: Fuchsia sockets: (Closed)
Patch Set: Enable NODELAY Created 4 years, 1 month 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
« no previous file with comments | « runtime/tests/vm/dart/hello_fuchsia_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_OS_FUCHSIA) 6 #if defined(TARGET_OS_FUCHSIA)
7 7
8 #include "vm/os.h" 8 #include "vm/os.h"
9 9
10 #include <errno.h> 10 #include <errno.h>
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 return false; 150 return false;
151 } 151 }
152 152
153 153
154 int OS::NumberOfAvailableProcessors() { 154 int OS::NumberOfAvailableProcessors() {
155 return sysconf(_SC_NPROCESSORS_CONF); 155 return sysconf(_SC_NPROCESSORS_CONF);
156 } 156 }
157 157
158 158
159 uintptr_t OS::MaxRSS() { 159 uintptr_t OS::MaxRSS() {
160 UNIMPLEMENTED(); 160 // TODO(US-95): Implement.
161 return 0; 161 return 0;
162 } 162 }
163 163
164 164
165 void OS::Sleep(int64_t millis) { 165 void OS::Sleep(int64_t millis) {
166 mx_nanosleep(millis * kMicrosecondsPerMillisecond * 166 mx_nanosleep(millis * kMicrosecondsPerMillisecond *
167 kNanosecondsPerMicrosecond); 167 kNanosecondsPerMicrosecond);
168 } 168 }
169 169
170 170
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 } 306 }
307 307
308 308
309 void OS::Exit(int code) { 309 void OS::Exit(int code) {
310 UNIMPLEMENTED(); 310 UNIMPLEMENTED();
311 } 311 }
312 312
313 } // namespace dart 313 } // namespace dart
314 314
315 #endif // defined(TARGET_OS_FUCHSIA) 315 #endif // defined(TARGET_OS_FUCHSIA)
OLDNEW
« no previous file with comments | « runtime/tests/vm/dart/hello_fuchsia_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698