summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Initialize lnum and unum to avoid a "might be used uninitialized"martin2005-06-301-3/+3
| | | warning.
* missing paragraph break from the originalperry2005-06-301-1/+2
|
* ching(6) -- The Book of Changes, not seen in BSD since 4.4BSD.perry2005-06-3013-0/+3271
| | | | | | | | | | | | | | | | | | | 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
* Fixed error on a nonexistent mail spool file, when countmail can't find ↵symka2005-06-301-2/+2
| | | | it\n\nCloses PR misc/29526\n\n\(Code submitted in PR misc/29526 by Andreas Eder)
* Fixed a comment that said the factors in the output would be strictlyrillig2005-06-271-3/+3
| | | ascending.
* Changed the type of data_table to be unsigned char[] instead of char[],rillig2005-06-271-6/+6
| | | | | | 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.
* Fixed buffer overflow with long command line arguments.rillig2005-06-271-5/+15
|
* Drop trailing space.wiz2005-06-261-2/+2
|
* * Change program logic to not nest needlesslyhubertf2005-06-222-34/+44
| | | | | | | | | * 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>
* Change marker from "pmppc" to "powerpc" because a NetBSD-macppc buildtron2005-06-091-3/+3
| | | is also affected.
* Add an initialization to placate -Wuninitialized.he2005-06-091-2/+4
| | | Marked with XXXGCC for pmppc (found while compiling for it).
* Raised WARNS to 4.rillig2005-05-231-1/+2
|
* * fixed <ctype> bugsrillig2005-05-231-66/+106
| | | | | | | | | * 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
* Otto Von Bismarck -> Otto von Bismarck.kleink2005-05-101-2/+2
|
* It is Bismarck not Bismark.bad2005-05-101-1/+1
|
* Sort list, and add Nunavut, which has been a Canadian province since 1999.jwise2005-05-021-8/+9
|
* Cyprus is part of Europe, not Asia. Turkey is currently listed in bothjwise2005-05-022-1/+1
| | | Europe and Asia, I'm leaving it that way.
* The current President of the United States is George Walker Bush, not Georgejwise2005-05-021-2/+2
| | | Walker Bush, Jr. (his father was George Herbert Walker Bush).
* Fixed wrong use of the <ctype.h> functions by adding an explicit conversionrillig2005-04-193-11/+11
| | | to unsigned char. Approved by christos.
* Fixed wrong use of datatypes. In wait_for(), a char was used togetherrillig2005-04-191-8/+5
| | | | | | 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.
* Don't assume /usr/games; use the same path as what rot13 was found atatatat2005-04-091-2/+3
| | | to run caesar.
* A few minor spelling, grammar, and formatting fixes.atatat2005-04-092-7/+7
|
* Fix a long-standing bug in wump(6) whereby hitting ^d to exit would firstjwise2005-03-211-6/+8
| | | | print ``Care to play another game? (y-n)'' (but then exit anyway without waiting for an answer).
* Add -lcrypt where -lcrypto is specified.christos2005-03-091-3/+3
|
* Remove a incorrect semicolon at the end of an if().simonb2005-02-251-4/+4
| | | Magic levels now appear after extensive play testing!
* Don't presume phantasia's internal bool (char) is the same as that injsm2005-02-155-11/+13
| | | | | | 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>.
* Cast last argument of execl to (char *).jsm2005-02-158-24/+25
| | | Reviewed by <hubertf>.
* Avoid arrays of incomplete types (required to build with GCC 4).jsm2005-02-153-7/+7
| | | Reviewed by <hubertf>.
* A preprocessor macro named "srand" was defined which seeded the randomperry2005-02-032-5/+5
| | | | | | | | 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.
* Correct typos in German fortune. Reported by Charles Senger, csenger at UCSD.jsm2005-01-301-3/+3
| | | Reviewed by <hubertf>.
* Convert from libc/threadlib-style mutex protection to pthread style.nathanw2004-12-141-13/+13
| | | (XXX this game totally does not need a thread-safe malloc)
* Redo how void gets init'd.jmc2004-12-092-16/+18
| | | | | 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
* Slimy worms are clean enough for level 3.christos2004-11-131-1/+2
|
* Add (unsigned char) cast to ctype functionsdsl2004-11-0524-111/+109
|
* Don't try to catch SIGSTOP...christos2004-09-121-3/+2
|
* Indent header description (from jmc@openbsd).wiz2004-09-091-6/+6
| | | Sort sections and remove a trailing space.
* Some improvements from jmc@openbsd:wiz2004-09-091-19/+34
| | | | sort option descriptions, add argument to -m, mention strfile and add some xrefs.
* Replaced strncpy with strlcpy. Thanks to Peter Postma whojrf2004-09-073-17/+12
| | | pointed them our in PR #25762. Approved by christos@NetBSD.org.
* - sleep a little in autobot mode so that we can see what is happening.christos2004-08-271-5/+9
| | | - use refresh() instead of wrefresh()
* describe the algorithm better.christos2004-08-271-10/+8
|
* Fix typomjl2004-08-201-1/+1
|
* Grammar fix, from ray at raylai org via jmc@openbsd.wiz2004-06-011-2/+2
|
* Had fun with a spell checker.mjl2004-05-221-58/+57
| | | Also, try to canonize attributions.
* - don't catch STOP, TSTP, QUIT; the first you cannot catch and the other twochristos2004-05-021-22/+24
| | | | | you should not. - don't accept delay == 1000, because it turns to 0 and fix the number parsing - misc KNF cleanups.
* s/the the/the/ (only in sources that aren't regularly imported fromsimonb2004-04-232-4/+4
| | | elsewhere).
* Undef bool before including <curses.h>, since it tries to typedefhe2004-04-116-6/+12
| | | | | 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.
* Rework to use curses.h only on the target, not on the host.ross2004-04-079-11/+19
|
* If the current player has no cards, skip to the other player.jdc2004-04-061-2/+15
| | | | While we're here, make this compile with -DDEBUG. Fixes PR bin/12530 from Thomas Klausner.
* Properly handle -d 1000, OK'd by jsmhubertf2004-03-291-3/+8
|
* It's "its".snj2004-03-291-1/+1
|