summaryrefslogtreecommitdiffstats
path: root/robots
Commit message (Collapse)AuthorAgeFilesLines
* properly terminate after using strncpy().mrg2021-04-131-4/+5
|
* Use PREFIX nowCameron Katri2021-03-282-5/+7
|
* Get all the games compiling for iOSCameron Katri2021-02-221-5/+15
|
* robots: Use arc4random_uniform for better uniform distributionnia2020-07-262-16/+6
|
* When using -lcurses, you also need -lterminfo.he2010-02-061-3/+3
| | | | This fixes the build for sun2, and also builds with LDSTATIC=-static, since archive libraries don't record inter-library dependencies.
* sprinkle staticdholland2009-08-125-23/+27
|
* don't use char values for functions that can return -1; chars are not alwayschristos2009-08-051-4/+3
| | | signed.
* Use getopt instead of hand-rolled options code. Document all the argumentsdholland2009-08-052-76/+87
| | | | | and options. Don't allow the previously undocumented method to change the maximum number of scores kept per user to be used on the system-wide high score file. Sort options list in the man page. Bump its date.
* don't ignore errors from read(); found by lintdholland2009-08-031-5/+4
|
* Use random() instead of rand(), and seed with time instead of pid.dholland2009-07-202-6/+7
|
* Assorted minor cleanups, no functional change:dholland2009-07-2013-112/+137
| | | | | | | | | | - u_int* -> uint* - don't make private typedefs of system structures - use curses TRUE and FALSE only with curses booleans, otherwise true and false; - includes cleanup - group globals in extern.c by functionality Object file diffs inspected.
* A bit more whitespace.dholland2009-07-202-7/+7
|
* Whitespace.dholland2009-07-2013-231/+231
|
* ANSIfy. Use __dead. Object diffs checked.dholland2009-07-2012-98/+69
|
* \@ is not a valid escape sequence.joerg2009-04-091-2/+2
|
* if initscr() fails, exit with a message rather than crash in thedrochner2008-08-081-3/+4
| | | next curses call
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* Remove clause 3 and 4 from TNF licensesmartin2008-04-281-8/+1
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-3/+3
|
* If getpwuid() returns null, its not usually a good idea to dereferenceabs2006-03-171-5/+5
| | | | | that to try to assign a default value. Just copy the default value into the final destination. Addresses Coverty CID 925
* Use standard AUTHORS section header. From YOMURA Masanori in private mailwiz2005-09-151-4/+5
| | | Sort sections if necessary. Use more/better markup.
* Add (unsigned char) cast to ctype functionsdsl2004-11-051-3/+3
|
* - 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
|
* Remove uses of __P.jsm2004-01-274-43/+43
|
* Include <sys/endian.h>.jsm2004-01-271-1/+2
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-0714-95/+39
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Lots of minor fixes resulting from reading these man pages in detail.wiz2002-09-261-4/+4
|
* New sentences begin on new lines.wiz2002-09-261-2/+3
| | | Patch from Richard Elz, slightly improved by yours truly.
* Generate <>& symbolically. I'm avoiding .../dist/... directories for now.ross2002-02-081-2/+2
|
* Be more verbose about teleports, and fix a minor problem in autobot mode.christos2002-01-314-8/+26
|
* Change deprecated curses function to new equivalent.blymn2001-12-061-3/+3
|
* Whitespace and/or punctuation fixes.wiz2001-04-021-3/+3
|
* fix nested externschristos2001-02-051-4/+5
|
* comment or delete text after CPP directives.cgd2001-01-162-6/+6
|
* Use setgid(), not setregid().mycroft2000-05-081-3/+3
|
* Cast pointer diffs to long for printing with %ld.thorpej2000-04-271-3/+3
|
* Fix arguments to *printw().jdc2000-04-271-3/+3
|
* Don't insert leading 0s in the score display. (HI CHRISTOS!)mycroft2000-04-091-4/+4
|
* Report scores as auto-bot or not correctly.jsm2000-01-201-3/+3
| | | Bug report and fix from Malcolm Parsons <malcolm@bits.bris.ac.uk>.
* Ensure correct prompt asking about another game is given at the end ofjsm2000-01-191-2/+3
| | | | | each game. Bug report and fix from Malcolm Parsons <malcolm@bits.bris.ac.uk>.
* Typo fix in unknown option message (from Malcolm Parsonsjsm2000-01-191-3/+3
| | | <malcolm@bits.bris.ac.uk>).
* Remove definition of __cputchar.jsm2000-01-191-9/+2
|
* update after change to return value of tputs() third argumentlukem1999-10-041-4/+4
|
* Fix uses of namespaces reserved by ISO C or POSIX.1.jsm1999-09-301-1/+2
|
* Fix -Wsign-compare warnings.jsm1999-09-183-10/+11
|
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-123-16/+37
| | | | | | | | | | | | | | | 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.
* Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate injsm1999-09-081-3/+3
| | | 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-088-35/+36
| | | | | | | | | 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.