summaryrefslogtreecommitdiffstats
path: root/usr.bin/jot
Commit message (Collapse)AuthorAgeFilesLines
* Fix jot so that 'jot -r -w %d 1 1 4' never prints 4. Previously, itdas2003-08-011-1/+1
| | | | | | | | | | would print it with probability 1/2**32. It seems that the correct behavior is to print 4 with probability 1/4, but I'd like to avoid breaking POLA until all the range inconsistencies in jot can be fixed in one pass. See PR for details. PR: 54878 Submitted by: David Brinegar <jot.3.brinegar@spamgourmet.com>
* Don't depend on pollution in <limits.h> for the definition ofmike2002-07-051-0/+1
| | | | <stdint.h> macros.
* mdoc(7) police: added missing markup bits, lowercased argument names.ru2002-07-031-5/+7
|
* Consistently use FBSDIDobrien2002-06-301-1/+0
|
* Remove local prototype for main().jmallett2002-06-151-1/+0
|
* Protoize. Remove un-needed cast to char in switch of getopt(3)'s return value.jmallett2002-06-151-14/+10
| | | | FBSDID.
* Use `The .Nm utility'charnier2002-04-201-2/+3
|
* remove __Pimp2002-03-221-5/+5
|
* Remove leaf node WARNS?=2 (that mainly I added). This shouldmarkm2002-02-081-1/+0
| | | | help the GCC3 transition and CURRENT in general.
* Actually, arc4random() returns a uint32_t, not an int. Use the correctwollman2001-11-081-1/+1
| | | | | | constant, just in case uint32_t turns into a `short' ten years from now. If this is MFC'd it will be necessary to hard-code the constant since -stable doesn't have UINT32_MAX.
* fix jot -r on 64-bit platforms by teaching it that arc4random outputsgallatin2001-11-081-1/+1
| | | | | | | an int, not a long Submitted by: Paul Herman <pherman@frenchfries.net> PR#: alpha/31859
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-151-3/+1
|
* Remove whitespace at EOL.dd2001-07-151-1/+1
|
* Replace the cast I removed in rev. 1.16 with a slightly less evil onedd2001-05-291-1/+1
| | | | | | | (well, at least one that gcc doesn't complain about). This fixes -r, which rev. 1.16 broke. Submitted by: bde
* Silence warnings and compile with WARNS=2 on i386 and alpha.dd2001-05-282-12/+12
|
* Miscellaneous cleanups; sync to OpenBSD as much as feasible.dd2001-05-271-81/+68
| | | | | | | | | | | | Noteworthy changes include: * Use getopt(3). * Fix overflows in -b and -w options. * Use strlcpy(3) and snprintf(3) in favor of strcpy(3) and sprintf(3), respectively. Also check return values of the former two. * Fix lots of other gratuitous differences with OpenBSD. Obtained from: OpenBSD
* Prepare for mdoc(7)NG.ru2000-12-191-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Don't call printf with no format string.kris2000-07-101-1/+1
|
* Back out rev 1.11, about which bde had concerns, and instead implementsheldonh2000-01-062-66/+72
| | | | | | | | appropriate bounds-checking and typecasts based on our knowledge of the desired conversion format specifier. Simplify diagnostics and take care to print the correct conversion format specifier when %l is involved.
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Don't dump core for a known, documented bug.sheldonh1999-07-221-1/+21
| | | | | PR: 12611 Reviewed by: markm
* Improve printf(3) conversion specifier parsing so that silly formatssheldonh1999-07-222-19/+97
| | | | | | | | | | | aren't allowed and the right casts can be used for printf() statements. Document the conversion specifier limitations and the fact that arithmetic overflow causes a fatal error. PR: 12611 Reported by: Frode Vatvedt Fjeld <frodef@acm.org> Reviewed by: bde
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Correct an error in a manpage example, add -Wall -W to Makefile (nokris1999-05-133-8/+6
| | | | | | warnings given) and modify source to use arc4random() instead of random(). Reviewed by: ache
* Random data is no longer based on the time of day, rather the randomsteve1998-01-241-3/+4
| | | | | | | number device. Also clearly state that sequential data is the default. PR: 5553 Submitted by: Jonathan Hanna <pangolin@rogers.wave.ca>
* Mdoc'ify man page.charnier1997-11-032-102/+98
|
* Use err(3) instead of local redefinition. Add usage().charnier1997-07-151-35/+28
|
* Remove srandomdev fallback codeache1997-06-141-4/+3
|
* Use srandomdev() nowache1997-03-301-5/+10
| | | | Fix error with begin variable calculation
* Fix srandom arg type according to Lite2ache1997-03-111-1/+1
|
* Add ^ getpid() to make more random results for subsequent calling.ache1997-03-081-5/+6
| | | | | | Add proper type casting to random calls Should go into 2.2
* >Number: 917joerg1995-12-291-2/+2
| | | | | >Category: bin >Synopsis: -s option in jot is broken
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-273-0/+593
OpenPOWER on IntegriCloud