| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Suggested by: eadler
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
Remove higlight for the unportability notice.
MFC after: 3 weeks
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Reported by: ache
MFC after: 3 weeks
|
|
|
|
|
|
|
| |
Be stricter in the checking of interval specification.
PR: bin/139345
MFC after: 3 weeks
|
|
|
|
| |
Submitted by: Liam J. Foy
|
|
|
|
| |
Sort standard sections in the (documented) preferred order.
|
| |
|
|
|
|
| |
OK'ed by: imp, core
|
|
|
|
|
| |
Use return(0) for main() instead of exit(0). Makes it a
wee bit smaller.
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
in sleep including duping strtol(3). Code changes also increased
dynamic size of sleep(1).
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
example only works with csh(1).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
{
...
|
|
|
|
|
|
| |
set WARNS=0.
Reviewed by: mike
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Submitted by: Mike Barcroft <mike@q9media.com>
|
|
|
|
| |
MFC After: 1 week
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
|
| |
Remove obsoleted reference to alarm(3).
Submitted by: bde
|
|
|
|
| |
sleep(3) is implemented using nanosleep(2).
|
|
|
|
| |
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
|
| |
|
| |
|
|
|
|
| |
posix standard on the topic.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|