OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 4/3] lutimesat: compat syscall and wire up on x86_64
Re: [PATCH 4/3] lutimesat: compat syscall and wire up on x86_64 [message #10738 is a reply to message #10686] Tue, 27 February 2007 03:06 Go to previous message
Stephen Rothwell is currently offline  Stephen Rothwell
Messages: 1
Registered: February 2007
Junior Member
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/
 
Read Message
Read Message
Read Message
Previous Topic: [PATCH 2/3] pcmcia: Handle request_irq() failure while opening device
Next Topic: [PATCH] mm: be sure to trim blocks after direct_io has failed
Goto Forum:
  


Current Time: Sat Sep 20 20:54:16 GMT 2025

Total time taken to generate the page: 0.05454 seconds