aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/exec.h
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2010-03-06 16:57:53 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2010-03-06 16:57:53 +0000
commitc848bc18e8d3de0c74834f0980f57b141aa9b989 (patch)
treea292cee82566850ab924f6b484d9ac29b205226d /bin/sh/exec.h
parent44d68185d1bb80945c24e1f87e67d223c56f92bc (diff)
downloadsrc-c848bc18e8d3de0c74834f0980f57b141aa9b989.tar.gz
src-c848bc18e8d3de0c74834f0980f57b141aa9b989.zip
sh: Improve the command builtin:
* avoid unnecessary fork * allow executing builtins via command * executing a special builtin via command removes its special properties Obtained from: NetBSD (parts)
Notes
Notes: svn path=/head/; revision=204800
Diffstat (limited to 'bin/sh/exec.h')
-rw-r--r--bin/sh/exec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/sh/exec.h b/bin/sh/exec.h
index 32bf13168342..45330a16ad6c 100644
--- a/bin/sh/exec.h
+++ b/bin/sh/exec.h
@@ -57,6 +57,10 @@ struct cmdentry {
};
+/* action to find_command() */
+#define DO_ERR 0x01 /* prints errors */
+#define DO_NOFUNC 0x02 /* don't return shell functions, for command */
+
extern const char *pathopt; /* set by padvance */
extern int exerrno; /* last exec error */