|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1987 by Ed James, UC Berkeley. All rights reserved. ! 3: * ! 4: * Copy permission is hereby granted provided that this notice is ! 5: * retained on all partial or complete copies. ! 6: * ! 7: * For more info on this and all of my stuff, mail [email protected]. ! 8: */ ! 9: ! 10: #include <stdio.h> ! 11: #include <ctype.h> ! 12: #ifdef SYSV ! 13: #include <sys/types.h> ! 14: #endif ! 15: #include <pwd.h> ! 16: ! 17: #ifdef BSD ! 18: #include <sgtty.h> ! 19: #include <sys/time.h> ! 20: #include <sys/file.h> ! 21: #endif ! 22: ! 23: #ifdef SYSV ! 24: #include <fcntl.h> ! 25: #include <unistd.h> ! 26: #include <string.h> ! 27: #include <sys/utsname.h> ! 28: #endif ! 29: ! 30: #include <signal.h> ! 31: #include <math.h> ! 32: ! 33: #include <curses.h> ! 34: ! 35: #ifdef SYSV ! 36: #define index strchr ! 37: #define rindex strrchr ! 38: #define bcopy(a,b,c) memcpy((b), (a), (c)) ! 39: #define bzero(a,b) memset((a), '\0', (b)) ! 40: #define srandom srand ! 41: #define random rand ! 42: #define sgttyb termio ! 43: #define sg_erase c_cc[2] ! 44: #define sg_kill c_cc[3] ! 45: #endif ! 46: ! 47: #include "def.h" ! 48: #include "struct.h" ! 49: #include "extern.h" ! 50: #include "tunable.h"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.