]> git.cameronkatri.com Git - bsdgames-darwin.git/log
bsdgames-darwin.git
7 years agoRemove unmaintained link to imrryr from NetBSD specific fortune(6) entries
kamil [Sun, 16 Apr 2017 20:08:59 +0000 (20:08 +0000)]
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.

7 years agoadd somethign
dholland [Sat, 25 Mar 2017 22:33:16 +0000 (22:33 +0000)]
add somethign

7 years agoelide compiler stupidity.
christos [Mon, 20 Mar 2017 22:05:27 +0000 (22:05 +0000)]
elide compiler stupidity.

8 years agoneed time.h for time(), got side-loaded before from <fcntl.h> via <sys/stat.h>
christos [Tue, 10 Jan 2017 20:41:40 +0000 (20:41 +0000)]
need time.h for time(), got side-loaded before from <fcntl.h> via <sys/stat.h>

8 years agoned stat.h
christos [Tue, 10 Jan 2017 20:40:53 +0000 (20:40 +0000)]
ned stat.h

8 years agoadd a couple
dholland [Fri, 14 Oct 2016 03:20:04 +0000 (03:20 +0000)]
add a couple

8 years agoFix another place with a wrong author of "Unkempt Thoughts"
kamil [Sun, 28 Aug 2016 19:44:44 +0000 (19:44 +0000)]
Fix another place with a wrong author of "Unkempt Thoughts"

Stanislaw Lem -> Stanislaw J. Lec

8 years agoCorrect the author of "Unkempt Thoughts" - it's Stanislaw Lec, not Lem
kamil [Fri, 26 Aug 2016 18:07:47 +0000 (18:07 +0000)]
Correct the author of "Unkempt Thoughts" - it's Stanislaw Lec, not Lem

Pointed out by Antoni GrzymaƂa <antoni@grzymala.info>

This mistake was in the sources since the beginning of this file in NetBSD.

8 years agoadd one
dholland [Fri, 15 Jul 2016 06:13:50 +0000 (06:13 +0000)]
add one

8 years agoUpdate entries for North and South Yemen, since the two countries were
pgoyette [Tue, 28 Jun 2016 09:27:26 +0000 (09:27 +0000)]
Update entries for North and South Yemen, since the two countries were
united a long time ago (according to WikiPedia).

Thanks, wiz, for double-checking!

8 years agoFix typo.
wiz [Tue, 28 Jun 2016 09:17:06 +0000 (09:17 +0000)]
Fix typo.

8 years agoMissed one.
pgoyette [Tue, 28 Jun 2016 00:16:57 +0000 (00:16 +0000)]
Missed one.

8 years agoMerge updates from PR bin/42576
pgoyette [Tue, 28 Jun 2016 00:15:40 +0000 (00:15 +0000)]
Merge updates from PR bin/42576

XXX Any typos are mine, not those of the PR submitter!

8 years agoDo not pass usleep() values >= 1 million. From Henning Petersen in PR 51286
dholland [Mon, 27 Jun 2016 08:46:04 +0000 (08:46 +0000)]
Do not pass usleep() values >= 1 million. From Henning Petersen in PR 51286

8 years agoDouble the threshold for crashing out with "too many words".
dholland [Sat, 25 Jun 2016 23:15:41 +0000 (23:15 +0000)]
Double the threshold for crashing out with "too many words".

8 years agoFix the out-of-memory behavior so the message doesn't disappear under
dholland [Sun, 12 Jun 2016 02:15:26 +0000 (02:15 +0000)]
Fix the out-of-memory behavior so the message doesn't disappear under
endwin(). Related to PR 3126.

8 years agoget rid of gets
christos [Sun, 5 Jun 2016 18:39:02 +0000 (18:39 +0000)]
get rid of gets

8 years agotetris(6) is not limited to CRT displays. noted by tnn
dholland [Sat, 12 Mar 2016 03:14:59 +0000 (03:14 +0000)]
tetris(6) is not limited to CRT displays. noted by tnn

8 years agosnake(6) supports LCD displays too. (noted by tnn)
dholland [Sat, 12 Mar 2016 03:13:52 +0000 (03:13 +0000)]
snake(6) supports LCD displays too. (noted by tnn)

