Annotation of researchv9/cmd/sh/defs.c, revision 1.1

1.1     ! root        1: /*     @(#)defs.c      1.5     */
        !             2: /*
        !             3:  *     UNIX shell
        !             4:  */
        !             5: 
        !             6: #include               <setjmp.h>
        !             7: #include               "mode.h"
        !             8: #include               "name.h"
        !             9: #include               <sys/param.h>
        !            10: 
        !            11: /* temp files and io */
        !            12: 
        !            13: int                            output = 2;
        !            14: int                            ioset;
        !            15: struct ionod   *iotemp;        /* files to be deleted sometime */
        !            16: struct ionod   *fiotemp;       /* function files to be deleted sometime */
        !            17: struct ionod   *iopend;        /* documents waiting to be read at NL */
        !            18: struct fdsave  fdmap[NOFILE];
        !            19: 
        !            20: /* substitution */
        !            21: int                            dolc;
        !            22: char                   **dolv;
        !            23: struct dolnod  *argfor;
        !            24: struct argnod  *gchain;
        !            25: 
        !            26: 
        !            27: /* name tree and words */
        !            28: int                            wdval;
        !            29: int                            wdnum;
        !            30: int                            fndef;
        !            31: struct argnod  *wdarg;
        !            32: int                            wdset;
        !            33: BOOL                   reserv;
        !            34: 
        !            35: /* special names */
        !            36: char                   *pcsadr;
        !            37: char                   *pidadr;
        !            38: char                   *cmdadr;
        !            39: 
        !            40: /* transput */ 
        !            41: char                   *tmpnam;
        !            42: int                    serial; 
        !            43: int                    peekc;
        !            44: int                    peekn;
        !            45: char                   *comdiv;
        !            46: 
        !            47: long                   flags;
        !            48: int                            rwait;  /* flags read waiting */
        !            49: 
        !            50: /* error exits from various parts of shell */
        !            51: jmp_buf                        subshell;
        !            52: jmp_buf                        errshell;
        !            53: 
        !            54: /* fault handling */
        !            55: BOOL                   trapnote;
        !            56: 
        !            57: /* execflgs */
        !            58: int                            exitval;
        !            59: int                            retval;
        !            60: BOOL                   execbrk;
        !            61: int                            loopcnt;
        !            62: int                            breakcnt;
        !            63: int                    funcnt;
        !            64: 
        !            65: int                            wasintr;        /* used to tell if break or delete is hit
        !            66:                                                           while executing a wait
        !            67:                                                        */
        !            68: 
        !            69: int                            eflag;
        !            70: 
        !            71: /* The following stuff is from stak.h  */
        !            72: 
        !            73: char                   *stakbas;
        !            74: char                   *staktop;
        !            75: char                   *stakbot;
        !            76: char                   *stakbsy;
        !            77: char                   *brkend;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.