/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1990-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* Glenn Fowler
* AT&T Research
*
* coshell library private definitions
*/
#ifndef _COLIB_H
#define _COLIB_H
#include <ast.h>
#include <dt.h>
#include <vmalloc.h>
int pid; /* pid */ \
char* out; /* serialized stdout file */ \
char* err; /* serialized stderr file */ \
/* end of private additions */
struct Coinit_s /* initialization script state */ \
{ \
char* script; /* initialization script */ \
int mask; /* previous umask */ \
int sync; /* sync script */ \
} init; \
int cmdfd; /* command pipe fd */ \
int gsmfd; /* msgfp child write side */ \
int mask; /* CO_* flags to clear */ \
int mode; /* connection modes */ \
int svc_outstanding;/* outstanding service intercepts */ \
int svc_running; /* running service intercepts */ \
int pid; /* pid */ \
int index; /* coshell index */ \
int slots; /* number of job slots */ \
/* end of private additions */
typedef struct Coexport_s
{
char* value;
} Coexport_t;
struct Coservice_s;
{
};
#include <coshell.h>
#include <error.h>
#include <sig.h>
#include <wait.h>
{
} Costate_t;
extern char coident[]; /* coshell ident script */
extern char cobinit[]; /* bsh initialition script */
extern char cokinit[]; /* ksh initialition script */
extern char* co_export[]; /* default export var list */
#ifndef errno
extern int errno;
#endif
extern char* coinitialize(Coshell_t*, int);
#endif