]> git.cameronkatri.com Git - bsdgames-darwin.git/log
bsdgames-darwin.git
19 years agoFix two lines which were broken by previous commit. Noticed by Thomas
rpaulo [Wed, 12 Oct 2005 15:33:41 +0000 (15:33 +0000)]
Fix two lines which were broken by previous commit. Noticed by Thomas
Klausner.

19 years agomisc/31566: Jaap Boender: update African and Asian capitals to the
rpaulo [Wed, 12 Oct 2005 15:14:27 +0000 (15:14 +0000)]
misc/31566: Jaap Boender: update African and Asian capitals to the
current situation.

19 years agoAdded an empty line to conform to KNF.
rillig [Sat, 8 Oct 2005 18:18:18 +0000 (18:18 +0000)]
Added an empty line to conform to KNF.

19 years agoDrop trailing whitespace.
wiz [Thu, 15 Sep 2005 02:10:37 +0000 (02:10 +0000)]
Drop trailing whitespace.

19 years agoUse standard AUTHORS section header. From YOMURA Masanori in private mail
wiz [Thu, 15 Sep 2005 02:09:41 +0000 (02:09 +0000)]
Use standard AUTHORS section header. From YOMURA Masanori in private mail
Sort sections if necessary. Use more/better markup.

19 years agoSulfur|Sulphur -> Sul[f|ph]ur
perry [Sun, 14 Aug 2005 21:19:35 +0000 (21:19 +0000)]
Sulfur|Sulphur -> Sul[f|ph]ur

19 years agoSulfur -> Sulfur | Sulphur
perry [Sun, 14 Aug 2005 21:17:37 +0000 (21:17 +0000)]
Sulfur -> Sulfur | Sulphur

19 years agoer, forgot the C{a}esium change in the last
perry [Sun, 14 Aug 2005 20:31:34 +0000 (20:31 +0000)]
er, forgot the C{a}esium change in the last

19 years ago1) Update atomic weights.
perry [Sun, 14 Aug 2005 20:28:25 +0000 (20:28 +0000)]
1) Update atomic weights.
   The weights here are taken from
     http://www.iupac.org/publications/pac/2003/7508/7508x1107.html
   and have been rounded to four significant figures in all cases.
   In the case of elements that have no isotopes stable enough for
   reasonable measurement, numbers have been updated from Zumdahl,
   "Chemistry", Fifth edition and are presented (as before) in parentheses.
2) Cesium is now C{a}esium
3) A number of new elements have been added at the end of the periodic
   table.

19 years agoAluminum -> Alumin{i}um
perry [Sun, 14 Aug 2005 19:34:50 +0000 (19:34 +0000)]
Aluminum -> Alumin{i}um

Aluminium is really the official name, but doing it this way allows
entry of either answer.

19 years agoSulphur -> Sulfur
perry [Sun, 14 Aug 2005 17:45:17 +0000 (17:45 +0000)]
Sulphur -> Sulfur

Although the traditional spelling in commonwealth countries is
"Sulphur", the official IUPAC name of the element is "Sulfur", and
even the Royal Society of Chemistry now spells it "Sulfur".

19 years agoAdded a missing '-' in score list output.
rpaulo [Wed, 10 Aug 2005 19:21:21 +0000 (19:21 +0000)]
Added a missing '-' in score list output.

19 years agoPass lint(1).
rpaulo [Wed, 10 Aug 2005 17:53:28 +0000 (17:53 +0000)]
Pass lint(1).

19 years agoEnable WARNS=3.
rpaulo [Wed, 10 Aug 2005 17:52:56 +0000 (17:52 +0000)]
Enable WARNS=3.

19 years agoFixed an output bug where a new-line was added due the usage of puts(3).
rpaulo [Wed, 10 Aug 2005 16:10:51 +0000 (16:10 +0000)]
Fixed an output bug where a new-line was added due the usage of puts(3).

19 years agoPass lint(1).
rpaulo [Wed, 10 Aug 2005 14:02:26 +0000 (14:02 +0000)]
Pass lint(1).

19 years agoEnable WARNS=3.
rpaulo [Wed, 10 Aug 2005 14:02:10 +0000 (14:02 +0000)]
Enable WARNS=3.

