libc/stdio: Allocate file_struct dynamically

1.Reduce the default size of task_group_s(~512B each task)
2.Scale better between simple and complex application

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ia872137504fddcf64d89c48d6f0593d76d582710
This commit is contained in:
Xiang Xiao
2020-08-13 18:17:29 +08:00
committed by liuguo09
parent 154d6bc556
commit b0797263ca
612 changed files with 420 additions and 993 deletions
+2 -2
View File
@@ -24,7 +24,7 @@
"execv","unistd.h","!defined(CONFIG_BINFMT_DISABLE) && defined(CONFIG_LIBC_EXECFUNCS)","int","FAR const char *","FAR char * const []|FAR char * const *"
"exit","stdlib.h","","void","int"
"fcntl","fcntl.h","","int","int","int","...","int"
"fs_fdopen","nuttx/fs/fs.h","CONFIG_NFILE_STREAMS > 0","int","int","int","FAR struct tcb_s *","FAR struct file_struct **"
"fs_fdopen","nuttx/fs/fs.h","defined(CONFIG_FILE_STREAM)","int","int","int","FAR struct tcb_s *","FAR struct file_struct **"
"fstat","sys/stat.h","","int","int","FAR struct stat *"
"fstatfs","sys/statfs.h","","int","int","FAR struct statfs *"
"fsync","unistd.h","!defined(CONFIG_DISABLE_MOUNTPOINT)","int","int"
@@ -118,7 +118,7 @@
"sched_getparam","sched.h","","int","pid_t","FAR struct sched_param *"
"sched_getscheduler","sched.h","","int","pid_t"
"nxsched_get_stackinfo","nuttx/sched.h","","int","pid_t","FAR struct stackinfo_s *"
"nxsched_get_streams","nuttx/sched.h","CONFIG_NFILE_STREAMS > 0","FAR struct streamlist *"
"nxsched_get_streams","nuttx/sched.h","defined(CONFIG_FILE_STREAM)","FAR struct streamlist *"
"sched_lock","sched.h","","int"
"sched_lockcount","sched.h","","int"
"sched_rr_get_interval","sched.h","","int","pid_t","struct timespec *"
1 _exit unistd.h void int
24 execv unistd.h !defined(CONFIG_BINFMT_DISABLE) && defined(CONFIG_LIBC_EXECFUNCS) int FAR const char *
25 exit stdlib.h void int
26 fcntl fcntl.h int int
27 fs_fdopen nuttx/fs/fs.h CONFIG_NFILE_STREAMS > 0 defined(CONFIG_FILE_STREAM) int int
28 fstat sys/stat.h int int
29 fstatfs sys/statfs.h int int
30 fsync unistd.h !defined(CONFIG_DISABLE_MOUNTPOINT) int int
118 sched_getparam sched.h int pid_t
119 sched_getscheduler sched.h int pid_t
120 nxsched_get_stackinfo nuttx/sched.h int pid_t
121 nxsched_get_streams nuttx/sched.h CONFIG_NFILE_STREAMS > 0 defined(CONFIG_FILE_STREAM) FAR struct streamlist *
122 sched_lock sched.h int
123 sched_lockcount sched.h int
124 sched_rr_get_interval sched.h int pid_t