From ecfa5263ab5b19a58d53a7116fb079f3b956b918 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 5 Dec 2008 10:55:36 +0000 Subject: * Implement ioctl support. On high level interface only "restricted" ioctls are supported (which are defined with the _IO(), _IOR(), _IOW() or _IOWR() macros). Unrestricted ioctls will only be allwed to CUSE (Character Device in Userspace) servers. Patch by Tejun Heo --- example/fioc.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 example/fioc.h (limited to 'example/fioc.h') diff --git a/example/fioc.h b/example/fioc.h new file mode 100644 index 0000000..c1d9cdf --- /dev/null +++ b/example/fioc.h @@ -0,0 +1,17 @@ +/* + FUSE-ioctl: ioctl support for FUSE + Copyright (C) 2008 SUSE Linux Products GmbH + Copyright (C) 2008 Tejun Heo + + This program can be distributed under the terms of the GNU GPL. + See the file COPYING. +*/ + +#include +#include +#include + +enum { + FIOC_GET_SIZE = _IOR('E', 0, size_t), + FIOC_SET_SIZE = _IOW('E', 1, size_t), +}; -- cgit v1.2.3