Annotation of 43BSDTahoe/new/nntp/server/common.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Common declarations, includes, and other goodies.
        !             3:  *
        !             4:  * @(#)common.h        1.18    (Berkeley) 10/15/87
        !             5:  */
        !             6: 
        !             7: #include <sys/types.h>
        !             8: #include <sys/dir.h>
        !             9: #include <sys/stat.h>
        !            10: #include <errno.h>
        !            11: #include <ctype.h>
        !            12: #include <pwd.h>
        !            13: #include <sys/wait.h>
        !            14: #include <sys/file.h>
        !            15: #include <syslog.h>
        !            16: #include <strings.h>
        !            17: #include "../common/rfc977.h"
        !            18: #include "../common/response_codes.h"
        !            19: #include "../common/conf.h"
        !            20: 
        !            21: /*
        !            22:  * <dbm.h> stupidly defines NULL, which is why the following
        !            23:  * brain death is necessary.
        !            24:  */
        !            25: 
        !            26: #ifdef DBM
        !            27: #  undef NULL
        !            28: #  include <dbm.h>
        !            29: #  undef NULL
        !            30: #else
        !            31: #  include <ndbm.h>
        !            32: #endif
        !            33: #include <stdio.h>
        !            34: 
        !            35: /*
        !            36:  * For "spew()"
        !            37:  */
        !            38: 
        !            39: #define        ARTICLE 0
        !            40: #define        HEAD    1
        !            41: #define        BODY    2
        !            42: #define        STAT    3
        !            43: 
        !            44: /*
        !            45:  * For "ngmatch()"
        !            46:  */
        !            47: 
        !            48: #define        ALLBUT  1
        !            49: 
        !            50: #define        valid_art(s)    (atoi(s) != 0)
        !            51: 
        !            52: #define        putline(s)      fputs((s), stdout); putchar('\r'); putchar('\n');
        !            53: 
        !            54: extern int     errno;
        !            55: 
        !            56: extern char    *gets(), *fgets();
        !            57: extern char    *mktemp();
        !            58: extern FILE    *open_valid_art();
        !            59: extern FILE    *openartbyid();
        !            60: extern char    *gethistent();
        !            61: extern int     restreql();
        !            62: extern int     strneql();
        !            63: 
        !            64: extern char    spooldir[];
        !            65: extern char    activefile[];
        !            66: extern char    accessfile[];
        !            67: extern char    historyfile[];
        !            68: extern char    ngdatefile[];
        !            69: extern char    inews[];
        !            70: extern char    rnews[];
        !            71: 
        !            72: extern char    **group_array;
        !            73: extern int     num_groups;
        !            74: extern char    *homedir;
        !            75: extern int     ingroup;
        !            76: extern int     maxgroups;
        !            77: extern int     art_array[];
        !            78: extern int     art_ptr;
        !            79: extern FILE    *art_fp;
        !            80: extern int     num_arts;
        !            81: extern int     uid_poster, gid_poster;
        !            82: extern int     canread, canpost, canxfer;
        !            83: extern char    **ngpermlist;
        !            84: extern int     ngpermcount;
        !            85: 
        !            86: extern char    nntp_version[];
        !            87: 
        !            88: #ifdef LOG
        !            89: extern int     grps_acsd, arts_acsd;
        !            90: extern char    hostname[];
        !            91: 
        !            92: extern int     ih_accepted;
        !            93: extern int     ih_rejected;
        !            94: extern int     ih_failed;
        !            95: 
        !            96: extern int     nn_told;
        !            97: extern int     nn_took;
        !            98: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.