mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 09:45:55 +08:00
fs/streams: Move the file streams from the group structure into TLS
This is preparation for flushing streams from user space, like it should
be done.
- Move tg_streamlist (group, kernel space) ->
ta_streamlist (TLS, user space)
- Access stream list via tg_info in kernel
- Access stream list via TLS in user space
- Remove / rename nxsched_get_streams -> lib_getstreams
- Remove system call for nxsched_get_streams
This commit is contained in:
+4
-4
@@ -32,7 +32,7 @@
|
||||
#include <time.h>
|
||||
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/sched.h>
|
||||
#include <nuttx/lib/lib.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@@ -63,9 +63,9 @@
|
||||
|
||||
/* The first three _iob entries are reserved for standard I/O */
|
||||
|
||||
#define stdin (&nxsched_get_streams()->sl_std[0])
|
||||
#define stdout (&nxsched_get_streams()->sl_std[1])
|
||||
#define stderr (&nxsched_get_streams()->sl_std[2])
|
||||
#define stdin (&lib_get_streams()->sl_std[0])
|
||||
#define stdout (&lib_get_streams()->sl_std[1])
|
||||
#define stderr (&lib_get_streams()->sl_std[2])
|
||||
|
||||
/* Path to the directory where temporary files can be created */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user