On 06/19/2013 02:52 PM, DAN LI wrote:
> + ret = sysinfo(&info);
> + if (ret != 0)
> + tst_brkm(TFAIL, cleanup, "sysinfo failed");
> + freeram_after =
> + (unsigned long long)info.freeram *
> + (unsigned long long)info.mem_unit;
man sysinfo:
This function is Linux-specific, and should not be used in
programs intended to be portable.
We're expecting all LTP tests are POSIX-compatible, sysinfo is
Linux-specific, would it better to read the info from /proc/meminfo
directly?
Thanks,
Caspar
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list