- Timestamp:
- May 20, 2016 8:48:52 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 107351
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/solaris/PerformanceSolaris.cpp
r48020 r61084 7 7 8 8 /* 9 * Copyright (C) 2008-201 3Oracle Corporation9 * Copyright (C) 2008-2016 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 306 306 if (h != -1) 307 307 { 308 if (read(h, &psinfo, sizeof(psinfo)) == sizeof(psinfo)) 308 /* psinfo_t keeps growing, so only read what we need to maximize 309 * cross-version compatibility. The structures are compatible. */ 310 ssize_t cb = RT_OFFSETOF(psinfo_t, pr_rssize) + RT_SIZEOFMEMB(psinfo_t, pr_rssize); 311 AssertCompile(RT_OFFSETOF(psinfo_t, pr_rssize) > RT_OFFSETOF(psinfo_t, pr_pid)); 312 if (read(h, &psinfo, cb) == cb) 309 313 { 310 314 Assert((pid_t)process == psinfo.pr_pid);
Note:
See TracChangeset
for help on using the changeset viewer.