19 years agoadd a new style cast to memcpy.
christos [Tue, 9 Aug 2005 15:17:41 +0000 (15:17 +0000)]
add a new style cast to memcpy.

19 years agoEnable WARNS=3 and pass lint(1).
rpaulo [Tue, 9 Aug 2005 09:15:23 +0000 (09:15 +0000)]
Enable WARNS=3 and pass lint(1).

ok christos@

19 years agoPass WARNS=3
christos [Tue, 9 Aug 2005 02:38:32 +0000 (02:38 +0000)]
Pass WARNS=3

19 years agoComment from Al.
cjs [Sat, 23 Jul 2005 08:01:38 +0000 (08:01 +0000)]
Comment from Al.

19 years agoAligned the usage message from the program with the one mentioned in the
rillig [Fri, 22 Jul 2005 11:56:50 +0000 (11:56 +0000)]
Aligned the usage message from the program with the one mentioned in the
man page.

19 years ago- caesar(6) is not a SETGIDGAME, so we don't need to revoke any privileges.
rillig [Fri, 22 Jul 2005 11:52:23 +0000 (11:52 +0000)]
- caesar(6) is not a SETGIDGAME, so we don't need to revoke any privileges.
- replaced direct POSIX read/write with stdio, which made the code simpler.
- added even more error checking.
- restructured the code to make each function fit on one screen
  (well, except one).
- now the code reflects the intended purpose of the program.
- return 0 instead of EXIT_FAILURE on success.

19 years agoQuote macro.
wiz [Tue, 5 Jul 2005 08:48:47 +0000 (08:48 +0000)]
Quote macro.

19 years agoTidy up curses state when we quit, instead of just doing exit().
jdc [Sat, 2 Jul 2005 15:48:03 +0000 (15:48 +0000)]
Tidy up curses state when we quit, instead of just doing exit().

19 years agoSort sections. Use mdoc macros. Reformat.
wiz [Sat, 2 Jul 2005 10:46:21 +0000 (10:46 +0000)]
Sort sections. Use mdoc macros. Reformat.

19 years agoRemoving trailing spaces.
wiz [Sat, 2 Jul 2005 10:40:50 +0000 (10:40 +0000)]
Removing trailing spaces.

19 years agoKNF conversion
jmc [Sat, 2 Jul 2005 08:35:29 +0000 (08:35 +0000)]
KNF conversion

19 years agoKNF and WARNS=3
jmc [Sat, 2 Jul 2005 08:32:32 +0000 (08:32 +0000)]
KNF and WARNS=3

19 years agoKNF and WARNS=3
jmc [Fri, 1 Jul 2005 16:50:55 +0000 (16:50 +0000)]
KNF and WARNS=3

19 years agoKNF and WARNS=3
jmc [Fri, 1 Jul 2005 16:38:24 +0000 (16:38 +0000)]
KNF and WARNS=3

19 years agoRemove the -t flag from the usage.
peter [Fri, 1 Jul 2005 14:21:49 +0000 (14:21 +0000)]
Remove the -t flag from the usage.

19 years agoKNF and WARNS=3
jmc [Fri, 1 Jul 2005 06:04:46 +0000 (06:04 +0000)]
KNF and WARNS=3

19 years agoWhitespace fix
jmc [Fri, 1 Jul 2005 01:13:05 +0000 (01:13 +0000)]
Whitespace fix

19 years agoKNF and WARNS=3 fixes
jmc [Fri, 1 Jul 2005 01:12:39 +0000 (01:12 +0000)]
KNF and WARNS=3 fixes

19 years agoKNF and WARNS=3 fixes
jmc [Fri, 1 Jul 2005 00:48:34 +0000 (00:48 +0000)]
KNF and WARNS=3 fixes

19 years agoKNF and WARNS=3
jmc [Fri, 1 Jul 2005 00:03:36 +0000 (00:03 +0000)]
KNF and WARNS=3

19 years agoadd ching, and also break up the SUBDIR line a bit more to make future
perry [Thu, 30 Jun 2005 15:35:17 +0000 (15:35 +0000)]
add ching, and also break up the SUBDIR line a bit more to make future
additions easier.

now if we could only get "dungeon"...

