History log of /freebsd-11.0-release/usr.bin/jot/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
303975 11-Aug-2016 gjb

Copy stable/11@r303970 to releng/11.0 as part of the 11.0-RELEASE
cycle.

Prune svn:mergeinfo from the new branch, and rename it to RC1.

Update __FreeBSD_version.

Use the quarterly branch for the default FreeBSD.conf pkg(8) repo and
the dvd1.iso packages population.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

302408 08-Jul-2016 gjb

Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, as nothing has been merged
here.

Additional commits post-branch will follow.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


299094 04-May-2016 ngie

Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed
after r298107

Summary of changes:

- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that
namespacing is kept with FILES appropriately, and that this shouldn't need
to be repeated if the namespace changes -- only the definition of PACKAGE
needs to be changed
- Allow PACKAGE to be overridden by callers instead of forcing it to always be
`tests`. In the event we get to the point where things can be split up
enough in the base system, it would make more sense to group the tests
with the blocks they're a part of, e.g. byacc with byacc-tests, etc
- Remove PACKAGE definitions where possible, i.e. where FILES wasn't used
previously.
- Remove unnecessary TESTSPACKAGE definitions; this has been elided into
bsd.tests.mk
- Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES;
${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk.
- Fix installation of files under data/ subdirectories in lib/libc/tests/hash
and lib/libc/tests/net/getaddrinfo
- Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup)

Document the proposed changes in share/examples/tests/tests/... via examples
so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of
replacing FILES. share/mk/bsd.README didn't seem like the appropriate method
of communicating that info.

MFC after: never probably
X-MFC with: r298107
PR: 209114
Relnotes: yes
Tested with: buildworld, installworld, checkworld; buildworld, packageworld
Sponsored by: EMC / Isilon Storage Division


298107 16-Apr-2016 gjb

Merge the projects/release-pkg branch to head.

This allows packaging the base system with pkg(8), including
but not limited to providing the ability to provide upstream
binary update possibilities for non-tier-1 architectures.

This merge is a requirement of the 11.0-RELEASE, and as such,
thank you to everyone that has tested the project branch.

Documentation in build(7) etc. is still somewhat sparse, but
updates to those parts will follow.

Sponsored by: The FreeBSD Foundation


296587 09-Mar-2016 bdrewery

DIRDEPS_BUILD: Connect MK_TESTS.

Sponsored by: EMC / Isilon Storage Division


289172 12-Oct-2015 ngie

Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and
netbsd-tests.test.mk (r289151)

- Eliminate explicit OBJTOP/SRCTOP setting
- Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk
- Remove unnecessary TESTSDIR setting
- Use SRCTOP where possible for clarity

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Divison


284345 13-Jun-2015 sjg

Add META_MODE support.

Off by default, build behaves normally.
WITH_META_MODE we get auto objdir creation, the ability to
start build from anywhere in the tree.

Still need to add real targets under targets/ to build packages.

Differential Revision: D2796
Reviewed by: brooks imp


281209 07-Apr-2015 allanjude

Fix missing AUTHOR section for jot(1), rs(1), and lam(1)

PR: 196786
Differential Revision: https://reviews.freebsd.org/D2115
Submitted by: John A. Kunze (Author)
Approved by: wblock (mentor)
MFC after: 1 week
Sponsored by: ScaleEngine Inc.


265420 06-May-2014 imp

Use src.opts.mk in preference to bsd.own.mk except where we need stuff
from the latter.


263227 16-Mar-2014 jmmv

Migrate most of tools/regression/usr.bin/ to the new tests layout.

I'm starting with the easy cases. The leftovers need to be looked at a
bit more closely.

Note that this change _does_ modify the code of the old tests. This is
required in order to allow the code to locate the data files in the
source directory instead of the current directory, because Kyua
automatically changes the latter to a temporary directory.

Also note that at least one test is known to be broken here. Actually,
the test is not really broken: it's marked as a TODO but unfortunately
Kyua's TAP parser currently does not understand that. Will have to be
fixed separately.


233456 25-Mar-2012 joel

Remove superfluous paragraph macro.


216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


208728 02-Jun-2010 brian

Fix stuttering sequences and reverse ranges

PR: 123635
Submitted by: Ulrich Spörlein, uqs at spoerlein dot net


204104 20-Feb-2010 delphij

Add a reference to newly added seq(1) command.

Submitted by: jilles
MFC after: 3 months


200462 13-Dec-2009 delphij

Revert most part of 200420 as requested, as more review and polish is
needed.


200420 11-Dec-2009 delphij

Remove unneeded header includes from usr.bin/ except contributed code.

Tested with: make universe


195443 08-Jul-2009 brian

Fix some uninitialise variables.

PR: 136383
Submitted by: Ulrich Spoerlein - uqs at spoerlein dot net
Approved by: re (kib)
MFC after: 3 weeks


165029 09-Dec-2006 delphij

Use explicit braces to avoid ambiguous else.


164852 03-Dec-2006 dds

Prevent buffer overflow when forcibly terminating an escape character.

Obtained from: OpenBSD
Note: In the case of a full buffer the OpenBSD implementation will
leave in the format string an invalid escape sequence. This appears
to be harmless with our C library, but according to C99 this can
cause undefined behavior.

MFC after: 2 weeks


164851 03-Dec-2006 dds

Correct handling of format strings with escaped % specifications.

Note: It would be nice to be able to implement getformat() using
fmtcheck(3), but fmtcheck does not distinguish between signed and
unsigned types, a facility jot needs to perform range checks on its
output.

Submitted by: Per Kristian Hove
MFC after: 2 weeks


164046 06-Nov-2006 dds

