diff options
author | Wolfgang Denk <wd@denx.de> | 2011-11-06 22:49:44 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-11-08 13:20:42 +0100 |
commit | 37f2fe7472a34531e7d585eb7e0730b4f8e1f213 (patch) | |
tree | df4a0306161ef740045c011f6847ed50fb47a120 /include/search.h | |
parent | 5721385b187b3154c7768e6c182501022f4e2e45 (diff) | |
download | u-boot-imx-37f2fe7472a34531e7d585eb7e0730b4f8e1f213.zip u-boot-imx-37f2fe7472a34531e7d585eb7e0730b4f8e1f213.tar.gz u-boot-imx-37f2fe7472a34531e7d585eb7e0730b4f8e1f213.tar.bz2 |
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/search.h b/include/search.h index b4edd43..ef53edb 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, |