19 years agoInitialize lnum and unum to avoid a "might be used uninitialized"
martin [Thu, 30 Jun 2005 13:44:48 +0000 (13:44 +0000)]
Initialize lnum and unum to avoid a "might be used uninitialized"
warning.

19 years agomissing paragraph break from the original
perry [Thu, 30 Jun 2005 13:34:29 +0000 (13:34 +0000)]
missing paragraph break from the original

19 years agoching(6) -- The Book of Changes, not seen in BSD since 4.4BSD.
perry [Thu, 30 Jun 2005 13:30:33 +0000 (13:30 +0000)]
ching(6) -- The Book of Changes, not seen in BSD since 4.4BSD.

The C code is a complete rewrite done by Guy Harris for 4.4BSD and is
not the original from v7 at all. Unfortunately, the data file itself,
without which the rest isn't useful, was not freed until Caldera
released all of 32v a few years ago, so it was not in 4.4lite.

The data file, the ching nroff macros, and the driver script are under
Caldera or Caldera+Berkeley copyright.

I've partially redone the driver script from 4.4 (there was no point
in using a temporary file for the hexagram), which was already
partially redone from 32v. (As an aside, it is nutty that the script
needs a copyright so many times longer than the code.)

I've renamed "cno" to "castching", "phx" to "printching", (the
traditional names were opaque), and put them in /usr/libexec/ching
instead of the v7 /usr/games/ching.d. The data file and nroff macros
are in /usr/share/games/ching

19 years agoFixed error on a nonexistent mail spool file, when countmail can't find it\n\nCloses...
symka [Thu, 30 Jun 2005 06:08:56 +0000 (06:08 +0000)]
Fixed error on a nonexistent mail spool file, when countmail can't find it\n\nCloses PR misc/29526\n\n\(Code submitted in PR misc/29526 by Andreas Eder)

19 years agoFixed a comment that said the factors in the output would be strictly
rillig [Mon, 27 Jun 2005 20:49:31 +0000 (20:49 +0000)]
Fixed a comment that said the factors in the output would be strictly
ascending.

19 years agoChanged the type of data_table to be unsigned char[] instead of char[],
rillig [Mon, 27 Jun 2005 20:32:07 +0000 (20:32 +0000)]
Changed the type of data_table to be unsigned char[] instead of char[],
because it is initialized with values >= SCHAR_MAX. Also removed two
unnecessary bit mask operations. These changes do not affect the actual
behavior. Also replaced an "#ifdef notdef" with "#if 0". All these
changes are mainly for reducing lint(1) warnings.

19 years agoFixed buffer overflow with long command line arguments.
rillig [Mon, 27 Jun 2005 19:49:20 +0000 (19:49 +0000)]
Fixed buffer overflow with long command line arguments.

19 years agoDrop trailing space.
wiz [Sun, 26 Jun 2005 10:07:23 +0000 (10:07 +0000)]
Drop trailing space.

19 years ago * Change program logic to not nest needlessly
hubertf [Wed, 22 Jun 2005 20:11:03 +0000 (20:11 +0000)]
 * Change program logic to not nest needlessly
 * Search all acronyms databases, and don't force the user to
   know in which category to look (-t is gone)
 * If an acronym is not found in the database or by whatis(1),
   also check pkg_info(1). Per PR bin/30539 by Geert Hendrickx
   (geert.hendrickx@ua.ac.be)

OK'd by Julio M. Merino Vidal <jmmv>

19 years agoChange marker from "pmppc" to "powerpc" because a NetBSD-macppc build
tron [Thu, 9 Jun 2005 12:20:12 +0000 (12:20 +0000)]
Change marker from "pmppc" to "powerpc" because a NetBSD-macppc build
is also affected.

19 years agoAdd an initialization to placate -Wuninitialized.
he [Thu, 9 Jun 2005 09:36:19 +0000 (09:36 +0000)]
Add an initialization to placate -Wuninitialized.
Marked with XXXGCC for pmppc (found while compiling for it).

19 years agoRaised WARNS to 4.
rillig [Mon, 23 May 2005 23:08:06 +0000 (23:08 +0000)]
Raised WARNS to 4.

19 years ago* fixed <ctype> bugs
rillig [Mon, 23 May 2005 23:02:30 +0000 (23:02 +0000)]
* fixed <ctype> bugs
* removed ASCII dependency
* added input data validation
* added bounds checking
* added error checking
* handle short reads (from pipes or sockets) correctly
  when trying to decode an encoded stream
