From 8b2bf5295f353016d4f5e6a2317d55b6a8e7fd00 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Sun, 25 Jan 2015 01:33:45 +0100 Subject: 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. --- man/sync.x | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'man/sync.x') diff --git a/man/sync.x b/man/sync.x index 7947bb775..79fee2270 100644 --- a/man/sync.x +++ b/man/sync.x @@ -1,6 +1,6 @@ [NAME] -sync \- flush file system buffers +sync \- Synchronize cached writes to persistent storage [DESCRIPTION] .\" Add any additional description here [SEE ALSO] -sync(2) +fdatasync(2), fsync(2), sync(2), syncfs(2) -- cgit v1.2.3-54-g00ecf