diff options
author | 2013-04-15 16:38:21 +0000 | |
---|---|---|
committer | 2013-04-15 16:38:21 +0000 | |
commit | aa96fc3dc04fe319783a4886e24b151213e6b69c (patch) | |
tree | 52745291923f19b5692f01a948118d064f6a6804 /lib/libc/gen/fdatasync.c | |
parent | Tweak check rule to match change to the manpage formatting (diff) | |
download | wireguard-openbsd-aa96fc3dc04fe319783a4886e24b151213e6b69c.tar.xz wireguard-openbsd-aa96fc3dc04fe319783a4886e24b151213e6b69c.zip |
Implement fdatasync() as a wrapper around fsync()
ok guenther, deraadt, jmc
Diffstat (limited to 'lib/libc/gen/fdatasync.c')
-rw-r--r-- | lib/libc/gen/fdatasync.c | 13 |
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)); +} |