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 edjames@berkeley.edu.
   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"

Defined macros

bzero defined in line 39; used 1 times
index defined in line 36; used 6 times
random defined in line 41; used 3 times
rindex defined in line 37; used 2 times
sg_erase defined in line 43; used 1 times
sg_kill defined in line 44; used 1 times
sgttyb defined in line 42; never used
srandom defined in line 40; used 1 times

Usage of this include

Last modified: 1987-03-11
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 3352
Valid CSS Valid XHTML 1.0 Strict