gnunet-fuse

GNUnet file-sharing directory mounting via FUSE
Log | Files | Refs | Submodules | README | LICENSE

write.c (543B)


      1 /*
      2  * write.c - FUSE write function
      3  *
      4  *  Created on: Mar 14, 2012
      5  *      Author: mg
      6  *
      7  *	 Write data to an open file
      8  *
      9  * Write should return exactly the number of bytes requested
     10  * except on error.	 An exception to this is when the 'direct_io'
     11  * mount option is specified (see read operation).
     12  *
     13  * Changed in version 2.2
     14  */
     15 
     16 #include <string.h>
     17 #include <errno.h>
     18 #include <unistd.h>
     19 #include <fuse.h>
     20 
     21 
     22 int
     23 gn_write (const char *path, const char *buf, size_t size, off_t offset,
     24 	  struct fuse_file_info *fi)
     25 {
     26   return -ENOENT;
     27 }