Commit Graph

2039 Commits

Author SHA1 Message Date
pgoyette a9c53af5cf Report the users score _after_ the game has ended and the screen has
been restored to pre-game state.  Otherwise, the user gets a message
that their score did (or more likely, did not) improve over their
previous score, yet the user has no indication of what the current
score actually was!
2019-03-19 00:11:34 +00:00
sevan 9c44dd6276 Shorter than a season - The Soul Of A New Machine 2019-02-24 12:34:00 +00:00
christos 7a986b99ab add fallthrough 2019-02-18 19:35:44 +00:00
mrg a5ca97c6e5 apply -Wno-error=implicit-fallthrough on files that have fallthru
comments but are missed by the current checker.
2019-02-04 09:51:47 +00:00
mrg 9c07d7ddd1 - done() can return in wizard mode. don't NOTREACHED'd it
but break instead.
2019-02-04 03:33:15 +00:00
mrg c543d06770 - 'cango' is used beyond a bool type. make it an int.
- add a couple of fallthru comments.
2019-02-04 03:29:41 +00:00
mrg 37649e4074 - enlarge buffer to avoid snprintf() truncation 2019-02-03 10:48:46 +00:00
mrg 770680b518 - avoid multipling a boolean value, use &&. 2019-02-03 10:45:58 +00:00
mrg fbffadb9f8 - add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
  this case, and thus can't be marked __dead easily
2019-02-03 03:19:25 +00:00
sevan f555b79219 Add Alfred North Whitehead quote. 2019-01-21 16:58:47 +00:00
jakllsch 6835f27c8d Incite the "Purple Cow" wrath of Gelett Burgess upon ourselves. 2019-01-13 17:55:03 +00:00
pgoyette 3b35ba0696 More appropriate line-wrapping for previous. 2018-12-15 22:00:16 +00:00
sevan 92d227ffa8 Some advice from Adam Savage / Alex Jason
https://www.reddit.com/r/mythbusters/comments/3wgqgv/the_origin_of_the_remember_kids_the_only/
2018-12-15 17:11:10 +00:00
sevan a2bcc5e795 Advice from Bob Morris
https://www.ieee-security.org/Cipher/ConfReports/conf-rep-Crypto95.html
2018-10-03 00:13:16 +00:00
sevan cf2901fc1a I've been on an Ed Wood binge. 2018-09-12 22:10:07 +00:00
maxv 782aa42924 replace ipf->npf 2018-09-02 16:08:12 +00:00
dholland 6f6568e389 typo 2018-08-25 19:38:37 +00:00
maya cdbb5491cb Try freebsd's pkg-info as well
From John Hein, via Nikolai Lifanov. PR misc/52684
2018-08-16 13:31:04 +00:00
mrg 240adcf578 fix the previous. the code was right, just badly formatted before.
should fix infinite loops reported in some cases.
2018-06-24 12:55:36 +00:00
kamil 1c426e1841 Restore the MKGROFF=bo MKCXX=yes build
Mark the documentation in dc(1), gprof(1), rogue(6) and fsck_ffs(8) with
the .roff flag in SUBDIR.

Sponsored by <The NetBSD Foundation>
2018-06-11 14:18:16 +00:00
christos 2357fc5dd5 use SUBDIR.roff suggested by uwe@ 2018-06-10 17:55:11 +00:00
snj 9e98533ad3 make fortune fatter 2018-05-08 05:24:22 +00:00
christos bf7113376a Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host
2018-05-01 19:59:42 +00:00
eadler 31ce73e04a wtf(6): use character classes
ok pgoyette@ silence dholland@
2018-03-07 08:25:43 +00:00
eadler 7c4228cc00 wtf(6): quote "$f"
ok pgoyette@ silence dholland@
2018-03-07 08:24:16 +00:00
eadler 181c044ada [fish] don't allow users to request cards they have made books for
While here, don't re-renter pro mode

PR bin/52973

