VirtualBox

Changeset 10879 in vbox for trunk/src/VBox/Main/linux


Ignore:
Timestamp:
Jul 25, 2008 8:10:03 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33701
Message:

Fix for missing getpagesize()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/linux/PerformanceLinux.cpp

    r10878 r10879  
    4141private:
    4242    int getRawProcessStats(RTPROCESS process, uint64_t *cpuUser, uint64_t *cpuKernel, unsigned long *memPagesUsed);
     43    long getPageSize() { return sysconf(_SC_PAGESIZE); };
    4344};
    4445
     
    129130    if (RT_SUCCESS(rc))
    130131    {
    131         Assert(getpagesize() >= 1024);
    132         *used = nPagesUsed * (getpagesize() / 1024);
     132        Assert(getPageSize() >= 1024);
     133        *used = nPagesUsed * (getPageSize() / 1024);
    133134    }
    134135    return rc;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette