mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 18:58:27 +08:00
sched/spawn: Rename task_spawnattr_[get|set]stack[size|addr] to posix_spawnattr_[get|set]stack[size|addr]
since they can be not only used in task_spawn but also in posix_spawn Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
e0a3fdf982
commit
28947517ca
@@ -87,9 +87,8 @@ Standard ``posix_spawn`` interfaces:
|
||||
Non-standard task control interfaces inspired by ``posix_spawn``:
|
||||
|
||||
- :c:func:`task_spawn`
|
||||
- :c:func:`task_spawnattr_getstacksize`
|
||||
- :c:func:`task_spawnattr_setstacksize`
|
||||
- :c:func:`posix_spawn_file_actions_init`
|
||||
- :c:func:`posix_spawnattr_getstacksize`
|
||||
- :c:func:`posix_spawnattr_setstacksize`
|
||||
|
||||
Functions
|
||||
---------
|
||||
@@ -846,9 +845,9 @@ Functions
|
||||
**POSIX Compatibility:** This is a non-standard interface inspired by
|
||||
``posix_spawn()``.
|
||||
|
||||
.. c:function:: int task_spawnattr_getstacksize(FAR const posix_spawnattr_t *attr, FAR size_t *stacksize)
|
||||
.. c:function:: int posix_spawnattr_getstacksize(FAR const posix_spawnattr_t *attr, FAR size_t *stacksize)
|
||||
|
||||
The ``task_spawnattr_getstacksize()`` function will
|
||||
The ``posix_spawnattr_getstacksize()`` function will
|
||||
obtain the value of the *spawn-stacksize* attribute from the attributes
|
||||
object referenced by ``attr``.
|
||||
|
||||
@@ -858,9 +857,9 @@ Functions
|
||||
:return: On success, this function returns 0; on failure it
|
||||
will return an error number from ``<errno.h>``
|
||||
|
||||
.. c:function:: int task_spawnattr_setstacksize(FAR posix_spawnattr_t *attr, size_t stacksize)
|
||||
.. c:function:: int posix_spawnattr_setstacksize(FAR posix_spawnattr_t *attr, size_t stacksize)
|
||||
|
||||
The ``task_spawnattr_setstacksize()`` function will set
|
||||
The ``posix_spawnattr_setstacksize()`` function will set
|
||||
the *spawn-stacksize* attribute in an initialized attributes object
|
||||
referenced by ``attr``.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user