shcmd.h revision 7c2fbfb345896881c631598ee3852ce9ce33fb07
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1992-2008 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> *
* *
***********************************************************************/
#pragma prototyped
/*
* ksh builtin command api
*/
#ifndef _SHCMD_H
#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 int (*Shbltin_f)(int, char**, void*);
typedef struct Shbltin_s
{
void *ptr;
int version;
int (*shrun)(int, char**);
int (*shtrap)(const char*, int);
void (*shexit)(int);
unsigned char notify;
unsigned char sigset;
unsigned char nosfio;
char *data;
int flags;
} Shbltin_t;
#if defined(SH_VERSION) || defined(_SH_PRIVATE)
#else
# if defined(SFIO_VERSION) || defined(_AST_H)
# define LIB_INIT(c)
# else
# endif
# ifndef _CMD_H
# endif
#endif
#endif