summaryrefslogtreecommitdiff
path: root/pico/osdep/fsync.h
diff options
context:
space:
mode:
Diffstat (limited to 'pico/osdep/fsync.h')
-rw-r--r--pico/osdep/fsync.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/pico/osdep/fsync.h b/pico/osdep/fsync.h
new file mode 100644
index 00000000..e7df6f93
--- /dev/null
+++ b/pico/osdep/fsync.h
@@ -0,0 +1,30 @@
+/*
+ * $Id: fsync.h 761 2007-10-23 22:35:18Z hubert@u.washington.edu $
+ *
+ * ========================================================================
+ * Copyright 2006 University of Washington
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * ========================================================================
+ */
+
+
+#ifndef PICO_OSDEP_FSYNC_INCLUDED
+#define PICO_OSDEP_FSYNC_INCLUDED
+
+#ifndef HAVE_FSYNC
+
+#define fsync(F) our_fsync(F)
+
+/* exported prototypes */
+int our_fsync(int);
+
+
+#endif /* !HAVE_FSYNC */
+
+#endif /* PICO_OSDEP_FSYNC_INCLUDED */