FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
unix.h File Reference
+ Include dependency graph for unix.h:

Go to the source code of this file.

Data Structures

struct  unix_error_history_t
 
struct  unix_main_t
 

Macros

#define UNIX_FLAG_INTERACTIVE   (1 << 0)
 
#define UNIX_FLAG_NODAEMON   (1 << 1)
 

Functions

static void unix_save_error (unix_main_t *um, clib_error_t *error)
 
int vlib_unix_main (int argc, char *argv[])
 
void vlib_unix_cli_set_prompt (char *prompt)
 Set the CLI prompt. More...
 
static unix_main_tvlib_unix_get_main (void)
 
static char * vlib_unix_get_runtime_dir (void)
 
clib_error_tforeach_directory_file (char *dir_name, clib_error_t *(*f)(void *arg, u8 *path_name, u8 *file_name), void *arg, int scan_dirs)
 
clib_error_tvlib_unix_recursive_mkdir (char *path)
 
clib_error_tvlib_unix_validate_runtime_file (unix_main_t *um, const char *path, u8 **full_path)
 

Variables

unix_main_t unix_main
 
clib_file_main_t file_main
 
u8 ** vlib_thread_stacks
 

Macro Definition Documentation

◆ UNIX_FLAG_INTERACTIVE

#define UNIX_FLAG_INTERACTIVE   (1 << 0)

Definition at line 60 of file unix.h.

◆ UNIX_FLAG_NODAEMON

#define UNIX_FLAG_NODAEMON   (1 << 1)

Definition at line 61 of file unix.h.

Function Documentation

◆ foreach_directory_file()

clib_error_t* foreach_directory_file ( char *  dir_name,
clib_error_t *(*)(void *arg, u8 *path_name, u8 *file_name)  f,
void *  arg,
int  scan_dirs 
)

Definition at line 49 of file util.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unix_save_error()

static void unix_save_error ( unix_main_t um,
clib_error_t error 
)
inlinestatic

Definition at line 115 of file unix.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_unix_cli_set_prompt()

void vlib_unix_cli_set_prompt ( char *  prompt)

Set the CLI prompt.

Parameters
promptThe C string to set the prompt to.
Note
This setting is global; it impacts all current and future CLI sessions.

Definition at line 3226 of file cli.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_unix_get_main()

static unix_main_t* vlib_unix_get_main ( void  )
inlinestatic

Definition at line 133 of file unix.h.

◆ vlib_unix_get_runtime_dir()

static char* vlib_unix_get_runtime_dir ( void  )
inlinestatic

Definition at line 139 of file unix.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_unix_main()

int vlib_unix_main ( int  argc,
char *  argv[] 
)

Definition at line 669 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_unix_recursive_mkdir()

clib_error_t* vlib_unix_recursive_mkdir ( char *  path)

Definition at line 103 of file util.c.

+ Here is the caller graph for this function:

◆ vlib_unix_validate_runtime_file()

clib_error_t* vlib_unix_validate_runtime_file ( unix_main_t um,
const char *  path,
u8 **  full_path 
)

Definition at line 138 of file util.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ file_main

clib_file_main_t file_main

Definition at line 63 of file main.c.

◆ unix_main

unix_main_t unix_main

Definition at line 62 of file main.c.

◆ vlib_thread_stacks

u8** vlib_thread_stacks

Definition at line 635 of file main.c.