diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2003-12-12 14:06:41 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2003-12-12 14:06:41 +0000 |
commit | 5e43f2c00c1ce3a9ee3ed9c2b5a9b32dabbb6e60 (patch) | |
tree | f2b700316c0ec296d18aee045fe098880602664b /example | |
parent | e4cf733e1c0a1a959f2f3c4f1951ad35da58011e (diff) |
added fsync operation
Diffstat (limited to 'example')
-rw-r--r-- | example/fusexmp.c | 4 | ||||
-rw-r--r-- | example/hello.c | 3 | ||||
-rw-r--r-- | example/null.c | 5 |
3 files changed, 8 insertions, 4 deletions
diff --git a/example/fusexmp.c b/example/fusexmp.c index e783423..d97f3ca 100644 --- a/example/fusexmp.c +++ b/example/fusexmp.c @@ -267,7 +267,9 @@ static struct fuse_operations xmp_oper = { read: xmp_read, write: xmp_write, statfs: xmp_statfs, - release: NULL + release: NULL, + fsync: NULL + }; int main(int argc, char *argv[]) diff --git a/example/hello.c b/example/hello.c index cd8fb5d..6b461d0 100644 --- a/example/hello.c +++ b/example/hello.c @@ -86,7 +86,8 @@ static struct fuse_operations hello_oper = { read: hello_read, write: NULL, statfs: NULL, - release: NULL + release: NULL, + fsync: NULL }; int main(int argc, char *argv[]) diff --git a/example/null.c b/example/null.c index b712b5c..ca79dc4 100644 --- a/example/null.c +++ b/example/null.c @@ -12,7 +12,7 @@ #include <time.h> #include <errno.h> -#define UNUSED __attribute__((unused)) +#define UNUSED(x) x __attribute__((unused)) static int null_getattr(const char *path, struct stat *stbuf) { @@ -89,7 +89,8 @@ static struct fuse_operations null_oper = { read: null_read, write: null_write, statfs: null_statfs, - release: NULL + release: NULL, + fsync: NULL }; int main(int argc, char *argv[]) |