aboutsummaryrefslogtreecommitdiffstats
path: root/example/ioctl.c
AgeCommit message (Collapse)AuthorLines
2024-03-20Add FUSE_FILL_DIR_DEFAULTS enum (#903)FredyVia-3/+3
In order to use the fuse_fill_dir_t function in a C++ program, add the enum item: FUSE_FILL_DIR_DEFAULTS Without this change g++ compilation failed with example/hello.c:94:35: error: invalid conversion from ‘int’ to ‘fuse_fill_dir_flags’ [-fpermissive] 94 | filler(buf, ".", NULL, 0, 0); | ^ | | | int
2020-03-13State GPL version in comment (#485)Dr. David Alan Gilbert-1/+1
IN a bunch of comments we say 'under the terms of the GNU GPL', make it clear this is GPLv2 (as LICENSE says). Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
2020-01-30examples: mark ops variables constant (#496)zsugabubus-1/+1
2019-12-31Make ioctl prototype conditional on FUSE_USE_VERSION. (#482)Bill Zissimopoulos-1/+1
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.
2019-03-11Defined the (*ioctl)() commands as unsigned int (#381)Jean-Pierre André-1/+1
Instead of the Posix ioctl(2) command, Linux uses its own variant of ioctl() in which the commands are requested as "unsigned long" and truncated to 32 bits by the fuse kernel module. Transmitting the commands to user space file systems as "unsigned int" is a workaround for processing ioctl() commands which do not fit into a signed int.
2017-09-25Removed unneccessary #include <config.h> from examplesNikolaus Rath-2/+0
Fixes: #208.
2017-07-08Added public fuse_lib_help(), bumped minor versionNikolaus Rath-1/+1
2016-10-28Clean-up doxygen documentationNikolaus Rath-3/+3
Fixes: #81.
2016-10-15Pass fuse_file_info to getattr, chown, chmod, truncate, utimens handlersNikolaus Rath-2/+6
This obsoletes the ftruncate & fgetattr handlers. Fixes #58.
2016-10-09Renamed ioctl and poll examplesNikolaus Rath-0/+228
The new names should make it more obvious at first glance what each example demonstrates.