xref: /csrg-svn/games/atc/include.h (revision 60740)
141166Sbostic /*-
2*60740Sbostic  * Copyright (c) 1990, 1993
3*60740Sbostic  *	The Regents of the University of California.  All rights reserved.
441166Sbostic  *
541166Sbostic  * This code is derived from software contributed to Berkeley by
641166Sbostic  * Ed James.
741166Sbostic  *
841166Sbostic  * %sccs.include.redist.c%
941166Sbostic  *
10*60740Sbostic  *	@(#)include.h	8.1 (Berkeley) 05/31/93
1141166Sbostic  */
1241166Sbostic 
1337009Sbostic /*
1437009Sbostic  * Copyright (c) 1987 by Ed James, UC Berkeley.  All rights reserved.
1537009Sbostic  *
1637009Sbostic  * Copy permission is hereby granted provided that this notice is
1737009Sbostic  * retained on all partial or complete copies.
1837009Sbostic  *
1937009Sbostic  * For more info on this and all of my stuff, mail edjames@berkeley.edu.
2037009Sbostic  */
2137009Sbostic 
2237009Sbostic #include <stdio.h>
2337009Sbostic #include <ctype.h>
2437009Sbostic #include <sys/types.h>
2537009Sbostic #include <pwd.h>
2637009Sbostic 
2737009Sbostic #ifdef BSD
2837009Sbostic #include <sgtty.h>
2937009Sbostic #include <sys/time.h>
3037009Sbostic #include <sys/file.h>
3137009Sbostic #endif
3237009Sbostic 
3337009Sbostic #ifdef SYSV
3437009Sbostic #include <fcntl.h>
3537009Sbostic #include <unistd.h>
3637009Sbostic #include <string.h>
3737009Sbostic #include <sys/utsname.h>
3837009Sbostic #endif
3937009Sbostic 
4037009Sbostic #include <signal.h>
4137009Sbostic #include <math.h>
4237009Sbostic 
4337009Sbostic #include <curses.h>
4437009Sbostic 
4537009Sbostic #ifdef SYSV
4637009Sbostic #define	index	strchr
4737009Sbostic #define	rindex	strrchr
4837009Sbostic #define bcopy(a,b,c)	memcpy((b), (a), (c))
4937009Sbostic #define	bzero(a,b)	memset((a), '\0', (b))
5037009Sbostic #define	srandom	srand
5137009Sbostic #define	random	rand
5237009Sbostic #define	sgttyb	termio
5337009Sbostic #define	sg_erase c_cc[2]
5437009Sbostic #define	sg_kill c_cc[3]
5537009Sbostic #endif
5637009Sbostic 
5737009Sbostic #include "def.h"
5837009Sbostic #include "struct.h"
5937009Sbostic #include "extern.h"
6037009Sbostic #include "tunable.h"
61