summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock.8.in
Commit message (Collapse)AuthorAgeFilesLines
* man pages: Fix misuse of two-fonts-macros (BR, IR)Bjarni Ingi Gislason2018-08-061-2/+2
| | | | | | | | | | | Change a two-fonts-macro to the single font one, when there is only one genuine argument. Split a punctuation mark from the only argument to a two-fonts-marco. Remove an isolated two-fonts-macro. Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
* hwclock: remove ntpd from man pageKarel Zak2018-07-311-7/+4Star
| | | | | | | | It seems better to use generic "NTP daemon" in the man page than points to specific ntpd(1) implementation as some distros use for example chronyd(1) rather than old ntpd(1). Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: add --delay <seconds>Karel Zak2018-07-181-0/+18
| | | | | | | | | | | * add command line option --delay <seconds> * read RTC type from /sys/class/rtc/rtc<N>/name * default to 0.5 (500ms) for rtc_cmos or when RTC type is impossible determine; otherwise delay is 0. Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: rename --debug option to --verboseJ William Piggott2018-01-171-5/+10
| | | | | | | | | Warn on --debug; do not fallthrough because the message is lost in the verbose output. Coauthored-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: make debug implicit for test mode.J William Piggott2017-09-211-4/+4
| | | | | | | Calling --test without --debug is not useful, so make it implicit. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: add -a that is short of --adjust to manual page and usageSami Kerola2017-09-051-1/+1
| | | | | | In same go use -V as return value of --version from getopts_long(). Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* hwclock: remove sysexits.hJ William Piggott2017-09-031-0/+8
| | | | | | | | | | | | | sysexits.h was introduced in v2.11t prior to util-linux-ng, with the HISTORY entry: * hwclock: minor polishing. So there was no specific issue solved by adding it. Its use was never documented so it should be safe to remove. Also, fix return values being used for the exit status that were not magic constants (portability issue). Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: update man pageJ William Piggott2017-08-041-6/+20
| | | | | | | | | | Add information about setting the Hardware Clock if it has been corrupted. Add information about --update-drift and reduced system shutdown times for --systohc. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: remove m68k and alpha cmos from manualJ William Piggott2017-07-311-9/+0Star
| | | | | | | m68k removed in commit 846c7d3 alpha cmos removed in commit c47a618 Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: --epoch presence test failsJ William Piggott2017-07-161-0/+3
| | | | | | | | | | | | | | hwclock --setepoch --epoch 0 Will warn that the epoch option is required. The --epoch presence test is made on its argument after it is converted to an integer. This means any value it can be tested for, can also be given as an input. So make the conversion after the presence test, like the --date option does. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: sync one-liner descriptionsJ William Piggott2017-07-101-2/+2
| | | | | | | | | | | Make whatisdb/manpage and usage() one-line descriptions match. Also update the description; hwclock has evolved into much more than reading and setting the Hardware Clock. It also sets the System Clock, warps the System Clock, sets the kernel time configurations, and more. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: add --update-drift checkJ William Piggott2017-06-211-2/+1Star
| | | | | | Only allow --update-drift for --set or --systohc Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: allow -l as alias for --localtimeRasmus Villemoes2017-05-311-1/+1
| | | | | | | | For symmetry with --utc where a short form is already allowed, and to make it easier to write scripts that will work with both util-linux' and busybox' hwclock, make -l another spelling of --localtime. (Busybox also understands --localtime, but only if it has been compiled with long option support.)
* hwclock: remove residual 'compare' from man-pageJ William Piggott2017-04-101-1/+1
| | | | Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: remove alpha cmosJ William Piggott2017-03-311-77/+33Star
| | | | | | | | | | | | | | | | | Remove alpha direct I/O access, use RTC instead: http://marc.info/?l=util-linux-ng&m=141682406902804 Resolves the alpha 2020 issue for util-linux: http://marc.info/?l=util-linux-ng&m=148387021519787 Now it is only the kernel's RTC problem. * sys-utils/hwclock.c: remove alpha cmos * sys-utils/hwclock-cmos.c: same * sys-utils/hwclock.h: same * sys-utils/hwclock.8.in: same Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: remove 1994 Award BIOS workaroundJ William Piggott2017-03-311-37/+1Star
| | | | | | | | | | | | Remove the 1994 Award BIOS bug workaround as previously discussed more than two years ago: http://marc.info/?l=util-linux-ng&m=141682406902804&w=2 * sys-utils/hwclock.c: remove badyear option * sys-utils/hwclock.h: same * sys-utils/hwclock.8.in: same Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock-rtc.c: try the 'new' rtc class firstJ William Piggott2017-03-231-4/+4
| | | | | | | * sys-utils/hwclock-rtc.c: try to open the 'new' rtc class driver first. * sys-utils/hwclock.8.in: document this. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* lib: add parse-date documentationJ William Piggott2017-03-041-11/+11
| | | | | | | | * Documentation/parse-date.txt - new file * sys-utils/hwclock.8.in Fix the --date option description. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: remove --compare optionSami Kerola2017-02-051-6/+0Star
| | | | | | | | | | | Compare functionality was printing nonsense values. There is no knowledge of anyone using this broken functionality. Instead of deprecating the code for months, and removing it after few release, it is removed immediately. Needless to say this is unusual removal. Reference: http://marc.info/?l=util-linux-ng&m=148396210506652&w=2 Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: replace FTP by HTTPS in kernel.org URLsSébastien Helleu2016-12-191-1/+1
| | | | | | | The links to ftp://ftp.kernel.org/ are replaced by https://www.kernel.org/. Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock.c, hwclock.8.in: new --show formatJ William Piggott2016-02-171-5/+3Star
| | | | | | | | | * hwclock.c: change --get and --show functions to the ISO 8601 format and concatenate fractional seconds to the time display. * hwclock.8.in: document this. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* Change of output format and documentation.Anna Jonna Ármannsdóttir2016-01-281-1/+5
|
* hwclock: add -D to the man pageKarel Zak2015-07-201-1/+1
| | | | | Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1244609 Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: don't allow non-root accessKarel Zak2015-05-261-15/+0Star
| | | | | | | | | | | | | | | Fortunately very few people are crazy enough to install hwclock as setuid. Some comments in code and unfortunately also man page advertising that setuid is no problem. That's pretty stupid promise. The code quality is poor and it's obviously not designed to be secure (things like popen() without drop privileges, etc.). This patch removes all notes about "setuid support" and for sure disable hwclock execution for non-root users. Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=786804 Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: fix spelling, punctuation and formatting mistakes in the man pageBenno Schulenberg2015-04-281-40/+38Star
| | | | | | Also improve some wordings. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* hwclock: clean up man page headerKarel Zak2015-04-281-17/+3Star
| | | | | | | | | | We already use .TQ in another man pages for years and nobody complains, so I guess the fallback is unnecessary. The patch also minimize in-header change-log. We have git for this purpose. Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: remove an untrue phrase from the man pageBenno Schulenberg2015-04-281-5/+0Star
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* hwclock: cosmetic changes to man pageKarel Zak2015-03-171-7/+8
| | | | | Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: man-page errataJ William Piggott2015-03-131-22/+0Star
| | | | | | | | | | The information I wrote regarding clock crystals was not only incomplete, it was wrong. The characteristics of quartz crystals is beyond the scope of this man-page. It was misguided to attempt to include it. This commit removes said information. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: add '11 minute mode' informationJ William Piggott2015-03-131-10/+15
| | | | | | | | Add that '11 minute mode' is a kernel compile time option. Add details regarding its activation and how to check its status. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: remove depreciated ntpdateJ William Piggott2015-03-131-2/+2
| | | | | | Replace references to the depreciated ntpdate with sntp. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: Improve FILES sectionJ William Piggott2015-03-131-5/+11
| | | | Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: add TZDIRJ William Piggott2015-03-131-5/+12
| | | | | | | Add information about TZDIR and improve the ENVIRONMENT section. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* docs: fix some spelling errors and typos in man pagesBill Pemberton2015-02-271-1/+1
| | | | | | | | | | | | | runuser.1: fix spelling implemenation -> implementation scriptreplay.1: fix spelling overide -> override unshare.1: fix spelling permamently -> permanently last.1: fix spelling preferrable -> preferable lslogins.1: fix spelling priviliges -> privileges hwclock.8.in: fix spelling transfered -> transferred prlimit.1: fix typo umlimited -> unlimited agetty.8: fix typo unnsupported -> unsupported Signed-off-by: Bill Pemberton <wfp5p@worldbroken.com>
* hwclock: improve man-page languageJ William Piggott2015-02-191-3/+4
| | | | Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: man-page errataJ William Piggott2015-02-161-5/+5
| | | | | | | | | | | Professor Eggert, maintainer of the tz database, reviewed the new POSIX vs 'RIGHT' man-page section and suggested the following corrections. Correct the subdirectory names and remove IANA from the name of the Time Zone Database. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: add checking kernel vars to man-pageJ William Piggott2015-02-081-0/+5
| | | | | | | How to check kernel clock variables with either adjtimex or ntptime added to man-page. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: Add ntptime reference to man-pageJ William Piggott2015-02-081-1/+8
| | | | | | | Some distros do not have an adjtimex package; ntptime can be used as an alternate. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: update man-page for directisa changeJ William Piggott2015-01-141-42/+33Star
| | | | | | | Update man-page for the direct ISA options changes. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: man regressionJWP2015-01-121-1/+1
| | | | | | Fixes merge for commit 2ed1d70 that clobbered commit 98ac774 Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: man page 'Since v2.26' notesJWP2015-01-091-19/+5Star
| | | | | | | | Clean up the 'Since v2.26' man page notes. They were redundant of information already in the manual, and became too verbose. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: update man page for v2.26 rcJWP2015-01-091-382/+752
| | | | | | | | | Authored new section: DATE-TIME CONFIGURATION. Subsections: Keeping Time..., LOCAL vs UTC, POSIX vs 'RIGHT'. Errata and drop outdated language. Updates for v2.26 Signed-off-by: J William Piggott <elseifthen@gmx.com>
* docs: make tools/checkmans.sh to pass without warningsSami Kerola2015-01-071-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* hwclock: improve wording and formatting of man pageBenno Schulenberg2014-11-131-37/+37
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* hwclock: adjust wording of v2.26 notesJ William Piggott2014-10-201-8/+8
| | | | Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: add notes about default behavior changesKarel Zak2014-10-201-0/+13
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: cleanup man and usage()Karel Zak2014-10-201-18/+18
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: Add --update-drift option MANJ William Piggott2014-10-151-10/+22
| | | | | | | Update hwclock man page for the hwclock: Add --update-drift option patch. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: persistent_clock_is_local MANJ William Piggott2014-10-151-15/+48
| | | | | | | Update hwclock man page for the hwclock: persistent_clock_is_local patch. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* hwclock: hctosys drift compensation II MANJ William Piggott2014-10-151-17/+33
| | | | | | | Update hwclock man page for the hwclock: hctosys drift compensation II patch. Signed-off-by: J William Piggott <elseifthen@gmx.com>