date and time created 91/03/07 20:27:53 by bostic
[unix-history] / usr / src / bin / sh / exec.h
CommitLineData
ec939471
KB
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * %sccs.include.redist.c%
9 *
10 * @(#)exec.h 5.1 (Berkeley) %G%
11 */
12
13/* values of cmdtype */
14#define CMDUNKNOWN -1 /* no entry in table for command */
15#define CMDNORMAL 0 /* command is an executable program */
16#define CMDBUILTIN 1 /* command is a shell builtin */
17#define CMDFUNCTION 2 /* command is a shell function */
18
19
20struct cmdentry {
21 int cmdtype;
22 union param {
23 int index;
24 union node *func;
25 } u;
26};
27
28
29extern char *pathopt; /* set by padvance */
30
31#ifdef __STDC__
32void shellexec(char **, char **, char *, int);
33char *padvance(char **, char *);
34void find_command(char *, struct cmdentry *, int);
35int find_builtin(char *);
36void hashcd(void);
37void changepath(char *);
38void defun(char *, union node *);
39void unsetfunc(char *);
40#else
41void shellexec();
42char *padvance();
43void find_command();
44int find_builtin();
45void hashcd();
46void changepath();
47void defun();
48void unsetfunc();
49#endif