summaryrefslogtreecommitdiff
path: root/nuttx/libc/spawn
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-11 21:51:54 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-11 21:51:54 +0000
commit5a180ec4940c993311eedddaa13194f9977968f1 (patch)
tree60b33dff14781a7f98e7c78b6f47243cace54e77 /nuttx/libc/spawn
parent049b66a75a6f7795b5e80ce70122479f2ef31586 (diff)
downloadpx4-nuttx-5a180ec4940c993311eedddaa13194f9977968f1.tar.gz
px4-nuttx-5a180ec4940c993311eedddaa13194f9977968f1.tar.bz2
px4-nuttx-5a180ec4940c993311eedddaa13194f9977968f1.zip
Documentation update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5512 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/libc/spawn')
-rw-r--r--nuttx/libc/spawn/lib_ps.c13
-rw-r--r--nuttx/libc/spawn/lib_psa_getschedparam.c2
-rw-r--r--nuttx/libc/spawn/lib_psa_getsigmask.c2
-rw-r--r--nuttx/libc/spawn/lib_psa_setschedparam.c4
-rw-r--r--nuttx/libc/spawn/lib_psfa_addopen.c8
-rw-r--r--nuttx/libc/spawn/lib_psfa_init.c2
6 files changed, 16 insertions, 15 deletions
diff --git a/nuttx/libc/spawn/lib_ps.c b/nuttx/libc/spawn/lib_ps.c
index a6a0590d4..dfe57089e 100644
--- a/nuttx/libc/spawn/lib_ps.c
+++ b/nuttx/libc/spawn/lib_ps.c
@@ -440,7 +440,7 @@ static int spawn_proxy(int argc, char *argv[])
*
* Description:
* The posix_spawn() and posix_spawnp() functions will create a new,
- * child task, constructed a regular executable file.
+ * child task, constructed from a regular executable file.
*
* Input Parameters:
*
@@ -479,9 +479,9 @@ static int spawn_proxy(int argc, char *argv[])
* not supported. NuttX does not support process groups.
* - POSIX_SPAWN_SETSCHEDPARAM: Set new tasks priority to the sched_param
* value.
- * - POSIX_SPAWN_SETSCHEDULER: Set the new task's scheduler priority to
+ * - POSIX_SPAWN_SETSCHEDULER: Set the new task's scheduler policy to
* the sched_policy value.
- * - POSIX_SPAWN_RESETIDS: Resetting of effective user ID of the child
+ * - POSIX_SPAWN_RESETIDS: Resetting of the effective user ID of the child
* process is not supported. NuttX does not support effective user
* IDs.
* - POSIX_SPAWN_SETSIGMASK: Set the new task's signal mask.
@@ -514,11 +514,12 @@ static int spawn_proxy(int argc, char *argv[])
* CONFIG_BINFMT_EXEPATH is defined, then only posix_spawnp() behavior
* is supported; otherwise, only posix_spawn behavior is supported.
* - The 'envp' argument is not used and the 'environ' variable is not
- * altered (NuttX does not support the 'environ' variable.
+ * altered (NuttX does not support the 'environ' variable).
* - Process groups are not supported (POSIX_SPAWN_SETPGROUP).
* - Effective user IDs are not supported (POSIX_SPAWN_RESETIDS).
- * - Signal masks and signal default actions cannot be modified in the
- * newly executed task (POSIX_SPAWN_SETSIGDEF and POSIX_SPAWN_SETSIGMASK).
+ * - Signal default actions cannot be modified in the newly task executed
+ * because NuttX does not support default signal actions
+ * (POSIX_SPAWN_SETSIGDEF).
*
* POSIX Compatibility
* - The value of the argv[0] received by the child task is assigned by
diff --git a/nuttx/libc/spawn/lib_psa_getschedparam.c b/nuttx/libc/spawn/lib_psa_getschedparam.c
index 65cec47f1..ed8cb1f70 100644
--- a/nuttx/libc/spawn/lib_psa_getschedparam.c
+++ b/nuttx/libc/spawn/lib_psa_getschedparam.c
@@ -57,7 +57,7 @@
*
* Input Parameters:
* attr - The address spawn attributes to be queried.
- * flags - The location to return the sched_priority value.
+ * flags - The location to return the spawn-schedparam value.
*
* Returned Value:
* On success, these functions return 0; on failure they return an error
diff --git a/nuttx/libc/spawn/lib_psa_getsigmask.c b/nuttx/libc/spawn/lib_psa_getsigmask.c
index 3c831075e..dd3495b4d 100644
--- a/nuttx/libc/spawn/lib_psa_getsigmask.c
+++ b/nuttx/libc/spawn/lib_psa_getsigmask.c
@@ -59,7 +59,7 @@
*
* Input Parameters:
* attr - The address spawn attributes to be queried.
- * sigmask - The location to return the spawn flags
+ * sigmask - The location to return the signal mask
*
* Returned Value:
* On success, these functions return 0; on failure they return an error
diff --git a/nuttx/libc/spawn/lib_psa_setschedparam.c b/nuttx/libc/spawn/lib_psa_setschedparam.c
index 8d3356aaf..5e992e8a9 100644
--- a/nuttx/libc/spawn/lib_psa_setschedparam.c
+++ b/nuttx/libc/spawn/lib_psa_setschedparam.c
@@ -56,8 +56,8 @@
* by attr.
*
* Input Parameters:
- * attr - The address spawn attributes to be used.
- * parm - The new sched_priority to set.
+ * attr - The address spawn attributes to be used.
+ * param - The new sched_priority to set.
*
* Returned Value:
* On success, these functions return 0; on failure they return an error
diff --git a/nuttx/libc/spawn/lib_psfa_addopen.c b/nuttx/libc/spawn/lib_psfa_addopen.c
index bcb201291..385e1cfc3 100644
--- a/nuttx/libc/spawn/lib_psfa_addopen.c
+++ b/nuttx/libc/spawn/lib_psfa_addopen.c
@@ -57,8 +57,8 @@
* Description:
* The posix_spawn_file_actions_addopen() function adds an open operation
* to the list of operations associated with the object referenced by
- * file_actions, for subsequent use in a call to posix_spawn(2) or
- * posix_spawnp(2). The descriptor referred to by fd is opened using
+ * file_actions, for subsequent use in a call to posix_spawn() or
+ * posix_spawnp(). The descriptor referred to by fd is opened using
* the path, oflag, and mode arguments as if open() had been called on it
* prior to the new child process starting execution. The string path is
* copied by the posix_spawn_file_actions_addopen() function during this
@@ -66,8 +66,8 @@
*
* Input Parameters:
* file_actions - The posix_spawn_file_actions_t to append the action.
- * fd - The path to be opened.
- * path - The first file descriptor to be argument to dup2.
+ * fd - The file descriptor to be opened.
+ * path - The path to be opened.
* oflags - Open flags
* mode - File creation mode
*
diff --git a/nuttx/libc/spawn/lib_psfa_init.c b/nuttx/libc/spawn/lib_psfa_init.c
index 4e23703ae..5c902125a 100644
--- a/nuttx/libc/spawn/lib_psfa_init.c
+++ b/nuttx/libc/spawn/lib_psfa_init.c
@@ -50,7 +50,7 @@
*
* Description:
* The posix_spawn_file_actions_init() function initializes the object
- * referenced by file_actions, to an empty set of file actions for
+ * referenced by file_actions to an empty set of file actions for
* subsequent use in a call to posix_spawn() or posix_spawnp().
*
* Input Parameters: