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

Side by Side Diff: base/sys_info_posix.cc

Issue 2807463004: GN: aix port along with linux_s390x, linux_ppc64 and linux_ppc64le support. (Closed)
Patch Set: removed the changes from //base/BUILD.gn Created 3 years, 8 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 | « base/sys_info.h ('k') | base/third_party/libevent/aix/config.h » ('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) 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <string.h> 10 #include <string.h>
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 struct utsname info; 212 struct utsname info;
213 if (uname(&info) < 0) { 213 if (uname(&info) < 0) {
214 NOTREACHED(); 214 NOTREACHED();
215 return std::string(); 215 return std::string();
216 } 216 }
217 std::string arch(info.machine); 217 std::string arch(info.machine);
218 if (arch == "i386" || arch == "i486" || arch == "i586" || arch == "i686") { 218 if (arch == "i386" || arch == "i486" || arch == "i586" || arch == "i686") {
219 arch = "x86"; 219 arch = "x86";
220 } else if (arch == "amd64") { 220 } else if (arch == "amd64") {
221 arch = "x86_64"; 221 arch = "x86_64";
222 } else if (std::string(info.sysname) == "AIX") {
223 arch = "ppc64";
222 } 224 }
223 return arch; 225 return arch;
224 } 226 }
225 227
226 // static 228 // static
227 size_t SysInfo::VMAllocationGranularity() { 229 size_t SysInfo::VMAllocationGranularity() {
228 return getpagesize(); 230 return getpagesize();
229 } 231 }
230 232
231 } // namespace base 233 } // namespace base
OLDNEW
« no previous file with comments | « base/sys_info.h ('k') | base/third_party/libevent/aix/config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698