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:
patacongo
2009-07-13 01:35:15 +00:00
parent 470cba238e
commit 485c3066e1
8 changed files with 241 additions and 6 deletions
+3 -4
View File
@@ -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;
}