8 years agoCenter game board on screen. OK from christos@.
nat [Thu, 3 Mar 2016 21:38:55 +0000 (21:38 +0000)]
Center game board on screen.  OK from christos@.

9 years agoPR/50411: Rin Okuyama: fix two bugs:
christos [Fri, 6 Nov 2015 19:53:37 +0000 (19:53 +0000)]
PR/50411: Rin Okuyama: fix two bugs:
- clear blocks in the 0 row, otherwise the pile up forever.
- black (white) blocks are not shown as "next shape":

9 years agoremove cpp abuse
dholland [Mon, 17 Aug 2015 17:17:01 +0000 (17:17 +0000)]
remove cpp abuse

9 years agoUse An in AUTHORS section.
wiz [Sun, 26 Jul 2015 22:22:24 +0000 (22:22 +0000)]
Use An in AUTHORS section.

9 years agoSync descriptive text with actual game definition.
pgoyette [Thu, 23 Jul 2015 01:19:20 +0000 (01:19 +0000)]
Sync descriptive text with actual game definition.

9 years agoFixes color scheme white on black and black on white.
nat [Tue, 7 Jul 2015 22:53:25 +0000 (22:53 +0000)]
Fixes color scheme white on black and black on white.

This commit was approved by christos@

9 years agoadd one
dholland [Sat, 27 Jun 2015 08:07:46 +0000 (08:07 +0000)]
add one

9 years agoMove game logic out of the file with the curses code.
dholland [Thu, 25 Jun 2015 05:33:02 +0000 (05:33 +0000)]
Move game logic out of the file with the curses code.

9 years agoAbolish the foul practice of including every header in existence via a
dholland [Fri, 19 Jun 2015 06:02:31 +0000 (06:02 +0000)]
Abolish the foul practice of including every header in existence via a
single central "include.h". Use only headers that are actually needed.

9 years agoadd -b to usage, from leot
dholland [Sat, 13 Jun 2015 04:53:13 +0000 (04:53 +0000)]
add -b to usage, from leot

9 years agoFix the list of keys across the bottom so it fits on an 80-column screen
dholland [Sat, 13 Jun 2015 04:15:51 +0000 (04:15 +0000)]
Fix the list of keys across the bottom so it fits on an 80-column screen
again. Fixes PR 49937.

HI MRG

9 years agoPR/49850: Nikolai Lifanov: Document acronyms-o
christos [Wed, 22 Apr 2015 15:04:57 +0000 (15:04 +0000)]
PR/49850: Nikolai Lifanov: Document acronyms-o

9 years agoFix typo, remove trailing space.
wiz [Wed, 22 Apr 2015 14:00:46 +0000 (14:00 +0000)]
Fix typo, remove trailing space.

9 years agoobey $ACRONYMDB like before
christos [Tue, 21 Apr 2015 23:56:30 +0000 (23:56 +0000)]
obey $ACRONYMDB like before

9 years agoAdd -o flag.
christos [Tue, 21 Apr 2015 22:49:46 +0000 (22:49 +0000)]
Add -o flag.

9 years agoproperly pluralize.
snj [Fri, 3 Apr 2015 07:28:41 +0000 (07:28 +0000)]
properly pluralize.

9 years agoAvoid runon sentences.
dholland [Wed, 25 Mar 2015 16:23:02 +0000 (16:23 +0000)]
Avoid runon sentences.

9 years agoUse Pp (mdoc) instead of sp (roff).
wiz [Thu, 19 Feb 2015 08:51:14 +0000 (08:51 +0000)]
Use Pp (mdoc) instead of sp (roff).
Use An in AUTHORS section.

9 years agoadd a 'down' key to tetris, defaulting to 'n'. it move the block down
mrg [Thu, 19 Feb 2015 02:27:30 +0000 (02:27 +0000)]
add a 'down' key to tetris, defaulting to 'n'.  it move the block down
a line, if it fits.  like most other tetris games have.

minor clean up of magic number usage while here.

