Files
android_external_bash/builtins/inlib.c
Dan Pasanen f157ca874d Set up build for android
Change-Id: I4a4fab8219f16762f28877b177cf5d9c8af449d0
2022-01-31 01:24:24 +01:00

47 lines
776 B
C

/* 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 */