New interface task_spawn(); exec_builtin() now uses task_spawn(); All argv types should be char * const * not const char **
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5598 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
56ee69b64e
commit
02a312604f
@ -195,7 +195,7 @@ int stm32_usbhost_initialize(void)
|
|||||||
|
|
||||||
pid = TASK_CREATE("usbhost", CONFIG_USBHOST_DEFPRIO,
|
pid = TASK_CREATE("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||||
CONFIG_USBHOST_STACKSIZE,
|
CONFIG_USBHOST_STACKSIZE,
|
||||||
(main_t)usbhost_waiter, (const char **)NULL);
|
(main_t)usbhost_waiter, (FAR char * const *)NULL);
|
||||||
return pid < 0 ? -ENOEXEC : OK;
|
return pid < 0 ? -ENOEXEC : OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -287,10 +287,10 @@ static int nsh_usbhostinitialize(void)
|
|||||||
#ifndef CONFIG_CUSTOM_STACK
|
#ifndef CONFIG_CUSTOM_STACK
|
||||||
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||||
CONFIG_USBHOST_STACKSIZE,
|
CONFIG_USBHOST_STACKSIZE,
|
||||||
(main_t)nsh_waiter, (const char **)NULL);
|
(main_t)nsh_waiter, (FAR char * const *)NULL);
|
||||||
#else
|
#else
|
||||||
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||||
(main_t)nsh_waiter, (const char **)NULL);
|
(main_t)nsh_waiter, (FAR char * const *)NULL);
|
||||||
#endif
|
#endif
|
||||||
return pid < 0 ? -ENOEXEC : OK;
|
return pid < 0 ? -ENOEXEC : OK;
|
||||||
}
|
}
|
||||||
|
@ -310,10 +310,10 @@ static int nsh_usbhostinitialize(void)
|
|||||||
#ifndef CONFIG_CUSTOM_STACK
|
#ifndef CONFIG_CUSTOM_STACK
|
||||||
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||||
CONFIG_USBHOST_STACKSIZE,
|
CONFIG_USBHOST_STACKSIZE,
|
||||||
(main_t)nsh_waiter, (const char **)NULL);
|
(main_t)nsh_waiter, (FAR char * const *)NULL);
|
||||||
#else
|
#else
|
||||||
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||||
(main_t)nsh_waiter, (const char **)NULL);
|
(main_t)nsh_waiter, (FAR char * const *)NULL);
|
||||||
#endif
|
#endif
|
||||||
return pid < 0 ? -ENOEXEC : OK;
|
return pid < 0 ? -ENOEXEC : OK;
|
||||||
}
|
}
|
||||||
|
@ -318,10 +318,10 @@ static int nsh_usbhostinitialize(void)
|
|||||||
#ifndef CONFIG_CUSTOM_STACK
|
#ifndef CONFIG_CUSTOM_STACK
|
||||||
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||||
CONFIG_USBHOST_STACKSIZE,
|
CONFIG_USBHOST_STACKSIZE,
|
||||||
(main_t)nsh_waiter, (const char **)NULL);
|
(main_t)nsh_waiter, (FAR char * const *)NULL);
|
||||||
#else
|
#else
|
||||||
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||||
(main_t)nsh_waiter, (const char **)NULL);
|
(main_t)nsh_waiter, (FAR char * const *)NULL);
|
||||||
#endif
|
#endif
|
||||||
return pid < 0 ? -ENOEXEC : OK;
|
return pid < 0 ? -ENOEXEC : OK;
|
||||||
}
|
}
|
||||||
|
@ -194,7 +194,7 @@ int stm32_usbhost_initialize(void)
|
|||||||
|
|
||||||
pid = TASK_CREATE("usbhost", CONFIG_USBHOST_DEFPRIO,
|
pid = TASK_CREATE("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||||
CONFIG_USBHOST_STACKSIZE,
|
CONFIG_USBHOST_STACKSIZE,
|
||||||
(main_t)usbhost_waiter, (const char **)NULL);
|
(main_t)usbhost_waiter, (FAR char * const *)NULL);
|
||||||
return pid < 0 ? -ENOEXEC : OK;
|
return pid < 0 ? -ENOEXEC : OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -295,7 +295,7 @@ CONFIG_EOL_IS_EITHER_CRLF=y
|
|||||||
CONFIG_LIBC_EXECFUNCS=y
|
CONFIG_LIBC_EXECFUNCS=y
|
||||||
CONFIG_EXECFUNCS_SYMTAB="g_symtab"
|
CONFIG_EXECFUNCS_SYMTAB="g_symtab"
|
||||||
CONFIG_EXECFUNCS_NSYMBOLS=0
|
CONFIG_EXECFUNCS_NSYMBOLS=0
|
||||||
CONFIG_POSIX_SPAWN_STACKSIZE=1024
|
CONFIG_POSIX_SPAWN_PROXY_STACKSIZE=1024
|
||||||
# CONFIG_LIBC_STRERROR is not set
|
# CONFIG_LIBC_STRERROR is not set
|
||||||
# CONFIG_LIBC_PERROR_STDOUT is not set
|
# CONFIG_LIBC_PERROR_STDOUT is not set
|
||||||
CONFIG_ARCH_LOWPUTC=y
|
CONFIG_ARCH_LOWPUTC=y
|
||||||
|
@ -194,7 +194,7 @@ int stm32_usbhost_initialize(void)
|
|||||||
|
|
||||||
pid = TASK_CREATE("usbhost", CONFIG_USBHOST_DEFPRIO,
|
pid = TASK_CREATE("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||||
CONFIG_USBHOST_STACKSIZE,
|
CONFIG_USBHOST_STACKSIZE,
|
||||||
(main_t)usbhost_waiter, (const char **)NULL);
|
(main_t)usbhost_waiter, (FAR char * const *)NULL);
|
||||||
return pid < 0 ? -ENOEXEC : OK;
|
return pid < 0 ? -ENOEXEC : OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ int stm32_usbhost_initialize(void)
|
|||||||
|
|
||||||
pid = TASK_CREATE("usbhost", CONFIG_USBHOST_DEFPRIO,
|
pid = TASK_CREATE("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||||
CONFIG_USBHOST_STACKSIZE,
|
CONFIG_USBHOST_STACKSIZE,
|
||||||
(main_t)usbhost_waiter, (const char **)NULL);
|
(main_t)usbhost_waiter, (FAR char * const *)NULL);
|
||||||
return pid < 0 ? -ENOEXEC : OK;
|
return pid < 0 ? -ENOEXEC : OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -442,7 +442,7 @@ CONFIG_EOL_IS_EITHER_CRLF=y
|
|||||||
CONFIG_LIBC_EXECFUNCS=y
|
CONFIG_LIBC_EXECFUNCS=y
|
||||||
CONFIG_EXECFUNCS_SYMTAB="exports"
|
CONFIG_EXECFUNCS_SYMTAB="exports"
|
||||||
CONFIG_EXECFUNCS_NSYMBOLS=10
|
CONFIG_EXECFUNCS_NSYMBOLS=10
|
||||||
CONFIG_POSIX_SPAWN_STACKSIZE=1024
|
CONFIG_POSIX_SPAWN_PROXY_STACKSIZE=1024
|
||||||
# CONFIG_LIBC_STRERROR is not set
|
# CONFIG_LIBC_STRERROR is not set
|
||||||
# CONFIG_LIBC_PERROR_STDOUT is not set
|
# CONFIG_LIBC_PERROR_STDOUT is not set
|
||||||
CONFIG_ARCH_LOWPUTC=y
|
CONFIG_ARCH_LOWPUTC=y
|
||||||
|
@ -194,7 +194,7 @@ int stm32_usbhost_initialize(void)
|
|||||||
|
|
||||||
pid = TASK_CREATE("usbhost", CONFIG_USBHOST_DEFPRIO,
|
pid = TASK_CREATE("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||||
CONFIG_USBHOST_STACKSIZE,
|
CONFIG_USBHOST_STACKSIZE,
|
||||||
(main_t)usbhost_waiter, (const char **)NULL);
|
(main_t)usbhost_waiter, (FAR char * const *)NULL);
|
||||||
return pid < 0 ? -ENOEXEC : OK;
|
return pid < 0 ? -ENOEXEC : OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -289,10 +289,10 @@ static int nsh_usbhostinitialize(void)
|
|||||||
#ifndef CONFIG_CUSTOM_STACK
|
#ifndef CONFIG_CUSTOM_STACK
|
||||||
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||||
CONFIG_USBHOST_STACKSIZE,
|
CONFIG_USBHOST_STACKSIZE,
|
||||||
(main_t)nsh_waiter, (const char **)NULL);
|
(main_t)nsh_waiter, (FAR char * const *)NULL);
|
||||||
#else
|
#else
|
||||||
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||||
(main_t)nsh_waiter, (const char **)NULL);
|
(main_t)nsh_waiter, (FAR char * const *)NULL);
|
||||||
#endif
|
#endif
|
||||||
return pid < 0 ? -ENOEXEC : OK;
|
return pid < 0 ? -ENOEXEC : OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user