Commit Graph

24 Commits

Author SHA1 Message Date
joerg 5bb1ddccc2 Use __dead 2011-08-29 14:51:17 +00:00
mrg 3b4fa1d52f add SIGINFO support; from freebsd:
when a SIGINFO is delivered, display the approximate remaining seconds.
2010-10-09 04:57:30 +00:00
lukem 2fe2731d3f Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
hubertf 8e0c5879e7 - Cleanup for sleep.c:
+ mark two functions as static
  + remove case '?' in switch() before default
  + use return instead of exit() in main() function
  + use constants EXIT_SUCCESS/EXIT_FAILURE instead of 0/1

- In man sleep(1):
  + cleanup example

Patch submitted by Slava Semushin <php-coder@altlinux.ru> in private email.
2007-08-18 00:41:52 +00:00
elad c9981d258c PR/27140: "sleep time" doesn't error out.
Apply fix from Dheeraj Reddy.
2005-10-17 10:11:46 +00:00
agc b5b2954259 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-08-07 09:05:01 +00:00
christos 182abdd796 PR/14558: Tero Kivinen: Check the return value of nanosleep and don't fail
silently.
2001-11-12 14:55:53 +00:00
wiz 240b5f82de ANSIfy and KNF by Petri Koistinen. 2001-09-16 21:18:33 +00:00
christos 9908eacfd6 char -> unsigned char 1998-11-04 20:12:12 +00:00
mycroft ee9e50eacb Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
mycroft 9dc385beb1 Delint. 1998-07-28 05:31:22 +00:00
fair 927362e98c remove #include <sys/time.h> ; the include file bug noted in the comment above it has been fixed. 1998-04-09 07:03:29 +00:00
cgd bad15fd37f lint 1997-11-05 21:17:14 +00:00
lukem a9737b1039 - getopt returns -1 not EOF
- use .Nm appropriately
1997-09-14 07:31:56 +00:00
perry ba29cbc528 Make sleep handle non-integer values. Document the same, noting that
the extension is grotesquely non-portable.

As requested by Denny Gentry in pr-3914. He supplied some code, but I
used all my own code in the change, and wrote documentation for the
man page.

This is creeping featurism at its worst. I added it only because I
can't see a good reason for refusing. However, I'm disgusted with
myself for doing it anyway.
1997-08-04 01:13:07 +00:00
christos e028842ec8 Fix compiler warnings.
Add WARNS=1
1997-07-20 21:28:26 +00:00
cgd 49f0ad8601 convert to new RCS id conventions. 1995-03-21 09:01:59 +00:00
mycroft 667b5ea158 Merge 4.4-Lite version. 1994-09-22 09:24:46 +00:00
jtc 88dd434d9f localization & manpage update. 1993-12-31 19:30:00 +00:00
jtc 85a78a6bf6 Quiet compiler warnings by explicitly declaring return value of main(). 1993-09-10 18:52:27 +00:00
mycroft 8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
cgd 06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd 346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00