Mercurial > hg > octave-kai > gnulib-hg
view m4/fsync.m4 @ 10565:6dd4cb5e376f
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.
author | Richard W.M. Jones <rjones@redhat.com> |
---|---|
date | Wed, 01 Oct 2008 13:54:44 +0100 |
parents | |
children | b5e42ef33b49 |
line wrap: on
line source
# fsync.m4 serial 1 dnl Copyright (C) 2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_FSYNC], [ AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) AC_CHECK_FUNCS_ONCE([fsync]) if test $ac_cv_func_fsync = no; then HAVE_FSYNC=0 AC_LIBOBJ([fsync]) gl_PREREQ_FSYNC fi ]) # Prerequisites of lib/fsync.c. AC_DEFUN([gl_PREREQ_FSYNC], [:])