#
0b8224d1 |
|
24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove copyright strings ifdef'd out We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require). Sponsored by: Netflix
|
#
bdcbfde3 |
|
23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
usr.bin: Remove ancient SCCS tags. Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
|
#
1d386b48 |
|
16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
814f2cd8 |
|
15-Apr-2019 |
Bryan Drewery <bdrewery@FreeBSD.org> |
Fix 'jot -r 0 start end' to work. This allows an endless stream of random data within the given bounds. It already worked if a seed was provided as the 4th argument but not if one was left out. In collaboration with: jhb MFC after: 2 weeks Relnotes: yes
|
#
377421df |
|
04-Nov-2018 |
Mariusz Zaborski <oshogbo@FreeBSD.org> |
capsicum: use a new capsicum helpers in tools Use caph_{rights,ioctls,fcntls}_limit to simplify the code.
|
#
7672a014 |
|
19-Jun-2018 |
Mariusz Zaborski <oshogbo@FreeBSD.org> |
Convert `cap_enter() < 0 && errno != ENOSYS` to `caph_enter() < 0`. No functional change intended.
|
#
8a16b7a1 |
|
20-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
General further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point.
|
#
fbbd9655 |
|
28-Feb-2017 |
Warner Losh <imp@FreeBSD.org> |
Renumber copyright clause 4 Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96
|
#
1532e656 |
|
19-Oct-2016 |
Conrad Meyer <cem@FreeBSD.org> |
Capsicum support for jot(1) Limit descriptors and enter capability mode in jot(1). Submitted by: brueffer (earlier version) Reviewed by: emaste, jonathan (earlier version) Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D1345
|
#
da52b4ca |
|
11-Dec-2010 |
Joel Dahl <joel@FreeBSD.org> |
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
|
#
a7d5f7eb |
|
19-Oct-2010 |
Jamie Gritton <jamie@FreeBSD.org> |
A new jail(8) with a configuration file, to replace the work currently done by /etc/rc.d/jail.
|
#
9c24af3d |
|
02-Jun-2010 |
Brian Somers <brian@FreeBSD.org> |
Fix stuttering sequences and reverse ranges PR: 123635 Submitted by: Ulrich Spörlein, uqs at spoerlein dot net
|
#
fe0506d7 |
|
09-Mar-2010 |
Marcel Moolenaar <marcel@FreeBSD.org> |
Create the altix project branch. The altix project will add support for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting is a two-module system, consisting of a base compute module and a CPU expansion module. SGI's NUMAFlex architecture can be an excellent platform to test CPU affinity and NUMA-aware features in FreeBSD.
|
#
821df508 |
|
12-Dec-2009 |
Xin LI <delphij@FreeBSD.org> |
Revert most part of 200420 as requested, as more review and polish is needed.
|
#
6f2d3221 |
|
11-Dec-2009 |
Xin LI <delphij@FreeBSD.org> |
Remove unneeded header includes from usr.bin/ except contributed code. Tested with: make universe
|
#
58a654f6 |
|
08-Jul-2009 |
Brian Somers <brian@FreeBSD.org> |
Fix some uninitialise variables. PR: 136383 Submitted by: Ulrich Spoerlein - uqs at spoerlein dot net Approved by: re (kib) MFC after: 3 weeks
|
#
d7f03759 |
|
19-Oct-2008 |
Ulf Lilleengen <lulf@FreeBSD.org> |
- Import the HEAD csup code which is the basis for the cvsmode work.
|
#
82417e9f |
|
09-Dec-2006 |
Xin LI <delphij@FreeBSD.org> |
Use explicit braces to avoid ambiguous else.
|
#
f88b45d7 |
|
03-Dec-2006 |
Diomidis Spinellis <dds@FreeBSD.org> |
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
|
#
34785a9f |
|
03-Dec-2006 |
Diomidis Spinellis <dds@FreeBSD.org> |
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
|
#
3241f274 |
|
06-Nov-2006 |
Diomidis Spinellis <dds@FreeBSD.org> |
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
|
#
7d71f06c |
|
06-Nov-2006 |
Diomidis Spinellis <dds@FreeBSD.org> |
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
|
#
d129c68a |
|
06-Nov-2006 |
Diomidis Spinellis <dds@FreeBSD.org> |
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
|
#
fee14f30 |
|
06-Nov-2006 |
Diomidis Spinellis <dds@FreeBSD.org> |
Avoid negative array indices: an empty string can also be used to specify a default value.
|
#
a26a6612 |
|
06-Nov-2006 |
Diomidis Spinellis <dds@FreeBSD.org> |
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
|
#
55f965ae |
|
06-Nov-2006 |
Diomidis Spinellis <dds@FreeBSD.org> |
Replace obscure aliases through pointers with plain variables. MFC after: 2 weeks
|
#
d737ec1a |
|
06-Nov-2006 |
Diomidis Spinellis <dds@FreeBSD.org> |
Merge code in common cases. Verified by: New regression tests in tools/regression/usr.bin/jot MFC after: 2 weeks
|
#
afe53a49 |
|
06-Nov-2006 |
Diomidis Spinellis <dds@FreeBSD.org> |
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
|
#
911a3ff9 |
|
15-Jul-2004 |
Tim J. Robbins <tjr@FreeBSD.org> |
Avoid passing negative values to <ctype.h> functions on machines with signed chars.
|
#
bbc7056b |
|
01-Aug-2003 |
David Schultz <das@FreeBSD.org> |
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>
|
#
0ad736e6 |
|
05-Jul-2002 |
Mike Barcroft <mike@FreeBSD.org> |
Don't depend on pollution in <limits.h> for the definition of <stdint.h> macros.
|
#
e026a48c |
|
29-Jun-2002 |
David E. O'Brien <obrien@FreeBSD.org> |
Consistently use FBSDID
|
#
9ed3737f |
|
15-Jun-2002 |
Juli Mallett <jmallett@FreeBSD.org> |
Remove local prototype for main().
|
#
cf0def93 |
|
15-Jun-2002 |
Juli Mallett <jmallett@FreeBSD.org> |
Protoize. Remove un-needed cast to char in switch of getopt(3)'s return value. FBSDID.
|
#
f1bb2cd2 |
|
21-Mar-2002 |
Warner Losh <imp@FreeBSD.org> |
remove __P
|
#
07321a18 |
|
08-Nov-2001 |
Garrett Wollman <wollman@FreeBSD.org> |
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.
|
#
f776d8e8 |
|
08-Nov-2001 |
Andrew Gallatin <gallatin@FreeBSD.org> |
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
|
#
f878e83f |
|
29-May-2001 |
Dima Dorfman <dd@FreeBSD.org> |
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
|
#
edd7b267 |
|
27-May-2001 |
Dima Dorfman <dd@FreeBSD.org> |
Silence warnings and compile with WARNS=2 on i386 and alpha.
|
#
15ba0427 |
|
27-May-2001 |
Dima Dorfman <dd@FreeBSD.org> |
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
|
#
612740bd |
|
10-Jul-2000 |
Kris Kennaway <kris@FreeBSD.org> |
Don't call printf with no format string.
|
#
5249bd84 |
|
06-Jan-2000 |
Sheldon Hearn <sheldonh@FreeBSD.org> |
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.
|
#
c3aac50f |
|
27-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|
#
d8d41a09 |
|
22-Jul-1999 |
Sheldon Hearn <sheldonh@FreeBSD.org> |
Don't dump core for a known, documented bug. PR: 12611 Reviewed by: markm
|
#
8db8a33b |
|
22-Jul-1999 |
Sheldon Hearn <sheldonh@FreeBSD.org> |
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
|
#
4b9cb490 |
|
12-May-1999 |
Kris Kennaway <kris@FreeBSD.org> |
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
|
#
d078aa13 |
|
03-Nov-1997 |
Philippe Charnier <charnier@FreeBSD.org> |
Mdoc'ify man page.
|
#
7bd7ad50 |
|
15-Jul-1997 |
Philippe Charnier <charnier@FreeBSD.org> |
Use err(3) instead of local redefinition. Add usage().
|
#
687ee69a |
|
13-Jun-1997 |
Andrey A. Chernov <ache@FreeBSD.org> |
Remove srandomdev fallback code
|
#
5790155e |
|
30-Mar-1997 |
Andrey A. Chernov <ache@FreeBSD.org> |
Use srandomdev() now Fix error with begin variable calculation
|
#
28c4ca5c |
|
11-Mar-1997 |
Andrey A. Chernov <ache@FreeBSD.org> |
Fix srandom arg type according to Lite2
|
#
9d288406 |
|
08-Mar-1997 |
Andrey A. Chernov <ache@FreeBSD.org> |
Add ^ getpid() to make more random results for subsequent calling. Add proper type casting to random calls Should go into 2.2
|
#
e29b080f |
|
28-Dec-1995 |
Joerg Wunsch <joerg@FreeBSD.org> |
>Number: 917 >Category: bin >Synopsis: -s option in jot is broken
|
#
9b50d902 |
|
26-May-1994 |
Rodney W. Grimes <rgrimes@FreeBSD.org> |
BSD 4.4 Lite Usr.bin Sources
|