summaryrefslogtreecommitdiffstats
path: root/sail/pl_1.c
Commit message (Collapse)AuthorAgeFilesLines
* Create some abstraction for sending messages.dholland2009-03-141-3/+3
| | | | | Make a send and receive function for each possible message. Make these have useful argument signatures. Hide the list of message codes inside sync.c.
* Don't use perror()dholland2009-03-141-3/+2
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-4/+4
|
* Use int for wait status.jsm2004-01-271-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.
* remove redundant decls.christos2001-02-051-6/+2
|
* include stdlib.h for prototypes (typically for exit()).cgd2001-01-161-2/+3
|
* Various stylistic nits.jwise2001-01-041-4/+4
|
* Break out curses display-related globals into a new header file, so thatjwise2001-01-041-2/+3
| | | <curses.h> doesn't have to be included all over the place.
* More rationalization of include files:jwise2001-01-041-2/+3
| | | | | | | | 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-4/+4
| | | | everywhere' a little (more to go), and as per KNF, local includes after system includes.
* Second half of static-ization of local funcs.jwise2001-01-041-2/+6
|
* ANSIfy in preparation for further work.jwise2001-01-011-16/+13
|
* More include additions for exit, abs, strcmp, etc.matt2000-07-031-2/+3
|
* Add `__noreturn__' and `__unused__' attributes where appropriate tojsm1999-09-081-4/+4
| | | | | | | | | | | | 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).
* The game sail(6) has a function Write() which is used both withhubertf1999-02-101-3/+3
| | | | | | | | | | | | integer arguments and with string arguments (cast to long, and in one place to int). The patch here cleans this up, making it into two separate functions; this allows for the game to be made const-correct in future and improves portability. The patch also contains two other fragments: a change to use the symbolic constant SEEK_END with fseek(), and a change to use snprintf in one place to avoid a buffer overrun. Via PR 6569 by Joseph Myers <jsm28@cam.ac.uk>.
* - make sure that the arguments to the printf like functions are correctchristos1997-10-131-4/+6
| | | - add a makemsg() function to accompany makesignal.
* Warns fixes:christos1997-10-131-16/+18
| | | | | | use varargs properly use unsigned chars where appropriate fix typos eliminate gcc warnings
* clean up import, NetBSD RCS IDscgd1995-04-221-4/+9
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+135