/* : : generated by proto : : */
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1982-2011 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* David Korn <dgk@research.att.com> *
* *
***********************************************************************/
#ifndef SH_INTERACTIVE
#if !defined(__PROTO__)
#include <prototyped.h>
#endif
#if !defined(__LINKAGE__)
#endif
/*
* David Korn
* AT&T Labs
*
* Interface definitions for shell command language
*
*/
#include <ast.h>
#include <cdt.h>
#ifdef _SH_PRIVATE
# include "name.h"
#else
# include <nval.h>
#endif /* _SH_PRIVATE */
/* options */
typedef struct
{
unsigned long v[4];
}
#ifndef SH_wait_f_defined
# define SH_wait_f_defined
#endif
union Shnode_u;
#define SH_CFLAG 0
/*
* passed as flags to builtins in Nambltin_t struct when BLT_OPTIM is on
*/
/* The following type is used for error messages */
/* error messages */
extern __MANGLE__ const char e_defpath[];
extern __MANGLE__ const char e_found[];
extern __MANGLE__ const char e_nospace[];
extern __MANGLE__ const char e_format[];
extern __MANGLE__ const char e_number[];
extern __MANGLE__ const char e_restricted[];
extern __MANGLE__ const char e_recursive[];
extern __MANGLE__ char e_version[];
typedef struct sh_scope
{
int argc;
char **argv;
char *cmdname;
char *filename;
char *funname;
int lineno;
} Shscope_t;
/*
* Saves the state of the shell
*/
struct Shell_s
{
#ifdef _SH_PRIVATE
#endif /* _SH_PRIVATE */
};
/* flags for sh_parse */
/* symbolic values for sh_iogetiop */
#include <cmd.h>
/* symbolic value for sh_fdnotify */
#if defined(__EXPORT__) && defined(_DLL)
# ifdef _BLD_shell
# endif /* _BLD_shell */
#endif /* _DLL */
extern __MANGLE__ Namval_t *sh_addbuiltin __PROTO__((const char*, int(*)(int, char*[],__V_*), __V_*));
#if SHOPT_DYNAMIC
#endif /* SHOPT_DYNAMIC */
/*
* direct access to sh is obsolete, use sh_getinterp() instead
*/
#else
#endif
#ifdef _DLL
#endif /* _DLL */
#ifndef _SH_PRIVATE
# if _lib_lseek64
# else
# endif
#endif /* !_SH_PRIVATE */
#endif /* SH_INTERACTIVE */