shcmd.h revision 34f9b3eef6fdadbda0a846aa4d68691ac40eace5
/* : : generated by proto : : */
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2009 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 *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
/*
* ksh builtin command api
*/
#ifndef _SHCMD_H
#if !defined(__PROTO__)
#include <prototyped.h>
#endif
#if !defined(__LINKAGE__)
#define __LINKAGE__ /* 2004-08-11 transition */
#endif
#define _SHCMD_H 1
#ifndef SH_VERSION
# define Shell_t void
#endif
#ifndef NV_DEFAULT
# define Namval_t void
#endif
#ifndef ERROR_NOTIFY
# define ERROR_NOTIFY 1
#endif
typedef struct Shbltin_s
{
int version;
unsigned char notify;
unsigned char sigset;
unsigned char nosfio;
char *data;
int flags;
int invariant;
} Shbltin_t;
#if defined(SH_VERSION) || defined(_SH_PRIVATE)
#else
# define sh_context(c) ((Shbltin_t*)(c))
# if defined(SFIO_VERSION) || defined(_AST_H)
# define LIB_INIT(c)
# else
# endif
# ifndef _CMD_H
# endif
#endif
#if _BLD_ast && defined(__EXPORT__)
#endif
#define __MANGLE__ __LINKAGE__
#endif