return result;
}
-void vfswrap_fsync(int fd)
+int vfswrap_fsync(int fd)
{
- fsync(fd);
+#ifdef HAVE_FSYNC
+ return fsync(fd);
+#else
+ return 0;
+#endif
}
int vfswrap_stat(char *fname, SMB_STRUCT_STAT *sbuf)
result = utime(path, times);
return result;
}
+
+int vfswrap_ftruncate(int fd, SMB_OFF_T offset)
+{
+ int result;
+
+ result = sys_ftruncate(fd, offset);
+ return result;
+}
+
+BOOL vfswrap_lock(int fd, int op, SMB_OFF_T offset, SMB_OFF_T count, int type)
+{
+ return fcntl_lock(fd, op, offset, count,type);
+}