Style facelift.
- Reduce the number of global variables
- Make global objects static
- Use bool consistently
- Sort getopt arguments and their processing
- Add function comments
- Change notlast != 0 into !last


164043 06-Nov-2006 dds

Use a more sensible default of 1 or -1 when only the start and
end values are specified.

PR: bin/68981
Submitted by: Stefan `Sec` Zehl
MFC after: 2 weeks


164035 06-Nov-2006 dds

Do What I Mean when the user asks for random integers or characters.
Up to now jot would fail to generate the last character in the range
or skew the integer distribution in a way that would generate the numbers
in the range's limits with half the probability of the rest.

This modification fixes the program, rather than documenting the
strange behavior, as suggested in docs/54879.

Also, correctly specify the range of random(3).

PR: docs/54879
MFC after: 2 weeks


164028 06-Nov-2006 dds

Avoid negative array indices: an empty string can also be used
to specify a default value.


164027 06-Nov-2006 dds

See also arc4random

PR: docs/54879
MFC after: 2 weeks


164026 06-Nov-2006 dds

Restore jot's ability to use a seed for producing a deterministic
sequence of random numbers.
This functionality was lost in revision 1.9 when the random number
generator was switched to arc4random.

PR: docs/54879
MFC after: 2 weeks


164025 06-Nov-2006 dds

Replace obscure aliases through pointers with plain variables.

MFC after: 2 weeks


164023 06-Nov-2006 dds

Merge code in common cases.

Verified by: New regression tests in tools/regression/usr.bin/jot
MFC after: 2 weeks


164021 06-Nov-2006 dds

Replace opaque numeric bit flag values with #defined identifiers.
While there, add some missing FALLTHROUGH comments.

Verified with: cmp(1) on the executable
MFC after: 2 weeks


163515 20-Oct-2006 cperciva

Document that jot(1), rs(1), and lam(1) first appeared in 4.2BSD.

MFC after: 1 month


140420 18-Jan-2005 ru

Sort sections.


140368 17-Jan-2005 ru

Added the EXIT STATUS section where appropriate.


132240 16-Jul-2004 tjr

Avoid passing negative values to <ctype.h> functions on machines with
signed chars.


131491 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


118310 01-Aug-2003 das

Fix jot so that 'jot -r -w %d 1 1 4' never prints 4. Previously, it
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>


99457 05-Jul-2002 mike

Don't depend on pollution in <limits.h> for the definition of
<stdint.h> macros.


99342 03-Jul-2002 ru

mdoc(7) police: added missing markup bits, lowercased argument names.


99112 30-Jun-2002 obrien

Consistently use FBSDID


98255 15-Jun-2002 jmallett

Remove local prototype for main().


98254 15-Jun-2002 jmallett

Protoize. Remove un-needed cast to char in switch of getopt(3)'s return value.
FBSDID.


95124 20-Apr-2002 charnier

Use `The .Nm utility'


92920 22-Mar-2002 imp

remove __P


90415 08-Feb-2002 markm

Remove leaf node WARNS?=2 (that mainly I added). This should
help the GCC3 transition and CURRENT in general.


86197 08-Nov-2001 wollman

Actually, arc4random() returns a uint32_t, not an int. Use the correct
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.


86196 08-Nov-2001 gallatin

fix jot -r on 64-bit platforms by teaching it that arc4random outputs
an int, not a long

Submitted by: Paul Herman <pherman@frenchfries.net>
PR#: alpha/31859


81687 15-Aug-2001 ru

mdoc(7) police: utilize the new .Ex macro.


79755 15-Jul-2001 dd

Remove whitespace at EOL.


77441 29-May-2001 dd

Replace the cast I removed in rev. 1.16 with a slightly less evil one
(well, at least one that gcc doesn't complain about). This fixes -r,
which rev. 1.16 broke.

Submitted by: bde


77287 28-May-2001 dd

Silence warnings and compile with WARNS=2 on i386 and alpha.


77276 27-May-2001 dd

Miscellaneous cleanups; sync to OpenBSD as much as feasible.
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


70197 19-Dec-2000 ru

Prepare for mdoc(7)NG.


68963 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


62871 10-Jul-2000 kris

Don't call printf with no format string.


55515 06-Jan-2000 sheldonh

Back out rev 1.11, about which bde had concerns, and instead implement
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.


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48997 22-Jul-1999 sheldonh

Don't dump core for a known, documented bug.

PR: 12611
Reviewed by: markm


48995 22-Jul-1999 sheldonh

Improve printf(3) conversion specifier parsing so that silly formats
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


48792 12-Jul-1999 nik

Add $Id$, to make it simpler for members of the translation teams to
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


47107 13-May-1999 kris

Correct an error in a manpage example, add -Wall -W to Makefile (no
warnings given) and modify source to use arc4random() instead of random().

Reviewed by: ache


32728 24-Jan-1998 steve

Random data is no longer based on the time of day, rather the random
number device. Also clearly state that sequential data is the default.

PR: 5553
Submitted by: Jonathan Hanna <pangolin@rogers.wave.ca>


30908 03-Nov-1997 charnier

Mdoc'ify man page.


27423 15-Jul-1997 charnier

Use err(3) instead of local redefinition. Add usage().


26626 14-Jun-1997 ache

Remove srandomdev fallback code


24419 30-Mar-1997 ache

Use srandomdev() now
Fix error with begin variable calculation


23698 11-Mar-1997 ache

Fix srandom arg type according to Lite2


23511 08-Mar-1997 ache

Add ^ getpid() to make more random results for subsequent calling.
Add proper type casting to random calls

Should go into 2.2


13101 29-Dec-1995 joerg

>Number: 917
>Category: bin
>Synopsis: -s option in jot is broken


1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.