9 years agotypo
dholland [Thu, 12 Feb 2015 06:24:21 +0000 (06:24 +0000)]
typo

9 years agoFix typo. From kspillner@OpenBSD, forwarded by jmc@OpenBSD.
wiz [Sat, 7 Feb 2015 09:59:47 +0000 (09:59 +0000)]
Fix typo. From kspillner@OpenBSD, forwarded by jmc@OpenBSD.

10 years agoadd something
dholland [Tue, 6 Jan 2015 22:38:41 +0000 (22:38 +0000)]
add something

10 years agoPR/49513 - Henning Petersen -- tyop
jnemeth [Mon, 29 Dec 2014 10:38:52 +0000 (10:38 +0000)]
PR/49513 - Henning Petersen -- tyop

10 years agoPR/49513 - Henning Petersen -- tyop
jnemeth [Mon, 29 Dec 2014 10:27:03 +0000 (10:27 +0000)]
PR/49513 - Henning Petersen -- tyop

10 years agoPR/49451 - Ben Gergely -- add missing attribution
jnemeth [Fri, 5 Dec 2014 23:21:23 +0000 (23:21 +0000)]
PR/49451 - Ben Gergely -- add missing attribution

10 years agoEnglish
snj [Sat, 18 Oct 2014 06:42:31 +0000 (06:42 +0000)]
English

10 years ago1) "It's its"
snj [Sat, 18 Oct 2014 06:40:18 +0000 (06:40 +0000)]
1) "It's its"
2) Whitespace
3) You're all too old to be confusing "your" with "you're"

10 years agousage police
wiz [Sat, 4 Oct 2014 13:15:50 +0000 (13:15 +0000)]
usage police

10 years agoImported and adapted from FreeBSD svn r272166 and r272207; this fixes
ast [Thu, 2 Oct 2014 21:36:37 +0000 (21:36 +0000)]
Imported and adapted from FreeBSD svn r272166 and r272207; this fixes
false positives for products of primes larger than 2^16. For example,
before this commit:

  $ /usr/games/primes 4295360521 4295360522
  4295360521
but
  $ /usr/games/factor 4295360521
  4295360521: 65539 65539

or
  $ /usr/games/primes 3825123056546413049 3825123056546413050
  3825123056546413049
yet
  $ /usr/games/factor 3825123056546413049
  3825123056546413049: 165479 23115459100831

or
  $ /usr/games/primes 18446744073709551577
  18446744073709551577
although
  $ /usr/games/factor 18446744073709551577
  18446744073709551577139646831 132095686967

Incidentally, the above examples show the smallest and largest cases that
were erroneously stated as prime in the range 2^32 .. 3825123056546413049
.. 2^64; the primes(6) program now stops at 3825123056546413050 as
primality tests on larger integers would be by brute force factorization.

In addition, special to the NetBSD version:
. for -d option, skip first difference when start is >65537 as it is incorrect
. corrected usage to mention both the existing -d as well as the new -h option

For original FreeBSD commit message by Colin Percival, see:
http://svnweb.freebsd.org/base?view=revision&revision=272166

10 years agoadhere to stricter groff checking:
christos [Tue, 30 Sep 2014 20:46:59 +0000 (20:46 +0000)]
adhere to stricter groff checking:
- don't specify distance separation between this and the next column for
  the last column, since there's no next column.
- don't pop environment you did not push

10 years agoSort sections. From Henning Petersen in PR 49222.
wiz [Fri, 19 Sep 2014 16:02:58 +0000 (16:02 +0000)]
Sort sections. From Henning Petersen in PR 49222.

10 years agoBump date for -c (exactly one year after previous bump)
wiz [Tue, 15 Jul 2014 16:17:15 +0000 (16:17 +0000)]
Bump date for -c (exactly one year after previous bump)

10 years agoAt suggestion of christos@, use -b for b&w rather than -c
pgoyette [Sun, 13 Jul 2014 17:38:38 +0000 (17:38 +0000)]
At suggestion of christos@, use -b for b&w rather than -c

10 years agoProvide an option to restore traditional black-and-white mode.
pgoyette [Sun, 13 Jul 2014 16:23:55 +0000 (16:23 +0000)]
Provide an option to restore traditional black-and-white mode.

