| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
'limited range of type' warnings about comparisons on 32-bit systems, and
allows 32-bit systems to compute the full range of primes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Prior to this commit, primes(6) relied solely on sieving with primes up
to 65537, with the effect that composite numbers which are the product
of two non-16-bit primes would be incorrectly identified as prime. For
example,
# primes 1099511627800 1099511627820
would output
1099511627803
1099511627807
1099511627813
when in fact only the first of those values is prime.
This commit adds strong pseudoprime tests to validate the candidates
which pass the initial sieving stage, using bases of 2, 3, 5, 7, 11,
13, 17, 19, and 23. Thanks to papers from C. Pomerance, J.L. Selfridge,
and S.S. Wagstaff, Jr.; G. Jaeschke; and Y. Jiang and Y. Deng, we know
that the smallest value which passes these tests is 3825123056546413051.
At present we do not know how many strong pseudoprime tests are required
to prove primality for values larger than 3825123056546413050, so we
force primes(6) to stop at that point.
Reviewed by: jmg
Relnotes: primes(6) now correctly enumerates primes up to
3825123056546413050
MFC after: 7 days
Sponsored by: EuroBSDCon devsummit
|
|
|
|
|
|
|
| |
longer in base
CR: D460
Approved by: bcr (mentor)
|
|
|
|
|
|
|
|
|
|
| |
variants. This allows usable file system images (i.e. those with both a
shell and an editor) to be created with only one copy of the curses library.
Exp-run: antoine
PR: 189842
Discussed with: bapt
Sponsored by: DARPA, AFRL
|
|
|
|
|
|
|
|
| |
those supplied by the base system.
PR: 191800
Submitted by: Andy Kosela
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
(src/games/fortune/datfiles/fortunes2 1.7).
PR: 188714
Submitted by: ksmakoto dd.iij4u.or.jp
Reviewed by: Wolfram Alpha
MFC after: 3 days
|
|
|
|
|
| |
PR: 191174
Submitted by: Franco Fichtner <franco@lastsummer.de>
|
|
|
|
| |
from the latter.
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change adds tests/ directories in the source tree to create various
subdirectories in /usr/tests/ and to install placeholder Kyuafiles for
them.
the relevant hierarchies are: cddl, etc, games, gnu and secure.
The reason for this is to simplify the addition of new test programs for
utilities or libraries under any of these directories. Doing so on a
case by case basis is unnecessary and is quite an obscure process.
|
|
|
|
|
|
| |
and finish the job. ncurses is now the only Makefile in the tree that
uses it since it wasn't a simple mechanical change, and will be
addressed in a future commit.
|
|
|
|
| |
Approved by: gabor
|
| |
|
|
|
|
|
|
|
| |
44599 and turned less than useful ever since fortunes-o.dat got removed.
Running "fortunes -a" is enough to always see it for fortunes-o.dat.
Since we compile with debugging enabled, the removal is easily compensated
for by running "fortune -D -D".
|
|
|
|
|
|
|
| |
but don't define tpath everytime we set was_malloc to true. We end
up calling free() multiple times for the same pointer, resulting in:
<jemalloc>: jemalloc_arena.c:355: Failed assertion: ...
When we set path to offensive, we need to set tpath as well.
|
|
|
|
|
| |
Reviewed by: bapt
Approved by: re (hrs)
|
|
|
|
|
|
|
|
| |
ports tree in r313427.
PR: 177012
Submitted by: Kevin Zheng <kevinz5000@gmail.com>
Approved by: bcr (mentor)
|
|
|
|
|
|
|
|
|
|
|
| |
belong in this file is not a useful exercise or conducive to producing a
high quality advanced operating system.
While here, simplify the make rules to autocompute BLDS and FILES from a
single DB variable.
Approved by: core
MFC after: 1 week
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The words "old than" seem to be quoted as "older than" by some sources,
so use the more likely and grammatically correct text.
PR: docs/173868
Submitted by: Chris Petrik <c.petrik.sosa@gmail.com>
Approved by: cperciva
MFC after: 1 week
|
| |
|
|
|
|
|
|
| |
*not* a boolean).
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
| |
of a compile time option.
While here, don't differ based on the existence of LOCK_EX
which doesn't seem to have ever made a difference on FreeBSD.
Approved by: cperciva (from discussion)
MFC after: 3 days
|
|
|
|
|
| |
Approved by: cperciva (from discussion)
MFC after: 3 days
|
|
|
|
|
|
| |
Submitted by: many
Approved by: cperciva (implicit)
MFC after: 3 days
|
|
|
|
|
|
|
|
|
| |
warning.
PR: ports/172566
Submitted by: Erik Cederstrand <erik@cederstrand.dk>
Approved by: cperciva
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
| |
caesar isn't installed setuid.
For the archaeologists:
it seems this call originally came from NetBSD PR 5970 and 5945
PR: 172566
Submitted by: Erik Cederstrand <erik@cederstrand.dk>
Approved by: cperciva
MFC after: 3 days
|
|
|
|
| |
Approved by: cperciva
|
|
|
|
|
| |
Approved by: cperciva
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
Add a tip about clearing the screen.
Make things more consistent by removing quotes around 'make search'
Approved by: cperciva
MFC after: 3 days
|
| |
|
|
|
|
|
|
|
|
|
| |
newbie-friendly.
Requested by: jhb, gcooper
Approved by: cperciva (implicit)
MFC after: 3 days
X-MFC-With: r235209
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
|
|
|
| |
Disussed with: gavin
No objection from: doc
Approved by: joel
MFC after: 3 days
|
|
|
|
|
|
| |
PR: bin/164570
Submitted by: Klaus Aehlig
MFC after: 1 week
|
|
|
|
|
|
| |
No changes in resulting object file. Moved user-visible symbols into
comment table, so you can see all chars, not just the ones matching your
(fallback) locale.
|
|
|
|
|
|
|
|
|
|
| |
The index() and rindex() functions were marked LEGACY in the 2001
revision of POSIX and were subsequently removed from the 2008 revision.
The strchr() and strrchr() functions are part of the C standard.
This makes the source code a lot more consistent, as most of these C
files also call into other str*() routines. In fact, about a dozen
already perform strchr() calls.
|
|
|
|
|
|
|
|
|
|
|
| |
Francois de La Rochefoucauld introduced in r228909 [1],[2]
2. Change c-cedilla introduced in the same commit to ASCII c since
non-UTF-8 terminals will choke on the non-ASCII text. [2],[3]
Pointed out by: bf [1]
Reviewed by: French-speakers on #bsdcode [2]
Requested by: uqs [3]
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fortunes, but occasionally remove them from the other 2 files when
they are not offensive, or not murphy'ish enough.
Where the version in fortunes had better attribution and/or formatting,
copy it over.
2. Fix a few typos
3. Use the full name of François De La Rochefoucauld, fix one of his
quotes, and remove the duplicate of it.
|
|
|
|
|
|
| |
a literal.
MFC after: 1 week
|
|
|
|
|
| |
This allows us to detect unused functions and variables and allows the
compiler to do a better job at optimisation.
|
|
|
|
|
|
|
|
| |
Our copy was a bastardization of the "older" (probably original?) and
shorter version of the poem; and the "newer" version that is better
known, and arguably more popular. Standardize on the latter.
Cf. http://www.bartleby.com/73/2099.html
|
| |
|
|
|
|
| |
copyright section and will not require UTF-8 for fortune(6).
|
|
|
|
|
|
|
| |
While here, drop words in the spelling files that are no longer used
anywhere.
Speling errors found via: codespell from Lucas De Marchi
|
| |
|
|
|
|
|
|
|
|
|
|
| |
infrastructure to use it. make distributeworld can now be used without
preparing its environment first and installs games into its distribution
using the regular make distribute logic instead of post-processing with
a script.
Also add two new targets, packageworld and packagekernel, that tar up the
results of distributeworld and distributekernel (also new), respectively.
|
|
|
|
|
| |
PR: bin/137702
MFC after: 3 days
|
|
|
|
| |
Coverity Prevent: CID 4862, 8771, 8772, 8773
|
|
|
|
|
|
| |
for the source code.
Discussed with: core
|