Files
seta75D 2e8a93c394 Init
2021-10-11 18:20:23 -03:00

92 lines
1.7 KiB
C

/* Copyright (c) 1984 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef lint
static char sccsid[] = "@(#)defs.c 1.1 92/07/30 SMI"; /* from S5R3.1 1.10 */
#endif
/*
* UNIX shell
*/
#include <setjmp.h>
#include "mode.h"
#include "name.h"
#include <sys/param.h>
#ifndef NOFILE
#define NOFILE 20
#endif
/* temp files and io */
int output = 2;
int ioset;
struct ionod *iotemp; /* files to be deleted sometime */
struct ionod *fiotemp; /* function files to be deleted sometime */
struct ionod *iopend; /* documents waiting to be read at NL */
struct fdsave fdmap[NOFILE];
/* substitution */
int dolc;
char **dolv;
struct dolnod *argfor;
struct argnod *gchain;
/* name tree and words */
int wdval;
int wdnum;
int fndef;
int nohash;
struct argnod *wdarg;
int wdset;
BOOL reserv;
/* special names */
char *pcsadr;
char *pidadr;
char *cmdadr;
/* transput */
char *tmpnam;
int serial;
unsigned peekc;
unsigned peekn;
char *comdiv;
long flags;
int rwait; /* flags read waiting */
/* error exits from various parts of shell */
jmp_buf subshell;
jmp_buf errshell;
jmp_buf INTbuf;
/* fault handling */
BOOL trapnote;
/* execflgs */
int exitval;
int retval;
BOOL execbrk;
int loopcnt;
int breakcnt;
int funcnt;
int wasintr; /* used to tell if break or delete is hit
while executing a wait
*/
int eflag;
int s5builtins;
/* The following stuff is from stak.h */
char *stakbas;
char *staktop;
char *stakbot;
char *stakbsy;
char *brkend;