Annotation of 43BSD/contrib/mh/h/mshsbr.h, revision 1.1

1.1     ! root        1: /* mshsbr.h - definitions for msh */
        !             2: 
        !             3: struct Cmd {
        !             4:     char    line[BUFSIZ];
        !             5:     char   *args[MAXARGS];
        !             6: 
        !             7:     char   *redirect;
        !             8: 
        !             9:     int     direction;
        !            10: #define        STDIO   0               /* regular stdoutput */
        !            11: #define        CRTIO   1               /* create  re-direct */
        !            12: #define        APPIO   2               /* append  re-direct */
        !            13: #define        PIPIO   3               /* pipe    re-direct */
        !            14: 
        !            15:     FILE   *stream;
        !            16: };
        !            17: #define        NULLCMD ((struct Cmd *) 0)
        !            18: 
        !            19: 
        !            20: struct Msg {
        !            21:     struct drop m_drop;
        !            22: #define        m_bboard_id     m_drop.d_id
        !            23: #define        m_top           m_drop.d_size
        !            24: #define        m_start         m_drop.d_start
        !            25: #define        m_stop          m_drop.d_stop
        !            26: 
        !            27:     char   *m_scanl;
        !            28:     
        !            29:     struct tws  m_tb;
        !            30: 
        !            31:     short   m_stats;
        !            32: #define CUR (1 << (FFATTRSLOT + NATTRS))
        !            33: #ifdef BPOP
        !            34: #define        VIRTUAL SELECT_EMPTY
        !            35: #endif BPOP
        !            36: };
        !            37: 
        !            38: /*  */
        !            39: 
        !            40:                                /* FOLDER */
        !            41: extern char  *fmsh;            /* folder instead of file */
        !            42: extern int    modified;                /* command modified folder */
        !            43: extern struct msgs *mp;                /* used a lot */
        !            44: extern struct Msg  *Msgs;      /* Msgs[0] not used */
        !            45: 
        !            46: FILE  *msh_ready ();
        !            47: 
        !            48: 
        !            49:                                /* COMMAND */
        !            50: extern int  interactive;       /* running from a /dev/tty */
        !            51: extern int  redirected;                /* re-directing output */
        !            52: extern  FILE  *sp;             /* original stdout */
        !            53: 
        !            54: extern char *cmd_name;         /* command being run */
        !            55: 
        !            56: extern char myfilter[];                /* path to mhl.forward */
        !            57: 
        !            58: 
        !            59: 
        !            60: extern char *BBoard_ID;                /* BBoard-ID constant */
        !            61: 
        !            62: 
        !            63:                                /* SIGNALS */
        !            64: extern int  (*istat) ();       /* original SIGINT */
        !            65: extern int  (*qstat) ();       /* original SIGQUIT */
        !            66: extern int  interrupted;       /* SIGINT detected */
        !            67: extern int  broken_pipe;       /* SIGPIPE detected */
        !            68: extern int  told_to_quit;      /* SIGQUIT detected */
        !            69: 
        !            70: #ifdef BSD42
        !            71: extern int  should_intr;       /* signal handler should interrupt call */
        !            72: extern jmp_buf sigenv;         /* the environment pointer */
        !            73: #endif BSD42
        !            74: 
        !            75: 
        !            76: long    lseek ();

unix.superglobalmegacorp.com

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