DataMuseum.dk

Presents historical artifacts from the history of:

Commodore CBM-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Commodore CBM-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦eaabe95e7⟧ TextFile

    Length: 1066 (0x42a)
    Types: TextFile
    Notes: UNIX file
    Names: »extern.c«

Derivation

└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
    └─⟦f4b8d8c84⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »cmd/rsh/extern.c« 
        └─ ⟦this⟧ »cmd/sh/extern.c« 

TextFile

/*
 * 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;