* added lint(1) directives

19 years agoOtto Von Bismarck -> Otto von Bismarck.
kleink [Tue, 10 May 2005 18:41:53 +0000 (18:41 +0000)]
Otto Von Bismarck -> Otto von Bismarck.

19 years agoIt is Bismarck not Bismark.
bad [Tue, 10 May 2005 17:47:33 +0000 (17:47 +0000)]
It is Bismarck not Bismark.

19 years agoSort list, and add Nunavut, which has been a Canadian province since 1999.
jwise [Mon, 2 May 2005 15:48:58 +0000 (15:48 +0000)]
Sort list, and add Nunavut, which has been a Canadian province since 1999.

19 years agoCyprus is part of Europe, not Asia. Turkey is currently listed in both
jwise [Mon, 2 May 2005 15:39:27 +0000 (15:39 +0000)]
Cyprus is part of Europe, not Asia.  Turkey is currently listed in both
Europe and Asia, I'm leaving it that way.

19 years agoThe current President of the United States is George Walker Bush, not George
jwise [Mon, 2 May 2005 15:29:59 +0000 (15:29 +0000)]
The current President of the United States is George Walker Bush, not George
Walker Bush, Jr. (his father was George Herbert Walker Bush).

19 years agoFixed wrong use of the <ctype.h> functions by adding an explicit conversion
rillig [Tue, 19 Apr 2005 20:14:29 +0000 (20:14 +0000)]
Fixed wrong use of the <ctype.h> functions by adding an explicit conversion
to unsigned char. Approved by christos.

19 years agoFixed wrong use of datatypes. In wait_for(), a char was used together
rillig [Tue, 19 Apr 2005 20:12:07 +0000 (20:12 +0000)]
Fixed wrong use of datatypes. In wait_for(), a char was used together
with getchar(), in readchar(), a char was used to read input, which in
getuchar() is used as an argument to islower() and toupper(). Also removed
a condition which terminated the process if the user typed in character
255. Approved by christos.

19 years agoDon't assume /usr/games; use the same path as what rot13 was found at
atatat [Sat, 9 Apr 2005 02:02:15 +0000 (02:02 +0000)]
Don't assume /usr/games; use the same path as what rot13 was found at
to run caesar.

19 years agoA few minor spelling, grammar, and formatting fixes.
atatat [Sat, 9 Apr 2005 02:00:27 +0000 (02:00 +0000)]
A few minor spelling, grammar, and formatting fixes.

19 years agoFix a long-standing bug in wump(6) whereby hitting ^d to exit would first
jwise [Mon, 21 Mar 2005 18:45:18 +0000 (18:45 +0000)]
Fix a long-standing bug in wump(6) whereby hitting ^d to exit would first
print ``Care to play another game? (y-n)'' (but then exit anyway without
waiting for an answer).

19 years agoAdd -lcrypt where -lcrypto is specified.
christos [Wed, 9 Mar 2005 03:11:21 +0000 (03:11 +0000)]
Add -lcrypt where -lcrypto is specified.

19 years agoRemove a incorrect semicolon at the end of an if().
simonb [Fri, 25 Feb 2005 15:04:43 +0000 (15:04 +0000)]
Remove a incorrect semicolon at the end of an if().
Magic levels now appear after extensive play testing!

19 years agoDon't presume phantasia's internal bool (char) is the same as that in
jsm [Tue, 15 Feb 2005 12:58:21 +0000 (12:58 +0000)]
Don't presume phantasia's internal bool (char) is the same as that in
curses.h: define phbool and use it where necessary to avoid declaring
functions with one bool and defining them with the other.

Reviewed by <hubertf>.

19 years agoCast last argument of execl to (char *).
jsm [Tue, 15 Feb 2005 12:56:20 +0000 (12:56 +0000)]
Cast last argument of execl to (char *).

Reviewed by <hubertf>.

19 years agoAvoid arrays of incomplete types (required to build with GCC 4).
jsm [Tue, 15 Feb 2005 12:54:50 +0000 (12:54 +0000)]
Avoid arrays of incomplete types (required to build with GCC 4).

