| #
d7259957 |
| 04-Dec-2022 |
cheloha <cheloha@openbsd.org> |
userspace: remove vestigial '?' cases from top-level getopt(3) loops
getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument.
userspace: remove vestigial '?' cases from top-level getopt(3) loops
getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument. We can handle this case with the "default" failure case with no loss of legibility. Hence, remove all the redundant "case '?':" lines.
Prompted by dlg@. With help from dlg@ and millert@.
Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2
ok naddy@ millert@ dlg@
show more ...
|
| #
9844ea72 |
| 15-Mar-2016 |
mmcc <mmcc@openbsd.org> |
o clean up a little whitespace and formatting o move some declarations out of hexdump.h o mark some declarations as __dead or static
from Michal Mazurek, with input from and ok tb@
|
| #
39d36221 |
| 06-May-2011 |
otto <otto@openbsd.org> |
sync -x, default and example in man page as they should be; ok jmc@ millert@
|
| #
043fbe51 |
| 27-Oct-2009 |
deraadt <deraadt@openbsd.org> |
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (th
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and 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
show more ...
|
| #
607263ad |
| 06-Feb-2007 |
jmc <jmc@openbsd.org> |
sort options and sync usage();
|
| #
ccefec8d |
| 28-Jan-2007 |
miod <miod@openbsd.org> |
Accept a leading 0x for the -n length parameter.
Correctly check for out-of-bounds values for -s skip parameter, and use strtoll to parse it instead of strtol since this is an off_t value.
|
| #
3921aef3 |
| 12-Jun-2003 |
deraadt <deraadt@openbsd.org> |
de-register and ansification; millert ok
|
| #
f75387cb |
| 03-Jun-2003 |
millert <millert@openbsd.org> |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
| #
7baf058c |
| 30-Dec-2001 |
pvalchev <pvalchev@openbsd.org> |
Changes come from NetBSD, Lite-2 and me. ok deraadt od(1): - Enable support for printing 8-byte integers. - Added -C option for hexadecimal+ASCII display. - Fix od so it displays short files contain
Changes come from NetBSD, Lite-2 and me. ok deraadt od(1): - Enable support for printing 8-byte integers. - Added -C option for hexadecimal+ASCII display. - Fix od so it displays short files containing nulls. - POSIXification: The C, S, I and L modifiers now behave correctly, specifying output in units of a char, short, int and long (as defined by the host system) respectively. Support -N, equivalent to hexdump's -n (format only COUNT bytes of input). Add -j option which does the same thing as -s in hexdump (skipping some of the input). hexdump(1): - POSIX.2 doesn't specify hexdump so it can't be compatible with it... - add missing trailing \n in usage() printf
show more ...
|
| #
baf68b34 |
| 02-Nov-2001 |
mickey <mickey@openbsd.org> |
replace fprintf(stderr)/exit w/ err/warn
|
| #
c3e1e82e |
| 12-Jul-2001 |
deraadt <deraadt@openbsd.org> |
first pass at a -Wall cleanup
|
| #
72799b18 |
| 15-Jan-1997 |
millert <millert@openbsd.org> |
getopt(3) returns -1 when out of args, not EOF, whee!
|
| #
1258a77d |
| 26-Jun-1996 |
deraadt <deraadt@openbsd.org> |
rcsid
|
| #
df930be7 |
| 18-Oct-1995 |
deraadt <deraadt@openbsd.org> |
initial import of NetBSD tree
|