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

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

Issue 9209001: Move utils.h and utils.cc from runtime/vm to runtime/platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addresed new comments from ager@ Created 8 years, 11 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 | « runtime/vm/object.h ('k') | runtime/vm/os_macos.cc » ('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) 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 "vm/os.h" 5 #include "vm/os.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <limits.h> 8 #include <limits.h>
9 #include <time.h> 9 #include <time.h>
10 #include <sys/resource.h> 10 #include <sys/resource.h>
11 #include <sys/time.h> 11 #include <sys/time.h>
12 #include <sys/types.h> 12 #include <sys/types.h>
13 #include <unistd.h> 13 #include <unistd.h>
14 14
15 #include "platform/utils.h"
15 #include "vm/isolate.h" 16 #include "vm/isolate.h"
16 #include "vm/utils.h"
17 17
18 namespace dart { 18 namespace dart {
19 19
20 bool OS::BreakDownSecondsSinceEpoch(time_t seconds_since_epoch, 20 bool OS::BreakDownSecondsSinceEpoch(time_t seconds_since_epoch,
21 bool in_utc, 21 bool in_utc,
22 BrokenDownDate* result) { 22 BrokenDownDate* result) {
23 struct tm tm_result; 23 struct tm tm_result;
24 struct tm* error_code; 24 struct tm* error_code;
25 if (in_utc) { 25 if (in_utc) {
26 error_code = gmtime_r(&seconds_since_epoch, &tm_result); 26 error_code = gmtime_r(&seconds_since_epoch, &tm_result);
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 void OS::Abort() { 220 void OS::Abort() {
221 abort(); 221 abort();
222 } 222 }
223 223
224 224
225 void OS::Exit(int code) { 225 void OS::Exit(int code) {
226 exit(code); 226 exit(code);
227 } 227 }
228 228
229 } // namespace dart 229 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/os_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698