40 #ifndef included_unix_unix_h 41 #define included_unix_unix_h 54 #define UNIX_FILE_DATA_AVAILABLE_TO_WRITE (1 << 0) 55 #define UNIX_FILE_EVENT_EDGE_TRIGGERED (1 << 1) 81 #define UNIX_FLAG_INTERACTIVE (1 << 0) 82 #define UNIX_FLAG_NODAEMON (1 << 1) 123 struct termios tio_stdin;
154 if ((was_available != 0) != (is_available != 0))
159 return was_available != 0;
181 int fail_if_physical_memory_not_present);
206 void * arg,
int scan_dirs);
unix_file_function_t * read_function
void * clib_error_free_vector(clib_error_t *errors)
static void(BVT(clib_bihash)*h, BVT(clib_bihash_value)*v)
volatile int unix_config_complete
u32 cli_pager_buffer_limit
clib_error_t *( unix_file_function_t)(struct unix_file *f)
always_inline uword unix_file_add(unix_main_t *um, unix_file_t *template)
clib_socket_t cli_listen_socket
clib_error_t * unix_physmem_init(vlib_main_t *vm, int fail_if_physical_memory_not_present)
struct _socket_t clib_socket_t
clib_error_t * foreach_directory_file(char *dir_name, clib_error_t *(*f)(void *arg, u8 *path_name, u8 *file_name), void *arg, int scan_dirs)
#define pool_elt_at_index(p, i)
unix_file_function_t * error_function
u8 * startup_config_filename
static unix_main_t * vlib_unix_get_main(void)
void vlib_unix_cli_set_prompt(char *prompt)
Set the CLI prompt.
unix_error_history_t error_history[128]
always_inline void unix_file_del(unix_main_t *um, unix_file_t *f)
clib_error_t * write_sys_fs(char *file_name, char *fmt,...)
unix_file_function_t * write_function
#define UNIX_FILE_DATA_AVAILABLE_TO_WRITE
struct unix_file unix_file_t
always_inline void unix_save_error(unix_main_t *um, clib_error_t *error)
void(* file_update)(unix_file_t *file, unix_file_update_type_t update_type)
int vlib_unix_main(int argc, char *argv[])
clib_error_t * read_sys_fs(char *file_name, char *fmt,...)
always_inline f64 vlib_time_now(vlib_main_t *vm)
always_inline uword unix_file_set_data_available_to_write(u32 unix_file_index, uword is_available)