release.c (744B)
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 27 gn_release (const char *path, struct fuse_file_info *fi) 28 { 29 return 0; 30 }