summaryrefslogtreecommitdiff
path: root/m4/jm-macros.m4
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivano@gnu.org>2015-01-25 01:33:45 +0100
committerPádraig Brady <P@draigBrady.com>2015-01-28 10:50:45 +0000
commit8b2bf5295f353016d4f5e6a2317d55b6a8e7fd00 (patch)
tree7725752280ec9dbcb4b6e510329d2d864915d1b5 /m4/jm-macros.m4
parent44074d8f77caa085f75e27b73e06c8301992cf84 (diff)
downloadcoreutils-8b2bf5295f353016d4f5e6a2317d55b6a8e7fd00.tar.xz
sync: support syncing specified arguments
* m4/jm-macros.m4 (coreutils_MACROS): Check for syncfs(). * man/sync.x: Add references to syncfs, fsync and fdatasync. * doc/coreutils.texi (sync invocation): Document the new feature. * src/sync.c: Include "quote.h". (AUTHORS): Include myself. (MODE_FILE, MODE_DATA, MODE_FILE_SYSTEM, MODE_SYNC): New enum values. (long_options): Define. (sync_arg): New function. (usage): Describe that arguments are now accepted. (main): Add arguments parsing and add support for fsync(2), fdatasync(2) and syncfs(2). * tests/misc/sync.sh: New (and only) test for sync. * tests/local.mk: Reference the new test. * AUTHORS: Add myself to sync's authors. * NEWS: Mention the new feature.
Diffstat (limited to 'm4/jm-macros.m4')
-rw-r--r--m4/jm-macros.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4
index 58fdd976e..79f124b01 100644
--- a/m4/jm-macros.m4
+++ b/m4/jm-macros.m4
@@ -89,6 +89,7 @@ AC_DEFUN([coreutils_MACROS],
sethostname
siginterrupt
sync
+ syncfs
sysctl
sysinfo
tcgetpgrp