diff options
author | cvpcs <root@cvpcs.org> | 2010-06-03 02:20:07 -0500 |
---|---|---|
committer | cvpcs <root@cvpcs.org> | 2010-06-03 02:20:07 -0500 |
commit | a013d4e66d2545c04e2599aa2e4a4fc50468153d (patch) | |
tree | 415d0a5af06f28f3e3b6b389ff6818e3ee774ff8 /builtins/inlib.c | |
parent | 772f20abb0a3a0979c440114bf3a1cff5b3cef03 (diff) | |
download | external_bash-a013d4e66d2545c04e2599aa2e4a4fc50468153d.zip external_bash-a013d4e66d2545c04e2599aa2e4a4fc50468153d.tar.gz external_bash-a013d4e66d2545c04e2599aa2e4a4fc50468153d.tar.bz2 |
first successful build of bash-4.1
Diffstat (limited to 'builtins/inlib.c')
-rw-r--r-- | builtins/inlib.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/builtins/inlib.c b/builtins/inlib.c new file mode 100644 index 0000000..8e218b1 --- /dev/null +++ b/builtins/inlib.c @@ -0,0 +1,46 @@ +/* inlib.c, created from inlib.def. */ +#line 22 "./inlib.def" +#include <config.h> + +#include <stdio.h> +#include "../shell.h" + +#line 43 "./inlib.def" + +#if defined (apollo) + +#include <apollo/base.h> +#include <apollo/loader.h> + +inlib_builtin (list) + WORD_LIST *list; +{ + status_$t status; + int return_value; + short len; + + if (!list) + { + builtin_usage (); + return (EX_USAGE); + } + + return_value = EXECUTION_SUCCESS; + + while (list) + { + len = (short)strlen (list->word->word); + loader_$inlib (list->word->word, len, &status); + + if (status.all != status_$ok) + { + builtin_error (_("%s: inlib failed"), list->word->word); + return_value = EXECUTION_FAILURE; + } + + list = list->next; + } + + return (return_value); +} +#endif /* apollo */ |