aboutsummaryrefslogtreecommitdiff
path: root/include/fuse_lowlevel.h
diff options
context:
space:
mode:
authorBill Zissimopoulos <billziss@navimatics.com>2019-12-31 01:58:57 -0800
committerNikolaus Rath <Nikolaus@rath.org>2019-12-31 09:58:57 +0000
commitabdd45f83cea86410536d9a45aa317cc0511d9d2 (patch)
treeb8a43cbf6954caca556b9219f8bafa107b4ac66b /include/fuse_lowlevel.h
parentb5060b0642f6f97a934c4fc6a8d4dcd84d454fe7 (diff)
downloadlibfuse-abdd45f83cea86410536d9a45aa317cc0511d9d2.tar.gz
Make ioctl prototype conditional on FUSE_USE_VERSION. (#482)
Define FUSE_USE_VERSION < 35 to get old ioctl prototype with int commands; define FUSE_USE_VERSION >= 35 to get new ioctl prototype with unsigned int commands. Fixes #463.
Diffstat (limited to 'include/fuse_lowlevel.h')
-rw-r--r--include/fuse_lowlevel.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h
index 18c6363..e2b4617 100644
--- a/include/fuse_lowlevel.h
+++ b/include/fuse_lowlevel.h
@@ -14,7 +14,7 @@
* Low level API
*
* IMPORTANT: you should define FUSE_USE_VERSION before including this
- * header. To use the newest API define it to 31 (recommended for any
+ * header. To use the newest API define it to 35 (recommended for any
* new application).
*/
@@ -1018,9 +1018,15 @@ struct fuse_lowlevel_ops {
* Note : the unsigned long request submitted by the application
* is truncated to 32 bits.
*/
+#if FUSE_USE_VERSION < 35
+ void (*ioctl) (fuse_req_t req, fuse_ino_t ino, int cmd,
+ void *arg, struct fuse_file_info *fi, unsigned flags,
+ const void *in_buf, size_t in_bufsz, size_t out_bufsz);
+#else
void (*ioctl) (fuse_req_t req, fuse_ino_t ino, unsigned int cmd,
void *arg, struct fuse_file_info *fi, unsigned flags,
const void *in_buf, size_t in_bufsz, size_t out_bufsz);
+#endif
/**
* Poll for IO readiness