26 #define CLI_FILE_SIZE 1024
48 #define file_set(f, v) \
52 #define file_clr(f, v) \
70 return opt & cmpflags;
144 is_file_create(uint32_t opt)
176 return ((opt & cmpflags) == cmpflags);
231 CNDP_API
struct cli_node *
cli_file_open(
const char *path,
const char *type);
283 CNDP_API
int cli_file_seek(
struct cli_node *node,
int offset, uint32_t whence);
static int is_seek_cur(uint32_t opt)
static int is_seek_set(uint32_t opt)
CNDP_API int cli_readline(struct cli_node *node, char *buff, int len)
CNDP_API struct cli_node * cli_file_create(const char *path, const char *type)
static int is_seek_end(uint32_t opt)
CNDP_API int cli_file_read(struct cli_node *node, char *buff, int len)
CNDP_API int cli_file_handler(struct cli_node *node, char *buff, int len, uint32_t opt)
static int is_file_rd(uint32_t opt)
CNDP_API int cli_file_seek(struct cli_node *node, int offset, uint32_t whence)
static int is_file_close(uint32_t opt)
CNDP_API int cli_file_close(struct cli_node *node)
static int is_file_eq(uint32_t opt, uint32_t cmpflags)
static int is_data_rdonly(uint32_t flags)
CNDP_API int cli_system(char *p)
static int is_file_open(uint32_t opt)
CNDP_API struct cli_node * cli_file_open(const char *path, const char *type)
CNDP_API int cli_file_write(struct cli_node *node, char *buff, int len)
static int is_file_set(uint32_t opt, uint32_t cmpflags)
static int is_file_wr(uint32_t opt)
static int is_file_append(uint32_t opt)