10 years agoReorg docs, part 1:
dholland [Sat, 5 Jul 2014 19:22:41 +0000 (19:22 +0000)]
Reorg docs, part 1:
Move all the reference manuals to subdirs of /usr/share/doc/reference.
We have subdirs ref1-ref9, corresponding to man page sections 1-9.

Everything that's the reference manual for a program (sections 1, 6,
8), C interface (sections 2, 3), driver or file system (section 4),
format or configuration (section 5), or kernel internal interface
(section 9) belongs in here.

Section 7 is a little less clear: some things that might go in section
7 if they were a man page aren't really reference manuals. So I'm only
putting things in reference section 7 that are (to me) clearly
reference material, rather than e.g. tutorials, guides, FAQs, etc.
This obviously leaves some room for debate, especially without first
editing the docs with this distinction in mind, but if people hate
what I've done things can always be moved again.

Note also that while roff macro man pages traditionally go in section
7, I have put all the roff documentation (macros, tools, etc.) in one
place in reference/ref1/roff. This will make it easier to find and
also easier to edit it into some kind of coherent form.

10 years agoRework /usr/share/doc.
dholland [Sat, 5 Jul 2014 19:22:02 +0000 (19:22 +0000)]
Rework /usr/share/doc.

Update the <bsd.doc.mk> infrastructure, and update the docs to match
the new infrastructure.

- Build and install text, ps, pdf, and/or html, not roff sources.

- Don't wire the chapter numbers into the build system, or use them in
the installed pathnames. This didn't matter much when the docs were a
museum, but now that we're theoretically going to start maintaining
them again, we're going to add and remove documents periodically and
having the chapter numbers baked in creates a lot of thrashing for no
purpose.

- Specify the document name explicitly, rather than implicitly in a
path. Use this name (instead of other random strings) as the name
of the installed files.

- Specify the document section, which is the subdirectory of
/usr/share/doc to install into.

- Allow multiple subdocuments. (That is, multiple documents in one
output directory.)

- Enumerate the .png files groff emits along with html so they can be
installed.

- Remove assorted hand-rolled rules for running roff and roff widgetry
and add enough variable settings to make these unnecessary. This
includes support for
   - explicit use of soelim
   - refer
   - tbl
   - pic
   - eqn

- Forcibly apply at least minimal amounts of sanity to certain
autogenerated roff files.

- Don't exclude USD.doc, SMM.doc, and PSD.doc directories from the
build, as they now actually do stuff.

Note: currently we can't generate pdf. This turns out to be a
nontrivial problem with no immediate solution forthcoming. So for now,
as a workaround, install compressed .ps as the printable form.

10 years agoremove remaining makefile support for GCC < 45 that i found.
mrg [Sat, 14 Jun 2014 20:49:36 +0000 (20:49 +0000)]
remove remaining makefile support for GCC < 45 that i found.

10 years agoAdd a little color. In order to minimize logic differences, keep 0 as the
christos [Wed, 11 Jun 2014 16:47:39 +0000 (16:47 +0000)]
Add a little color. In order to minimize logic differences, keep 0 as the
empty board value, and since 7 is white, turn white into black (0) when
painting.

10 years agoRemove unused.
skrll [Sun, 30 Mar 2014 09:11:50 +0000 (09:11 +0000)]
Remove unused.

10 years agoUse bool (not int) for a boolean return type.
dholland [Sun, 30 Mar 2014 05:53:12 +0000 (05:53 +0000)]
Use bool (not int) for a boolean return type.

10 years agoUse the curses beep function instead of writing a beep to stdout.
dholland [Sun, 30 Mar 2014 05:48:35 +0000 (05:48 +0000)]
Use the curses beep function instead of writing a beep to stdout.

10 years agocurses has printw, use it.
dholland [Sun, 30 Mar 2014 05:46:54 +0000 (05:46 +0000)]
curses has printw, use it.

10 years agodon't use the preprocessor to rename curses functions, just call them
dholland [Sun, 30 Mar 2014 05:44:55 +0000 (05:44 +0000)]
don't use the preprocessor to rename curses functions, just call them