Reviewed by <hubertf>.

19 years agoA preprocessor macro named "srand" was defined which seeded the random
perry [Thu, 3 Feb 2005 02:23:02 +0000 (02:23 +0000)]
A preprocessor macro named "srand" was defined which seeded the random
number generator.

Unfortunately, it conflicted with a function of the same defined in
stdlib.h. This was masked by the __P hack, which is now being purged.

I've renamed "srand" to "seedrand" to eliminate the conflict.

19 years agoCorrect typos in German fortune. Reported by Charles Senger, csenger at UCSD.
jsm [Sun, 30 Jan 2005 13:49:28 +0000 (13:49 +0000)]
Correct typos in German fortune.  Reported by Charles Senger, csenger at UCSD.
Reviewed by <hubertf>.

20 years agoConvert from libc/threadlib-style mutex protection to pthread style.
nathanw [Tue, 14 Dec 2004 00:21:01 +0000 (00:21 +0000)]
Convert from libc/threadlib-style mutex protection to pthread style.

(XXX this game totally does not need a thread-safe malloc)

20 years agoRedo how void gets init'd.
jmc [Thu, 9 Dec 2004 05:15:59 +0000 (05:15 +0000)]
Redo how void gets init'd.
setup now just creates an empty file. When main starts and loads it in,
it stats and if zero size init's a new location and saves it back out.
Now games.tgz can be shared among MACHINE_ARCH's

20 years agoSlimy worms are clean enough for level 3.
christos [Sat, 13 Nov 2004 10:22:13 +0000 (10:22 +0000)]
Slimy worms are clean enough for level 3.

20 years agoAdd (unsigned char) cast to ctype functions
dsl [Fri, 5 Nov 2004 21:30:31 +0000 (21:30 +0000)]
Add (unsigned char) cast to ctype functions

20 years agoDon't try to catch SIGSTOP...
christos [Sun, 12 Sep 2004 04:51:32 +0000 (04:51 +0000)]
Don't try to catch SIGSTOP...

20 years agoIndent header description (from jmc@openbsd).
wiz [Thu, 9 Sep 2004 22:03:21 +0000 (22:03 +0000)]
Indent header description (from jmc@openbsd).
Sort sections and remove a trailing space.

20 years agoSome improvements from jmc@openbsd:
wiz [Thu, 9 Sep 2004 22:01:08 +0000 (22:01 +0000)]
Some improvements from jmc@openbsd:
sort option descriptions, add argument to -m, mention strfile
and add some xrefs.

20 years agoReplaced strncpy with strlcpy. Thanks to Peter Postma who
jrf [Tue, 7 Sep 2004 13:20:39 +0000 (13:20 +0000)]
Replaced strncpy with strlcpy.  Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.

20 years ago- sleep a little in autobot mode so that we can see what is happening.
christos [Fri, 27 Aug 2004 09:07:08 +0000 (09:07 +0000)]
- sleep a little in autobot mode so that we can see what is happening.
- use refresh() instead of wrefresh()

20 years agodescribe the algorithm better.
christos [Fri, 27 Aug 2004 09:06:25 +0000 (09:06 +0000)]
describe the algorithm better.

20 years agoFix typo
mjl [Fri, 20 Aug 2004 11:23:47 +0000 (11:23 +0000)]
Fix typo

20 years agoGrammar fix, from ray at raylai org via jmc@openbsd.
wiz [Tue, 1 Jun 2004 10:10:06 +0000 (10:10 +0000)]
Grammar fix, from ray at raylai org via jmc@openbsd.

20 years agoHad fun with a spell checker.
mjl [Sat, 22 May 2004 14:33:50 +0000 (14:33 +0000)]
Had fun with a spell checker.
Also, try to canonize attributions.

20 years ago- don't catch STOP, TSTP, QUIT; the first you cannot catch and the other two
christos [Sun, 2 May 2004 21:31:23 +0000 (21:31 +0000)]
- don't catch STOP, TSTP, QUIT; the first you cannot catch and the other two
  you should not.
- don't accept delay == 1000, because it turns to 0 and fix the number parsing
- misc KNF cleanups.

20 years agos/the the/the/ (only in sources that aren't regularly imported from
simonb [Fri, 23 Apr 2004 02:58:27 +0000 (02:58 +0000)]
s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).

