/*- * Copyright (c) 1991 The Regents of the University of California. * All rights reserved. * * This code is derived from software contributed to Berkeley by * Kenneth Almquist. * * %sccs.include.redist.c% * * @(#)exec.h 5.2 (Berkeley) 06/23/92 */ /* values of cmdtype */ #define CMDUNKNOWN -1 /* no entry in table for command */ #define CMDNORMAL 0 /* command is an executable program */ #define CMDBUILTIN 1 /* command is a shell builtin */ #define CMDFUNCTION 2 /* command is a shell function */ struct cmdentry { int cmdtype; union param { int index; union node *func; } u; }; extern char *pathopt; /* set by padvance */ #ifdef __STDC__ void shellexec(char **, char **, char *, int); char *padvance(char **, char *); void find_command(char *, struct cmdentry *, int); int find_builtin(char *); void hashcd(void); void changepath(char *); void defun(char *, union node *); int unsetfunc(char *); #else void shellexec(); char *padvance(); void find_command(); int find_builtin(); void hashcd(); void changepath(); void defun(); int unsetfunc(); #endif