diff options
author | Alexander Graf <agraf@suse.de> | 2012-08-20 00:02:52 +0200 |
---|---|---|
committer | Yury Usishchev <y.usishchev@samsung.com> | 2014-12-10 13:48:35 +0300 |
commit | b19331b5cc7f604deb2e64ef5b22288dc3613166 (patch) | |
tree | a6ac921570e77b2ec454c5a9c93572a20325312e | |
parent | e72ea7ed095ac2b118654c60ace62598f77a9195 (diff) | |
download | qemu-b19331b5cc7f604deb2e64ef5b22288dc3613166.tar.gz qemu-b19331b5cc7f604deb2e64ef5b22288dc3613166.tar.bz2 qemu-b19331b5cc7f604deb2e64ef5b22288dc3613166.zip |
linux-user: implement FS_IOC_GETFLAGS ioctl
Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r-- | linux-user/ioctls.h | 1 | ||||
-rw-r--r-- | linux-user/syscall_defs.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index c180fafb1..8650a7023 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -90,6 +90,7 @@ IOCTL_SPECIAL(FS_IOC_FIEMAP, IOC_W | IOC_R, do_ioctl_fs_ioc_fiemap, MK_PTR(MK_STRUCT(STRUCT_fiemap))) #endif + IOCTL(FS_IOC_GETFLAGS, IOC_R, MK_PTR(TYPE_LONG)) IOCTL(SIOCATMARK, 0, TYPE_NULL) IOCTL(SIOCGIFNAME, IOC_RW, MK_PTR(TYPE_INT)) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index d6ccacc22..be03d907c 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -2477,6 +2477,8 @@ struct target_f_owner_ex { #define TARGET_MTIOCGET TARGET_IOR('m', 2, struct mtget) #define TARGET_MTIOCPOS TARGET_IOR('m', 3, struct mtpos) +#define TARGET_FS_IOC_GETFLAGS TARGET_IORU('f', 1) + struct target_sysinfo { abi_long uptime; /* Seconds since boot */ abi_ulong loads[3]; /* 1, 5, and 15 minute load averages */ |