mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Alexey Dobriyan <adobriyan@openvz.org>
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org, devel@openvz.org,
	ak@suse.de, linux-arch@vger.kernel.org
Subject: Re: [PATCH 4/3] lutimesat: compat syscall and wire up on x86_64
Date: Tue, 27 Feb 2007 14:06:24 +1100	[thread overview]
Message-ID: <20070227140624.5f9eb52d.sfr@canb.auug.org.au> (raw)
In-Reply-To: <20070226165024.GB11154@localhost.sw.ru>

[-- Attachment #1: Type: text/plain, Size: 707 bytes --]

On Mon, 26 Feb 2007 19:50:24 +0300 Alexey Dobriyan <adobriyan@openvz.org> wrote:
>
> +asmlinkage long compat_sys_lutimesat(int dfd, char __user *filename, struct compat_timespec __user *utimes)
> +{
> +	struct timespec ts[2];
> +
> +	if (utimes) {
> +		if (get_user(ts[0].tv_sec, &utimes[0].tv_sec) ||
> +		    get_user(ts[0].tv_nsec, &utimes[0].tv_nsec) ||
> +		    get_user(ts[1].tv_sec, &utimes[1].tv_sec) ||
> +		    get_user(ts[1].tv_nsec, &utimes[1].tv_nsec))
> +			return -EFAULT;

		if (get_compat_timespec(&ts[0], &utimes[0]) ||
		    get_compat_timespec(&ts[1], &utimes[1]))
			return -EFAULT;

--
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-02-27  3:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-26 16:50 Alexey Dobriyan
2007-02-27  3:06 ` Stephen Rothwell [this message]
2007-02-27 11:56   ` Alexey Dobriyan

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=20070227140624.5f9eb52d.sfr@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=adobriyan@openvz.org \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=devel@openvz.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®