Revision ac8a6556

b/linux-user/syscall.c
157 157
#define __NR_sys_fchmodat __NR_fchmodat
158 158
#define __NR_sys_fchownat __NR_fchownat
159 159
#define __NR_sys_fstatat64 __NR_fstatat64
160
#define __NR_sys_futimesat __NR_futimesat
160 161
#define __NR_sys_getcwd1 __NR_getcwd
161 162
#define __NR_sys_getdents __NR_getdents
162 163
#define __NR_sys_getdents64 __NR_getdents64
......
205 206
_syscall4(int,sys_fstatat64,int,dirfd,const char *,pathname,
206 207
          struct stat *,buf,int,flags)
207 208
#endif
209
#if defined(TARGET_NR_futimesat) && defined(__NR_futimesat)
210
_syscall3(int,sys_futimesat,int,dirfd,const char *,pathname,
211
         const struct timeval *,times)
212
#endif
208 213
_syscall2(int,sys_getcwd1,char *,buf,size_t,size)
209 214
#if TARGET_ABI_BITS == 32
210 215
_syscall3(int, sys_getdents, uint, fd, struct dirent *, dirp, uint, count);
......
3662 3667
            unlock_user(p, arg1, 0);
3663 3668
        }
3664 3669
        break;
3670
#if defined(TARGET_NR_futimesat) && defined(__NR_futimesat)
3671
    case TARGET_NR_futimesat:
3672
        {
3673
            struct timeval *tvp, tv[2];
3674
            if (arg3) {
3675
                if (copy_from_user_timeval(&tv[0], arg3)
3676
                    || copy_from_user_timeval(&tv[1],
3677
                                              arg3 + sizeof(struct target_timeval)))
3678
                    goto efault;
3679
                tvp = tv;
3680
            } else {
3681
                tvp = NULL;
3682
            }
3683
            if (!(p = lock_user_string(arg2)))
3684
                goto efault;
3685
            ret = get_errno(sys_futimesat(arg1, path(p), tvp));
3686
            unlock_user(p, arg2, 0);
3687
        }
3688
        break;
3689
#endif
3665 3690
#ifdef TARGET_NR_stty
3666 3691
    case TARGET_NR_stty:
3667 3692
        goto unimplemented;

Also available in: Unified diff