summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/fdatasync.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/fdatasync.c')
-rw-r--r--lib/libc/gen/fdatasync.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/libc/gen/fdatasync.c b/lib/libc/gen/fdatasync.c
new file mode 100644
index 00000000000..26612123a2c
--- /dev/null
+++ b/lib/libc/gen/fdatasync.c
@@ -0,0 +1,13 @@
+/* $OpenBSD: fdatasync.c,v 1.1 2013/04/15 16:38:21 matthew Exp $ */
+/*
+ * Written by Matthew Dempsky, 2013.
+ * Public domain.
+ */
+
+#include <unistd.h>
+
+int
+fdatasync(int fd)
+{
+ return (fsync(fd));
+}