1 /*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Ed James. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)include.h 8.1 (Berkeley) 05/31/93 11 */ 12 13 /* 14 * Copyright (c) 1987 by Ed James, UC Berkeley. All rights reserved. 15 * 16 * Copy permission is hereby granted provided that this notice is 17 * retained on all partial or complete copies. 18 * 19 * For more info on this and all of my stuff, mail edjames@berkeley.edu. 20 */ 21 22 #include <stdio.h> 23 #include <ctype.h> 24 #include <sys/types.h> 25 #include <pwd.h> 26 27 #ifdef BSD 28 #include <sgtty.h> 29 #include <sys/time.h> 30 #include <sys/file.h> 31 #endif 32 33 #ifdef SYSV 34 #include <fcntl.h> 35 #include <unistd.h> 36 #include <string.h> 37 #include <sys/utsname.h> 38 #endif 39 40 #include <signal.h> 41 #include <math.h> 42 43 #include <curses.h> 44 45 #ifdef SYSV 46 #define index strchr 47 #define rindex strrchr 48 #define bcopy(a,b,c) memcpy((b), (a), (c)) 49 #define bzero(a,b) memset((a), '\0', (b)) 50 #define srandom srand 51 #define random rand 52 #define sgttyb termio 53 #define sg_erase c_cc[2] 54 #define sg_kill c_cc[3] 55 #endif 56 57 #include "def.h" 58 #include "struct.h" 59 #include "extern.h" 60 #include "tunable.h" 61