summaryrefslogtreecommitdiffstats
path: root/monop
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* merge with Lite, new RCS id conventions, etc.cgd1995-03-2325-86/+174
|
* from Litecgd1995-03-214-12/+12
|
* specify man pages the new way.cgd1994-12-221-2/+2
|
* fix transposition. from Luke Mewburn <lm@rmit.edu.au>cgd1994-03-191-3/+3
|
* Use .OBJDIR for auxiliary programs.pk1994-01-041-2/+2
|
* use LDSTATICcgd1993-11-081-2/+2
|
* Fix formatting error.jtc1993-09-161-2/+2
|
* Nuke `all' dependency. bsd.prog.mk does it, and correctly.mycroft1993-08-101-3/+1
|
* Tweak for cross-compilation.mycroft1993-08-101-4/+4
|
* Update our -mandoc manpage with changes from new uunet -man manpage.jtc1993-08-091-79/+74
|
* New version from uunet.mycroft1993-08-076-210/+147
|
* update to -mandoc macrosjtc1993-08-051-79/+74
|
* Add RCS identifiers.mycroft1993-08-0118-18/+36
|
* Add RCS indentifiers.mycroft1993-08-011-1/+2
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* Use ${COPY}, not -c for install.mycroft1993-07-181-1/+1
|
* Use POSIX RAND_MAX rather than guessing.mycroft1993-04-191-20/+3
|
* copy deck of cards, rather than moving it, on installcgd1993-04-091-1/+1
|
* got rid of unnecessary -lcompat and associated dependencycgd1993-03-231-2/+0
|
* initial import of 386bsd-0.1 sourcescgd1993-03-2126-0/+3777