summaryrefslogtreecommitdiff
path: root/modules/fsync
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2008-10-01 13:54:44 +0100
committerJim Meyering <meyering@redhat.com>2008-10-02 08:44:44 +0200
commit9d7e96c82c2a70aa5a32d07b76cdd94f0f0e4388 (patch)
treed04f7fdfcd16d4750af1f919b80232a466912ddb /modules/fsync
parent2e8e1818ae1146febd313585a8d767c3892dae03 (diff)
downloadgnulib-9d7e96c82c2a70aa5a32d07b76cdd94f0f0e4388.tar.gz
fsync: new module
* lib/fsync.c: New file. * m4/fsync.m4: New file. * modules/fsync: New file. * modules/fsync-tests: New file. * tests/test-fsync.c: New file. * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both GNULIB_FSYNC and HAVE_FSYNC. * lib/unistd.in.h (@GNULIB_FSYNC@): Add a block for fsync. * MODULES.html.sh (posix_functions): Add fsync. * doc/posix-functions/fsync.texi: Update.
Diffstat (limited to 'modules/fsync')
-rw-r--r--modules/fsync24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/fsync b/modules/fsync
new file mode 100644
index 0000000000..fa01e9b122
--- /dev/null
+++ b/modules/fsync
@@ -0,0 +1,24 @@
+Description:
+fsync(2) function: synchronize writes to a file.
+
+Files:
+lib/fsync.c
+m4/fsync.m4
+
+Depends-on:
+unistd
+
+configure.ac:
+gl_FUNC_FSYNC
+gl_UNISTD_MODULE_INDICATOR([fsync])
+
+Makefile.am:
+
+Include:
+<unistd.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+Richard W.M. Jones, Jim Meyering