CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2020/02/25 08:46:15

Modified files:
        bin/sleep      : sleep.c 

Log message:
sleep(1): style(9) and other dusting

- 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.

Reply via email to