From 3e7c5498622e0b5e961b097b090adb9f08a43421 Mon Sep 17 00:00:00 2001 From: FRIGN Date: Sun, 8 Feb 2015 22:08:14 +0100 Subject: [PATCH] Refactor sync(1) code and manpage and mark it as finished in README. --- README | 2 +- sync.1 | 4 ++-- sync.c | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README b/README index bc6b356..f6a8e0a 100644 --- a/README +++ b/README @@ -63,7 +63,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support, =* split yes none = sponge non-posix none strings no -a, -n, -t -= sync non-posix none +=* sync non-posix none = tail no -c, -f = tar non-posix none =* tee yes none diff --git a/sync.1 b/sync.1 index 99263b2..fae94fa 100644 --- a/sync.1 +++ b/sync.1 @@ -1,4 +1,4 @@ -.Dd January 30, 2015 +.Dd February 8, 2015 .Dt SYNC 1 .Os sbase .Sh NAME @@ -10,7 +10,7 @@ .Nm invokes .Xr sync 2 -to flush all unwritten changes to the disk. This is +to flush all unwritten changes to disk. This is usually done before shutting down, rebooting or halting. .Sh SEE ALSO .Xr fsync 2 , diff --git a/sync.c b/sync.c index b01a76e..b3a3cb1 100644 --- a/sync.c +++ b/sync.c @@ -1,6 +1,4 @@ /* See LICENSE file for copyright and license details. */ -#include -#include #include #include "util.h"