summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock.8.in
diff options
context:
space:
mode:
authorBenno Schulenberg2015-04-08 10:22:43 +0200
committerKarel Zak2015-04-28 12:40:41 +0200
commitdffd1f3f57a93c78ecac58556c7bb29302e98e7b (patch)
treeb4b072185c6ce65a36ba2fde124b6bca846869be /sys-utils/hwclock.8.in
parenthwclock: clean up man page header (diff)
downloadkernel-qcow2-util-linux-dffd1f3f57a93c78ecac58556c7bb29302e98e7b.tar.gz
kernel-qcow2-util-linux-dffd1f3f57a93c78ecac58556c7bb29302e98e7b.tar.xz
kernel-qcow2-util-linux-dffd1f3f57a93c78ecac58556c7bb29302e98e7b.zip
hwclock: fix spelling, punctuation and formatting mistakes in the man page
Also improve some wordings. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'sys-utils/hwclock.8.in')
-rw-r--r--sys-utils/hwclock.8.in78
1 files changed, 38 insertions, 40 deletions
diff --git a/sys-utils/hwclock.8.in b/sys-utils/hwclock.8.in
index 073f8a584..9926ed479 100644
--- a/sys-utils/hwclock.8.in
+++ b/sys-utils/hwclock.8.in
@@ -24,16 +24,15 @@ Hardware Clock values based on its drift rate.
.PP
Since v2.26 important changes were made to the
.B \-\-hctosys
-function, the
+function and the
.B \-\-directisa
option, and a new option
.B \-\-update\-drift
-was added. See their respective sections below.
+was added. See their respective descriptions below.
.
.SH FUNCTIONS
The following functions are mutually exclusive, only one can be given at
-a time. If none are given the default is
-.BR \-\-show .
+a time. If none is given, the default is \fB\-\-show\fR.
.TP
.B \-\-adjust
Add or subtract time from the Hardware Clock to account for systematic
@@ -60,9 +59,9 @@ that the year counter in your Hardware Clock contains the number of
full years since 1952, then the kernel's Hardware Clock epoch value
must be 1952.
.sp
-The set function requires using the
+The \fB\%\-\-setepoch\fR function requires using the
.B \%\-\-epoch
-option.
+option to specify the year.
.sp
This epoch value is used whenever
.B \%hwclock
@@ -124,7 +123,7 @@ function does this based upon the information in the
.I @ADJTIME_PATH@
file or the command line arguments
.BR \%\-\-localtime " and " \-\-utc .
-Note: no daylight saving adjustment is made. See the discussion below under
+Note: no daylight saving adjustment is made. See the discussion below, under
.BR "LOCAL vs UTC" .
.sp
The kernel also keeps a timezone value, the
@@ -154,7 +153,7 @@ This is a good function to use in one of the system startup scripts before the
file systems are mounted read/write.
.sp
This function should never be used on a running system. Jumping system time
-will cause problems, such as, corrupted filesystem timestamps. Also, if
+will cause problems, such as corrupted filesystem timestamps. Also, if
something has changed the Hardware Clock, like NTP's \%'11\ minute\ mode', then
.B \%\-\-hctosys
will set the time incorrectly by including drift compensation.
@@ -231,9 +230,9 @@ changed then a reboot would be required to inform the kernel.
.BR \-w , \ \-\-systohc
Set the Hardware Clock from the System Clock, and update the timestamps in
.IR @ADJTIME_PATH@ .
-With the
+When the
.B --update-drift
-option (re)calculate the drift factor.
+option is given, then also (re)calculate the drift factor.
.
.TP
.BR \-V , \ \-\-version
@@ -299,7 +298,7 @@ The value of this option is used as an argument to the
option. For example:
.RS
.IP "" 4
-.BI "\%hwclock\ \-\-set\ \-\-date='" 2011-08-14\ 16:45:05 '
+.B "hwclock\ \-\-set\ \-\-date='2011-08-14\ 16:45:05'
.PP
The argument must be in local time, even if you keep your Hardware Clock in
UTC. See the
@@ -382,7 +381,7 @@ as recorded in
will be used. If the adjtime file doesn't exist, the default is UTC.
.sp
Note: daylight saving time changes may be inconsistent when the
-Hardware Clock is kept in local time. See the discussion below under
+Hardware Clock is kept in local time. See the discussion below, under
.BR "LOCAL vs UTC" .
.
.TP
@@ -448,9 +447,9 @@ option to be used. See the discussion below, under
.TP
.B \-\-arc
This option is equivalent to
-.BI \%\-\-epoch= 1980
+.B \%\-\-epoch=1980
and is used to specify the most common epoch on Alphas
-with ARC console (but Ruffians have an epoch of 1900).
+with an ARC console (although Ruffians have an epoch of 1900).
.
.TP
.BI \-\-epoch= year
@@ -463,7 +462,7 @@ option to set the kernel's idea of the epoch of the Hardware Clock.
For example, on a Digital Unix machine:
.RS
.IP "" 4
-.BI hwclock\ \-\-setepoch\ \-\-epoch= 1952
+.B hwclock\ \-\-setepoch\ \-\-epoch=1952
.RE
.
.TP
@@ -482,15 +481,15 @@ is mounted.
option is used for Jensen models;
.B \%\-\-funky\-toy
means that the machine requires the UF bit instead of the UIP bit in
-the Hardware Clock to detect a time transition. "Toy" in the option
+the Hardware Clock to detect a time transition. The "toy" in the option
name refers to the Time Of Year facility of the machine.
.
.TP
.B \-\-srm
This option is equivalent to
-.BI \%\-\-epoch= 1900
+.B \%\-\-epoch=1900
and is used to specify the most common epoch on Alphas
-with SRM console.
+with an SRM console.
.
.SH NOTES
.
@@ -557,11 +556,11 @@ file, as explained in the man page for
However, some programs and fringe parts of the Linux kernel such as filesystems
use the kernel's timezone value. An example is the vfat filesystem. If the
kernel timezone value is wrong, the vfat filesystem will report and set the
-wrong timestamps on files. Another example is the kernel's NTP \%'11\ minute\ mode.'
+wrong timestamps on files. Another example is the kernel's NTP \%'11\ minute\ mode'.
If the kernel's timezone value and/or the
.I \%persistent_clock_is_local
variable are wrong, then the Hardware Clock will be set incorrectly
-by \%'11\ minute\ mode.' See the discussion below, under
+by \%'11\ minute\ mode'. See the discussion below, under
.BR "Automatic Hardware Clock Synchronization by the Kernel" .
.PP
.B \%hwclock
@@ -589,7 +588,7 @@ compatible system, there is probably no need for users to have the direct
ISA I/O method, so do not bother. See the
.BR \-\-rtc " option."
.PP
-In any case, hwclock will not allow you to set anything unless you have the
+In any case, \fBhwclock\fR will not allow you to set anything unless you have the
superuser real uid. (This restriction is not necessary if you haven't
installed setuid root, but it's there for now.)
.
@@ -782,7 +781,7 @@ Hardware Clock timescale configuration is changed, then a reboot is required to
notify the kernel.
.PP
.B \%hwclock\ \-\-adjust
-should not be used with NTP \%'11\ minute\ mode.'
+should not be used with NTP \%'11\ minute\ mode'.
.
.SS ISA Hardware Clock Century value
.PP
@@ -810,15 +809,15 @@ are supported by the hardware.
.PP
This discussion is based on the following conditions:
.IP \(bu 2
-Nothing is running that alters the date-time clocks, e.g.,
-.BR \%ntpd "(1), cron jobs, et al."
+Nothing is running that alters the date-time clocks, such as
+.BR \%ntpd "(1) or a cron job."
.IP \(bu 2
-The system timezone is configured for the correct local time. See below
+The system timezone is configured for the correct local time. See below, under
.BR "POSIX vs 'RIGHT'" .
.IP \(bu 2
-Early in startup the following are called in this order:
+Early during startup the following are called, in this order:
.br
-.BI \%adjtimex\ \-\-tick \ <value>\ \-\-frequency \ <value>
+.BI \%adjtimex\ \-\-tick \ value\ \-\-frequency \ value
.br
.B \%hwclock\ \-\-hctosys
.IP \(bu 2
@@ -843,8 +842,7 @@ different for each of them. However, most systems are configured to
exchange values between these two clocks at startup and shutdown. Now
the individual device's time keeping errors are transferred back and
forth between each other. Attempt to configure drift correction for only
-one of them, and the other's drift will be overlaid upon it. If the big
-picture is not kept in mind, confusion will soon ensue.
+one of them, and the other's drift will be overlaid upon it.
.PP
This problem can be avoided when configuring drift correction for the
System Clock by simply not shutting down the machine. This, plus the
@@ -856,11 +854,11 @@ should be done first.
.PP
The System Clock drift is corrected with the
.BR \%adjtimex "(8) command's " \-\-tick " and " \%\-\-frequency
-options. These two work together, tick is the course adjustment and
-frequency is the fine adjustment. (For system that do not have an
+options. These two work together: tick is the coarse adjustment and
+frequency is the fine adjustment. (For systems that do not have an
.BR \%adjtimex " package,"
-.BI \%ntptime\ \-f\ <ppm>
-may be use instead.)
+.BI \%ntptime\ \-f\ ppm
+may be used instead.)
.PP
Some Linux distributions attempt to automatically calculate the System
Clock drift with
@@ -888,27 +886,27 @@ Once the System Clock is ticking smoothly, move on to the Hardware Clock.
.PP
As a rule, cold drift will work best for most use cases. This should be
true even for 24/7 machines whose normal downtime consists of a reboot.
-In that case the drift factor value makes little difference, but on the
-rare occasion that the machine is shutdown for an extended period then
+In that case the drift factor value makes little difference. But on the
+rare occasion that the machine is shut down for an extended period, then
cold drift should yield better results.
.PP
.B Steps to calculate cold drift:
.IP 1 2
-.RB "Confirm that " ntpd "(1) will not be launched at startup."
+.RB "Ensure that " ntpd "(1) will not be launched at startup."
.IP 2 2
.RI The " System Clock " "time must be correct at shutdown!"
.IP 3 2
-Shutdown the system.
+Shut down the system.
.IP 4 2
Let an extended period pass without changing the Hardware Clock.
.IP 5 2
Start the system.
.IP 6 2
-.RB "Immediately use " hwclock " to set the correct time with the"
+.RB "Immediately use " hwclock " to set the correct time, adding the"
.BR \%\-\-update\-drift " option."
.PP
-Note: if step six uses
-.RB \%\-\-systohc ,
+Note: if step 6 uses
+.BR \%\-\-systohc ,
then the System Clock must be set correctly (step 6a) just before doing so.
.PP
.RB "Having " hwclock