summaryrefslogtreecommitdiffstats
path: root/games/factor
Commit message (Collapse)AuthorAgeFilesLines
* In games/factor/factor.c, fix a warning about a format string not beingdim2011-12-161-1/+1
| | | | | | a literal. MFC after: 1 week
* factor(6): Check return values of BN_* functions.uqs2010-12-201-4/+8
| | | | Coverity Prevent: CID 4862, 8771, 8772, 8773
* Drop advertising clause in manpages. It was done a long time agouqs2010-12-061-5/+1
| | | | | | for the source code. Discussed with: core
* Fix a performance bug in factor(6).fanf2009-11-261-21/+27
| | | | | | | | | | | | | | | | Check if large factor is prime before applying Pollard's algorithm; fixes "factor 2147483647111311". Increase base if p-1 algorithm reaches 1; fixes "factor 99999999999991". Testcases from David A Bagley <bagleyd@tux.org>. Fixes from Joseph Myers <jsm@NetBSD.org>. Problem rediscovered by an attempt to factor my phone number. A few other incidental fixes: correct a couple of factually incorrect comments; use ident string macros; move from 4-clause to 3-clause BSD licence (University of California copyright). Obtained from: NetBSD
* Reimplementation of world/kernel build options. For details, see:ru2006-03-171-1/+3
| | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
* Enforce style.Makefile(5).trhodes2005-04-221-1/+1
| | | | Glanced at by: ru (some time ago).
* NOCRYPT -> NO_CRYPTru2004-12-211-1/+1
|
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).ru2004-02-051-2/+2
|
* Don't check for the existance of src/crypto/ for building items thatmarkm2003-07-241-1/+1
| | | | | may contain crypto. The days of ITAR paranoia are over, and the simple macro tests that remain are sufficient.
* add a NOCRYPT check alongside the NO_OPENSSL check.des2003-05-191-1/+1
| | | | Approved by: re (scottl)
* mdoc(7) police: sweep.ru2002-11-291-18/+14
|
* Mdocify and fix a load of errors dating back to the dawn of time.fanf2002-10-091-58/+65
| | | | | | Don't mention hard limits for factor(6) since it now has bignum support. Obtained from: NetBSD (mdoc only -- their man page is still mostly wrong)
* Factorize bignums using the Pollard Rho algorithm. The code comesfanf2002-10-092-22/+197
| | | | | | | | | | | from NetBSD, altered to retain the FreeBSD -h feature and various stylistic improvements and avoid regressions. In the absence of OpenSSL (and therefore bignums) the old code is used. PR: 43831 Reviewed by: kris, markm, obrien Obtained from: NetBSD MFC after: 2 weeks
* Style fixes to: #include ordering; use const and static; ANSI functions;fanf2002-10-091-37/+21
| | | | | | | | | various usage synopses; bogus and/or unnecessary casting; exit values; use LINE_MAX instead of magic numbers; declare extern variables in a header; add $FreeBSD$ where missing. Reviewed by: markm, obrien Obtained from: NetBSD | fanf
* Remove __Pimp2002-02-181-2/+2
| | | | | | Remove __STDC__ (which means we now use stdarg rather than vararg) Remove register Remove main prototype
* Correct a typo: numtiple -> multiple.roam2001-10-241-1/+1
| | | | | | PR: 31474 Submitted by: Eric Yu <ericyu@mail2000.com.tw> MFC after: 1 week
* Remove whitespace at EOL.dd2001-07-151-2/+2
|
* - Backout botched attempt to intoduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for games/ to 6.ru2001-03-201-1/+1
|
* copyright/sccsid/rcsid cleanup.billf1999-11-301-1/+5
|
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Minor adjustments to prior commits:imp1999-01-071-5/+7
| | | | | | | | o break at end of sentences o add $id$ o change date Noticed by: the ever watchful bde
* Fix printf errors in the hflag case.imp1999-01-062-11/+11
| | | | | | | Fix old bug with bogus casing to (long). Document the true limits of factor on 64-bit architectures. Submitted by: bde
* added -h flag to allow for hexidecimal output.imp1999-01-062-10/+20
| | | | | | | | | | Use '0' for base rather than 10 to allow for more flexible input bases. Inspired by changes in PR 7402, but mostly redone by me to get past bde filter. Submitted by: Timo J. Rinne PR: 7402
* Wargh! Who went and changed all the getopt() comparisons from -1 tojkh1998-03-011-1/+1
| | | | | | | EOF? The getopt(3) manpage clearly states that the return value is *-1*, not EOF! Besides, getopt(3) isn't reading from a file. :) Noticed-while: merging to 2.2 (where this is correct).
* Remove so-called revoke, this game not installed sguidache1997-09-011-4/+0
|
* Change games from setuid games to setgid games.eivind1997-09-011-0/+4
| | | | | Reviewed by: maybe@yes.no Obtained from: OpenBSD (mostly deraadt@openbsd.org)
* factor.6, not factor.0 (crept in from 4.4Lite2)peter1997-03-121-1/+1
|
* Merge from Lite2 (oops, nearly forgot these ones)peter1997-03-111-1/+2
|
* This commit was generated by cvs2svn to compensate for changes in r23704,peter1997-03-111-1/+1
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import some CSRG 4.4BSD-Lite2 gamespeter1997-03-112-2/+3
| |
* | Remove trailing whitespace.rgrimes1995-05-301-1/+1
|/
* Bring in the 4.4 Lite games directory, modulo man page changes and segregationjkh1994-09-043-0/+327
of the x11 based games. I'm not going to tag the originals with bsd_44_lite and do this in two stages since it's just not worth it for this collection, and I've got directory renames to deal with that way. Bleah. Submitted by: jkh
OpenPOWER on IntegriCloud