Deleted Added
full compact
exec.h (196483) exec.h (200956)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 16 unchanged lines hidden (view full) ---

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)exec.h 8.3 (Berkeley) 6/8/95
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 16 unchanged lines hidden (view full) ---

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)exec.h 8.3 (Berkeley) 6/8/95
33 * $FreeBSD: head/bin/sh/exec.h 196483 2009-08-23 21:09:46Z jilles $
33 * $FreeBSD: head/bin/sh/exec.h 200956 2009-12-24 18:41:14Z jilles $
34 */
35
36/* values of cmdtype */
37#define CMDUNKNOWN -1 /* no entry in table for command */
38#define CMDNORMAL 0 /* command is an executable program */
39#define CMDBUILTIN 1 /* command is a shell builtin */
40#define CMDFUNCTION 2 /* command is a shell function */
41

--- 10 unchanged lines hidden (view full) ---

52 union param {
53 int index;
54 struct funcdef *func;
55 } u;
56 int special;
57};
58
59
34 */
35
36/* values of cmdtype */
37#define CMDUNKNOWN -1 /* no entry in table for command */
38#define CMDNORMAL 0 /* command is an executable program */
39#define CMDBUILTIN 1 /* command is a shell builtin */
40#define CMDFUNCTION 2 /* command is a shell function */
41

--- 10 unchanged lines hidden (view full) ---

52 union param {
53 int index;
54 struct funcdef *func;
55 } u;
56 int special;
57};
58
59
60extern char *pathopt; /* set by padvance */
60extern const char *pathopt; /* set by padvance */
61extern int exerrno; /* last exec error */
62
61extern int exerrno; /* last exec error */
62
63void shellexec(char **, char **, char *, int);
64char *padvance(char **, char *);
63void shellexec(char **, char **, const char *, int);
64char *padvance(const char **, const char *);
65int hashcmd(int, char **);
65int hashcmd(int, char **);
66void find_command(char *, struct cmdentry *, int, char *);
67int find_builtin(char *, int *);
66void find_command(const char *, struct cmdentry *, int, const char *);
67int find_builtin(const char *, int *);
68void hashcd(void);
69void changepath(const char *);
70void deletefuncs(void);
68void hashcd(void);
69void changepath(const char *);
70void deletefuncs(void);
71void addcmdentry(char *, struct cmdentry *);
72void defun(char *, union node *);
73int unsetfunc(char *);
71void addcmdentry(const char *, struct cmdentry *);
72void defun(const char *, union node *);
73int unsetfunc(const char *);
74int typecmd_impl(int, char **, int);
75int typecmd(int, char **);
76void clearcmdentry(int);
74int typecmd_impl(int, char **, int);
75int typecmd(int, char **);
76void clearcmdentry(int);