aboutsummaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-08 16:25:30 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-08 16:25:30 +0000
commit14f72f7a210648fe6eaaac3359ec76cab62c7278 (patch)
treebe370af4ffb6147bbbf103f66fcc69ed55bf5893 /nuttx/include
parent3d160e45b64485aa5f231179bf61cdea8fc5c141 (diff)
downloadpx4-firmware-14f72f7a210648fe6eaaac3359ec76cab62c7278.tar.gz
px4-firmware-14f72f7a210648fe6eaaac3359ec76cab62c7278.tar.bz2
px4-firmware-14f72f7a210648fe6eaaac3359ec76cab62c7278.zip
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
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/binfmt/binfmt.h3
-rw-r--r--nuttx/include/unistd.h7
2 files changed, 9 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/binfmt/binfmt.h b/nuttx/include/nuttx/binfmt/binfmt.h
index 6df5190d2..480e82c09 100644
--- a/nuttx/include/nuttx/binfmt/binfmt.h
+++ b/nuttx/include/nuttx/binfmt/binfmt.h
@@ -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
diff --git a/nuttx/include/unistd.h b/nuttx/include/unistd.h
index ddb6880f4..d2ace79fa 100644
--- a/nuttx/include/unistd.h
+++ b/nuttx/include/unistd.h
@@ -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);