#ifndef _SYS_SYSCALL_H
# error "Never use <bits/stat.h> directly; include <stat.h> instead."
#endif

struct kernel_stat_64
{
    unsigned long long int st_dev;
    unsigned long long int st_ino;
    unsigned int st_mode;
    unsigned int st_nlink;
    unsigned int st_uid;
    unsigned int st_gid;
    unsigned long long int st_rdev;
    unsigned long long int st_size;
    unsigned long long int st_blksize;
    unsigned long long int st_blocks;
    long long int st_atime;
    unsigned long long int st_atime_nsec;
    long long int st_mtime;
    unsigned long long int st_mtime_nsec;
    long long int st_ctime;
    unsigned long long int st_ctime_nsec;
};

#define convert_stat(src,dst) \
    ((void)((dst)->st_dev     = (src)->st_dev, \
            (dst)->st_ino     = (src)->st_ino, \
            (dst)->st_mode    = (src)->st_mode, \
            (dst)->st_nlink   = (src)->st_nlink, \
            (dst)->st_uid     = (src)->st_uid, \
            (dst)->st_gid     = (src)->st_gid, \
            (dst)->st_rdev    = (src)->st_rdev, \
            (dst)->st_size    = (src)->st_size, \
            (dst)->st_blksize = (src)->st_blksize, \
            (dst)->__unused1  = 0, \
            (dst)->st_blocks  = (src)->st_blocks, \
            (dst)->st_atime   = (src)->st_atime, \
            (dst)->__unused2  = 0, \
            (dst)->st_mtime   = (src)->st_mtime, \
            (dst)->__unused3  = 0, \
            (dst)->st_ctime   = (src)->st_ctime, \
            (dst)->__unused4  = 0))