20 years agoUndef bool before including <curses.h>, since it tries to typedef
he [Sun, 11 Apr 2004 13:35:06 +0000 (13:35 +0000)]
Undef bool before including <curses.h>, since it tries to typedef
bool.  Otherwise we get (at least on gcc 2.95.3) an empty declaration
warning from "typedef char char;" due to the #define of bool in
phantstruct.h.

20 years agoRework to use curses.h only on the target, not on the host.
ross [Wed, 7 Apr 2004 17:46:47 +0000 (17:46 +0000)]
Rework to use curses.h only on the target, not on the host.

20 years agoIf the current player has no cards, skip to the other player.
jdc [Tue, 6 Apr 2004 19:15:07 +0000 (19:15 +0000)]
If the current player has no cards, skip to the other player.
While we're here, make this compile with -DDEBUG.
Fixes PR bin/12530 from Thomas Klausner.

20 years agoProperly handle -d 1000, OK'd by jsm
hubertf [Mon, 29 Mar 2004 20:30:03 +0000 (20:30 +0000)]
Properly handle -d 1000, OK'd by jsm

20 years agoIt's "its".
snj [Mon, 29 Mar 2004 07:59:39 +0000 (07:59 +0000)]
It's "its".

20 years agoSpell "political" correctly and capitalize a last name.
snj [Mon, 29 Mar 2004 02:00:41 +0000 (02:00 +0000)]
Spell "political" correctly and capitalize a last name.

20 years agos/feal/feel/
snj [Sun, 28 Mar 2004 22:43:03 +0000 (22:43 +0000)]
s/feal/feel/

20 years agos/venomenous/venomous/
snj [Sun, 28 Mar 2004 22:42:39 +0000 (22:42 +0000)]
s/venomenous/venomous/

20 years agobecuase -> because. From Peter Postma.
wiz [Tue, 24 Feb 2004 15:05:53 +0000 (15:05 +0000)]
becuase -> because. From Peter Postma.

20 years agoEncode and decode more characters. Don't put commas after every
jsm [Fri, 13 Feb 2004 23:16:11 +0000 (23:16 +0000)]
Encode and decode more characters.  Don't put commas after every
character.  Don't encode whitespace as "...".  Don't fail decoding
across a 1024-byte boundary.  Mark end of message appropriately.  From
OpenBSD but with punctuation taken from ITU-T Recommendation F.1
(03/98).

20 years agoUppercase CPU, plural is CPUs.
wiz [Fri, 13 Feb 2004 11:36:08 +0000 (11:36 +0000)]
Uppercase CPU, plural is CPUs.

20 years ago|fmt; add single quotes around a plus.
wiz [Mon, 9 Feb 2004 23:25:47 +0000 (23:25 +0000)]
|fmt; add single quotes around a plus.

20 years agoMark unused parameters, nonreturning functions and format functions in
jsm [Sun, 8 Feb 2004 22:23:50 +0000 (22:23 +0000)]
Mark unused parameters, nonreturning functions and format functions in
the few cases not already marked.

20 years agoHide the cursor if possible. From OpenBSD.
jsm [Sun, 8 Feb 2004 22:21:57 +0000 (22:21 +0000)]
Hide the cursor if possible.  From OpenBSD.

20 years agoFix race in parallel make when creating multiple targets in one operation.
lukem [Sun, 8 Feb 2004 22:14:27 +0000 (22:14 +0000)]
Fix race in parallel make when creating multiple targets in one operation.

20 years agoSeparate primes manpage from that of factor. Correct DIAGNOSTICS
jsm [Sun, 8 Feb 2004 13:16:25 +0000 (13:16 +0000)]
Separate primes manpage from that of factor.  Correct DIAGNOSTICS
information.

20 years agoCheck large factor for being prime before applying Pollard's
jsm [Sun, 8 Feb 2004 11:47:36 +0000 (11:47 +0000)]
Check large factor for being prime before applying Pollard's
algorithm; fixes "factor 2147483647111311".  Correct comment;
algorithm is Pollard p-1, not Pollard rho.  Increase base if p-1
algorithm reaches 1; fixes "factor 99999999999991".  Testcases from
David A Bagley <bagleyd@tux.org>.