3 * msh.h -- definitions for msh
7 #define STDIO 0 /* regular stdoutput */
8 #define CRTIO 1 /* create re-direct */
9 #define APPIO 2 /* append re-direct */
10 #define PIPIO 3 /* pipe re-direct */
20 #define NULLCMD ((struct Cmd *) 0)
22 #define MHNCHK 0x0001 /* did nontext check */
23 #define MHNYES 0x0002 /* .. and known to be non-text */
25 #define CUR (1 << (FFATTRSLOT + NUMATTRS - 1))
35 #define m_bboard_id m_drop.d_id
36 #define m_top m_drop.d_size
37 #define m_start m_drop.d_start
38 #define m_stop m_drop.d_stop
43 extern char *fmsh; /* folder instead of file */
44 extern int modified; /* command modified folder */
45 extern struct msgs *mp; /* used a lot */
46 extern struct Msg *Msgs; /* Msgs[0] not used */
53 extern int interactive; /* running from a /dev/tty */
54 extern int redirected; /* re-directing output */
55 extern FILE *sp; /* original stdout */
56 extern char *cmd_name; /* command being run */
57 extern char myfilter[]; /* path to mhl.forward */
59 extern char *BBoard_ID; /* BBoard-ID constant */
64 extern SIGNAL_HANDLER istat; /* original SIGINT */
65 extern SIGNAL_HANDLER qstat; /* original SIGQUIT */
66 extern int interrupted; /* SIGINT detected */
67 extern int broken_pipe; /* SIGPIPE detected */
68 extern int told_to_quit; /* SIGQUIT detected */
71 extern int should_intr; /* signal handler should interrupt call */
72 extern jmp_buf sigenv; /* the environment pointer */
84 void display_info (int);
86 void forkcmd (char **s, char *);
87 void distcmd (char **);
88 void explcmd (char **);
89 int filehak (char **);
90 void filecmd (char **);
91 void foldcmd (char **);
92 void forwcmd (char **);
93 void helpcmd (char **);
94 void markcmd (char **);
95 void mhncmd (char **);
96 void showcmd (char **);
97 int pack (char *, int, int);
98 int packhak (char **);
99 void packcmd (char **);
100 void pickcmd (char **);
101 void replcmd (char **);
102 void rmmcmd (char **);
103 void scancmd (char **);
104 void sortcmd (char **);