History log of /freebsd-current/bin/sleep/sleep.1
Revision Date Author Comments
# 2295cae7 25-Mar-2024 Dag-Erling Smørgrav <des@FreeBSD.org>

sleep: Overhaul.

Program:

* Add a dummy getopt(3) loop to handle `--`.
* Move interval parsing out into a separate function.
* Print a diagnostic for every invalid interval.
* Check for NaN and infinity.
* Improve bounds checks.

Manual page:

* Miscellaneous markup fixes.
* Reword DESCRIPTION section.
* Move text about GNU compatibility to STANDARDS section.
* Convert examples from csh to sh.

Sponsored by: Klara, Inc.
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D44471


# 90aea514 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# d46d907a 25-May-2022 Mateusz Piotrowski <0mp@FreeBSD.org>

sleep.1: Fix mdoc style

Fixes: be038c3afcae bin/sleep: add support for multiple delay values
MFC after: 1 week


# 81cea61f 24-May-2022 Stefan Eßer <se@FreeBSD.org>

bin/sleep: document more non-standard features

Add support of other time units than seconds to the IMPLEMENTATION
NOTES section of the man page.

MFC after: 1 week


# be038c3a 24-May-2022 Stefan Eßer <se@FreeBSD.org>

bin/sleep: add support for multiple delay values

The sleep time is calculated as the sum of all arguments passed.

This makes the FreeBSD version of sleep functionally compatible with
the version in GNU coreutils.

MFC after: 1 week


# 34978f7e 24-May-2022 A. Mallory <mallorya@fastmail.com>

bin/sleep: add support for units other than seconds

The coreutils version of this command accepts a unit designation of s,
m, h, or d (for seconds, minutes, hours, days) immediately following
the number of (fractional) units to delay.

The submitted patch has been modified in one detail: the test meant to
detect the presence of the unit modified was not specific (!= 1) and
would have accepted a non-numeric initial element or extra characters
following the union. The committed version accepts only the number
immediately followed by one of the defined unit designators and no
further characters.

PR: 264162
MFC after: 1 week


# 43d0803c 31-Dec-2020 Benjamin Kaduk <bjk@FreeBSD.org>

Soften caveat about fractional seconds for sleep(1)

Support for fractional seconds has become much more widespread since
this text was originally written.

Reported by: Mark Eichin
Reviewed by: gbe, jilles
Differential Revision: https://reviews.freebsd.org/D26208


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# 67a54762 02-Aug-2010 Konstantin Belousov <kib@FreeBSD.org>

Document the new argument parser for sleep(1) and SIGINFO behaviour.
Remove higlight for the unportability notice.

MFC after: 3 weeks


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 6fca4c7c 16-Jan-2005 Ruslan Ermilov <ru@FreeBSD.org>

Add the new standard EXIT STATUS section where appropriate.
Sort standard sections in the (documented) preferred order.


# 9ddb49cb 10-Jan-2005 Warner Losh <imp@FreeBSD.org>

/*- or .\"- or #- to begin license clauses.


# 6195fb41 06-Apr-2004 Mark Murray <markm@FreeBSD.org>

Remove clause 3 from the UCB licenses.

OK'ed by: imp, core


# 43d088be 10-Jun-2002 Tim J. Robbins <tjr@FreeBSD.org>

Sort sections, use Ex macro in Diagnostics section, point out that the first
example only works with csh(1).


# 91c00818 10-Jun-2002 Tim J. Robbins <tjr@FreeBSD.org>

Add History section. sleep appeared in v4.


# c4d9468e 07-Aug-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police:

Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.


# 12e720d7 15-Dec-2000 Ruslan Ermilov <ru@FreeBSD.org>

Prepare for mdoc(7)NG.


# 4e86fcac 02-Mar-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

Remove more single-space hard sentence breaks.


# 22307be5 28-Oct-1999 Ruslan Ermilov <ru@FreeBSD.org>

Restore reference to sleep(3).


# ac14c311 01-Oct-1999 Ruslan Ermilov <ru@FreeBSD.org>

Let sleep(1) handle fractions of a second (up to nanosecond).

This is a conservative change. It does the same thing in weird
cases like the old one. For example, 'sleep abcd' still sleeps
for zero seconds. `sleep 10.a' and `sleep 10.05aa' do the best
and not abort (ie: 10.a == 10 seconds, 10.05a == 10.05 seconds).


# 2a456239 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 64373ec6 15-Aug-1999 Ruslan Ermilov <ru@FreeBSD.org>

Describe proper signals behavior rather than just removing it.
Remove obsoleted reference to alarm(3).

Submitted by: bde


# 2028697c 09-Aug-1999 Ruslan Ermilov <ru@FreeBSD.org>

There is no special handling for SIGALRM as
sleep(3) is implemented using nanosleep(2).


# 46be34b9 08-May-1999 Kris Kennaway <kris@FreeBSD.org>

Various spelling/formatting changes.

Submitted by: Philippe Charnier <charnier@xp11.frmug.org>


# 9ba8bd65 18-May-1998 Philippe Charnier <charnier@FreeBSD.org>

Correct use of .Nm. Add rcsid.


# a2640290 12-Aug-1997 Andrey A. Chernov <ache@FreeBSD.org>

Describe signals behaviour now


# b97fa2ef 22-Feb-1997 Peter Wemm <peter@FreeBSD.org>

Revert $FreeBSD$ to $Id$


# 1130b656 14-Jan-1997 Jordan K. Hubbard <jkh@FreeBSD.org>

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# af202156 12-Jan-1997 Wolfram Schneider <wosch@FreeBSD.org>

Sort cross references.


# db5b8caf 13-Dec-1996 Steve Price <steve@FreeBSD.org>

Cleanup man page and -Wall cleaning.


# 89730b29 23-Sep-1994 David Greenman <dg@FreeBSD.org>

Added $Id$


# 4b88c807 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite bin Sources