mirror of
https://github.com/openharmony/third_party_libfuse.git
synced 2026-07-19 21:43:34 -04:00
ecfa5263ab
"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
18 lines
396 B
C
18 lines
396 B
C
/*
|
|
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.
|
|
*/
|
|
|
|
#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),
|
|
};
|