Refactor sync(1) code and manpage

and mark it as finished in README.
This commit is contained in:
FRIGN 2015-02-08 22:08:14 +01:00
parent e01469c9a2
commit 3e7c549862
3 changed files with 3 additions and 5 deletions

2
README
View File

@ -63,7 +63,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
=* split yes none =* split yes none
= sponge non-posix none = sponge non-posix none
strings no -a, -n, -t strings no -a, -n, -t
= sync non-posix none =* sync non-posix none
= tail no -c, -f = tail no -c, -f
= tar non-posix none = tar non-posix none
=* tee yes none =* tee yes none

4
sync.1
View File

@ -1,4 +1,4 @@
.Dd January 30, 2015 .Dd February 8, 2015
.Dt SYNC 1 .Dt SYNC 1
.Os sbase .Os sbase
.Sh NAME .Sh NAME
@ -10,7 +10,7 @@
.Nm .Nm
invokes invokes
.Xr sync 2 .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. usually done before shutting down, rebooting or halting.
.Sh SEE ALSO .Sh SEE ALSO
.Xr fsync 2 , .Xr fsync 2 ,

2
sync.c
View File

@ -1,6 +1,4 @@
/* See LICENSE file for copyright and license details. */ /* See LICENSE file for copyright and license details. */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include "util.h" #include "util.h"