10 years agofix off-by-one
dholland [Sun, 30 Mar 2014 05:41:50 +0000 (05:41 +0000)]
fix off-by-one

10 years agoInstead of #define STDIN 0, use STDIN_FILENO.
dholland [Sun, 30 Mar 2014 05:38:13 +0000 (05:38 +0000)]
Instead of #define STDIN 0, use STDIN_FILENO.

10 years agoRemove SHORTLEN and LONGLEN defines; use sizeof() properly instead.
dholland [Sun, 30 Mar 2014 05:30:28 +0000 (05:30 +0000)]
Remove SHORTLEN and LONGLEN defines; use sizeof() properly instead.
Fix two semi-compensating size bugs in wire transmission affecting
64-bit machines.

10 years agoNaming reform for socket pieces, akin to what I did in huntd earlier.
dholland [Sun, 30 Mar 2014 05:14:47 +0000 (05:14 +0000)]
Naming reform for socket pieces, akin to what I did in huntd earlier.
(but not as comprehensive)

10 years agoI wish the socket API didn't require casts. Easy to mess them up.
dholland [Sun, 30 Mar 2014 04:57:37 +0000 (04:57 +0000)]
I wish the socket API didn't require casts. Easy to mess them up.

10 years agofix obvious mistake (seems to have been there since 4.4)
dholland [Sun, 30 Mar 2014 04:40:50 +0000 (04:40 +0000)]
fix obvious mistake (seems to have been there since 4.4)

10 years agoTidy up list of broadcast addresses.
dholland [Sun, 30 Mar 2014 04:39:40 +0000 (04:39 +0000)]
Tidy up list of broadcast addresses.

10 years agoClean up the handling of the list of hunt daemons.
dholland [Sun, 30 Mar 2014 04:31:21 +0000 (04:31 +0000)]
Clean up the handling of the list of hunt daemons.

10 years agouse fewer globals
dholland [Sun, 30 Mar 2014 03:35:26 +0000 (03:35 +0000)]
use fewer globals

10 years agomore cleanup
dholland [Sun, 30 Mar 2014 03:26:19 +0000 (03:26 +0000)]
more cleanup

10 years agounexpose some globals that server.c previously required
dholland [Sun, 30 Mar 2014 02:58:25 +0000 (02:58 +0000)]
unexpose some globals that server.c previously required

10 years agoname reform, fewer file statics
dholland [Sun, 30 Mar 2014 02:53:11 +0000 (02:53 +0000)]
name reform, fewer file statics

10 years agogoto considered harmful
dholland [Sun, 30 Mar 2014 02:46:57 +0000 (02:46 +0000)]
goto considered harmful

10 years agosplit off a bunch of the nastier network code into its own file
dholland [Sun, 30 Mar 2014 02:26:09 +0000 (02:26 +0000)]
split off a bunch of the nastier network code into its own file

10 years agoWhen indexing an array with a char, cast it to unsigned char, not int,
dholland [Sun, 30 Mar 2014 02:11:25 +0000 (02:11 +0000)]
When indexing an array with a char, cast it to unsigned char, not int,
to not only silence the compiler warning but also get the correct
behavior.

10 years agoRemove all the conditional compilation for INTERNET. Now you can run
dholland [Sun, 30 Mar 2014 01:44:37 +0000 (01:44 +0000)]
Remove all the conditional compilation for INTERNET. Now you can run
this on either a local or internet socket (including via inetd on
either) and it will, or is supposed to, DTRT.

Does not really support ipv6 yet, but in a number of places will no
longer vomit or exhibit UB if it encounters an ipv6 address.

10 years agoClean up the names of the various pieces of socket apparatus.
dholland [Sun, 30 Mar 2014 00:26:58 +0000 (00:26 +0000)]
Clean up the names of the various pieces of socket apparatus.
Systematic naming is easier to follow...

10 years agofix non-INTERNET build
dholland [Sat, 29 Mar 2014 23:44:38 +0000 (23:44 +0000)]
fix non-INTERNET build

