mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
syscall: Add call gate for get_environ_ptr
Now that the environment strings are stored as an array of strings, they can be passed from the application via char **environ, which is really defined as a function call to get_environ_ptr(). This works as is for flat build, but protected mode and kernel mode require a call gate, which is added here.
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
"fsync","unistd.h","!defined(CONFIG_DISABLE_MOUNTPOINT)","int","int"
|
||||
"ftruncate","unistd.h","!defined(CONFIG_DISABLE_MOUNTPOINT)","int","int","off_t"
|
||||
"futimens","sys/stat.h","","int","int","const struct timespec [2]|FAR const struct timespec *"
|
||||
"get_environ_ptr","stdlib.h","!defined(CONFIG_DISABLE_ENVIRON)","FAR char **"
|
||||
"getenv","stdlib.h","!defined(CONFIG_DISABLE_ENVIRON)","FAR char *","FAR const char *"
|
||||
"getgid","unistd.h","defined(CONFIG_SCHED_USER_IDENTITY)","gid_t"
|
||||
"gethostname","unistd.h","","int","FAR char *","size_t"
|
||||
|
||||
|
Reference in New Issue
Block a user