xref: /csrg-svn/games/atc/include.h (revision 37009)
1*37009Sbostic /*
2*37009Sbostic  * Copyright (c) 1987 by Ed James, UC Berkeley.  All rights reserved.
3*37009Sbostic  *
4*37009Sbostic  * Copy permission is hereby granted provided that this notice is
5*37009Sbostic  * retained on all partial or complete copies.
6*37009Sbostic  *
7*37009Sbostic  * For more info on this and all of my stuff, mail edjames@berkeley.edu.
8*37009Sbostic  */
9*37009Sbostic 
10*37009Sbostic #include <stdio.h>
11*37009Sbostic #include <ctype.h>
12*37009Sbostic #ifdef SYSV
13*37009Sbostic #include <sys/types.h>
14*37009Sbostic #endif
15*37009Sbostic #include <pwd.h>
16*37009Sbostic 
17*37009Sbostic #ifdef BSD
18*37009Sbostic #include <sgtty.h>
19*37009Sbostic #include <sys/time.h>
20*37009Sbostic #include <sys/file.h>
21*37009Sbostic #endif
22*37009Sbostic 
23*37009Sbostic #ifdef SYSV
24*37009Sbostic #include <fcntl.h>
25*37009Sbostic #include <unistd.h>
26*37009Sbostic #include <string.h>
27*37009Sbostic #include <sys/utsname.h>
28*37009Sbostic #endif
29*37009Sbostic 
30*37009Sbostic #include <signal.h>
31*37009Sbostic #include <math.h>
32*37009Sbostic 
33*37009Sbostic #include <curses.h>
34*37009Sbostic 
35*37009Sbostic #ifdef SYSV
36*37009Sbostic #define	index	strchr
37*37009Sbostic #define	rindex	strrchr
38*37009Sbostic #define bcopy(a,b,c)	memcpy((b), (a), (c))
39*37009Sbostic #define	bzero(a,b)	memset((a), '\0', (b))
40*37009Sbostic #define	srandom	srand
41*37009Sbostic #define	random	rand
42*37009Sbostic #define	sgttyb	termio
43*37009Sbostic #define	sg_erase c_cc[2]
44*37009Sbostic #define	sg_kill c_cc[3]
45*37009Sbostic #endif
46*37009Sbostic 
47*37009Sbostic #include "def.h"
48*37009Sbostic #include "struct.h"
49*37009Sbostic #include "extern.h"
50*37009Sbostic #include "tunable.h"
51