1 #ifndef _BOSH_H
2 #define	_BOSH_H
3 
4 /*
5  * Copyright 2018 J. Schilling
6  *
7  * @(#)bosh.h	1.2 18/08/01 Copyright 2018 J. Schilling
8  *
9  * Global variables structure for UNIX Shell
10  *
11  * WARNING: Add new members at the end or you will risk
12  * incompatibilities with older loadable builtin commands.
13  */
14 /*
15  * The contents of this file are subject to the terms of the
16  * Common Development and Distribution License, Version 1.0 only
17  * (the "License").  You may not use this file except in compliance
18  * with the License.
19  *
20  * See the file CDDL.Schily.txt in this distribution for details.
21  * A copy of the CDDL is also available via the Internet at
22  * http://www.opensource.org/licenses/cddl1.txt
23  *
24  * When distributing Covered Code, include this CDDL HEADER in each
25  * file and include the License file CDDL.Schily.txt from this distribution.
26  */
27 
28 #include <schily/utypes.h>
29 
30 typedef struct bosh {
31 	int	intrcnt;			/* Intr ctr for builtin cmds */
32 	unsigned long	*flagsp;		/* ptr to set(1) flags	    */
33 	unsigned long	*flagsp2;		/* ptr to set(1) flags	    */
34 	Uchar **(*get_envptr) __PR((void));	/* Get tmp. env array	    */
35 	int	(*callsh) __PR((int ac, char **av)); /* callb. for find -call */
36 } bosh_t;
37 
38 #endif /* _BOSH_H */
39