mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 06:23:33 +08:00
Add execv() and execl(); Move lm3s header files for compatibility
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5492 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -228,7 +228,8 @@ int exec_module(FAR const struct binary_s *bin, int priority);
|
||||
*
|
||||
* Description:
|
||||
* This is a convenience function that wraps load_ and exec_module into
|
||||
* one call.
|
||||
* one call. The priority of the executed program is set to be the
|
||||
* same as the priority of the calling thread.
|
||||
*
|
||||
* Input Parameter:
|
||||
* filename - Fulll path to the binary to be loaded
|
||||
|
||||
@@ -160,6 +160,13 @@ EXTERN FAR char *getcwd(FAR char *buf, size_t size);
|
||||
EXTERN int unlink(FAR const char *pathname);
|
||||
EXTERN int rmdir(FAR const char *pathname);
|
||||
|
||||
/* Execution of programs from files */
|
||||
|
||||
#ifdef CONFIG_LIBC_EXECFUNCS
|
||||
EXTERN int execl(FAR const char *path, ...);
|
||||
EXTERN int execv(FAR const char *path, FAR char *const argv[]);
|
||||
#endif
|
||||
|
||||
/* Other */
|
||||
|
||||
EXTERN int getopt(int argc, FAR char *const argv[], FAR const char *optstring);
|
||||
|
||||
Reference in New Issue
Block a user