| OLD | NEW |
| 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/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_OS_MACOS) | 6 #if defined(TARGET_OS_MACOS) |
| 7 | 7 |
| 8 #include "vm/os.h" | 8 #include "vm/os.h" |
| 9 | 9 |
| 10 #include <errno.h> // NOLINT | 10 #include <errno.h> // NOLINT |
| 11 #include <limits.h> // NOLINT | 11 #include <limits.h> // NOLINT |
| 12 #include <mach/mach.h> // NOLINT | 12 #include <mach/mach.h> // NOLINT |
| 13 #include <mach/clock.h> // NOLINT | 13 #include <mach/clock.h> // NOLINT |
| 14 #include <mach/mach_time.h> // NOLINT | 14 #include <mach/mach_time.h> // NOLINT |
| 15 #include <sys/time.h> // NOLINT | 15 #include <sys/time.h> // NOLINT |
| 16 #include <sys/resource.h> // NOLINT | 16 #include <sys/resource.h> // NOLINT |
| 17 #include <unistd.h> // NOLINT | 17 #include <unistd.h> // NOLINT |
| 18 | 18 |
| 19 #include "platform/utils.h" | 19 #include "platform/utils.h" |
| 20 #include "vm/isolate.h" | 20 #include "vm/isolate.h" |
| 21 #include "vm/zone.h" |
| 21 | 22 |
| 22 namespace dart { | 23 namespace dart { |
| 23 | 24 |
| 24 const char* OS::Name() { | 25 const char* OS::Name() { |
| 25 return "macos"; | 26 return "macos"; |
| 26 } | 27 } |
| 27 | 28 |
| 28 | 29 |
| 29 intptr_t OS::ProcessId() { | 30 intptr_t OS::ProcessId() { |
| 30 return static_cast<intptr_t>(getpid()); | 31 return static_cast<intptr_t>(getpid()); |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 } | 298 } |
| 298 | 299 |
| 299 | 300 |
| 300 void OS::Exit(int code) { | 301 void OS::Exit(int code) { |
| 301 exit(code); | 302 exit(code); |
| 302 } | 303 } |
| 303 | 304 |
| 304 } // namespace dart | 305 } // namespace dart |
| 305 | 306 |
| 306 #endif // defined(TARGET_OS_MACOS) | 307 #endif // defined(TARGET_OS_MACOS) |
| OLD | NEW |