summaryrefslogtreecommitdiffstats
path: root/bin/sh/expand.h
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2015-11-01 22:07:40 +0000
committerjilles <jilles@FreeBSD.org>2015-11-01 22:07:40 +0000
commitf6a99fcfe010450af7712810547f5917d50de1ea (patch)
treed5b1f5b5fcbf40c4da6a558667b755e8dc19e4b1 /bin/sh/expand.h
parent3c974d824dd35fae22536bf504300458be0872f2 (diff)
downloadFreeBSD-src-f6a99fcfe010450af7712810547f5917d50de1ea.zip
FreeBSD-src-f6a99fcfe010450af7712810547f5917d50de1ea.tar.gz
sh: Avoid copying argv for simple commands.
Add dummy entries before and after so arglist's array is directly usable as argv.
Diffstat (limited to 'bin/sh/expand.h')
-rw-r--r--bin/sh/expand.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sh/expand.h b/bin/sh/expand.h
index c377156..d024e8f 100644
--- a/bin/sh/expand.h
+++ b/bin/sh/expand.h
@@ -52,6 +52,7 @@ struct arglist {
void emptyarglist(struct arglist *);
+void appendarglist(struct arglist *, char *);
union node;
void expandarg(union node *, struct arglist *, int);
void rmescapes(char *);
OpenPOWER on IntegriCloud