OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/sys_info.h" | 5 #include "base/sys_info.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <string.h> | 8 #include <string.h> |
9 #include <sys/param.h> | 9 #include <sys/param.h> |
10 #include <sys/utsname.h> | 10 #include <sys/utsname.h> |
11 #include <unistd.h> | 11 #include <unistd.h> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/strings/utf_string_conversions.h" |
16 #include "base/threading/thread_restrictions.h" | 17 #include "base/threading/thread_restrictions.h" |
17 #include "base/utf_string_conversions.h" | |
18 | 18 |
19 #if defined(OS_ANDROID) | 19 #if defined(OS_ANDROID) |
20 #include <sys/vfs.h> | 20 #include <sys/vfs.h> |
21 #define statvfs statfs // Android uses a statvfs-like statfs struct and call. | 21 #define statvfs statfs // Android uses a statvfs-like statfs struct and call. |
22 #else | 22 #else |
23 #include <sys/statvfs.h> | 23 #include <sys/statvfs.h> |
24 #endif | 24 #endif |
25 | 25 |
26 namespace base { | 26 namespace base { |
27 | 27 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 } | 88 } |
89 return arch; | 89 return arch; |
90 } | 90 } |
91 | 91 |
92 // static | 92 // static |
93 size_t SysInfo::VMAllocationGranularity() { | 93 size_t SysInfo::VMAllocationGranularity() { |
94 return getpagesize(); | 94 return getpagesize(); |
95 } | 95 } |
96 | 96 |
97 } // namespace base | 97 } // namespace base |
OLD | NEW |