VSF Documented
|
#include "../config.h"
#include "../../../include/unistd.h"
#include "../../../include/errno.h"
#include "../../../include/sys/wait.h"
#include "../../../include/dirent.h"
#include "../../../include/fcntl.h"
#include "../../../include/findprog.h"
#include "../../../include/linux/limits.h"
#include "../../../include/sys/sysinfo.h"
#include "../../../include/simple_libc/ctype.h"
#include "../../../include/simple_libc/stdlib.h"
#include "../../../include/simple_libc/stdio.h"
#include "../../../include/simple_libc/string.h"
#include <dlfcn.h>
Data Structures | |
struct | vsh_cmd_ctx_t |
Macros | |
#define | __VSF_LINUX_CLASS_INHERIT__ |
#define | __VSF_LINUX_FS_CLASS_IMPLEMENT |
#define | VSH_PROMPT "# " |
Typedefs | |
typedef struct vsh_cmd_ctx_t | vsh_cmd_ctx_t |
typedef enum vsh_shell_state_t | vsh_shell_state_t |
Enumerations | |
enum | vsh_shell_state_t { SHELL_STATE_NORMAL , SHELL_STATE_ESC } |
Functions | |
int | __vsf_linux_get_exe (char *pathname, int pathname_len, char *cmd, vsf_linux_main_entry_t *entry, bool use_path) |
void | vsh_set_path (char *path) |
vsf_linux_process_t * | __vsh_prepare_process (char *cmd, int fd_in, int fd_out) |
int | __vsh_run_cmd (char *cmd) |
int | vsh_run_scripts (const char *scripts) |
int | vsh_main (int argc, char *argv[]) |
int | pwd_main (int argc, char *argv[]) |
int | cd_main (int argc, char *argv[]) |
int | ls_main (int argc, char *argv[]) |
int | mkdir_main (int argc, char *argv[]) |
int | echo_main (int argc, char *argv[]) |
int | cat_main (int argc, char *argv[]) |
int | clear_main (int argc, char *argv[]) |
int | time_main (int argc, char *argv[]) |
int | kill_main (int argc, char *argv[]) |
int | free_main (int argc, char *argv[]) |
int | export_main (int argc, char *argv[]) |
#define __VSF_LINUX_CLASS_INHERIT__ |
#define __VSF_LINUX_FS_CLASS_IMPLEMENT |
#define VSH_PROMPT "# " |
typedef struct vsh_cmd_ctx_t vsh_cmd_ctx_t |
typedef enum vsh_shell_state_t vsh_shell_state_t |
enum vsh_shell_state_t |
|
extern |
void vsh_set_path | ( | char * | path | ) |
vsf_linux_process_t * __vsh_prepare_process | ( | char * | cmd, |
int | fd_in, | ||
int | fd_out | ||
) |
int __vsh_run_cmd | ( | char * | cmd | ) |
int vsh_run_scripts | ( | const char * | scripts | ) |
int vsh_main | ( | int | argc, |
char * | argv[] | ||
) |
int pwd_main | ( | int | argc, |
char * | argv[] | ||
) |
int cd_main | ( | int | argc, |
char * | argv[] | ||
) |
int ls_main | ( | int | argc, |
char * | argv[] | ||
) |
int mkdir_main | ( | int | argc, |
char * | argv[] | ||
) |
int echo_main | ( | int | argc, |
char * | argv[] | ||
) |
int cat_main | ( | int | argc, |
char * | argv[] | ||
) |
int clear_main | ( | int | argc, |
char * | argv[] | ||
) |
int time_main | ( | int | argc, |
char * | argv[] | ||
) |
int kill_main | ( | int | argc, |
char * | argv[] | ||
) |
int free_main | ( | int | argc, |
char * | argv[] | ||
) |
int export_main | ( | int | argc, |
char * | argv[] | ||
) |