From: Andrew Morton <akpm@osdl.org>
To: Roland McGrath <roland@redhat.com>
Cc: torvalds@osdl.org, linux-kernel@vger.kernel.org,
drepper@redhat.com, clameter@sgi.com
Subject: Re: [PATCH] CPU time clock support in clock_* syscalls
Date: Mon, 4 Oct 2004 22:20:59 -0700 [thread overview]
Message-ID: <20041004222059.5e9ca9f6.akpm@osdl.org> (raw)
In-Reply-To: <200410050515.i955Fa15004063@magilla.sf.frob.com>
Roland McGrath <roland@redhat.com> wrote:
>
> +int posix_cpu_clock_settime(clockid_t which_clock,
> + const struct timespec __user *tp)
> +{
> + /*
> + * You can never reset a CPU clock, but we check for other errors
> + * in the call before failing with EPERM.
> + */
> + int error = check_clock(which_clock);
> + if (error == 0) {
> + struct timespec new_tp;
> + error = -EPERM;
> + if (copy_from_user(&new_tp, tp, sizeof *tp))
> + error = -EFAULT;
> + }
> + return error;
> +}
This will always return an error.
next prev parent reply other threads:[~2004-10-05 5:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-05 5:15 Roland McGrath
2004-10-05 5:20 ` Andrew Morton [this message]
2004-10-05 5:27 ` Roland McGrath
2004-10-05 6:43 ` Nick Piggin
2004-10-05 18:28 ` Roland McGrath
2004-10-05 23:18 ` Nick Piggin
2004-10-06 0:33 ` Roland McGrath
2004-10-06 0:51 ` Nick Piggin
2004-10-05 15:39 ` Christoph Lameter
2004-10-05 18:38 ` Roland McGrath
2004-10-05 20:53 ` Christoph Lameter
2004-10-05 21:22 ` Roland McGrath
2004-10-05 21:28 ` Christoph Lameter
2004-10-06 0:35 ` Roland McGrath
2004-10-06 1:21 ` Christoph Lameter
2004-10-07 19:45 ` Roland McGrath
2004-10-07 20:24 ` Christoph Lameter
2004-10-05 17:29 ` Christoph Lameter
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=20041004222059.5e9ca9f6.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=clameter@sgi.com \
--cc=drepper@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@redhat.com \
--cc=torvalds@osdl.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
Powered by JetHome