1
0
Files
irix-657m-src/eoe/cmd/sh/defs.c
2022-09-29 17:59:04 +03:00

100 lines
2.2 KiB
C

/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
/* Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
/* Portions Copyright(c) 1988, Sun Microsystems, Inc. */
/* All Rights Reserved. */
#ident "@(#)sh:defs.c 1.10.6.1"
/*
* 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;
unsigned 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 */
unsigned char *pcsadr;
unsigned char *pidadr;
unsigned char *cmdadr;
/* transput */
unsigned char *tmpname;
int serial;
unsigned peekc;
unsigned peekn;
unsigned char *comdiv;
long flags;
int rwait; /* flags read waiting */
/* error exits from various parts of shell */
jmp_buf subshell;
jmp_buf errshell;
/* fault handling */
BOOL trapnote;
/* execflgs */
int exitval;
int retval;
BOOL execbrk;
int loopcnt;
int breakcnt;
int funcnt;
int eflag;
/*
* The following flag is set to true if /usr/ucb is found in the path
* before /usr/bin. This value is checked when exectuing the echo and test
* built-in commands. If true, the command behaves as in BSD systems.
*
* sgi: not used. The few places it was used have been modified to mirror
* IRIX 4.0 behavior.
*/
int ucb_builtins;
/* The following stuff is from stak.h */
unsigned char *stakbas;
unsigned char *staktop;
unsigned char *stakbot;
struct blk *stakbsy;
unsigned char *brkend;
/* Runtime timeout value */
unsigned int timeout;