diff options
Diffstat (limited to 'src/fuse/release.c')
-rw-r--r-- | src/fuse/release.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/fuse/release.c b/src/fuse/release.c new file mode 100644 index 0000000..af458ab --- /dev/null +++ b/src/fuse/release.c | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | * release.c - FUSE release function | ||
3 | * | ||
4 | * Created on: Mar 14, 2012 | ||
5 | * Author: mg | ||
6 | * | ||
7 | * | ||
8 | * Release an open file | ||
9 | * | ||
10 | * Release is called when there are no more references to an open | ||
11 | * file: all file descriptors are closed and all memory mappings | ||
12 | * are unmapped. | ||
13 | * | ||
14 | * For every open() call there will be exactly one release() call | ||
15 | * with the same flags and file descriptor. It is possible to | ||
16 | * have a file opened more than once, in which case only the last | ||
17 | * release will mean, that no more reads/writes will happen on the | ||
18 | * file. The return value of release is ignored. | ||
19 | * | ||
20 | * Changed in version 2.2 | ||
21 | */ | ||
22 | |||
23 | #include <fuse.h> | ||
24 | //#include <gnunet-fuse.h> | ||
25 | |||
26 | int gn_release(const char *path, struct fuse_file_info *fi) | ||
27 | { | ||
28 | return 0; | ||
29 | } | ||