summaryrefslogtreecommitdiffstats
path: root/sail/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Rework the game startup so it uses curses nicely. There are now menusdholland2010-08-061-10/+53
| | | and stuff for picking scenarios and ships and all that.
* Fix usage messagedholland2009-03-141-3/+3
|
* chdir to /var/games/sail while running, to simplify name handling.dholland2009-03-141-2/+7
|
* Use errx/warnx instead of printing to stderr. From OpenBSD.dholland2009-03-021-5/+5
|
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-7/+3
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Include <time.h> for declarations the Single Unix Specification saysjsm2001-08-291-2/+3
| | | are there but not in <sys/time.h>.
* More rationalization of include files:jwise2001-01-041-2/+5
| | | | | | | | a.) Don't include a zillion system headers from "extern.h" (actually, don't include any). b.) Break a global jmp_buf variable into a new file, so <setjmp.h> doesn't have to be pulled in everywhere (it's only used in two places). The (one line) new file is (c) TNF with a three-clause license, FW(L)IW.
* Rationalize inclusion of header files: cut down on `include everythingjwise2001-01-041-5/+5
| | | | everywhere' a little (more to go), and as per KNF, local includes after system includes.
* G/C undocumented and unimplemented `-D' (debug) option.jwise2001-01-041-6/+3
|
* Fix getopt usage (again) in case where user does not choose a scenario onjwise2001-01-011-2/+5
| | | the command line.
* Fix getopt() usage.jwise2001-01-011-3/+3
|
* ANSIfy in preparation for further work.jwise2001-01-011-4/+2
|
* Fix warning.jwise2000-11-301-3/+3
|
* Use random() instead of rand(), and seed from time(3) instead of from getpid().jwise2000-11-301-3/+3
|
* Change the macro to roll a six-sided die from die() to dieroll() (forjwise2000-11-301-3/+2
| | | obvious reasons of convention).
* Use getopt(3) for flag processing.jwise2000-11-301-5/+11
|
* Fix style nit.jwise2000-11-301-3/+3
|
* ANSIfy in preparation for other changes.jwise2000-11-301-6/+4
|
* Fix insecure /tmp usage in sail.jsm2000-02-091-3/+13
| | | | | Essentially concludes the merge into NetBSD of those changes in the Linux port of the NetBSD games which it is fairly clear to me should be so merged.
* - make sure that the arguments to the printf like functions are correctchristos1997-10-131-3/+3
| | | - add a makemsg() function to accompany makesignal.
* Warns fixes:christos1997-10-131-10/+16
| | | | | | use varargs properly use unsigned chars where appropriate fix typos eliminate gcc warnings
* Sync to 4.4BSD-Lite2tls1997-01-071-4/+4
|
* clean up import, NetBSD RCS IDscgd1995-04-221-7/+12
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+108