summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2013-04-15 16:38:22 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2013-04-15 16:38:22 +0000
commit96993d5faa218d06d7239c746145d094c6015363 (patch)
treeaba1640b13ba1e8e84f33592533a374ec8da3c0c /include
parent0f2226790666d9d44c37ce200dff5668cddef63c (diff)
Implement fdatasync() as a wrapper around fsync()
ok guenther, deraadt, jmc
Diffstat (limited to 'include')
-rw-r--r--include/unistd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h
index b9063071703..0a5cb37d330 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: unistd.h,v 1.76 2013/04/11 03:09:16 guenther Exp $ */
+/* $OpenBSD: unistd.h,v 1.77 2013/04/15 16:38:21 matthew Exp $ */
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
/*-
@@ -403,6 +403,9 @@ int ftruncate(int, off_t);
int getlogin_r(char *, size_t)
__attribute__((__bounded__(__string__,1,2)));
#endif
+#if __POSIX_VISIBLE >= 199506
+int fdatasync(int);
+#endif
#if __XPG_VISIBLE || __BSD_VISIBLE
char *crypt(const char *, const char *);