ok maya@ dh@
2018-03-05 04:59:54 +00:00
dholland 32cded6cc9 Typos. 2018-02-08 09:05:16 +00:00
christos 64a90adb69 fix for OpenSSL-1.1 2018-02-06 16:53:27 +00:00
mrg 31c4a0256f fix issues found by GCC 6.4:
battlestar was missing some {} in its insane printf()+puts() usage.
this is a literal code sequence i found:

	printf("The blast catches ");
	printf("the goddess in the ");
	printf("stomach, knocking ");
	puts("her to the ground.");
	printf("She writhes in the ");
	printf("dirt as the agony of ");
	puts("death taunts her.");
	puts("She has stopped moving.");

no lines inserted or removed.

tetris' checkscores() had wrong and missing {} usage.
2018-02-04 08:48:05 +00:00
christos 2429b427fa PR/52976: Eitan Adler: handle larger primes
Using results from
    J. Sorenson and J. Webster, Strong pseudoprimes to twelve prime
    bases, Math. Comp. 86(304):985-1003, 2017.
teach primes(6) to enumerate primes up to 2^64 - 1.  Until Sorenson
and Webster's paper, we did not know how many strong speudoprime tests
were required when testing alleged primes between 3825123056546413051
and 2^64 - 1.

Adapted from: FreeBSD
2018-02-03 15:40:29 +00:00
pgoyette 0a18c53300 Don't skip the superfluous "is" argument if it's not superfluous!
This allows us to use `wtf is` and get information for the acronym "is"
and produces the same output as `wtf is is` withough requiring the extra
typing by the user.
2018-01-17 03:03:59 +00:00
pgoyette fd80b85342 Neither bcd(6) nor morse(6) produce output containing slashes, and the
-d (decode) option works just fine with dashes.  :)
2018-01-16 06:43:53 +00:00
maya a3e52c510e Add _, from Eitan Adler in PR bin/52897 2018-01-16 06:20:24 +00:00
mlelstv 600397bd19 move offensive quotes per board@ 2017-12-13 21:11:27 +00:00
dholland d5efe6ddb1 attributions are supposed to be indented. 2017-12-06 17:54:58 +00:00
kamil 06124d1060 Correct code flow of a quote translation (by Tom Ivar Helbekkmo) 2017-12-06 17:41:15 +00:00
pgoyette b637bb2dc6 Fix typos, thanks to Tom Ivar Helbekkmo 2017-12-06 08:38:33 +00:00
kamil 17be8c5c9c Add new fortune entry with a quote from Jozef Pilsudski
This quote is a longer form of "the dogs bark, but the caravan goes on"
and compares Poles and Lithuanians (historical meanings used from the time
of country union of both nations).

Today is the 150th birthday anniversary of Jozef Pilsudski (1867-1935).
2017-12-05 22:51:59 +00:00
christos b4c11f4845 revert removals while there is an active discussion on what to do. 2017-11-19 01:31:53 +00:00
maya 655cfa70ec Remove a few offensive quotes, put in as many new quotes.
PR bin/52735
2017-11-18 20:48:50 +00:00
jnemeth 3cfc2a4194 add quote about libraries offending everyone 2017-11-18 19:51:46 +00:00
rin f345b5cb3f Add -h option to factor(6): duplicate factors are printed in
"human-readable" form of x^n.
2017-11-11 23:48:44 +00:00
joerg 1cb2a8c221 Include time.h for time. Drop sys/types.h and expect basic working
system headers.
2017-10-02 22:03:10 +00:00
dholland 6e9e9606f7 typo 2017-07-02 07:02:47 +00:00
dholland 495acf4f93 another one 2017-06-13 17:18:00 +00:00
leot d0e0e409e2 Permit Prof. Steven Falcon [sic] to play hals_end(6) (or, more
seriously: also permit games that contain underscores to be invoked
via wargames(6))
2017-05-21 16:47:26 +00:00
riastradh ef315f7931 Remove MKCRYPTO option.
Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export.  The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated.  I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S.  Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet...  That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
2017-05-21 15:28:36 +00:00
dholland 824d8f0e42 a thing. 2017-05-04 19:12:53 +00:00
kamil 40a729ad22 Remove unmaintained link to imrryr from NetBSD specific fortune(6) entries
The original content is not accessible with the original link (missing
closing /). This page does not look to be updated since 2002 and artwork
is not freely reusable.
2017-04-16 20:08:59 +00:00
dholland 0d158d3a31 add somethign 2017-03-25 22:33:16 +00:00