diff options
Diffstat (limited to 'bin/sync')
-rw-r--r-- | bin/sync/Makefile | 2 | ||||
-rw-r--r-- | bin/sync/Makefile.depend | 2 | ||||
-rw-r--r-- | bin/sync/sync.8 | 33 | ||||
-rw-r--r-- | bin/sync/sync.c | 14 |
4 files changed, 29 insertions, 22 deletions
diff --git a/bin/sync/Makefile b/bin/sync/Makefile index 8b56d6af4b88..8da077108aec 100644 --- a/bin/sync/Makefile +++ b/bin/sync/Makefile @@ -1,5 +1,3 @@ -# @(#)Makefile 8.1 (Berkeley) 5/31/93 -# $FreeBSD$ PACKAGE=runtime PROG= sync diff --git a/bin/sync/Makefile.depend b/bin/sync/Makefile.depend index cae7e645ef6a..93249906da4f 100644 --- a/bin/sync/Makefile.depend +++ b/bin/sync/Makefile.depend @@ -1,8 +1,6 @@ -# $FreeBSD$ # Autogenerated - do NOT edit! DIRDEPS = \ - gnu/lib/csu \ include \ lib/${CSU_DIR} \ lib/libc \ diff --git a/bin/sync/sync.8 b/bin/sync/sync.8 index 7f331f1222e3..fcd07ca72240 100644 --- a/bin/sync/sync.8 +++ b/bin/sync/sync.8 @@ -26,10 +26,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)sync.8 8.1 (Berkeley) 5/31/93 -.\" $FreeBSD$ -.\" -.Dd May 31, 1993 +.Dd April 25, 2024 .Dt SYNC 8 .Os .Sh NAME @@ -72,3 +69,31 @@ A .Nm utility appeared in .At v4 . +.Pp +On systems older than +.Bx 4.0 , +commands like +.Xr reboot 8 +and +.Xr halt 8 +were unavailable. +The shutdown procedure involved running +.Nm , +waiting for the lights to stop, +and turning off the machine. +.Pp +Issuing three separate +.Nm +commands (one line each) was a placebo that would generally suffice in +.At v7 +machines that were otherwise quiesced systems. +It replaced the one-per-line +.Nm +as a substitute for waiting. +.Pp +.Bx 4.0 +introduced +.Xr reboot 2 +and +.Xr sync 2 +which rendered this trick obsolete. diff --git a/bin/sync/sync.c b/bin/sync/sync.c index 6855193a0476..7560e794d35f 100644 --- a/bin/sync/sync.c +++ b/bin/sync/sync.c @@ -27,20 +27,6 @@ * SUCH DAMAGE. */ -#if 0 -#ifndef lint -static char const copyright[] = -"@(#) Copyright (c) 1987, 1993\n\ - The Regents of the University of California. All rights reserved.\n"; -#endif /* not lint */ - -#ifndef lint -static char sccsid[] = "@(#)sync.c 8.1 (Berkeley) 5/31/93"; -#endif /* not lint */ -#endif -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - #include <stdlib.h> #include <unistd.h> |