mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Add fileno()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1985 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -96,24 +96,23 @@ int exec(FAR const char *filename, FAR const char **argv,
|
||||
{
|
||||
struct binary_s bin;
|
||||
int ret;
|
||||
int i;
|
||||
|
||||
memset(&bin, 0, sizeof(struct binary_s));
|
||||
bin.filename = filename;
|
||||
bin.exports = exports;
|
||||
bin.nexports = NEXPORTS;
|
||||
bin.nexports = nexports;
|
||||
|
||||
ret = load_module(&bin);
|
||||
if (ret < 0)
|
||||
{
|
||||
bdbg("ERROR: Failed to load program '%s'\n", dirlist[i]);
|
||||
bdbg("ERROR: Failed to load program '%s'\n", filename);
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
ret = exec_module(&bin, 50);
|
||||
if (ret < 0)
|
||||
{
|
||||
bdbg("ERROR: Failed to execute program '%s'\n", dirlist[i]);
|
||||
bdbg("ERROR: Failed to execute program '%s'\n", filename);
|
||||
unload_module(&bin);
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user