9 date 95.12.07.21.34.13; author jromine; state Exp;
14 date 95.12.07.18.50.19; author jromine; state Exp;
19 date 93.08.25.17.16.28; author jromine; state Exp;
24 date 92.05.12.22.04.01; author jromine; state Exp;
29 date 92.01.31.16.38.28; author jromine; state Exp;
34 date 90.04.05.15.06.34; author sources; state Exp;
39 date 90.02.05.14.20.30; author sources; state Exp;
44 date 90.02.05.14.20.10; author sources; state Exp;
58 @/* mshsbr.h - definitions for msh */
59 /* @@(#)$Id: mshsbr.h,v 1.7 1995/12/07 18:50:19 jromine Exp jromine $ */
68 #define STDIO 0 /* regular stdoutput */
69 #define CRTIO 1 /* create re-direct */
70 #define APPIO 2 /* append re-direct */
71 #define PIPIO 3 /* pipe re-direct */
75 #define NULLCMD ((struct Cmd *) 0)
80 #define m_bboard_id m_drop.d_id
81 #define m_top m_drop.d_size
82 #define m_start m_drop.d_start
83 #define m_stop m_drop.d_stop
90 #define MHNCHK 0x0001 /* did nontext check */
91 #define MHNYES 0x0002 /* .. and known to be non-text */
93 int m_stats; /* ought to be unsigned (also in mh.h) */
94 #define CUR ((unsigned)1 << (FFATTRSLOT + NATTRS))
96 #define VIRTUAL SELECT_EMPTY
103 extern char *fmsh; /* folder instead of file */
104 extern int modified; /* command modified folder */
105 extern struct msgs *mp; /* used a lot */
106 extern struct Msg *Msgs; /* Msgs[0] not used */
112 extern int interactive; /* running from a /dev/tty */
113 extern int redirected; /* re-directing output */
114 extern FILE *sp; /* original stdout */
116 extern char *cmd_name; /* command being run */
118 extern char myfilter[]; /* path to mhl.forward */
122 extern char *BBoard_ID; /* BBoard-ID constant */
126 extern TYPESIG (*istat) (); /* original SIGINT */
127 extern TYPESIG (*qstat) (); /* original SIGQUIT */
128 extern int interrupted; /* SIGINT detected */
129 extern int broken_pipe; /* SIGPIPE detected */
130 extern int told_to_quit; /* SIGQUIT detected */
133 extern int should_intr; /* signal handler should interrupt call */
134 extern jmp_buf sigenv; /* the environment pointer */
144 @increase m_stats to int (to agree with mh.h)
149 /* @@(#)$Id: mshsbr.h,v 1.6 1993/08/25 17:16:28 jromine Exp jromine $ */
153 #define CUR (1 << (FFATTRSLOT + NATTRS))
159 @off_t fixes for BSD44
164 /* @@(#)$Id: mshsbr.h,v 1.5 1992/05/12 22:04:01 jromine Exp jromine $ */
178 /* @@(#)$Id: mshsbr.h,v 1.4 1992/01/31 16:38:28 jromine Exp jromine $ */
192 /* @@(#)$Id: mshsbr.h,v 1.3 90/04/05 15:06:34 sources Exp $ */
230 extern int (*istat) (); /* original SIGINT */
231 extern int (*qstat) (); /* original SIGQUIT */