mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
Documentation update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5512 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -866,7 +866,17 @@ o File system / Generic drivers (fs/, drivers/)
|
|||||||
Title: dup AND dup2 WILL NOT WORK ON FILES IN A MOUNTED VOLUME
|
Title: dup AND dup2 WILL NOT WORK ON FILES IN A MOUNTED VOLUME
|
||||||
Description: The current implementation of dup() and dup2() will only
|
Description: The current implementation of dup() and dup2() will only
|
||||||
work with open device drivers and sockets. It will not
|
work with open device drivers and sockets. It will not
|
||||||
work with open files in a file system.
|
work with open files in a file system. Support for dup'ing
|
||||||
|
open files on a mounted volume has not been implemented yet.
|
||||||
|
|
||||||
|
There is a stubbed out, partial implemenation in fs/fs_files.c.
|
||||||
|
In would perform the dup2() operation by re-opening the file
|
||||||
|
and setting the file pointer. The logic, however, would require
|
||||||
|
that we remember the (relative) path to the file in the mounted
|
||||||
|
volume for each open file.
|
||||||
|
|
||||||
|
An option might to add a dup() method to the file system
|
||||||
|
mountpoint interface.
|
||||||
|
|
||||||
A limitation that results from this is that you cannot
|
A limitation that results from this is that you cannot
|
||||||
redirect I/O to an from and file.
|
redirect I/O to an from and file.
|
||||||
|
|||||||
+7
-6
@@ -440,7 +440,7 @@ static int spawn_proxy(int argc, char *argv[])
|
|||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* The posix_spawn() and posix_spawnp() functions will create a new,
|
* 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:
|
* Input Parameters:
|
||||||
*
|
*
|
||||||
@@ -479,9 +479,9 @@ static int spawn_proxy(int argc, char *argv[])
|
|||||||
* not supported. NuttX does not support process groups.
|
* not supported. NuttX does not support process groups.
|
||||||
* - POSIX_SPAWN_SETSCHEDPARAM: Set new tasks priority to the sched_param
|
* - POSIX_SPAWN_SETSCHEDPARAM: Set new tasks priority to the sched_param
|
||||||
* value.
|
* 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.
|
* 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
|
* process is not supported. NuttX does not support effective user
|
||||||
* IDs.
|
* IDs.
|
||||||
* - POSIX_SPAWN_SETSIGMASK: Set the new task's signal mask.
|
* - 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
|
* CONFIG_BINFMT_EXEPATH is defined, then only posix_spawnp() behavior
|
||||||
* is supported; otherwise, only posix_spawn behavior is supported.
|
* is supported; otherwise, only posix_spawn behavior is supported.
|
||||||
* - The 'envp' argument is not used and the 'environ' variable is not
|
* - 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).
|
* - Process groups are not supported (POSIX_SPAWN_SETPGROUP).
|
||||||
* - Effective user IDs are not supported (POSIX_SPAWN_RESETIDS).
|
* - Effective user IDs are not supported (POSIX_SPAWN_RESETIDS).
|
||||||
* - Signal masks and signal default actions cannot be modified in the
|
* - Signal default actions cannot be modified in the newly task executed
|
||||||
* newly executed task (POSIX_SPAWN_SETSIGDEF and POSIX_SPAWN_SETSIGMASK).
|
* because NuttX does not support default signal actions
|
||||||
|
* (POSIX_SPAWN_SETSIGDEF).
|
||||||
*
|
*
|
||||||
* POSIX Compatibility
|
* POSIX Compatibility
|
||||||
* - The value of the argv[0] received by the child task is assigned by
|
* - The value of the argv[0] received by the child task is assigned by
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* attr - The address spawn attributes to be queried.
|
* 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:
|
* Returned Value:
|
||||||
* On success, these functions return 0; on failure they return an error
|
* On success, these functions return 0; on failure they return an error
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* attr - The address spawn attributes to be queried.
|
* 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:
|
* Returned Value:
|
||||||
* On success, these functions return 0; on failure they return an error
|
* On success, these functions return 0; on failure they return an error
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* attr - The address spawn attributes to be used.
|
* attr - The address spawn attributes to be used.
|
||||||
* parm - The new sched_priority to set.
|
* param - The new sched_priority to set.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* On success, these functions return 0; on failure they return an error
|
* On success, these functions return 0; on failure they return an error
|
||||||
|
|||||||
@@ -57,8 +57,8 @@
|
|||||||
* Description:
|
* Description:
|
||||||
* The posix_spawn_file_actions_addopen() function adds an open operation
|
* The posix_spawn_file_actions_addopen() function adds an open operation
|
||||||
* to the list of operations associated with the object referenced by
|
* to the list of operations associated with the object referenced by
|
||||||
* file_actions, for subsequent use in a call to posix_spawn(2) or
|
* file_actions, for subsequent use in a call to posix_spawn() or
|
||||||
* posix_spawnp(2). The descriptor referred to by fd is opened using
|
* 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
|
* 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
|
* prior to the new child process starting execution. The string path is
|
||||||
* copied by the posix_spawn_file_actions_addopen() function during this
|
* copied by the posix_spawn_file_actions_addopen() function during this
|
||||||
@@ -66,8 +66,8 @@
|
|||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* file_actions - The posix_spawn_file_actions_t to append the action.
|
* file_actions - The posix_spawn_file_actions_t to append the action.
|
||||||
* fd - The path to be opened.
|
* fd - The file descriptor to be opened.
|
||||||
* path - The first file descriptor to be argument to dup2.
|
* path - The path to be opened.
|
||||||
* oflags - Open flags
|
* oflags - Open flags
|
||||||
* mode - File creation mode
|
* mode - File creation mode
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* The posix_spawn_file_actions_init() function initializes the object
|
* 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().
|
* subsequent use in a call to posix_spawn() or posix_spawnp().
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
|
|||||||
Reference in New Issue
Block a user