public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Caspar Zhang <caspar@casparzhang.com>
To: DAN LI <li.dan@cn.fujitsu.com>
Cc: LTP list <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] [PATCH] mmap/mmap12.c: new case to test MAP_POPULATE of mmap
Date: Wed, 19 Jun 2013 18:05:45 +0800	[thread overview]
Message-ID: <51C18279.7000607@casparzhang.com> (raw)
In-Reply-To: <51C1553B.7090600@cn.fujitsu.com>

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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2013-06-19 10:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-19  6:52 [LTP] [PATCH] mmap/mmap12.c: new case to test MAP_POPULATE of mmap DAN LI
2013-06-19 10:05 ` Caspar Zhang [this message]
2013-06-19 10:59   ` chrubis
2013-06-19 11:21 ` chrubis
2013-06-19 12:00 ` Jan Stancek
2013-06-20  7:11   ` DAN LI

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51C18279.7000607@casparzhang.com \
    --to=caspar@casparzhang.com \
    --cc=li.dan@cn.fujitsu.com \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox