FD.io VPP  v21.06-1-gbb7418cf9
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)
 
#define UNIX_FLAG_NOSYSLOG   (1 << 2)
 
#define UNIX_FLAG_NOCOLOR   (1 << 3)
 
#define UNIX_FLAG_NOBANNER   (1 << 4)
 

Enumerations

enum  unix_cli_process_event_type_t { UNIX_CLI_PROCESS_EVENT_READ_READY, UNIX_CLI_PROCESS_EVENT_QUIT }
 CLI session events. More...
 

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_NOBANNER

#define UNIX_FLAG_NOBANNER   (1 << 4)

Definition at line 64 of file unix.h.

◆ UNIX_FLAG_NOCOLOR

#define UNIX_FLAG_NOCOLOR   (1 << 3)

Definition at line 63 of file unix.h.

◆ UNIX_FLAG_NODAEMON

#define UNIX_FLAG_NODAEMON   (1 << 1)

Definition at line 61 of file unix.h.

◆ UNIX_FLAG_NOSYSLOG

#define UNIX_FLAG_NOSYSLOG   (1 << 2)

Definition at line 62 of file unix.h.

Enumeration Type Documentation

◆ unix_cli_process_event_type_t

CLI session events.

Enumerator
UNIX_CLI_PROCESS_EVENT_READ_READY 

A file descriptor has data to be read.

UNIX_CLI_PROCESS_EVENT_QUIT 

A CLI session wants to close.

Definition at line 115 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 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 127 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 3277 of file cli.c.

+ 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 145 of file unix.h.

◆ vlib_unix_get_runtime_dir()

static char* vlib_unix_get_runtime_dir ( void  )
inlinestatic

Definition at line 151 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 694 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 659 of file main.c.