summaryrefslogtreecommitdiffstats
path: root/monop
Commit message (Collapse)AuthorAgeFilesLines
* Improve how various "simple" host tools are built and invoked.lukem2003-11-161-4/+4
|
* Rework how MAKEVERBOSE operates:lukem2003-10-211-5/+3
| | | | | | | | | | * Don't bother prefixing commands with a line of ${_MKCMD}\ and instead rely upon "make -s". This is less intrusive on all the Makefiles than the former. Idea from David Laight. * Rename the variables use to print messages. The scheme now is: _MKMSG_FOO Run _MKMSG 'foo' _MKTARGET_FOO Run _MKMSG_FOO ${.TARGET} From discussion with Alistair Crooks.
* rework to use the newer _MKMSGCREATE (et al) macroslukem2003-10-191-3/+3
|
* Support MAKEVERBOSE. (Some host tools still generate verbose runtime messages)lukem2003-10-191-1/+5
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-0725-166/+66
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Quote question mark.wiz2003-06-271-2/+2
|
* Fix some nits, do not mark up i.e. too much. From jmc@openbsd.wiz2003-04-261-10/+8
|
* PR/8247: Simon Burge: monop(6) save/restore doesn't work.christos2003-04-212-6/+9
| | | | | | With the advent of elf and mmaping malloc, assumptions that the code made before about location and contents of the data segment broke. We supplied an sbrk() only malloc, and recorded the break point at the beginning of the program, so now save and restore works, in the traditional monop style.
* use an sbrk() only malloc() because save and restore depends on savingchristos2003-04-212-3/+500
| | | the data segment only. Maybe we should make libbsdmalloc?
* interrupt with two rs.wiz2003-01-061-3/+3
|
* Lots of minor fixes resulting from reading these man pages in detail.wiz2002-09-261-8/+10
|
* New sentences begin on new lines.wiz2002-09-261-3/+5
| | | Patch from Richard Elz, slightly improved by yours truly.
* calloc() arg mistake. it's (nelem, size). from openbsditojun2002-08-121-3/+3
|
* de-registerwiz2002-06-021-4/+2
|
* No need to reference .OBJDIR here.thorpej2002-03-051-2/+2
|
* Generate <>& symbolically. I'm avoiding .../dist/... directories for now.ross2002-02-081-2/+2
|
* Give initiali[sz]e all the "i"s it deserves.wiz2001-09-181-3/+3
|
* Include <time.h> for declarations the Single Unix Specification saysjsm2001-08-291-2/+3
| | | are there but not in <sys/time.h>.
* seperate -> separatewiz2001-07-221-4/+4
|
* fix building of cards.pcklukem2001-06-061-2/+2
|
* Whitespace and/or punctuation fixes.wiz2001-04-021-8/+8
|
* avoid C sequence point issues warned about by development version of gcc.cgd2001-01-162-7/+7
|
* remove unnecessary command name after .Nmlukem2000-11-071-3/+3
|
* Use a local implementation of htonl() called h2nl(). htonl() is notsimonb2000-07-311-6/+26
| | | | | available in all cross-compile environments. Patches from Chris Demetriou.
* printf() pedant - do not pass variable alone, use %s.itojun2000-07-101-4/+4
| | | idea from openbsd. after looking at freebsd commit msgs from kris@freebsd.
* Fix typo, pointed out by seebs@plethora.net in PR bin/10131.hubertf2000-05-171-1/+1
|
* Use setgid(), not setregid().mycroft2000-05-081-3/+3
|
* Use err(1, NULL) and warn(NULL) for `out of memory' error messages.jsm2000-01-091-4/+4
|
* Don't use <err.h>. Use ANSI prototypes (no dependance on the __P()simonb1999-12-302-33/+62
| | | | | | | | | | | | | macro). Add new fwrite_be_offt() function which writes out a big-endian 64bit number regards of the size of off_t on the host machine. Also fix ``bug'' in previous - even though the off_t pointers were stored big-endian, the individual card lenghs were in host-order. The cards.pck files are now identical when make on a big- or little-endian machine. Now builds a correct cards.pck file on non-NetBSD machines as well - tested on Ultrix and Solaris (but Solaris needs -lsocket to get htonl()).
* Fix uses of namespaces reserved by ISO C or POSIX.1.jsm1999-09-303-9/+9
|
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-121-2/+5
| | | | | | | | | | | | | | | Games which run setgid from dm, but don't need to, should drop their privileges at startup. Games which have a scorefile should open it at startup, then drop all privileges leaving just the open writable file descriptor. If the game can invoke subprocesses, this should be made close-on-exec. Games with scorefiles should make sure they do not get a file descriptor < 3. (Otherwise, they could get confused and corrupt the scorefile when using stdin, stdout or stderr.) Some old setuid revokes from the days of setuid games change into gid revokes.
* Check for write errors in auxiliary programs used during build of games.jsm1999-09-101-6/+7
|
* Check for failure of malloc() and calloc() at various places in the games.jsm1999-09-095-10/+23
|
* Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate injsm1999-09-082-7/+7
| | | the games.
* Add `__noreturn__' and `__unused__' attributes where appropriate tojsm1999-09-081-3/+3
| | | | | | | | | | | | the games. This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Most noreturn attributes were previously added in bin/6144, with some others that were missed then in bin/8082. Previous `unused' attributes were covered in bin/6557, bin/8058 and other PRs (all these PRs have already been handled and closed).
* Add use of `const' where appropriate to the games.jsm1999-09-0813-58/+59
| | | | | | | | | This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Some such changes were previously covered in PRs bin/6041, bin/6146, bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994, bin/8039, bin/8057 and bin/8093.
* Convert to something resembling KNF.simonb1999-08-2118-371/+377
|
* Instead of writing out a structure that contains pointers as the headersimonb1999-08-213-18/+62
| | | | | | of the card decks file, just write out the number of cards for each deck. Also use "off_t" for offsets into the file (that are stored after the number of cards) instead of "long". /usr/share/games/cards.pck is now MI.
* convert from NOxxx= to MKxxx=no.lukem1999-02-131-2/+4
| | | include <bsd.own.mk> if testing a MKxxx variable.
* don't install in /usr/share if NOSHARE is definedlukem1998-09-291-1/+3
|
* Make the helper programs compile right in a cross-compiling environment.wrstuden1998-09-121-1/+4
|
* use symbolic constants for signals & open(2), as per PR#5867hubertf1998-09-112-6/+6
|
* Add braces to make the new egcs happy.veego1998-08-302-6/+8
|
* WARNSifychristos1997-10-1219-328/+564
|
* enable WARNS?=1 by default, & temporarily disable for the few unclean programslukem1997-10-121-1/+2
|
* Allow this to be cross-compiled.thorpej1997-04-191-2/+2
|
* Make these compile on the PowerPC (an unsigned char system).thorpej1997-03-294-13/+23
|
* - Makefile cleanupschristos1997-03-241-5/+3
|
* Use ${INSTALL}.thorpej1996-10-181-2/+2
|
* Various changes to make games compile w/o warnings on the alpha:cgd1995-04-242-3/+6
| | | | Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.