summaryrefslogtreecommitdiffstats
path: root/games
Commit message (Collapse)AuthorAgeFilesLines
* Sync fortunes with other *BSDsuqs2010-03-317-1342/+1311
| | | | | | | | | | | | | | | | | | | | | | | - Spelling errors - Typographical fixes - Consistent attributions - Use Jr. more consistently - Capitalization of dictionary-like entries - Sorting using tools/do_sort - Remove duplicate fortunes - Style according to the Notes file - Reflect correct default fortune name in Notes - Remove some no longer needed spelling hints - Drop latin1 characters (sorry MÃ¥rten) This is a partial sync against the DragonflyBSD sources, where a lot of fixes from Free, Net and OpenBSD were merged previously. Only about 50% of the changes originate from there, the rest was done by dougb and yours truly. Partial review by: wilko (earlier version), ed (dito) In collaboration with: dougb Approved by: ed (co-mentor)
* Fix several typos in macros or macro misusage.uqs2010-03-121-1/+0
| | | | | | Found by: make manlint Reviewed by: ru Approved by: philip (mentor)
* s/all ready/already/wilko2010-02-261-1/+1
| | | | Submitted by: ru@, gj@
* On the (non)sense of legal disclaimers in emails.wilko2010-02-251-0/+16
|
* Prefer exit(0) from main over return(0).uqs2010-02-211-1/+1
| | | | | | | | Although not explicitly mentioned in style(9), it allows for easier grepping of exit points. This reverts part of r203926. Requested by: des Approved by: philip (mentor)
* Remove the third clause for the Berkeley parts of games, per theimp2010-02-1511-55/+11
| | | | letter in /COPYRIGHT.
* fortune(6) switch to 3-clause BSDL; style(9)uqs2010-02-157-267/+244
| | | | | | | This reduces the diff to other *BSD and makes it possible to actually see the code differences. Approved by: ed (Co-mentor)
* games: make WARNS=6 the default, remove overridesuqs2010-02-1511-14/+1
| | | | | | This also bumps factor, fortune, primes, and random to WARNS=6. Approved by: ed (Co-mentor)
* fortune(6) make WARNS=6 cleanuqs2010-02-151-106/+71
| | | | | | Fixes taken mostly from DragonflyBSD. Approved by: ed (Co-mentor)
* morse(6) make WARNS=6 cleanuqs2010-02-151-2/+2
| | | | Approved by: ed (Co-mentor)
* grdc(6) make WARNS=6 clean and bump accordinglyuqs2010-02-152-18/+16
| | | | Approved by: ed (Co-mentor)
* Improve time precision for grdc(6):delphij2010-02-101-2/+15
| | | | | | | | | | | | | | | | | | | Traditionally, grdc would obtain time through time(3) which in turn gets only the second part of clock (CLOCK_SECOND), and sleep for 1 second after each screen refresh. This approach would have two problems. First, we are not guaranteed to be waken up at the beginning of a whole second, which will typically exhibit as a "lag" on second number. Second, because we sleep for whole second, and the refresh process would take some time, the error would accumulate from time to time, making the lag variable. Make grdc(6) to use time(3) to get time only at the beginning, and sample time in CLOCK_REALTIME_FAST granularity after refreshing, and use the nanosecond part to caculate how much time we want to sleep. PR: bin/120813 MFC after: 1 month
* Add the definition of Mistakeholdergnn2010-02-091-0/+6
|
* Always compile in the speaker code. There's little savings byimp2010-02-042-4/+3
| | | | | omitting it, and other platforms may implement /dev/speaker in the future.
* Our standard "xterm" termcap entry supports colour, so this tip is redundant.gavin2010-01-111-12/+0
| | | | | | | | As it happens, "xterm-color" has just been an alias for "xterm" since src/share/termcap/termcap.src 1.131 in September 2002. PR: docs/132959 Approved by: ed (mentor)
* For the now-infamous Rumsfeld quote:dougb2010-01-071-3/+3
| | | | | | | | | Change "there're" to "there are" which is consistent with the vast majority of on line references. Remove a spurious trailing " Update the citation text with a suggestion from des.
* Fix build: getopt() returns int so use an integer to get the value.delphij2010-01-061-2/+2
|
* - Move potentially offensive quotes I committed recently to fortunes-o.stas2010-01-052-14/+15
| | | | | | | - Reference date. - Be more clear on context. Suggested by: dougb
* Be able to specify a certain date and/or time for which to calculateedwin2010-01-052-15/+90
| | | | | the phase of the moon. While not worlds best improvements, it will help calendar(1) later on.
* Remove more duplicatesdougb2010-01-051-219/+14
| | | | Minor reformatting on a few
* - Add two particulary interesting quotes from the past decade.stas2010-01-041-0/+14
|
* Use ANSI C function declarations.ed2009-12-291-11/+5
|
* Use ANSI C function declarations.ed2009-12-292-17/+20
|
* 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
* Properly sort a math fortune after the changes in r193486dougb2009-11-071-26/+26
| | | | Properly sort fortunes added in r174879 and r174959
* Move Warner's very funny comparison of VCS to anal sex into fortunes-odougb2009-11-072-6/+6
|
* Remove the svn:executable property from this filedougb2009-11-071-0/+0
|
* Fix not only the grammar, but also the formatting that makes the gagdougb2009-11-041-1/+2
|
* Make number(6) build with WARNS=6.ed2009-10-132-4/+4
|
* "Potluck Pogo" was a collection of Walt Kelly's "Pogo" cartoonsdougb2009-10-062-2/+2
| | | | first published in 1955. "Putluck Pogo" seems to be a typo.
* Fix several instances of spaces before commas, and one of a spacedougb2009-07-162-6/+6
| | | | | | | | before a ). PR: docs/136723 Submitted by: Ulrich Sporlein <uqs@spoerlein.net> Approved by: re (kib)
* Misc fixed to fortunesedwin2009-06-052-17/+18
| | | | | | PR: conf/112024 Submitted by: Niclas Zeising <niclas.zeising@gmail.com> MFC after: 2 days
* [patch] fortune(6): George Bernard Shaw quote fixedwin2009-06-041-3/+3
| | | | | | | | | | | | | | | | | | From the original PR: s/milestones/millstones/ and less important.. s/man/Man/ Not every source I've seen capitalizes 'Man', but it seems right. Uncapitalized 'man' would usually be preceded by an 'a'. But I haven't seen any reference cite the orignal source yet, so I can't say for sure. http://quotationsbook.com/quote/31568/ PR: conf/131469 Submitted by: John Hein <jhein@timing.com> MFC after: 2 days
* [patch] fortune(6): file not Y2.01K compliantedwin2009-06-041-1/+1
| | | | | | | | | Update the time in the fortune to make the joke a little bit more realistic again: Bump year from 2009 to 2039. PR: conf/129860 Submitted by: Alan Amesbury <amesbury@umn.edu> MFC after: 2 days
* Too good to pass.phk2009-03-061-0/+8
|
* netcat is "now" in base, so point people at nc(1) instead of the port.simon2009-01-121-2/+2
| | | | MFC after: 1 week
* Another good day for historical quotes, Oliver Wendell Holmes brought tophk2008-10-081-0/+3
| | | | | | you by Thomas L. Friedman. (http://www.nytimes.com/2008/10/08/opinion/08friedman.html?ref=opinion)
* A Wittgenstein quote according to David Ignatiusphk2008-10-081-0/+3
| | | | http://voices.washingtonpost.com/postpartisan/2008/10/the_town_hall_debate_in_praise.html
* Suggections from bde@ache2008-08-112-5/+11
| | | | | | | | 1) Split too long source lines 2) Portable code should not assume that null pointer == all-bits-0, so back out prev. calloc() change. Submitted by: bde
* All cosmetic.ache2008-08-103-12/+9
| | | | | | 1) Rename RANDOM_MAX to RANDOM_MAX_PLUS1 to not confuse with random()'s max 2) Use calloc() instead of zeroing fields explicitly 3) "too many lines" -> "too many delimiters" for err()
* 1) Fix longstanding math bug with denominator > 1 (wrong probability).ache2008-08-081-8/+16
| | | | | | | | | | Test case: random -f some_small_file 10000 (in most cases must be no output) 2) Prevent number of lines > RANDOM_MAX (overflow or nothing may be choosed) with EFBIG err() 3) After line is found, terminate list loop for -U case too, since nothing to do in the rest of the loop left.
* I was confused a bit by the wrong construction with RAND_MAXache2008-08-083-4/+10
| | | | | | | | | | used in randomize_fd.c. Although the max value is the same currently, RAND_MAX is for rand(), not for random(). So move RANDOM_MAX const to the common file now, make it UL and use in randomize_fd.c too. (in any case its old value was 1 less then must be, as noted in the prev. commit)
* 1) Replace hardcoded RANDOM_MAX macro with wrong (1 less than must be)ache2008-08-081-11/+5
| | | | | | value with ((double)RAND_MAX + 1) 2) For exit code increase valid denominator upper range from 255 to 256 since returned value is [0 .. denom - 1]
* Use __FreeBSD_version check since it is bootstrap toolache2008-08-071-0/+8
|
* Add reference to arc4random_uniform(3)ache2008-08-071-0/+1
|
* Use arc4random_uniform(3)ache2008-08-071-3/+1
|
* Use arc4random_uniform(3)ache2008-08-071-7/+6
| | | | Obtained from: OpenBSD
* Add a quote too good to miss from:phk2008-08-021-5/+9
| | | | | | http://www.schneier.com/blog/archives/2008/08/schneier_misquo.html (and reorder one I appearantly didn't get in the right place last time.)
* o Alan Shepard was first American in the space; fix attribution.maxim2008-07-221-1/+1
| | | | | | | | o Correct Alan's surname. PR: bin/125812 Submitted by: Derek Taylor [1], gavin [2] MFC after: 1 week
* Unmangle an E.W.Dijkstra quote.phk2008-07-141-3/+5
|
OpenPOWER on IntegriCloud