Add reporting swap file size to GlobalMemoryStatusEx on Unix (dotnet/coreclr#10700)
authorJan Vorlicek <janvorli@microsoft.com>
Fri, 7 Apr 2017 13:35:34 +0000 (15:35 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Apr 2017 13:35:34 +0000 (15:35 +0200)
commitf6095100fcb703d61ffc418fb66b2ec20c79f0a6
treed3ac66534bfceeb149e47b52c4e853d0e3b95335
parent161a059b1e5cf55994c5de43ac575d7564475f13
Add reporting swap file size to GlobalMemoryStatusEx on Unix (dotnet/coreclr#10700)

The swap file size reporting is added using the Linux, OSX and FreeBSD
means. Also a new PAL test was added to exercise the function.

Commit migrated from https://github.com/dotnet/coreclr/commit/a2ed1fa2420f5aa385007e205e30616dd75fc881
src/coreclr/src/pal/src/config.h.in
src/coreclr/src/pal/src/configure.cmake
src/coreclr/src/pal/src/misc/sysinfo.cpp
src/coreclr/src/pal/tests/palsuite/miscellaneous/CMakeLists.txt
src/coreclr/src/pal/tests/palsuite/miscellaneous/GlobalMemoryStatusEx/CMakeLists.txt [new file with mode: 0644]
src/coreclr/src/pal/tests/palsuite/miscellaneous/GlobalMemoryStatusEx/test1/CMakeLists.txt [new file with mode: 0644]
src/coreclr/src/pal/tests/palsuite/miscellaneous/GlobalMemoryStatusEx/test1/test.cpp [new file with mode: 0644]
src/coreclr/src/pal/tests/palsuite/miscellaneous/GlobalMemoryStatusEx/test1/testinfo.dat [new file with mode: 0644]
src/coreclr/src/pal/tests/palsuite/paltestlist.txt
src/coreclr/src/pal/tests/palsuite/palverify.dat