Example #1
0
 private unsafe int Utimens(path *path, timespec *tv, fuse_file_info *fi)
 {
     try
     {
         Span <timespec> specs = new Span <timespec>(tv, 2);
         return(_fileSystem.UpdateTimestamps(ToSpan(path),
                                             ref MemoryMarshal.GetReference(specs),
                                             ref MemoryMarshal.GetReference(specs.Slice(1)),
                                             ToFileInfo(fi)));
     }
     catch
     {
         return(-EIO);
     }
 }