summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-08-19 22:02:52 (GMT)
committerYury Usishchev <y.usishchev@samsung.com>2014-12-10 10:48:35 (GMT)
commitb19331b5cc7f604deb2e64ef5b22288dc3613166 (patch)
treea6ac921570e77b2ec454c5a9c93572a20325312e
parente72ea7ed095ac2b118654c60ace62598f77a9195 (diff)
downloadqemu-b19331b5cc7f604deb2e64ef5b22288dc3613166.zip
qemu-b19331b5cc7f604deb2e64ef5b22288dc3613166.tar.gz
qemu-b19331b5cc7f604deb2e64ef5b22288dc3613166.tar.bz2
linux-user: implement FS_IOC_GETFLAGS ioctl
Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r--linux-user/ioctls.h1
-rw-r--r--linux-user/syscall_defs.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index c180faf..8650a70 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 d6ccacc..be03d90 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 */