summaryrefslogtreecommitdiff
path: root/usr.bin/jot
AgeCommit message (Expand)Author
2019-06-27Some asprintf() calls were checked < 0, rather than the precise == -1.Theo de Raadt
2018-08-01Use a single space after colon in another errx().Theo Buehler
2018-08-01Disallow negative reps, they make no sense. While here, sscanf -> strtonum.cheloha
2018-06-24Fix a quirk noticed by espie@: let "jot" without any argument do theIngo Schwarze
2018-01-13Adjust comment to reflect '%F' addition.Theo Buehler
2018-01-13Allow printf '%F' format specifier.Theo Buehler
2018-01-12Align cases in conversion switch vertically. Normalize logic inside casesTheo Buehler
2018-01-11Remove arbitary length limits for -s, -b and -w. Based on a diff from kshe.Theo Buehler
2017-12-30Simplify switch by removing some unneeded cases.Theo Buehler
2017-12-30Avoid one-byte overflow in error path. If the format string ends in anTheo Buehler
2017-12-15Use the canonical idiom to check strlcat(3). An unchecked strlcat callTheo Buehler
2017-12-15Instead of pointlessly falling through other cases and ending up doingTheo Buehler
2017-12-15Make sure the double is cast to a long if the format string is %D, %O, %U.Theo Buehler
2016-09-02style cleanup: sort headers; group and sort variables; no parens forTheo Buehler
2016-08-16Streamline and refactor the code a bit more:Theo Buehler
2016-08-12Simplify getprec() by using strchr(3) and strspn(3).Theo Buehler
2016-08-12Rewrite the paragraphs that describe how the last four arguments areTheo Buehler
2016-08-12usage() is __deadTheo Buehler
2016-08-12The last four argumens of jot (reps, begin, end, step) can all beTheo Buehler
2016-08-05All four arguments can be omitted by specifying a dash.Theo Buehler
2016-08-05If reps and steps were omitted, while begin and end were specified,Theo Buehler
2016-08-05If "%%" appears in the format string, skip it properly.Theo Buehler
2016-08-05Initialize reps, begin, end, steps to their defaults.Theo Buehler
2016-07-17Remove now obsolete parenthetical explanation (should have been part ofTheo Buehler
2016-07-171. Update manpage in view of the change of behavior I introduced in -r1.27.Theo Buehler
2016-01-10Random sequences generated by jot -r have been suffering from a dramatictb
2016-01-04Add HISTORY and AUTHORS sections.Ingo Schwarze
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-06obvious tame "stdio"Theo de Raadt
2015-07-21whitespaceJasper Lievisse Adriaanse
2014-01-20Obvious .Xr fixes, found while testing mandocdb(8).Ingo Schwarze
2013-11-26unsigned char casts for ctypeTheo de Raadt
2013-11-15Include unistd.h as it is the standard location for getopt().Todd C. Miller
2012-01-30typo in error message; ok krw@Okan Demirmen
2011-12-03Remove an OpenBSD-specific tweak regarding .Xr spacingIngo Schwarze
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-01use strtonum; ok millert@Jason Dixon
2005-09-06Fix example that uses rs(1)Todd C. Miller
2005-04-11handle -1 potential case from snprintf tooTheo de Raadt
2004-01-08Pass the right type based on the conversion specified; warn on conversionOtto Moerbeek
2004-01-01Explain how jot does rounding and truncation. Help from jmc@Otto Moerbeek
2003-12-30o From FreeBSD: use the max_value(u_int32_t) + 1 to divide the random number.Otto Moerbeek
2003-12-29Cleanup: KNF, -Wall, do not use pointers if the actual var isOtto Moerbeek
2003-12-18random numbers are obtained via arc4random(3), not random(3);Jason McIntyre
2003-12-15jot.1:Jason McIntyre
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-10- section reorderJason McIntyre
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2003-01-12Make this work on 64 bit arch'sBob Beck