summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-2044-175/+175
|
* Clarify how one is supposed to use the pointers returned by getutentries()dholland2008-07-131-7/+2
| | | | | | | | | | | | | (the utmpentry.c code), specifically with respect to who owns them and when to free them. Now they're owned by utmpentry.c, only. Abolish the freeutentries() function, which was the wrong abstraction; add instead endutentries(), which flushes out the internally managed memory. Update callers as necessary. Some (e.g. talkd) had been leaking memory; others (e.g. syslogd) had been accidentally freeing and reloading utmp more often than necessary. There are a couple untidy bits in users and rwhod that someone should look after sometime, maybe. Fixes PR bin/35131, which was about talkd's memory leak.
* Add test for HAVE_PCC with HAVE_GCC which turn off compiler warning flags.gmcgarry2008-07-122-6/+6
|
* remove clause #3 from my license where there are no othermrg2008-05-291-3/+1
| | | copyright holders involved.
* 2-clause my license.wiz2008-05-081-3/+1
|
* Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this islukem2008-05-031-2/+2
| | | | a variable that is used by in-tree Makefiles to control behaviour. (MKsomevar variables are generally intended to be controlled by the end-user)
* Remove clause 3 and 4 from TNF licensesmartin2008-04-2825-210/+35
|
* Fix a tip: use pkg_info, not pkg_add to find out which executableswiz2008-03-251-3/+3
| | | belong to a package.
* Add a tip explaining how to run the tests in /usr/tests.jmmv2008-03-231-0/+8
|
* In example, change dd count size and also chmod so others can't read swap.reed2008-03-221-1/+2
|
* Add five more tips.reed2008-03-211-0/+19
|
* Add "netbsd-tips" fortune database with 23 initial fortunes --reed2008-03-212-4/+120
| | | | | | actually hints or suggestions or tips on using NetBSD. Please share your brief NetBSD usage tips. If you want to discuss or share suggestions, have a look at http://wiki.netbsd.se/netbsd-tips wiki page.
* Don't crash if we're asked to restore from /dev/null. (woops)dholland2008-02-241-2/+13
|
* Fix a bit more lint.dholland2008-02-243-12/+11
|
* Fix some more lint. (There's plenty to go around.)dholland2008-02-242-20/+22
| | | | | If we try to load a game and it bombs, keep prompting for another one, because if we try to continue with a half-loaded game we'll probably end up in trouble.
* Don't cast the return value of calloc.dholland2008-02-241-3/+3
|
* fix some lintchristos2008-02-245-23/+18
|
* need errno.hchristos2008-02-241-2/+3
|
* Update for today's changes: 1-player games are not allowed, and cards.pckdholland2008-02-241-8/+3
| | | no longer appears.
* Fix the OpenBSD housing shortage code.dholland2008-02-241-43/+63
|
* ret_card(), which I moved earlier, was consequently filed under the wrongdholland2008-02-241-2/+4
| | | source file name. fix.
* We do not need special code for pdp11. Also, because random() returns alldholland2008-02-241-26/+4
| | | good bits (unlike rand()) we can simplify this.
* Typo patroldholland2008-02-241-4/+5
|
* This file is also no longer used.dholland2008-02-241-122/+0
|
* Abolish the initdeck program and the weird little binary file it generates.dholland2008-02-246-391/+186
| | | | | | | | The card deck data is now compiled in. (And it always should have been, even back when memory usage counted. It's small.) This changes the save format slightly. (I am riding the previous breakage an hour ago and not providing compat. There should be no further breakage.)
* Source files should be named *.c or *.h, not random other things.dholland2008-02-2421-402/+241
| | | | | | | | Fold monop.ext (which was extern data decls) into monop.h and deck.h. Fold monop.def (which had definitions for the extern data) into monop.c. Fold brd.dat/mon.dat/prop.dat (which were array initializers for some of the data) into monop.c. Rearrange includes accordingly. No functional change.
* Remove last traces of old save/load code. We no longer need a privatedholland2008-02-244-505/+5
| | | copy of malloc.
* Sort out the memory leak fix properly.dholland2008-02-241-5/+3
|
* New save/load code. Related to (but not the same as) the new save/loaddholland2008-02-241-33/+501
| | | | | | | | | | code in OpenBSD. Note: this breaks compatibility with old save files. However, the old save files were missing critical information, had a completely insane format, and didn't work anyway. I will be riding this breakage with another breakage within a day or two when I fix the insanity in the card deck handling.
* Fixes from OpenBSD.dholland2008-02-231-4/+10
| | | | | | | | | | - If a player goes bankrupt buying a property (which shouldn't be allowed, but I guess it is), don't cause them to resign to themselves. - Use "NULL", not "0", for pointers. - Avoid undefined behavior adjusting the current player after resigning. - Don't leak the memory used to store player names. The last of these is disabled for the moment because we have the pointers in question tagged const. Will see to this when I'm finished merging.
* Fix from OpenBSD: don't say "1 houses".dholland2008-02-231-4/+5
|
* Bug fixes from OpenBSD:dholland2008-02-231-3/+7
| | | | - don't truncate unreasonably long player names when bidding; - don't allow players to bid more cash than they have.
* Bug fix: having $0 does not mean you need to mortgage something. Plus somedholland2008-02-231-18/+8
| | | | tidyup. From OpenBSD.
* More fixes from OpenBSD:dholland2008-02-231-20/+21
| | | | | | - initialize in the proper order - don't allow 1-player games - make the check for players named "done" work properly - a couple other minor things
* Sanity fixes for input handling. Suggested by OpenBSD, but different code.dholland2008-02-231-19/+17
|
* A first stab at supporting the housing shortage rules. From OpenBSD.dholland2008-02-232-10/+94
| | | (note: this is not fully correct - I will fix it when I finish merging)
* Don't increment booleans. From OpenBSDdholland2008-02-231-6/+6
|
* Sanity fixes for input buffer handling. From OpenBSDdholland2008-02-231-11/+7
|
* Improve the behavior of get-out-of-jail-free cards by returning them todholland2008-02-231-5/+38
| | | | the bottom of the deck when used. There are still a few other problems. From OpenBSD.
* Rename ->last_card to ->top_card to match OpenBSD (and also to makedholland2008-02-232-7/+7
| | | somewhat more sense...)
* Move ret_card() to cards.c, where it more rationally belongs. From OpenBSD.dholland2008-02-232-19/+19
|
* A few more whitespace/KNF. I keep hoping I've found them all...dholland2008-02-204-17/+14
|
* Add the sizes to the extern array declarations. This may not bedholland2008-02-201-6/+6
| | | | necessary, but it's safe and reduces unnecessary divergence. From OpenBSD.
* Use random() rather than rand(). Suggested by diffing against OpenBSD.dholland2008-02-202-6/+7
|
* Remove unused swap() macro.dholland2008-02-201-6/+1
|
* Don't misuse random strings as printf formats, even where it's harmless.dholland2008-02-201-3/+3
| | | Found by diffing against OpenBSD.
* One more (hopefully the last) whitespace fix.dholland2008-02-191-3/+3
|
* getinp() no longer magically treats the prompt arg as a printf format, sodholland2008-02-191-3/+3
| | | don't escape % as %%. From OpenBSD.
* Move function heading comments to something vaguely like the right place.dholland2008-02-191-7/+22
|
* KNF/whitespace nits. No functional changes.dholland2008-02-199-49/+53
|