summaryrefslogtreecommitdiff
path: root/usr.bin/jot/jot.c
AgeCommit message (Expand)Author
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-12usage() is __deadTheo Buehler
2016-08-12The last four argumens of jot (reps, begin, end, step) can all beTheo 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-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
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
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
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2007-05-01use strtonum; ok millert@Jason Dixon
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
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-15jot.1:Jason McIntyre
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
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
2002-05-29strlcatTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2001-03-08de-register, use getopt(), prevent a few terribly unlikely bufferPaul Janzen
2000-12-21- Get rid of local error() function and instead use err(3).Aaron Campbell
2000-12-21Use arc4random().Aaron Campbell
2000-07-14previous two patches mixed up if/else matchingTheo de Raadt
1999-12-04more oflowsTheo de Raadt
1999-12-04oflowsTheo de Raadt
1996-06-26rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt