1: /*
   2:  * Common declarations, includes, and other goodies.
   3:  *
   4:  * @(#)common.h	1.5	(Berkeley) 3/20/86
   5:  */
   6: 
   7: #include <stdio.h>
   8: #include <sys/types.h>
   9: #include <sys/dir.h>
  10: #include <sys/stat.h>
  11: #include <errno.h>
  12: #include <ctype.h>
  13: #include <pwd.h>
  14: #include <sys/wait.h>
  15: #include <sys/file.h>
  16: #include <syslog.h>
  17: #include <strings.h>
  18: #include "../common/response_codes.h"
  19: #include "../common/conf.h"
  20: #ifdef DBM
  21: #include <dbm.h>
  22: #else
  23: #include <ndbm.h>
  24: #endif
  25: 
  26: /*
  27:  * For "spew()"
  28:  */
  29: 
  30: #define ARTICLE 0
  31: #define HEAD    1
  32: #define BODY    2
  33: #define STAT    3
  34: 
  35: #define valid_art(s)    (atoi(s) != 0)
  36: 
  37: extern  int errno;
  38: 
  39: extern  char    *gets(), *fgets();
  40: extern  char    *mktemp();
  41: extern  FILE    *open_valid_art();
  42: extern  FILE    *openartbyid();
  43: 
  44: extern  int ahbs(), group(), help(), ihave();
  45: extern  int list(), newgroups(), newnews(), nextlast(), post();
  46: extern  int slave(), stat();
  47: 
  48: extern  char    *group_array[];
  49: extern  int num_groups;
  50: extern  char    *homedir;
  51: extern  int ingroup;
  52: extern  int maxgroups;
  53: extern  int art_array[];
  54: extern  int art_ptr;
  55: extern  FILE    *art_fp;
  56: extern  int num_arts;
  57: extern  int uid_poster, gid_poster;
  58: extern  int canread, canpost;
  59: 
  60: #ifdef LOG
  61: extern  int grps_acsd, arts_acsd;
  62: extern  char    hostname[];
  63: #endif
Last modified: 1986-03-21
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 662
Valid CSS Valid XHTML 1.0 Strict