Make lock argument of fuse_reply_lock const
[fuse.git] / example / fioc.h
blobec1a39dcc47a7c35841e426a327a623d0e8910b0
1 /*
2 FUSE-ioctl: ioctl support for FUSE
3 Copyright (C) 2008 SUSE Linux Products GmbH
4 Copyright (C) 2008 Tejun Heo <teheo@suse.de>
6 This program can be distributed under the terms of the GNU GPL.
7 See the file COPYING.
8 */
10 #include <sys/types.h>
11 #include <sys/uio.h>
12 #include <sys/ioctl.h>
14 enum {
15 FIOC_GET_SIZE = _IOR('E', 0, size_t),
16 FIOC_SET_SIZE = _IOW('E', 1, size_t),
19 * The following two ioctls don't follow usual encoding rules
20 * and transfer variable amount of data.
22 FIOC_READ = _IO('E', 2),
23 FIOC_WRITE = _IO('E', 3),
26 struct fioc_rw_arg {
27 off_t offset;
28 void *buf;
29 size_t size;
30 size_t prev_size; /* out param for previous total size */
31 size_t new_size; /* out param for new total size */