[Devel] Re: [PATCH 4/3] lutimesat: compat syscall and wire up on x86_64
Stephen Rothwell
sfr at canb.auug.org.au
Mon Feb 26 19:06:24 PST 2007
On Mon, 26 Feb 2007 19:50:24 +0300 Alexey Dobriyan <adobriyan at 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 at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/devel/attachments/20070227/f15c4a3c/attachment.sig>
More information about the Devel
mailing list