Annotation of coherent/b/bin/sh.420/extern.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * sh/extern.c
                      3:  * Bourne shell.
                      4:  * External variables.
                      5:  */
                      6: 
                      7: #include "sh.h"
                      8: 
                      9: /* Set time, run time, and internal flags */
                     10: /* See exec3.c/set before you move these around */
                     11: char shflags [] = {
                     12:         0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0
                     13: };
                     14: char shfnams [] = {
                     15:        'e','k','n','p','t','u','v','x','c','i','r','s','-', 0 , 0 , 0 , 0 , 0
                     16: };
                     17: /* Shell status housekeeping */
                     18: jmp_buf        restart;
                     19: SHFUNC *sh_fnp = NULL;
                     20: int    in_sh_fn = 0;
                     21: int    ret_done = 0;
                     22: int    sargc = 0;
                     23: char   *sarg0 = NULL;
                     24: char   **sargv = NULL;
                     25: char   **senvp = NULL;
                     26: char   **sargp = NULL;
                     27: char   *scmdp = NULL;
                     28: int    nargc = 0;
                     29: char   **nargv = NULL;
                     30: char   **nenvp = NULL;
                     31: char   **niovp = NULL;
                     32: NODE    *nctlp = NULL;
                     33: SES    *sesp = NULL;
                     34: int    yyline = 1;
                     35: int    shpid = 0;
                     36: int    slret = 0;
                     37: int    sback = 0;
                     38: int    spipe = 0;
                     39: int    ufmask = 0777;
                     40: /* Other internal flags. */
                     41: int    comflag = 1;
                     42: int    errflag = 0;
                     43: int    keyflag = 1;
                     44: int    noeflag = 0;
                     45: int    prpflag = 1;
                     46: int    readflag = 0;
                     47: /* Parameters used by shell, names and values */
                     48: char   *vhome = NULL;
                     49: char   *vpath = NULL;
                     50: char   *vmail = NULL;
                     51: char   *vps1 = NULL;
                     52: char   *vps2 = NULL;
                     53: char   *vifs = NULL;
                     54: /* Shell data */
                     55: char   strt[STRSIZE];
                     56: char   *strp;
                     57: VAR    *varp = NULL;
                     58: 
                     59: /* Directory stack. */
                     60: char   *dstack[DSTACKN];               /* Directory stack */
                     61: int    dstkp;                          /* Directory stack pointer */
                     62: 
                     63: /* end of sh/extern.c */

unix.superglobalmegacorp.com

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