qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: malc <av1474@comtv.ru>
To: Vince Weaver <vince@csl.cornell.edu>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] linux-user F_DUPFD_CLOEXEC fix
Date: Wed, 9 Sep 2009 22:16:25 +0400 (MSD)	[thread overview]
Message-ID: <Pine.LNX.4.64.0909092216060.2236@linmac.oyster.ru> (raw)
In-Reply-To: <20090909120328.R4195@stanley.csl.cornell.edu>

On Wed, 9 Sep 2009, Vince Weaver wrote:

> Hello
> 
> on older machines, the F_DUPFD_CLOEXEC define is not available.  So 
> linux-user targets fail to compile.
> 
> This fix simply disables the feature if it's not available.

Seconded.

> 
> Vince
> 
> Signed-off-by: Vince Weaver <vince@csl.cornell.edu>
> 
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index 25b95ea..6fdb9f1 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -3685,8 +3685,10 @@ static int target_to_host_fcntl_cmd(int cmd)
>              return F_SETLEASE;
>          case TARGET_F_GETLEASE:
>              return F_GETLEASE;
> +#ifdef F_DUPFD_CLOEXEC       
>          case TARGET_F_DUPFD_CLOEXEC:
>              return F_DUPFD_CLOEXEC;
> +#endif       
>          case TARGET_F_NOTIFY:
>              return F_NOTIFY;
>  	default:
> 
> 

-- 
mailto:av1474@comtv.ru

      reply	other threads:[~2009-09-09 18:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-09 16:06 [Qemu-devel] [PATCH] linux-user F_DUPFD_CLOEXEC fix Vince Weaver
2009-09-09 18:16 ` malc [this message]

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=Pine.LNX.4.64.0909092216060.2236@linmac.oyster.ru \
    --to=av1474@comtv.ru \
    --cc=qemu-devel@nongnu.org \
    --cc=vince@csl.cornell.edu \
    /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;
as well as URLs for NNTP newsgroup(s).