diff options
Diffstat (limited to 'bin/sh/exec.h')
-rw-r--r-- | bin/sh/exec.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/sh/exec.h b/bin/sh/exec.h index 7542a53..429bfda 100644 --- a/bin/sh/exec.h +++ b/bin/sh/exec.h @@ -39,6 +39,12 @@ #define CMDBUILTIN 1 /* command is a shell builtin */ #define CMDFUNCTION 2 /* command is a shell function */ +/* values for typecmd_impl's third parameter */ +enum { + TYPECMD_SMALLV, /* command -v */ + TYPECMD_BIGV, /* command -V */ + TYPECMD_TYPE /* type */ +}; struct cmdentry { int cmdtype; @@ -63,5 +69,6 @@ void deletefuncs(void); void addcmdentry(char *, struct cmdentry *); void defun(char *, union node *); int unsetfunc(char *); +int typecmd_impl(int, char **, int); int typecmd(int, char **); void clearcmdentry(int); |