Annotation of 3BSD/cmd/uucp/uucp.h, revision 1.1

1.1     ! root        1: #include "stdio.h"
        !             2: /* define DATAKIT if datakit is available */
        !             3: 
        !             4: /* define DIALOUT if new dialout routine is to be used */
        !             5: 
        !             6: /* define the last characters for ACU */
        !             7: 
        !             8: /* define UNAME if uname() should be used to get uucpname */
        !             9: 
        !            10: #define ACULAST "-<"
        !            11: 
        !            12:        /*  some system names  */
        !            13: /*  put in local uucp name of this machine */
        !            14: #define MYNAME         "ucbvax"
        !            15: 
        !            16: #define THISDIR                "/usr/lib/uucp"
        !            17: #define XQTDIR         "/usr/lib/uucp/.XQTDIR"
        !            18: #define SQFILE         "/usr/lib/uucp/SQFILE"
        !            19: #define SQTMP          "/usr/lib/uucp/SQTMP"
        !            20: #define SEQFILE                "/usr/lib/uucp/SEQF"
        !            21: #define SYSFILE                "/usr/lib/uucp/L.sys"
        !            22: #define SYSFILECR      "/usr/lib/uucp/L.sys.cr"
        !            23: #define DEVFILE                "/usr/lib/uucp/L-devices"
        !            24: #define DIALFILE       "/usr/lib/uucp/L-dialcodes"
        !            25: #define USERFILE       "/usr/lib/uucp/USERFILE"
        !            26: 
        !            27: #define SPOOL          "/usr/spool/uucp"
        !            28: #define LOGDIR         "/usr/spool/uucp"
        !            29: #define SQLOCK         "/usr/spool/uucp/LCK.SQ"
        !            30: #define SYSLOG         "/usr/spool/uucp/SYSLOG"
        !            31: #define PUBDIR         "/usr/spool/uucppublic"
        !            32: 
        !            33: #define SEQLOCK                "LCK.SEQL"
        !            34: #define CMDPRE         'C'
        !            35: #define DATAPRE                'D'
        !            36: #define XQTPRE         'X'
        !            37: 
        !            38: #define LOGPREFIX      "LOG."
        !            39: #define LOGLOCK        "/usr/spool/uucp/LCK.LOG"
        !            40: #define LOGFILE        "/usr/spool/uucp/LOGFILE"
        !            41: 
        !            42: #define RMTDEBUG       "AUDIT"
        !            43: #define SQTIME         60L
        !            44: #define TRYCALLS       2       /* number of tries to dial call */
        !            45: 
        !            46: #define DEBUG(l, f, s) if (Debug >= l) fprintf(stderr, f, s)
        !            47: 
        !            48: #define ASSERT(e, f, v) if (!(e)) {\
        !            49: fprintf(stderr, "AERROR - (%s) ", "e");\
        !            50: fprintf(stderr, f, v);\
        !            51: cleanup(FAIL);};
        !            52: 
        !            53: #define FMV(p, n) close(n); dup(p[n]); close(p[n]);
        !            54: 
        !            55: #define SAME 0
        !            56: #define ANYREAD 04
        !            57: #define ANYWRITE 02
        !            58: #define FAIL -1
        !            59: #define SUCCESS 0
        !            60: #define MASTER 1
        !            61: #define SLAVE 0
        !            62: #define MAXFULLNAME 100
        !            63: #define MAXMSGTIME 45
        !            64: #define MAXCHARTIME 15
        !            65: #define NAMESIZE 15
        !            66: #define EOTMSG "\004\n\004\n"
        !            67: #define CALLBACK 1
        !            68: 
        !            69:        /*  commands  */
        !            70: #define SHELL          "/bin/sh"
        !            71: #define MAIL           "mail"
        !            72: #define UUCICO         "/usr/lib/uucp/uucico"
        !            73: #define UUXQT          "/usr/lib/uucp/uuxqt"
        !            74: #define UUCP           "uucp"
        !            75: 
        !            76: 
        !            77:        /*  call connect fail stuff  */
        !            78: #define CF_SYSTEM      -1
        !            79: #define CF_TIME                -2
        !            80: #define CF_LOCK                -3
        !            81: #define CF_DIAL                -5
        !            82: #define CF_LOGIN       -6
        !            83: 
        !            84:        /*  system status stuff  */
        !            85: #define SS_OK          0
        !            86: #define SS_FAIL                4
        !            87: #define SS_NODEVICE    1
        !            88: #define SS_CALLBACK    2
        !            89: #define SS_INPROGRESS  3
        !            90: #define SS_BADSEQ      5
        !            91: 
        !            92:        /*  fail/retry parameters  */
        !            93: #define RETRYTIME 3300L
        !            94: #define INPROGTIME 7200L
        !            95: #define MAXRECALLS 10
        !            96: 
        !            97:        /*  stuff for command execution  */
        !            98: #define X_RQDFILE      'F'
        !            99: #define X_STDIN                'I'
        !           100: #define X_STDOUT       'O'
        !           101: #define X_CMD          'C'
        !           102: #define X_USER         'U'
        !           103: #define X_SENDFILE     'S'
        !           104: #define X_LOCK         "LCK.XQT"
        !           105: #define X_LOCKTIME     3600L
        !           106: 
        !           107: int Ifn, Ofn;
        !           108: char Rmtname[10];
        !           109: char User[10];
        !           110: char Loginuser[10];
        !           111: char *Thisdir;
        !           112: char *Spool;
        !           113: char Myname[8];
        !           114: char *Sysfiles[];
        !           115: char *Devfile;
        !           116: char *Dialfile;
        !           117: int Debug;
        !           118: int Pkdebug;
        !           119: int Pkdrvon;
        !           120: int Bspeed;
        !           121: 
        !           122: 
        !           123: #define WKDSIZE        100     /*  size of work dir name  */
        !           124: char Wrkdir[WKDSIZE];

unix.superglobalmegacorp.com

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