aboutsummaryrefslogtreecommitdiffstats
path: root/example/fioc.h
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2016-10-09 19:50:51 -0700
committerNikolaus Rath <Nikolaus@rath.org>2016-10-09 22:03:07 -0700
commitbcad1a6f22662ff0d04a6ae417adb30550252d97 (patch)
tree2c73c2278eca7d7062ffef178669616c3afb1410 /example/fioc.h
parent463189cd121ce9a9f79d24c207e7c6c31898ea06 (diff)
downloadlibfuse-bcad1a6f22662ff0d04a6ae417adb30550252d97.tar.gz
Renamed ioctl and poll examples
The new names should make it more obvious at first glance what each example demonstrates.
Diffstat (limited to 'example/fioc.h')
-rwxr-xr-xexample/fioc.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/example/fioc.h b/example/fioc.h
deleted file mode 100755
index 42799aa..0000000
--- a/example/fioc.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- FUSE-ioctl: ioctl support for FUSE
- Copyright (C) 2008 SUSE Linux Products GmbH
- Copyright (C) 2008 Tejun Heo <teheo@suse.de>
-
- This program can be distributed under the terms of the GNU GPL.
- See the file COPYING.
-*/
-
-/** @file
- * @tableofcontents
- *
- * fioc.h - FUSE-ioctl: ioctl support for FUSE
- *
- * \include fioc.h
- */
-
-
-#include <sys/types.h>
-#include <sys/uio.h>
-#include <sys/ioctl.h>
-
-enum {
- FIOC_GET_SIZE = _IOR('E', 0, size_t),
- FIOC_SET_SIZE = _IOW('E', 1, size_t),
-
- /*
- * The following two ioctls don't follow usual encoding rules
- * and transfer variable amount of data.
- */
- FIOC_READ = _IO('E', 2),
- FIOC_WRITE = _IO('E', 3),
-};
-
-struct fioc_rw_arg {
- off_t offset;
- void *buf;
- size_t size;
- size_t prev_size; /* out param for previous total size */
- size_t new_size; /* out param for new total size */
-};