summaryrefslogtreecommitdiffstats
path: root/bin/sleep
Commit message (Collapse)AuthorAgeFilesLines
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedngie2016-05-041-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r298107 Summary of changes: - Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup) Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info. MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division
* MFHgjb2016-03-101-0/+11
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * DIRDEPS_BUILD: Connect MK_TESTS.bdrewery2016-03-091-0/+11
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | Explicitly add unmarked bin/ binaries to the runtime package.gjb2016-02-091-0/+1
| | | | | | | | | | | | | | | | Note: tcsh(1) has a MK_TCSH=no test, so this should be a separate package, which requires pre-install/post-install scripts, to be added later. Sponsored by: The FreeBSD Foundation
* | First pass to fix the 'tests' packages.gjb2016-02-021-0/+4
|/ | | | Sponsored by: The FreeBSD Foundation
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andngie2015-10-121-6/+1
| | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
* Add META_MODE support.sjg2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge from head@274682sjg2014-11-192-0/+18
| |\ | |/ |/|
| * Updated dependenciessjg2014-05-161-1/+0
| |
| * Updated dependenciessjg2014-05-101-0/+2
| |
| * Merge from headsjg2013-09-051-2/+9
| |\
| * | Updated dependenciessjg2013-03-111-0/+1
| | |
| * | Updated dependenciessjg2013-02-161-2/+0
| | |
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | Integrate bin/sleep/tests from NetBSD into atf/kyuangie2014-10-092-0/+18
| |/ |/| | | | | Sponsored by: EMC / Isilon Storage Division
* | sleep: Explain in a comment why the [EINTR] check is there.jilles2013-06-051-0/+6
| | | | | | | | Suggested by: eadler
* | sleep: Improve nanosleep() error handling:jilles2013-05-281-2/+3
|/ | | | | | | | | * Work around kernel bugs that cause a spurious [EINTR] return if a debugger (such as truss(1)) is attached. * Write an error message if an error other than [EINTR] occurs. PR: bin/178664
* Document the new argument parser for sleep(1) and SIGINFO behaviour.kib2010-08-021-6/+7
| | | | | | Remove higlight for the unportability notice. MFC after: 3 weeks
* Simplify argument parser by using sscanf(); simplify usage() by notkib2010-08-021-72/+19
| | | | | | | | | | refusing to use stdio. Reduce nesting level in the sleep loop by returning earlier for negative timeouts. Limit the maximum timeout to INT_MAX seconds. Submitted by: bde MFC after: 3 weeks
* Deal with proper format for printing time_t.kib2010-07-311-3/+5
| | | | | Reported by: ache MFC after: 3 weeks
* Report the time left for the sleep on SIGINFO.kib2010-07-311-19/+47
| | | | | | | Be stricter in the checking of interval specification. PR: bin/139345 MFC after: 3 weeks
* Fix a comment.stefanf2005-08-071-1/+1
| | | | Submitted by: Liam J. Foy
* Add the new standard EXIT STATUS section where appropriate.ru2005-01-161-2/+2
| | | | Sort standard sections in the (documented) preferred order.
* /*- or .\"- or #- to begin license clauses.imp2005-01-102-1/+2
|
* Remove clause 3 from the UCB licenses.markm2004-04-062-8/+0
| | | | OK'ed by: imp, core
* Fix warnings. This is now WARNS=9, std=c99 clean in i386.markm2003-05-031-9/+10
| | | | | Use return(0) for main() instead of exit(0). Makes it a wee bit smaller.
* Quiet warnings about copyright[].obrien2003-05-011-2/+2
|
* Minimal take on previous commit -- remove getopt and printf. Static sizenjl2002-11-141-15/+9
| | | | | | | | | is reduced by 40k, dynamic by a few bytes. Functional changes: * "sleep -- arg" now returns usage() instead of ignoring the -- * "sleep -1" now returns immediately instead of returning usage() Reviewed by: jmallett
* Back out previous commit since there is controversy about changing so muchnjl2002-11-141-24/+30
| | | | | in sleep including duping strtol(3). Code changes also increased dynamic size of sleep(1).
* Remove getopt and strtol dependencies, reducing size of static exe.njl2002-11-131-30/+24
| | | | | | | | | | | | Preserve older desired behavior, accept [+-]*[0-9]*\.[0-9]* Remove a few unnecessary casts. %ls -l /bin/sleep -r-xr-xr-x 1 root wheel 61332 Oct 28 05:16 /bin/sleep %ls -l /usr/obj/usr/src/bin/sleep/sleep -rwxr-xr-x 1 root wheel 19124 Nov 13 12:12 /usr/obj/usr/src/bin/sleep/sleep Submitted by: Tim Kientzle <kientzle@acm.org>
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* Sort sections, use Ex macro in Diagnostics section, point out that the firsttjr2002-06-101-11/+4
| | | | example only works with csh(1).
* Add History section. sleep appeared in v4.tjr2002-06-101-0/+5
|
* o __P has been reovedimp2002-02-021-6/+3
| | | | | | | | | | | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o Change int foo() { ... to int foo(void) { ...
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyobrien2001-12-041-2/+0
| | | | | | set WARNS=0. Reviewed by: mike
* mdoc(7) police:ru2001-08-071-4/+2
| | | | | | | 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.
* WARNS= -> WARNS?=dd2001-06-221-1/+1
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Silence WARNS=2 and BDECFLAGS on alpha and i386kris2001-05-202-0/+3
| | | | MFC After: 1 week
* Prepare for mdoc(7)NG.ru2000-12-151-1/+1
|
* Remove more single-space hard sentence breaks.sheldonh2000-03-021-1/+2
|
* Restore reference to sleep(3).ru1999-10-281-1/+2
|
* Let sleep(1) handle fractions of a second (up to nanosecond).ru1999-10-012-12/+72
| | | | | | | 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).
* $Id$ -> $FreeBSD$peter1999-08-273-3/+3
|
* Describe proper signals behavior rather than just removing it.ru1999-08-161-2/+8
| | | | | | Remove obsoleted reference to alarm(3). Submitted by: bde
* There is no special handling for SIGALRM asru1999-08-091-11/+3
| | | | sleep(3) is implemented using nanosleep(2).
* Various spelling/formatting changes.kris1999-05-081-2/+2
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* Correct use of .Nm. Add rcsid.charnier1998-05-182-8/+10
|
* Describe signals behaviour nowache1997-08-121-1/+7
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-2/+2
| | | | posix standard on the topic.
OpenPOWER on IntegriCloud