Home
last modified time | relevance | path

Searched refs:old_path (Results 1 – 1 of 1) sorted by relevance

/components/utilities/ulog/backend/
A Dfile_be.c30 static char old_path[ULOG_FILE_PATH_LEN], new_path[ULOG_FILE_PATH_LEN]; in ulog_file_rotate() local
35 rt_snprintf(old_path, ULOG_FILE_PATH_LEN, "%s/%s", be->cur_log_dir_path, be->parent.name); in ulog_file_rotate()
46 rt_snprintf(old_path + base_len, SUFFIX_LEN, index ? "_%d.log" : ".log", index - 1); in ulog_file_rotate()
55 if ((file_fd = open(old_path , O_RDONLY)) >= 0) in ulog_file_rotate()
58 err = dfs_file_rename(old_path, new_path); in ulog_file_rotate()

Completed in 2 milliseconds