diff options
Diffstat (limited to 'example/hello.c')
-rwxr-xr-x[-rw-r--r--] | example/hello.c | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/example/hello.c b/example/hello.c index bcb6b4c..d26d826 100644..100755 --- a/example/hello.c +++ b/example/hello.c @@ -4,11 +4,38 @@ This program can be distributed under the terms of the GNU GPL. See the file COPYING. - - gcc -Wall hello.c `pkg-config fuse --cflags --libs` -o hello */ -#define FUSE_USE_VERSION 26 +/** @file + * + * hello.c - minimal FUSE example featuring fuse_main usage + * + * \section section_compile compiling this example + * + * gcc -Wall hello.c `pkg-config fuse3 --cflags --libs` -o hello + * + * \section section_usage usage + \verbatim + % mkdir mnt + % ./hello mnt # program will vanish into the background + % ls -la mnt + total 4 + drwxr-xr-x 2 root root 0 Jan 1 1970 ./ + drwxrwx--- 1 root vboxsf 4096 Jun 16 23:12 ../ + -r--r--r-- 1 root root 13 Jan 1 1970 hello + % cat mnt/hello + Hello World! + % fusermount -u mnt + \endverbatim + * + * \section section_source the complete source + * \include hello.c + */ + + +#define FUSE_USE_VERSION 30 + +#include <config.h> #include <fuse.h> #include <stdio.h> |