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 ();

Defined struct's

Cmd defined in line 3; used 28 times
Msg defined in line 20; used 18 times

Defined macros

APPIO defined in line 12; used 1 times
CRTIO defined in line 11; used 3 times
CUR defined in line 32; used 3 times
NULLCMD defined in line 17; used 5 times
PIPIO defined in line 13; used 3 times
STDIO defined in line 10; used 5 times
VIRTUAL defined in line 34; used 3 times
m_bboard_id defined in line 22; used 21 times
m_start defined in line 24; used 14 times
m_stop defined in line 25; used 23 times
m_top defined in line 23; used 22 times

Usage of this include

Last modified: 1986-04-21
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 952
Valid CSS Valid XHTML 1.0 Strict