summaryrefslogtreecommitdiffstats
path: root/games/robots/robots.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* More cleanup and sorting on header sectionmestre2016-01-041-15/+3
| | | | | OK tb@ and he also pointed out that for consistency with rest of the tree we should include termios.h instead of sys/ttydefaults.h, where applicable
* Set as __dead a few more functions, that don't return, on games/mestre2015-12-261-2/+2
| | | | With precious tip, help and also OK from tb@
* Declare usage() functions as __dead void, if they don't return, on games section.mestre2015-12-251-2/+2
| | | | | | Found another one in arithmetic(6) which also didn't return, and removed a function from number(6) which is not used anymore. OK tb@
* Drop pledge("getpw") and pwd.h and use the now usualtb2015-12-041-2/+1
| | | | | | | LOGNAME -> USER -> getlogin() -> ??? fallback in the score file, as requested by tedu@ Man page bits adapted from jmc@'s tweaks to snake.6
* Move scorefile to $HOME. The nice implementation of the score filetb2015-11-291-3/+1
| | | | | depends on getpwuid(), so add "getpw" to the rest of the required pledges: "stdio rpath wpath cpath tty".
* Improve robots(6) by using timespec*() functions, replacing gettimeofday()rzalamena2015-08-261-2/+2
| | | | | | | with clock_gettime(MONOTONIC) to avoid clock changes and replacing poll() with ppoll() to deal better with timespec. ok guenther@.
* Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>,guenther2014-11-161-3/+3
| | | | | | | | | and <sys/ttydefaults.h> Replace MAXPATHLEN with PATH_MAX and MAXLOGNAME with LOGIN_NAME_MAX Pull in <limits.h> where needed Prefer sizeof(var) over MAXFOO or FOO_MAX ok deraadt@
* select() to poll() conversionsderaadt2014-11-031-2/+2
| | | | ok tedu (... other games maintainer absent)
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-23/+23
|
* Enable realtime mode, use native curses functions when available, tidy manpjanzen1999-12-181-9/+9
| | | | | page, and use MAXLOGNAME for scorefile (this makes new scorefiles incompatible with old ones). Realtime idea and some code from d@.
* More largely NetBSD-inspired code cleanuppjanzen1998-08-221-2/+2
|
* Scorefile bugfix and minor code cleaning, some from NetBSDpjanzen1998-07-091-29/+63
|
* initial import of NetBSD treederaadt1995-10-181-0/+110