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

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

Issue 2259613002: [fuchsia] Fix build. Build packages/ output. Add Directory::Exists(). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « runtime/bin/directory_fuchsia.cc ('k') | tools/list_pkg_directories.py » ('j') | 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 UNIMPLEMENTED(); 148 UNIMPLEMENTED();
149 return false; 149 return false;
150 } 150 }
151 151
152 152
153 int OS::NumberOfAvailableProcessors() { 153 int OS::NumberOfAvailableProcessors() {
154 return sysconf(_SC_NPROCESSORS_CONF); 154 return sysconf(_SC_NPROCESSORS_CONF);
155 } 155 }
156 156
157 157
158 uintptr_t OS::MaxRSS() {
159 UNIMPLEMENTED();
160 return 0;
161 }
162
163
158 void OS::Sleep(int64_t millis) { 164 void OS::Sleep(int64_t millis) {
159 mx_nanosleep( 165 mx_nanosleep(
160 millis * kMicrosecondsPerMillisecond * kNanosecondsPerMicrosecond); 166 millis * kMicrosecondsPerMillisecond * kNanosecondsPerMicrosecond);
161 } 167 }
162 168
163 169
164 void OS::SleepMicros(int64_t micros) { 170 void OS::SleepMicros(int64_t micros) {
165 mx_nanosleep( 171 mx_nanosleep(
166 micros * kNanosecondsPerMicrosecond); 172 micros * kNanosecondsPerMicrosecond);
167 } 173 }
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 } 308 }
303 309
304 310
305 void OS::Exit(int code) { 311 void OS::Exit(int code) {
306 UNIMPLEMENTED(); 312 UNIMPLEMENTED();
307 } 313 }
308 314
309 } // namespace dart 315 } // namespace dart
310 316
311 #endif // defined(TARGET_OS_FUCHSIA) 317 #endif // defined(TARGET_OS_FUCHSIA)
OLDNEW
« no previous file with comments | « runtime/bin/directory_fuchsia.cc ('k') | tools/list_pkg_directories.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698