summaryrefslogtreecommitdiff
path: root/include/search.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-11-06 22:49:44 +0100
committerWolfgang Denk <wd@denx.de>2011-11-08 13:20:42 +0100
commit37f2fe7472a34531e7d585eb7e0730b4f8e1f213 (patch)
treedf4a0306161ef740045c011f6847ed50fb47a120 /include/search.h
parent5721385b187b3154c7768e6c182501022f4e2e45 (diff)
env: allow to export only selected variables
New syntax: env export [-t | -b | -c] [-s size] addr [var ...] With this change it is possible to provide a list of variables names that shall be exported. Whenno arguments are given, the whole environment gets exported. NOTE: The new handling of the "size" argument means a change to the user API. Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'include/search.h')
-rw-r--r--include/search.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/search.h b/include/search.h
index b4edd43103..ef53edb9fe 100644
--- a/include/search.h
+++ b/include/search.h
@@ -91,7 +91,8 @@ extern int hstrstr_r(const char *__match, int __last_idx, ENTRY ** __retval,
extern int hdelete_r(const char *__key, struct hsearch_data *__htab);
extern ssize_t hexport_r(struct hsearch_data *__htab,
- const char __sep, char **__resp, size_t __size);
+ const char __sep, char **__resp, size_t __size,
+ int argc, char * const argv[]);
extern int himport_r(struct hsearch_data *__htab,
const char *__env, size_t __size, const char __sep,