10 years agoEr oops, fix previous.
dholland [Sat, 29 Mar 2014 22:30:27 +0000 (22:30 +0000)]
Er oops, fix previous.

10 years agoReduce ifdefs by making a common function to talk to either syslogd or
dholland [Sat, 29 Mar 2014 22:29:55 +0000 (22:29 +0000)]
Reduce ifdefs by making a common function to talk to either syslogd or
stderr.

10 years agogroup external functions by where they come from
dholland [Sat, 29 Mar 2014 22:15:26 +0000 (22:15 +0000)]
group external functions by where they come from

10 years agobe consistent about whether functions are static
dholland [Sat, 29 Mar 2014 22:15:13 +0000 (22:15 +0000)]
be consistent about whether functions are static

10 years agohandle compiled-in pathnames the customary way
dholland [Sat, 29 Mar 2014 22:11:19 +0000 (22:11 +0000)]
handle compiled-in pathnames the customary way

10 years agomake some globals static
dholland [Sat, 29 Mar 2014 22:05:44 +0000 (22:05 +0000)]
make some globals static

10 years agoAdditional minor cleanup and remove a straggler data declaration
dholland [Sat, 29 Mar 2014 21:55:59 +0000 (21:55 +0000)]
Additional minor cleanup and remove a straggler data declaration
from hunt_common.h.

10 years agoGroup function declarations by which source file they come from, and
dholland [Sat, 29 Mar 2014 21:43:46 +0000 (21:43 +0000)]
Group function declarations by which source file they come from, and
delete several that don't actually exist.

10 years agobe consistent about whether functions are static
dholland [Sat, 29 Mar 2014 21:38:54 +0000 (21:38 +0000)]
be consistent about whether functions are static

10 years agosprinkle static
dholland [Sat, 29 Mar 2014 21:33:41 +0000 (21:33 +0000)]
sprinkle static

10 years agoFlush unwanted file.
dholland [Sat, 29 Mar 2014 21:27:40 +0000 (21:27 +0000)]
Flush unwanted file.

10 years agoMove definitions to the file they're used in.
dholland [Sat, 29 Mar 2014 21:27:08 +0000 (21:27 +0000)]
Move definitions to the file they're used in.

10 years agomove a comment that should have gone with its symbol
dholland [Sat, 29 Mar 2014 21:25:35 +0000 (21:25 +0000)]
move a comment that should have gone with its symbol

10 years agoRemove tautological #if DEBUG.
dholland [Sat, 29 Mar 2014 21:24:56 +0000 (21:24 +0000)]
Remove tautological #if DEBUG.

10 years agoSplit hunt and huntd's includes, instead of incestuously sharing a pile
dholland [Sat, 29 Mar 2014 21:24:26 +0000 (21:24 +0000)]
Split hunt and huntd's includes, instead of incestuously sharing a pile
of external data and function declarations between the two programs.

Common constants and defines now go in hunt_common.h. Stuff that belongs
only to hunt is in hunt/hunt_private.h. Stuff that belongs only to huntd
is in huntd/hunt.h.

Copy some declarations that are used in both programs under the same
names (but are not actually the same objects) from huntd/hunt.h to
hunt/hunt_private.h. Move others that are only used in hunt. Remove
some entirely unused material, and tidy up standard includes.

10 years agoRemove unsafe and unnecessary pointer casts.
dholland [Sat, 29 Mar 2014 20:53:55 +0000 (20:53 +0000)]
Remove unsafe and unnecessary pointer casts.

10 years agocatch up to huntd changes.
dholland [Sat, 29 Mar 2014 20:52:13 +0000 (20:52 +0000)]
catch up to huntd changes.
XXX: this needs to stop promiscuously sharing .h files.

10 years agotsort contents of file
dholland [Sat, 29 Mar 2014 20:44:20 +0000 (20:44 +0000)]
tsort contents of file

10 years agoconst in unused code
dholland [Sat, 29 Mar 2014 20:41:57 +0000 (20:41 +0000)]
const in unused code

10 years agoremove stubbed-out function
dholland [Sat, 29 Mar 2014 20:35:30 +0000 (20:35 +0000)]
remove stubbed-out function