1 /* mshsbr.h - definitions for msh */
2 /* @(#)$Id: mshsbr.h,v 1.8 1995/12/07 21:34:13 jromine Exp $ */
11 #define STDIO 0 /* regular stdoutput */
12 #define CRTIO 1 /* create re-direct */
13 #define APPIO 2 /* append re-direct */
14 #define PIPIO 3 /* pipe re-direct */
18 #define NULLCMD ((struct Cmd *) 0)
23 #define m_bboard_id m_drop.d_id
24 #define m_top m_drop.d_size
25 #define m_start m_drop.d_start
26 #define m_stop m_drop.d_stop
33 #define MHNCHK 0x0001 /* did nontext check */
34 #define MHNYES 0x0002 /* .. and known to be non-text */
36 int m_stats; /* ought to be unsigned (also in mh.h) */
37 #define CUR ((unsigned)1 << (FFATTRSLOT + NATTRS))
39 #define VIRTUAL SELECT_EMPTY
46 extern char *fmsh; /* folder instead of file */
47 extern int modified; /* command modified folder */
48 extern struct msgs *mp; /* used a lot */
49 extern struct Msg *Msgs; /* Msgs[0] not used */
55 extern int interactive; /* running from a /dev/tty */
56 extern int redirected; /* re-directing output */
57 extern FILE *sp; /* original stdout */
59 extern char *cmd_name; /* command being run */
61 extern char myfilter[]; /* path to mhl.forward */
65 extern char *BBoard_ID; /* BBoard-ID constant */
69 extern TYPESIG (*istat) (); /* original SIGINT */
70 extern TYPESIG (*qstat) (); /* original SIGQUIT */
71 extern int interrupted; /* SIGINT detected */
72 extern int broken_pipe; /* SIGPIPE detected */
73 extern int told_to_quit; /* SIGQUIT detected */
76 extern int should_intr; /* signal handler should interrupt call */
77 extern jmp_buf sigenv; /* the environment pointer */