|
|
DataMuseum.dkPresents historical artifacts from the history of: Commodore CBM-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Commodore CBM-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 1066 (0x42a)
Types: TextFile
Notes: UNIX file
Names: »extern.c«
└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
└─⟦f4b8d8c84⟧ UNIX Filesystem
└─⟦this⟧ »cmd/rsh/extern.c«
└─⟦this⟧ »cmd/sh/extern.c«
/*
* A shell.
* External variables.
*/
#include "sh.h"
/* Set time, run time, and internal flags */
/* See exec3.c/set before you move these around */
char shflags [] = {
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0
};
char shfnams [] = {
'e','k','n','p','t','u','v','x','c','i','r','s','-', 0 , 0 , 0 , 0 , 0
};
/* Shell status housekeeping */
jmp_buf restart;
int sargc = 0;
char *sarg0 = NULL;
char **sargv = NULL;
char **senvp = NULL;
char **sargp = NULL;
int nargc = 0;
char **nargv = NULL;
char **nenvp = NULL;
char **niovp = NULL;
NODE *nctlp = NULL;
SES *sesp = NULL;
int yyline = 1;
int shpid = 0;
int slret = 0;
int sback = 0;
int spipe = 0;
int ufmask = 0777;
/* Other internal flags. */
int comflag = 1;
int errflag = 0;
int keyflag = 1;
int noeflag = 0;
int prpflag = 1;
/* Parameters used by shell, names and values */
char *vhome = NULL;
char *vpath = NULL;
char *vmail = NULL;
char *vps1 = NULL;
char *vps2 = NULL;
char *vifs = NULL;
char *vshell = NULL;
/* Shell data */
char strt[STRSIZE];
char *strp;
VAR *varp = NULL;