|
VSF Documented
|
#include "./vsf_linux_cfg.h"#include <vsf.h>#include "./include/unistd.h"#include "./include/sched.h"#include "./include/pty.h"#include "./include/semaphore.h"#include "./include/signal.h"#include "./include/sys/wait.h"#include "./include/sys/ipc.h"#include "./include/sys/sem.h"#include "./include/sys/mman.h"#include "./include/sys/shm.h"#include "./include/sys/random.h"#include "./include/sys/stat.h"#include "./include/sys/times.h"#include "./include/sys/prctl.h"#include "./include/sys/reboot.h"#include "./include/sys/capability.h"#include "./include/sys/timex.h"#include "./include/sys/resource.h"#include "./include/sys/sysinfo.h"#include "./include/sys/xattr.h"#include "./include/sys/timeb.h"#include "./include/fcntl.h"#include "./include/errno.h"#include "./include/termios.h"#include "./include/pwd.h"#include "./include/sys/utsname.h"#include "./include/sys/ioctl.h"#include "./include/spawn.h"#include "./include/langinfo.h"#include "./include/poll.h"#include "./include/dlfcn.h"#include "./include/grp.h"#include "./include/fnmatch.h"#include "./include/linux/limits.h"#include "./include/linux/futex.h"#include <stdarg.h>#include "./include/simple_libc/stdlib.h"#include "./include/simple_libc/string.h"#include "./include/simple_libc/stdio.h"#include "./include/simple_libc/ctype.h"#include "./include/simple_libc/setjmp/setjmp.h"#include "./kernel/fs/vsf_linux_fs.h"#include "./include/pthread.h"#include "./include/sys/epoll.h"#include "./include/sys/eventfd.h"#include "./include/sys/sendfile.h"#include "./include/sys/file.h"#include "./include/sys/event.h"#include "./include/sys/statfs.h"#include "./include/sys/sysmacros.h"#include "./include/sys/statvfs.h"#include "./include/netdb.h"#include "./include/libusb/libusb.h"#include "./include/ifaddrs.h"#include "./include/arpa/inet.h"#include "./include/net/if.h"#include "./include/libgen.h"#include "./include/mntent.h"#include "./include/findprog.h"#include "./include/glob.h"#include "./include/regex.h"#include "./include/simple_libc/math/math.h"#include "./include/simple_libc/wchar.h"Data Structures | |
| struct | vsf_linux_shm_mem_t |
| struct | vsf_linux_sem_t |
| struct | vsf_linux_sem_set_t |
| struct | vsf_linux_t |
| struct | vsf_linux_process_heap_t |
Macros | |
| #define | __VSF_EDA_CLASS_INHERIT__ |
| #define | __VSF_SIMPLE_STREAM_CLASS_INHERIT__ |
| #define | __VSF_FS_CLASS_INHERIT__ |
| #define | __VSF_FS_CLASS_INHERIT__ |
| #define | __VSF_HEAP_CLASS_INHERIT__ |
| #define | __VSF_LINUX_FS_CLASS_IMPLEMENT |
| #define | __VSF_LINUX_CLASS_IMPLEMENT |
| #define | __SIMPLE_LIBC_SETJMP_VPLT_ONLY__ |
| #define | __copy2output(__str_from, __copylen) |
| #define | __SIMPLE_LIBC_MATH_VPLT_ONLY__ |
Typedefs | |
| typedef struct vsf_linux_shm_mem_t | vsf_linux_shm_mem_t |
| typedef struct vsf_linux_sem_t | vsf_linux_sem_t |
| typedef struct vsf_linux_sem_set_t | vsf_linux_sem_set_t |
| typedef struct vsf_linux_t | vsf_linux_t |
| typedef struct vsf_linux_process_heap_t | vsf_linux_process_heap_t |
Functions | |
| int | vsf_linux_create_fhs (void) |
| void | vsf_linux_glibc_init (void) |
| int | __vsf_linux_fd_create_ex (vsf_linux_process_t *process, vsf_linux_fd_t **sfd, const vsf_linux_fd_op_t *op, int fd_desired, vsf_linux_fd_priv_t *priv) |
| vsf_linux_fd_t * | __vsf_linux_fd_get_ex (vsf_linux_process_t *process, int fd) |
| void | __vsf_linux_fd_delete_ex (vsf_linux_process_t *process, int fd) |
| void | ____vsf_linux_fd_delete_ex (vsf_linux_process_t *process, vsf_linux_fd_t *sfd) |
| int | __vsf_linux_fd_close_ex (vsf_linux_process_t *process, int fd) |
| int | ____vsf_linux_fd_close_ex (vsf_linux_process_t *process, vsf_linux_fd_t *sfd) |
| vk_file_t * | __vsf_linux_get_fs_ex (vsf_linux_process_t *process, int fd) |
| void | __vsf_linux_rx_stream_init (vsf_linux_stream_priv_t *priv_tx) |
| void | __vsf_linux_tx_stream_init (vsf_linux_stream_priv_t *priv_rx) |
| void | __vsf_linux_tx_stream_drop (vsf_linux_stream_priv_t *priv_tx) |
| void | __vsf_linux_rx_stream_drop (vsf_linux_stream_priv_t *priv_rx) |
| void | __vsf_linux_tx_stream_drain (vsf_linux_stream_priv_t *priv_tx) |
| void | __vsf_linux_stream_evt (vsf_linux_stream_priv_t *priv, vsf_protect_t orig, short event, bool is_ready) |
| void | __vsf_eda_sync_pend (vsf_sync_t *sync, vsf_eda_t *eda, vsf_timeout_tick_t timeout) |
| vsf_linux_process_t * | vsf_linux_get_real_process (vsf_linux_process_t *process) |
| int | vsf_linux_merge_env (vsf_linux_process_t *process, char **env) |
| void | vsf_linux_free_env (vsf_linux_process_t *process) |
| void | vsf_linux_trigger_init (vsf_linux_trigger_t *trig) |
| int | vsf_linux_trigger_signal (vsf_linux_trigger_t *trig, int sig) |
| int | vsf_linux_trigger_pend (vsf_linux_trigger_t *trig, vsf_timeout_tick_t timeout) |
| int | vsf_linux_create_fhs_user (void) |
| int * | __vsf_linux_errno (void) |
| int | vsf_linux_generate_path (char *path_out, int path_out_lenlen, char *dir, char *path_in) |
| void | __vsf_linux_process_free_arg (vsf_linux_process_t *process) |
| int | __vsf_linux_process_parse_arg (vsf_linux_process_t *process, vsf_linux_process_arg_t *arg, char *const *argv) |
| vsf_eda_t * | vsf_linux_get_kernel_task (void) |
| vsf_linux_process_t * | vsf_linux_resources_process (void) |
| void * | vsf_linux_malloc_res (size_t size) |
| void | vsf_linux_free_res (void *ptr) |
| bool | vsf_linux_is_inited (void) |
| vsf_err_t | vsf_linux_init (vsf_linux_stdio_stream_t *stdio_stream) |
| int | isatty (int fd) |
| int | ttyname_r (int fd, char *buf, size_t buflen) |
| char * | ttyname (int fd) |
| vsf_linux_thread_t * | vsf_linux_create_raw_thread (const vsf_linux_thread_op_t *op, int stack_size, void *stack) |
| vsf_linux_thread_t * | vsf_linux_create_thread (vsf_linux_process_t *process, const vsf_linux_thread_op_t *op, int stack_size, void *stack) |
| int | vsf_linux_start_thread (vsf_linux_thread_t *thread, vsf_prio_t priority) |
| size_t | vsf_linux_process_heap_size (vsf_linux_process_t *process, void *buffer) |
| void * | vsf_linux_process_heap_realloc (vsf_linux_process_t *process, void *buffer, uint_fast32_t size) |
| void * | vsf_linux_process_heap_malloc_aligned (vsf_linux_process_t *process, uint_fast32_t size, uint_fast32_t alignment) |
| void * | vsf_linux_process_heap_malloc (vsf_linux_process_t *process, size_t size) |
| void * | vsf_linux_process_heap_calloc (vsf_linux_process_t *process, size_t n, size_t size) |
| void | vsf_linux_process_heap_free (vsf_linux_process_t *process, void *buffer) |
| char * | vsf_linux_process_heap_strdup (vsf_linux_process_t *process, char *str) |
| void * | __vsf_linux_get_process_priv (vsf_linux_process_t *process) |
| vsf_linux_process_t * | vsf_linux_create_process (int stack_size, int heap_size, int priv_size) |
| int | vsf_linux_start_process (vsf_linux_process_t *process) |
| void | vsf_linux_cleanup_process (vsf_linux_process_t *process) |
| void | vsf_linux_delete_process (vsf_linux_process_t *process) |
| VSF_CAL_NO_RETURN void | vsf_linux_exit_process (int status, bool _exit) |
| VSF_CAL_NO_RETURN void | _exit (int status) |
| int | acct (const char *filename) |
| uintptr_t | vsf_linux_set_process_reg (uintptr_t reg) |
| vsf_linux_process_t * | __vsf_linux_start_process_internal (vsf_linux_main_entry_t entry, char *const *argv, int stack_size, vsf_prio_t prio) |
| vsf_linux_process_t * | vsf_linux_get_process (pid_t pid) |
| vsf_linux_thread_t * | vsf_linux_get_thread (pid_t pid, int tid) |
| bool | vsf_linux_is_linux_ctx (vsf_linux_thread_t *thread) |
| vsf_linux_thread_t * | vsf_linux_get_cur_thread (void) |
| vsf_linux_process_t * | vsf_linux_get_cur_process (void) |
| void | vsf_linux_thread_on_terminate (vsf_linux_thread_t *thread) |
| void | vsf_linux_attach_process (vsf_linux_process_t *process, vsf_linux_process_t *parent_process) |
| void | vsf_linux_detach_process (vsf_linux_process_t *process) |
| void | vsf_linux_detach_thread (vsf_linux_thread_t *thread) |
| int | vsf_linux_wait_thread (int tid, int *retval) |
| int | daemon (int nochdir, int noclose) |
| int | __vsf_linux_get_exe (char *pathname, int pathname_len, char *cmd, vsf_linux_main_entry_t *entry, bool use_path) |
| const char * | find_in_path (const char *progname) |
| const char * | find_in_given_path (const char *progname, const char *path, const char *directory, bool optimize_for_exec) |
| int | __vsf_linux_script_main (int argc, char **argv) |
| int | __vsf_linux_dynloader_main (int argc, char **argv) |
| exec_ret_t | execvpe (const char *file, char *const *argv, char *const *envp) |
| exec_ret_t | execvp (const char *file, char *const *argv) |
| exec_ret_t | execve (const char *pathname, char *const *argv, char *const *envp) |
| exec_ret_t | execv (const char *pathname, char *const *argv) |
| exec_ret_t | __execlp_va (const char *pathname, const char *arg, va_list ap) |
| exec_ret_t | execlp (const char *pathname, const char *arg,...) |
| exec_ret_t | __execl_va (const char *pathname, const char *arg, va_list ap, bool has_env) |
| exec_ret_t | execl (const char *pathname, const char *arg,...) |
| exec_ret_t | execle (const char *pathname, const char *arg,...) |
| long | sysconf (int name) |
| long | fpathconf (int fd, int name) |
| long | pathconf (const char *path, int name) |
| int | pipe (int pipefd[2]) |
| int | pipe2 (int pipefd[2], int flags) |
| int | kill (pid_t pid, int sig) |
| int | sigaction (int signum, const struct sigaction *act, struct sigaction *oldact) |
| int | sigwaitinfo (const sigset_t *set, siginfo_t *info) |
| int | sigtimedwait (const sigset_t *set, siginfo_t *info, const struct signal_timespec *timeout) |
| int | sigsuspend (const sigset_t *set) |
| sighandler_t | signal (int signum, sighandler_t handler) |
| int | raise (int sig) |
| useconds_t | ualarm (useconds_t usecs, useconds_t interval) |
| unsigned int | alarm (unsigned int seconds) |
| pid_t | wait (int *status) |
| pid_t | vsf_linux_waitpid (pid_t pid, int *status, int options, bool cleanup) |
| pid_t | waitpid (pid_t pid, int *status, int options) |
| int | waitid (idtype_t idtype, id_t id, siginfo_t *infop, int options) |
| char * | getlogin (void) |
| int | getlogin_r (char *buf, size_t bufsize) |
| int | setgid (gid_t git) |
| gid_t | getgid (void) |
| int | setegid (gid_t egid) |
| gid_t | getegid (void) |
| int | setuid (uid_t uid) |
| uid_t | getuid (void) |
| int | seteuid (uid_t euid) |
| uid_t | geteuid (void) |
| pid_t | getpid (void) |
| pid_t | getppid (void) |
| pid_t | setsid (void) |
| pid_t | getsid (pid_t pid) |
| int | setpgid (pid_t pid, pid_t pgid) |
| pid_t | getpgid (pid_t pid) |
| int | setpgrp (void) |
| pid_t | getpgrp (void) |
| int | setresuid (uid_t ruid, uid_t euid, uid_t suid) |
| int | setresgid (gid_t rgid, gid_t egid, gid_t sgid) |
| pid_t | gettid (void) |
| int | sigprocmask (int how, const sigset_t *set, sigset_t *oldset) |
| char * | getcwd (char *buffer, size_t maxlen) |
| int | vsf_linux_fs_get_executable (const char *pathname, vsf_linux_main_entry_t *entry) |
| int | vsf_linux_fd_bind_executable (int fd, vsf_linux_main_entry_t entry) |
| int | vsf_linux_fs_bind_executable (char *path, vsf_linux_main_entry_t entry) |
| char * | getpass (const char *prompt) |
| vsf_systimer_tick_t | vsf_linux_sleep (vsf_timeout_tick_t ticks) |
| int | usleep (int usec) |
| unsigned | sleep (unsigned sec) |
| int | pause (void) |
| int | chown (const char *pathname, uid_t owner, gid_t group) |
| int | fchown (int fd, uid_t owner, gid_t group) |
| int | lchown (const char *pathname, uid_t owner, gid_t group) |
| int | fchownat (int dirfd, const char *pathname, uid_t owner, gid_t group, int flags) |
| size_t | confstr (int name, char *buf, size_t len) |
| key_t | ftok (const char *pathname, int id) |
| int | __semctl_va (int semid, int semnum, int cmd, va_list ap) |
| int | semctl (int semid, int semnum, int cmd,...) |
| int | semget (key_t key, int nsems, int semflg) |
| int | semtimedop (int semid, struct sembuf *sops, size_t nsops, const struct timespec *timeout) |
| int | semop (int semid, struct sembuf *sops, size_t nsops) |
| int | gettimeofday (struct timeval *tv, struct timezone *tz) |
| int | settimeofday (const struct timeval *tv, const struct timezone *tz) |
| clock_t | times (struct tms *buf) |
| int | ftime (struct timeb *timebuf) |
| int | reboot (int howto) |
| int | removexattr (const char *path, const char *name) |
| int | lremovexattr (const char *path, const char *name) |
| int | fremovexattr (int fd, const char *name) |
| int | setxattr (const char *path, const char *name, const void *value, size_t size, int flags) |
| int | lsetxattr (const char *path, const char *name, const void *value, size_t size, int flags) |
| int | fsetxattr (int fd, const char *name, const void *value, size_t size, int flags) |
| ssize_t | getxattr (const char *path, const char *name, void *value, size_t size) |
| ssize_t | lgetxattr (const char *path, const char *name, void *value, size_t size) |
| ssize_t | fgetxattr (int fd, const char *name, void *value, size_t size) |
| int | capget (cap_user_header_t hdrp, cap_user_data_t datap) |
| int | capset (cap_user_header_t hdrp, const cap_user_data_t datap) |
| long | sys_futex (uint32_t *futex, int futex_op, uint32_t val, uintptr_t val2, uint32_t *futex2, uint32_t val3) |
| int | prctl (int option, uintptr_t arg2, uintptr_t arg3, uintptr_t arg4, uintptr_t arg5) |
| int | shmget (key_t key, size_t size, int shmflg) |
| void * | shmat (int shmid, const void *shmaddr, int shmflg) |
| int | shmdt (const void *shmaddr) |
| int | shmctl (int shmid, int cmd, struct shmid_ds *buf) |
| int | sched_get_priority_max (int policy) |
| int | sched_get_priority_min (int policy) |
| int | sched_getparam (pid_t pid, struct sched_param *param) |
| int | sched_setparam (pid_t pid, const struct sched_param *param) |
| int | sched_getscheduler (pid_t pid) |
| int | sched_setscheduler (pid_t pid, int policy, const struct sched_param *param) |
| int | sched_yield (void) |
| int | openpty (int *amaster, int *aslave, char *name, const struct termios *termp, const struct winsize *winp) |
| int | login_tty (int fd) |
| int | uname (struct utsname *name) |
| size_t | getpagesize (void) |
| int | gethostname (char *name, size_t len) |
| int | sethostname (const char *name, size_t len) |
| void * | mmap64 (void *addr, size_t len, int prot, int flags, int fd, off64_t off) |
| void * | mmap (void *addr, size_t len, int prot, int flags, int fd, off_t off) |
| int | msync (void *addr, size_t len, int flags) |
| int | munmap (void *addr, size_t len) |
| int | mprotect (void *addr, size_t len, int prot) |
| int | shm_open (const char *name, int oflag, mode_t mode) |
| int | shm_unlink (const char *name) |
| ssize_t | getrandom (void *buf, size_t buflen, unsigned int flags) |
| int | getentropy (void *buf, size_t length) |
| long | gethostid (void) |
| int | sethostid (long hostid) |
| int | getdtablesize (void) |
| pid_t | __vsf_linux_vfork_prepare (vsf_linux_process_t *parent_process) |
| pid_t | fork (void) |
| dev_t | makedev (unsigned int maj, unsigned int min) |
| unsigned int | major (dev_t dev) |
| unsigned int | minor (dev_t dev) |
| int | __vsf_linux_spawn (pid_t *pid, vsf_linux_main_entry_t entry, const posix_spawn_file_actions_t *actions, const posix_spawnattr_t *attr, char *const argv[], char *const env[], void *priv, int priv_size) |
| int | posix_spawnp (pid_t *pid, const char *file, const posix_spawn_file_actions_t *actions, const posix_spawnattr_t *attr, char *const argv[], char *const env[]) |
| int | posix_spawn (pid_t *pid, const char *path, const posix_spawn_file_actions_t *actions, const posix_spawnattr_t *attr, char *const argv[], char *const env[]) |
| int | posix_spawnattr_init (posix_spawnattr_t *attr) |
| int | posix_spawnattr_destroy (posix_spawnattr_t *attr) |
| int | posix_spawnattr_getsigdefault (const posix_spawnattr_t *attr, sigset_t *sigdefault) |
| int | posix_spawnattr_setsigdefault (posix_spawnattr_t *attr, const sigset_t *sigdefault) |
| int | posix_spawnattr_getsigmask (const posix_spawnattr_t *attr, sigset_t *sigmask) |
| int | posix_spawnattr_setsigmask (posix_spawnattr_t *attr, const sigset_t *sigmask) |
| int | posix_spawnattr_getflags (const posix_spawnattr_t *attr, short int *flags) |
| int | posix_spawnattr_setflags (posix_spawnattr_t *attr, short int flags) |
| int | posix_spawnattr_getpgroup (const posix_spawnattr_t *attr, pid_t *pgroup) |
| int | posix_spawnattr_setpgroup (posix_spawnattr_t *attr, pid_t pgroup) |
| int | posix_spawnattr_getschedpolicy (const posix_spawnattr_t *attr, int *schedpolicy) |
| int | posix_spawnattr_setschedpolicy (posix_spawnattr_t *attr, int schedpolicy) |
| int | posix_spawnattr_getschedparam (const posix_spawnattr_t *attr, struct sched_param *schedparam) |
| int | posix_spawnattr_setschedparam (posix_spawnattr_t *attr, const struct sched_param *schedparam) |
| int | posix_spawn_file_actions_init (posix_spawn_file_actions_t *actions) |
| int | posix_spawn_file_actions_destroy (posix_spawn_file_actions_t *actions) |
| int | posix_spawn_file_actions_addopen (posix_spawn_file_actions_t *actions, int fd, const char *path, int oflag, mode_t mode) |
| int | posix_spawn_file_actions_addclose (posix_spawn_file_actions_t *actions, int fd) |
| int | posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t *actions, int fd, int newfd) |
| int | posix_spawn_file_actions_addchdir_np (posix_spawn_file_actions_t *actions, const char *path) |
| int | posix_spawn_file_actions_addfchdir_np (posix_spawn_file_actions_t *actions, int fd) |
| int | tcgetattr (int fd, struct termios *termios) |
| int | tcsetattr (int fd, int optional_actions, const struct termios *termios) |
| pid_t | tcgetpgrp (int fd) |
| int | tcsetpgrp (int fd, pid_t pgrp) |
| int | tcsendbreak (int fd, int duration) |
| int | tcdrain (int fd) |
| int | tcflush (int fd, int queue_selector) |
| int | tcflow (int fd, int action) |
| void | cfmakeraw (struct termios *termios) |
| speed_t | cfgetispeed (const struct termios *termios) |
| speed_t | cfgetospeed (const struct termios *termios) |
| int | cfsetispeed (struct termios *termios, speed_t speed) |
| int | cfsetospeed (struct termios *termios, speed_t speed) |
| int | cfsetspeed (struct termios *termios, speed_t speed) |
| int | vsf_linux_expandenv (const char *str, char *output, size_t bufflen) |
| char * | nl_langinfo (nl_item item) |
| void | vsf_linux_loader_keep_ram (void) |
| void * | dlopen (const char *pathname, int mode) |
| int | dlclose (void *handle) |
| void * | dlsym (void *handle, const char *name) |
| char * | dlerror (void) |
| struct passwd * | getpwuid (uid_t uid) |
| struct passwd * | getpwnam (const char *name) |
| int | initgroups (const char *user, gid_t group) |
| int | getgroups (size_t size, gid_t list[]) |
| int | setgroups (size_t size, const gid_t *list) |
| struct group * | getgrnam (const char *name) |
| struct group * | getgrgid (gid_t gid) |
| int | getgrnam_r (const char *name, struct group *grp, char *buf, size_t buflen, struct group **result) |
| int | getgrgid_r (gid_t gid, struct group *grp, char *buf, size_t buflen, struct group **result) |
| struct group * | getgrent (void) |
| void | setgrent (void) |
| void | endgrent (void) |
| int | getpriority (int which, id_t who) |
| int | setpriority (int which, id_t who, int prio) |
| int | adjtimex (struct timex *buf) |
| int | clock_adjtime (clockid_t clk_id, struct timex *buf) |
| int | ntp_adjtime (struct timex *buf) |
| int | sysinfo (struct sysinfo *info) |
| #define __VSF_EDA_CLASS_INHERIT__ |
| #define __VSF_SIMPLE_STREAM_CLASS_INHERIT__ |
| #define __VSF_FS_CLASS_INHERIT__ |
| #define __VSF_FS_CLASS_INHERIT__ |
| #define __VSF_HEAP_CLASS_INHERIT__ |
| #define __VSF_LINUX_FS_CLASS_IMPLEMENT |
| #define __VSF_LINUX_CLASS_IMPLEMENT |
| #define __SIMPLE_LIBC_SETJMP_VPLT_ONLY__ |
| #define __copy2output | ( | __str_from, | |
| __copylen | |||
| ) |
| #define __SIMPLE_LIBC_MATH_VPLT_ONLY__ |
| typedef struct vsf_linux_shm_mem_t vsf_linux_shm_mem_t |
| typedef struct vsf_linux_sem_t vsf_linux_sem_t |
| typedef struct vsf_linux_sem_set_t vsf_linux_sem_set_t |
| typedef struct vsf_linux_t vsf_linux_t |
| typedef struct vsf_linux_process_heap_t vsf_linux_process_heap_t |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
| vsf_linux_process_t * vsf_linux_get_real_process | ( | vsf_linux_process_t * | process | ) |
| int vsf_linux_merge_env | ( | vsf_linux_process_t * | process, |
| char ** | env | ||
| ) |
| void vsf_linux_free_env | ( | vsf_linux_process_t * | process | ) |
| void vsf_linux_trigger_init | ( | vsf_linux_trigger_t * | trig | ) |
| int vsf_linux_trigger_signal | ( | vsf_linux_trigger_t * | trig, |
| int | sig | ||
| ) |
| int vsf_linux_trigger_pend | ( | vsf_linux_trigger_t * | trig, |
| vsf_timeout_tick_t | timeout | ||
| ) |
| int vsf_linux_create_fhs_user | ( | void | ) |
| int * __vsf_linux_errno | ( | void | ) |
| int vsf_linux_generate_path | ( | char * | path_out, |
| int | path_out_lenlen, | ||
| char * | dir, | ||
| char * | path_in | ||
| ) |
| void __vsf_linux_process_free_arg | ( | vsf_linux_process_t * | process | ) |
| int __vsf_linux_process_parse_arg | ( | vsf_linux_process_t * | process, |
| vsf_linux_process_arg_t * | arg, | ||
| char *const * | argv | ||
| ) |
| vsf_eda_t * vsf_linux_get_kernel_task | ( | void | ) |
| vsf_linux_process_t * vsf_linux_resources_process | ( | void | ) |
| void * vsf_linux_malloc_res | ( | size_t | size | ) |
| void vsf_linux_free_res | ( | void * | ptr | ) |
| bool vsf_linux_is_inited | ( | void | ) |
| vsf_err_t vsf_linux_init | ( | vsf_linux_stdio_stream_t * | stdio_stream | ) |
| int isatty | ( | int | fd | ) |
| int ttyname_r | ( | int | fd, |
| char * | buf, | ||
| size_t | buflen | ||
| ) |
| char * ttyname | ( | int | fd | ) |
| vsf_linux_thread_t * vsf_linux_create_raw_thread | ( | const vsf_linux_thread_op_t * | op, |
| int | stack_size, | ||
| void * | stack | ||
| ) |
| vsf_linux_thread_t * vsf_linux_create_thread | ( | vsf_linux_process_t * | process, |
| const vsf_linux_thread_op_t * | op, | ||
| int | stack_size, | ||
| void * | stack | ||
| ) |
| int vsf_linux_start_thread | ( | vsf_linux_thread_t * | thread, |
| vsf_prio_t | priority | ||
| ) |
| size_t vsf_linux_process_heap_size | ( | vsf_linux_process_t * | process, |
| void * | buffer | ||
| ) |
| void * vsf_linux_process_heap_realloc | ( | vsf_linux_process_t * | process, |
| void * | buffer, | ||
| uint_fast32_t | size | ||
| ) |
| void * vsf_linux_process_heap_malloc_aligned | ( | vsf_linux_process_t * | process, |
| uint_fast32_t | size, | ||
| uint_fast32_t | alignment | ||
| ) |
| void * vsf_linux_process_heap_malloc | ( | vsf_linux_process_t * | process, |
| size_t | size | ||
| ) |
| void * vsf_linux_process_heap_calloc | ( | vsf_linux_process_t * | process, |
| size_t | n, | ||
| size_t | size | ||
| ) |
| void vsf_linux_process_heap_free | ( | vsf_linux_process_t * | process, |
| void * | buffer | ||
| ) |
| char * vsf_linux_process_heap_strdup | ( | vsf_linux_process_t * | process, |
| char * | str | ||
| ) |
| void * __vsf_linux_get_process_priv | ( | vsf_linux_process_t * | process | ) |
| vsf_linux_process_t * vsf_linux_create_process | ( | int | stack_size, |
| int | heap_size, | ||
| int | priv_size | ||
| ) |
| int vsf_linux_start_process | ( | vsf_linux_process_t * | process | ) |
| void vsf_linux_cleanup_process | ( | vsf_linux_process_t * | process | ) |
| void vsf_linux_delete_process | ( | vsf_linux_process_t * | process | ) |
| VSF_CAL_NO_RETURN void vsf_linux_exit_process | ( | int | status, |
| bool | _exit | ||
| ) |
| VSF_CAL_NO_RETURN void _exit | ( | int | status | ) |
| int acct | ( | const char * | filename | ) |
| vsf_linux_process_t * __vsf_linux_start_process_internal | ( | vsf_linux_main_entry_t | entry, |
| char *const * | argv, | ||
| int | stack_size, | ||
| vsf_prio_t | prio | ||
| ) |
| vsf_linux_process_t * vsf_linux_get_process | ( | pid_t | pid | ) |
| vsf_linux_thread_t * vsf_linux_get_thread | ( | pid_t | pid, |
| int | tid | ||
| ) |
| bool vsf_linux_is_linux_ctx | ( | vsf_linux_thread_t * | thread | ) |
| vsf_linux_thread_t * vsf_linux_get_cur_thread | ( | void | ) |
| vsf_linux_process_t * vsf_linux_get_cur_process | ( | void | ) |
| void vsf_linux_thread_on_terminate | ( | vsf_linux_thread_t * | thread | ) |
| void vsf_linux_attach_process | ( | vsf_linux_process_t * | process, |
| vsf_linux_process_t * | parent_process | ||
| ) |
| void vsf_linux_detach_process | ( | vsf_linux_process_t * | process | ) |
| void vsf_linux_detach_thread | ( | vsf_linux_thread_t * | thread | ) |
| int vsf_linux_wait_thread | ( | int | tid, |
| int * | retval | ||
| ) |
| int daemon | ( | int | nochdir, |
| int | noclose | ||
| ) |
| int __vsf_linux_get_exe | ( | char * | pathname, |
| int | pathname_len, | ||
| char * | cmd, | ||
| vsf_linux_main_entry_t * | entry, | ||
| bool | use_path | ||
| ) |
| const char * find_in_path | ( | const char * | progname | ) |
| const char * find_in_given_path | ( | const char * | progname, |
| const char * | path, | ||
| const char * | directory, | ||
| bool | optimize_for_exec | ||
| ) |
| int __vsf_linux_script_main | ( | int | argc, |
| char ** | argv | ||
| ) |
Possible memory leakage for IAR, because IAR will use malloc for VLA, so if main thread is exited by APIs like exit, the argv will not be freed.
| int __vsf_linux_dynloader_main | ( | int | argc, |
| char ** | argv | ||
| ) |
| exec_ret_t execvpe | ( | const char * | file, |
| char *const * | argv, | ||
| char *const * | envp | ||
| ) |
| exec_ret_t execvp | ( | const char * | file, |
| char *const * | argv | ||
| ) |
| exec_ret_t execve | ( | const char * | pathname, |
| char *const * | argv, | ||
| char *const * | envp | ||
| ) |
| exec_ret_t execv | ( | const char * | pathname, |
| char *const * | argv | ||
| ) |
| exec_ret_t __execlp_va | ( | const char * | pathname, |
| const char * | arg, | ||
| va_list | ap | ||
| ) |
| exec_ret_t execlp | ( | const char * | pathname, |
| const char * | arg, | ||
| ... | |||
| ) |
| exec_ret_t __execl_va | ( | const char * | pathname, |
| const char * | arg, | ||
| va_list | ap, | ||
| bool | has_env | ||
| ) |
| exec_ret_t execl | ( | const char * | pathname, |
| const char * | arg, | ||
| ... | |||
| ) |
| exec_ret_t execle | ( | const char * | pathname, |
| const char * | arg, | ||
| ... | |||
| ) |
| long sysconf | ( | int | name | ) |
| long fpathconf | ( | int | fd, |
| int | name | ||
| ) |
| long pathconf | ( | const char * | path, |
| int | name | ||
| ) |
| int pipe | ( | int | pipefd[2] | ) |
| int pipe2 | ( | int | pipefd[2], |
| int | flags | ||
| ) |
| int kill | ( | pid_t | pid, |
| int | sig | ||
| ) |
| int sigtimedwait | ( | const sigset_t * | set, |
| siginfo_t * | info, | ||
| const struct signal_timespec * | timeout | ||
| ) |
| int sigsuspend | ( | const sigset_t * | set | ) |
| sighandler_t signal | ( | int | signum, |
| sighandler_t | handler | ||
| ) |
| int raise | ( | int | sig | ) |
| useconds_t ualarm | ( | useconds_t | usecs, |
| useconds_t | interval | ||
| ) |
| unsigned int alarm | ( | unsigned int | seconds | ) |
| pid_t wait | ( | int * | status | ) |
| char * getlogin | ( | void | ) |
| int getlogin_r | ( | char * | buf, |
| size_t | bufsize | ||
| ) |
| int setgid | ( | gid_t | git | ) |
| gid_t getgid | ( | void | ) |
| int setegid | ( | gid_t | egid | ) |
| gid_t getegid | ( | void | ) |
| int setuid | ( | uid_t | uid | ) |
| uid_t getuid | ( | void | ) |
| int seteuid | ( | uid_t | euid | ) |
| uid_t geteuid | ( | void | ) |
| pid_t getpid | ( | void | ) |
| pid_t getppid | ( | void | ) |
| pid_t setsid | ( | void | ) |
| int setpgrp | ( | void | ) |
| pid_t getpgrp | ( | void | ) |
| pid_t gettid | ( | void | ) |
| char * getcwd | ( | char * | buffer, |
| size_t | maxlen | ||
| ) |
| int vsf_linux_fs_get_executable | ( | const char * | pathname, |
| vsf_linux_main_entry_t * | entry | ||
| ) |
| int vsf_linux_fd_bind_executable | ( | int | fd, |
| vsf_linux_main_entry_t | entry | ||
| ) |
| int vsf_linux_fs_bind_executable | ( | char * | path, |
| vsf_linux_main_entry_t | entry | ||
| ) |
| char * getpass | ( | const char * | prompt | ) |
| vsf_systimer_tick_t vsf_linux_sleep | ( | vsf_timeout_tick_t | ticks | ) |
| int usleep | ( | int | usec | ) |
| unsigned sleep | ( | unsigned | sec | ) |
| int pause | ( | void | ) |
| key_t ftok | ( | const char * | pathname, |
| int | id | ||
| ) |
| int __semctl_va | ( | int | semid, |
| int | semnum, | ||
| int | cmd, | ||
| va_list | ap | ||
| ) |
| int semctl | ( | int | semid, |
| int | semnum, | ||
| int | cmd, | ||
| ... | |||
| ) |
| int semget | ( | key_t | key, |
| int | nsems, | ||
| int | semflg | ||
| ) |
| int ftime | ( | struct timeb * | timebuf | ) |
| int reboot | ( | int | howto | ) |
| int removexattr | ( | const char * | path, |
| const char * | name | ||
| ) |
| int lremovexattr | ( | const char * | path, |
| const char * | name | ||
| ) |
| int fremovexattr | ( | int | fd, |
| const char * | name | ||
| ) |
| int setxattr | ( | const char * | path, |
| const char * | name, | ||
| const void * | value, | ||
| size_t | size, | ||
| int | flags | ||
| ) |
| int lsetxattr | ( | const char * | path, |
| const char * | name, | ||
| const void * | value, | ||
| size_t | size, | ||
| int | flags | ||
| ) |
| int fsetxattr | ( | int | fd, |
| const char * | name, | ||
| const void * | value, | ||
| size_t | size, | ||
| int | flags | ||
| ) |
| int capget | ( | cap_user_header_t | hdrp, |
| cap_user_data_t | datap | ||
| ) |
| int capset | ( | cap_user_header_t | hdrp, |
| const cap_user_data_t | datap | ||
| ) |
| long sys_futex | ( | uint32_t * | futex, |
| int | futex_op, | ||
| uint32_t | val, | ||
| uintptr_t | val2, | ||
| uint32_t * | futex2, | ||
| uint32_t | val3 | ||
| ) |
| void * shmat | ( | int | shmid, |
| const void * | shmaddr, | ||
| int | shmflg | ||
| ) |
| int shmdt | ( | const void * | shmaddr | ) |
| int shmctl | ( | int | shmid, |
| int | cmd, | ||
| struct shmid_ds * | buf | ||
| ) |
| int sched_get_priority_max | ( | int | policy | ) |
| int sched_get_priority_min | ( | int | policy | ) |
| int sched_getparam | ( | pid_t | pid, |
| struct sched_param * | param | ||
| ) |
| int sched_setparam | ( | pid_t | pid, |
| const struct sched_param * | param | ||
| ) |
| int sched_getscheduler | ( | pid_t | pid | ) |
| int sched_setscheduler | ( | pid_t | pid, |
| int | policy, | ||
| const struct sched_param * | param | ||
| ) |
| int sched_yield | ( | void | ) |
| int openpty | ( | int * | amaster, |
| int * | aslave, | ||
| char * | name, | ||
| const struct termios * | termp, | ||
| const struct winsize * | winp | ||
| ) |
| int login_tty | ( | int | fd | ) |
| int uname | ( | struct utsname * | name | ) |
| size_t getpagesize | ( | void | ) |
| int gethostname | ( | char * | name, |
| size_t | len | ||
| ) |
| int sethostname | ( | const char * | name, |
| size_t | len | ||
| ) |
| int msync | ( | void * | addr, |
| size_t | len, | ||
| int | flags | ||
| ) |
| int munmap | ( | void * | addr, |
| size_t | len | ||
| ) |
| int mprotect | ( | void * | addr, |
| size_t | len, | ||
| int | prot | ||
| ) |
| int shm_open | ( | const char * | name, |
| int | oflag, | ||
| mode_t | mode | ||
| ) |
| int shm_unlink | ( | const char * | name | ) |
| int getentropy | ( | void * | buf, |
| size_t | length | ||
| ) |
| long gethostid | ( | void | ) |
| int sethostid | ( | long | hostid | ) |
| int getdtablesize | ( | void | ) |
| pid_t __vsf_linux_vfork_prepare | ( | vsf_linux_process_t * | parent_process | ) |
| pid_t fork | ( | void | ) |
| dev_t makedev | ( | unsigned int | maj, |
| unsigned int | min | ||
| ) |
| unsigned int major | ( | dev_t | dev | ) |
| unsigned int minor | ( | dev_t | dev | ) |
| int __vsf_linux_spawn | ( | pid_t * | pid, |
| vsf_linux_main_entry_t | entry, | ||
| const posix_spawn_file_actions_t * | actions, | ||
| const posix_spawnattr_t * | attr, | ||
| char *const | argv[], | ||
| char *const | env[], | ||
| void * | priv, | ||
| int | priv_size | ||
| ) |
| int posix_spawnp | ( | pid_t * | pid, |
| const char * | file, | ||
| const posix_spawn_file_actions_t * | actions, | ||
| const posix_spawnattr_t * | attr, | ||
| char *const | argv[], | ||
| char *const | env[] | ||
| ) |
| int posix_spawn | ( | pid_t * | pid, |
| const char * | path, | ||
| const posix_spawn_file_actions_t * | actions, | ||
| const posix_spawnattr_t * | attr, | ||
| char *const | argv[], | ||
| char *const | env[] | ||
| ) |
| int posix_spawnattr_init | ( | posix_spawnattr_t * | attr | ) |
| int posix_spawnattr_destroy | ( | posix_spawnattr_t * | attr | ) |
| int posix_spawnattr_getsigdefault | ( | const posix_spawnattr_t * | attr, |
| sigset_t * | sigdefault | ||
| ) |
| int posix_spawnattr_setsigdefault | ( | posix_spawnattr_t * | attr, |
| const sigset_t * | sigdefault | ||
| ) |
| int posix_spawnattr_getsigmask | ( | const posix_spawnattr_t * | attr, |
| sigset_t * | sigmask | ||
| ) |
| int posix_spawnattr_setsigmask | ( | posix_spawnattr_t * | attr, |
| const sigset_t * | sigmask | ||
| ) |
| int posix_spawnattr_getflags | ( | const posix_spawnattr_t * | attr, |
| short int * | flags | ||
| ) |
| int posix_spawnattr_setflags | ( | posix_spawnattr_t * | attr, |
| short int | flags | ||
| ) |
| int posix_spawnattr_getpgroup | ( | const posix_spawnattr_t * | attr, |
| pid_t * | pgroup | ||
| ) |
| int posix_spawnattr_setpgroup | ( | posix_spawnattr_t * | attr, |
| pid_t | pgroup | ||
| ) |
| int posix_spawnattr_getschedpolicy | ( | const posix_spawnattr_t * | attr, |
| int * | schedpolicy | ||
| ) |
| int posix_spawnattr_setschedpolicy | ( | posix_spawnattr_t * | attr, |
| int | schedpolicy | ||
| ) |
| int posix_spawnattr_getschedparam | ( | const posix_spawnattr_t * | attr, |
| struct sched_param * | schedparam | ||
| ) |
| int posix_spawnattr_setschedparam | ( | posix_spawnattr_t * | attr, |
| const struct sched_param * | schedparam | ||
| ) |
| int posix_spawn_file_actions_init | ( | posix_spawn_file_actions_t * | actions | ) |
| int posix_spawn_file_actions_destroy | ( | posix_spawn_file_actions_t * | actions | ) |
| int posix_spawn_file_actions_addopen | ( | posix_spawn_file_actions_t * | actions, |
| int | fd, | ||
| const char * | path, | ||
| int | oflag, | ||
| mode_t | mode | ||
| ) |
| int posix_spawn_file_actions_addclose | ( | posix_spawn_file_actions_t * | actions, |
| int | fd | ||
| ) |
| int posix_spawn_file_actions_adddup2 | ( | posix_spawn_file_actions_t * | actions, |
| int | fd, | ||
| int | newfd | ||
| ) |
| int posix_spawn_file_actions_addchdir_np | ( | posix_spawn_file_actions_t * | actions, |
| const char * | path | ||
| ) |
| int posix_spawn_file_actions_addfchdir_np | ( | posix_spawn_file_actions_t * | actions, |
| int | fd | ||
| ) |
| int tcgetattr | ( | int | fd, |
| struct termios * | termios | ||
| ) |
| int tcsetattr | ( | int | fd, |
| int | optional_actions, | ||
| const struct termios * | termios | ||
| ) |
| pid_t tcgetpgrp | ( | int | fd | ) |
| int tcsetpgrp | ( | int | fd, |
| pid_t | pgrp | ||
| ) |
| int tcsendbreak | ( | int | fd, |
| int | duration | ||
| ) |
| int tcdrain | ( | int | fd | ) |
| int tcflush | ( | int | fd, |
| int | queue_selector | ||
| ) |
| int tcflow | ( | int | fd, |
| int | action | ||
| ) |
| void cfmakeraw | ( | struct termios * | termios | ) |
| int vsf_linux_expandenv | ( | const char * | str, |
| char * | output, | ||
| size_t | bufflen | ||
| ) |
| char * nl_langinfo | ( | nl_item | item | ) |
| void vsf_linux_loader_keep_ram | ( | void | ) |
| void * dlopen | ( | const char * | pathname, |
| int | mode | ||
| ) |
| int dlclose | ( | void * | handle | ) |
| void * dlsym | ( | void * | handle, |
| const char * | name | ||
| ) |
| char * dlerror | ( | void | ) |
| struct passwd * getpwnam | ( | const char * | name | ) |
| int initgroups | ( | const char * | user, |
| gid_t | group | ||
| ) |
| struct group * getgrnam | ( | const char * | name | ) |
| int getgrnam_r | ( | const char * | name, |
| struct group * | grp, | ||
| char * | buf, | ||
| size_t | buflen, | ||
| struct group ** | result | ||
| ) |
| struct group * getgrent | ( | void | ) |
| void setgrent | ( | void | ) |
| void endgrent | ( | void | ) |
| int getpriority | ( | int | which, |
| id_t | who | ||
| ) |
| int setpriority | ( | int | which, |
| id_t | who, | ||
| int | prio | ||
| ) |
| int adjtimex | ( | struct timex * | buf | ) |
| int ntp_adjtime | ( | struct timex * | buf | ) |
|
extern |
| const vsf_linux_thread_op_t __vsf_linux_main_op |
| __VSF_VPLT_DECORATOR__ vsf_linux_fundmental_vplt_t vsf_linux_fundmental_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_random_vplt_t vsf_linux_sys_random_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_shm_vplt_t vsf_linux_sys_shm_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_time_vplt_t vsf_linux_sys_time_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_times_vplt_t vsf_linux_sys_times_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_timeb_vplt_t vsf_linux_sys_timeb_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_timex_vplt_t vsf_linux_sys_timex_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_utsname_vplt_t vsf_linux_sys_utsname_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_wait_vplt_t vsf_linux_sys_wait_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_capability_vplt_t vsf_linux_sys_capability_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_mman_vplt_t vsf_linux_sys_mman_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_resource_vplt_t vsf_linux_sys_resource_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_info_vplt_t vsf_linux_sys_info_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_prctl_vplt_t vsf_linux_sys_prctl_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_sem_vplt_t vsf_linux_sys_sem_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_signal_vplt_t vsf_linux_signal_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sched_vplt_t vsf_linux_sched_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_spawn_vplt_t vsf_linux_spawn_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_pty_vplt_t vsf_linux_pty_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_dlfcn_vplt_t vsf_linux_dlfcn_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_grp_vplt_t vsf_linux_grp_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_pwd_vplt_t vsf_linux_pwd_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_errno_vplt_t vsf_linux_errno_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_termios_vplt_t vsf_linux_termios_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_unistd_vplt_t vsf_linux_unistd_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_reboot_vplt_t vsf_linux_sys_reboot_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_xattr_vplt_t vsf_linux_sys_xattr_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_statfs_vplt_t vsf_linux_sys_statfs_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_sys_sysmacros_vplt_t vsf_linux_sys_sysmacros_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_findprog_vplt_t vsf_linux_findprog_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_glob_vplt_t vsf_linux_glob_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_regex_vplt_t vsf_linux_regex_vplt |
| __VSF_VPLT_DECORATOR__ vsf_linux_fnmatch_vplt_t vsf_linux_fnmatch_vplt |
|
extern |
| __VSF_VPLT_DECORATOR__ vsf_linux_vplt_t vsf_linux_vplt |