| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Sort includes alphabetically
- Sort prototypes alphabetically
- Sort stack variables by size
- Add missing braces to the getopt(3) loop
- Be explicit: there is *one* argument, so use argv[0], not *argv
- If nanosleep(2) somehow fails, say that "nanosleep" failed when
we err(3)
- Remove extra parentheses from the return statement
- De-(void) the obvious fprintf(3) in usage()
- __progname -> getprogname(3)
- POSIX 1003.2 has long since become POSIX.1
- Remove an ARGUSED linter comment
- stdio(3) flushing is not the only potential issue with an exit(3)
from a signal handler. Just note that exit(3) isn't safe and leave
it at that.
|
| |
|
|
|
|
|
|
|
| |
- No need for intermediate variables, just build the timespec directly
- Use for-loops so we modify "cp" on a single line in each loop
- Parse subseconds with one loop: less code, easier to read, etc.
- Improve the subsecond parsing comment: make our intent really obvious
ok schwarze@
|
| |
|
|
|
|
|
| |
Now that nanosleep(2) handles the full input range transparently there
is no longer a 100 million second upper bound and we can remove this loop.
ok phessler@ jca@ visa@
|
| |
|
|
|
|
|
|
| |
More informative than the usage message.
While here, no need to return EINVAL: just return 1 if we overflow.
ok jca@ schwarze@
|
| |
|
|
|
|
|
|
|
| |
Makes us compliant with POSIX.1-2008, which requires that sleep(1) support
up to 2147483647 seconds.
Bounced off of tb@ and jca@.
ok tb@ millert@ jca@
|
| |
|
|
|
| |
From Sevan Janiyan <venture37 at geeklan dot co dot uk>.
Verified using http://minnie.tuhs.org/.
|
| |
|
|
| |
ok beck@ doug@ deraadt@ tedu@
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
there is that pesky usage message... We could tame "something" in the
non-usage codepath.. but pop quiz, anyone know what happens after main
returns or if exit(3) is called? atexit completion.. our atexit is
very paranoid with structure management and uses mprotect. So current
minimum a normal program needs is tame "malloc".
tame "stdio" done before the usage codepath splits is just as good;
tame placement before getopt provides a strong hint about program
behaviour.
I am still hoping someone comes up with a nice solution for atexit,
or a nice tame subset between "" (pure computation) and "malloc".
Ideas have been floated to expose "self", but it lacks mprotect also,
and should continue to lack it (see the ssh tame sandbox).
|
| |
|
|
|
|
| |
as our forefathers did, and it doesn't print any error messages in need of
translation.
ok stsp
|
| |
|
|
|
|
| |
a standard EXIT STATUS blurb now that we can;
ok guenther sobrado millert
|
| |
|
|
|
|
| |
and do not point programmers at the obsolete usleep(3);
based on a diff from Jan Klemkow <j dot klemkow at wemelug dot de>,
but removing more as suggested by jmc@ and deraadt@
|
| |
|
|
| |
ok guenther step
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms
|
| | |
|
| |
|
|
| |
updates to follow;
|
| | |
|
| |
|
|
|
|
| |
- note which options are extensions to POSIX
discussed w/ deraadt otto millert
|
| | |
|
| | |
|
| |
|
|
| |
rescinded 22 July 1999. Proofed by myself and Theo.
|
| | |
|
| | |
|
| |
|
|
| |
last commit here.
|
| | |
|
| |
|
|
| |
millert@ ok.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
too long); problem noted by viha@vip.fi
|
| |
|
|
| |
Rephrase examples slightly.
|
| | |
|
| | |
|
| |
|
|
| |
it's given)
|
| | |
|
| |
|
|
|
| |
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS
cleanups, other miscellaneous typos.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|