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
- in /usr/src/new/mh/uip/msh.c line
432-433(4),
1351(2),
1436(2),
1474(2),
1615(2),
1632(2),
1675(2),
1689(2),
2075(2),
2183(2),
2221(2),
2256(2),
2385(2)
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
PIPIO
defined in line
13; used 3 times
STDIO
defined in line
10; used 5 times
m_bboard_id
defined in line
22; used 21 times
- in /usr/src/new/mh/uip/msh.c line
635,
1137-1138(2),
1145,
1164,
1240-1246(3)
- in /usr/src/new/mh/uip/mshcmds.c line
415(2),
427,
437(2),
781(2),
1319,
1436-1440(2),
2297-2302(3)
m_stop
defined in line
25; used 23 times
- in /usr/src/new/mh/uip/msh.c line
637,
689,
946,
1014
- in /usr/src/new/mh/uip/mshcmds.c line
347-349(2),
356,
367-370(3),
418(2),
440(2),
784(2),
1320,
1441,
1651,
2084,
2312,
2646,
2670
m_top
defined in line
23; used 22 times
- in /usr/src/new/mh/uip/msh.c line
636,
729,
884-889(4),
896,
910,
918,
935,
990-992(3),
1141-1143(2)
- in /usr/src/new/mh/uip/mshcmds.c line
416(2),
438(2),
782(2),
1319
Usage of this include