Skip to content

Commit

Permalink
libc: Implement call gate for I/O, FILE and stream flushing
Browse files Browse the repository at this point in the history
nxtask_exit_cleanup performs the cleanup functions, but it needs
a call gate for BUILD_PROTECTED/BUILD_KERNEL.
  • Loading branch information
pussuw committed May 5, 2022
1 parent d7eff92 commit 5939b55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/sys/syscall_lookup.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ SYSCALL_LOOKUP(futimens, 2)
SYSCALL_LOOKUP(nx_mkfifo, 3)
#endif

#ifndef CONFIG_BUILD_FLAT
SYSCALL_LOOKUP(nxtask_exit_cleanup, 1)
#endif

#ifdef CONFIG_FILE_STREAM
SYSCALL_LOOKUP(fs_fdopen, 4)
SYSCALL_LOOKUP(nxsched_get_streams, 0)
Expand Down
1 change: 1 addition & 0 deletions syscall/syscall.csv
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"nx_vsyslog","nuttx/syslog/syslog.h","","int","int","FAR const IPTR char *","FAR va_list *"
"nxsched_get_stackinfo","nuttx/sched.h","","int","pid_t","FAR struct stackinfo_s *"
"nxsched_get_streams","nuttx/sched.h","defined(CONFIG_FILE_STREAM)","FAR struct streamlist *"
"nxtask_exit_cleanup","nuttx/sched.h","","void","int"
"open","fcntl.h","","int","FAR const char *","int","...","mode_t"
"opendir","dirent.h","","FAR DIR *","FAR const char *"
"pgalloc", "nuttx/arch.h", "defined(CONFIG_BUILD_KERNEL)", "uintptr_t", "uintptr_t", "unsigned int"
Expand Down

0 comments on commit 5939b55

Please sign in to comment.