/FileX-v6.2.1/common/src/ |
D | fx_directory_free_search.c | 121 if (entry_ptr -> fx_dir_entry_name[0] == '.') in _fx_directory_free_search() 125 if (entry_ptr -> fx_dir_entry_name[1] == '.') in _fx_directory_free_search() 133 for (i = 0, j = 0; entry_ptr -> fx_dir_entry_name[i]; i++) in _fx_directory_free_search() 137 … if ((entry_ptr -> fx_dir_entry_name[i] >= 'A') && (entry_ptr -> fx_dir_entry_name[i] <= 'Z')) in _fx_directory_free_search() 142 … else if ((entry_ptr -> fx_dir_entry_name[i] >= '0') && (entry_ptr -> fx_dir_entry_name[i] <= '9')) in _fx_directory_free_search() 147 … else if ((entry_ptr -> fx_dir_entry_name[i] >= 'a') && (entry_ptr -> fx_dir_entry_name[i] <= 'z')) in _fx_directory_free_search() 152 else if (entry_ptr -> fx_dir_entry_name[i] == ' ') in _fx_directory_free_search() 157 else if (entry_ptr -> fx_dir_entry_name[i] == '.') in _fx_directory_free_search() 180 else if ((UCHAR)entry_ptr -> fx_dir_entry_name[i] == (UCHAR)0xE5) in _fx_directory_free_search() 185 else if ((UCHAR)entry_ptr -> fx_dir_entry_name[i] > (UCHAR)127) in _fx_directory_free_search() [all …]
|
D | fx_directory_default_set.c | 102 dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_directory_default_set() 108 dir_entry.fx_dir_entry_name[0] = (CHAR)0; in _fx_directory_default_set() 133 media_ptr -> fx_media_default_path.fx_path_directory.fx_dir_entry_name[0] = (CHAR) 0; in _fx_directory_default_set() 175 … saved_name_ptr = media_ptr -> fx_media_default_path.fx_path_directory.fx_dir_entry_name; in _fx_directory_default_set() 184 … media_ptr -> fx_media_default_path.fx_path_directory.fx_dir_entry_name = saved_name_ptr; in _fx_directory_default_set() 213 path_ptr -> fx_path_directory.fx_dir_entry_name[0] = (CHAR) 0; in _fx_directory_default_set() 216 dir_entry.fx_dir_entry_name[0] = (CHAR) 0; in _fx_directory_default_set() 230 for (i = 0; dir_entry.fx_dir_entry_name[i]; i++) in _fx_directory_default_set() 232 path_ptr -> fx_path_name_buffer[i] = dir_entry.fx_dir_entry_name[i]; in _fx_directory_default_set() 236 path_ptr -> fx_path_directory.fx_dir_entry_name = path_ptr -> fx_path_name_buffer; in _fx_directory_default_set() [all …]
|
D | fx_directory_local_path_set.c | 104 dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_directory_local_path_set() 107 local_path_ptr -> fx_path_directory.fx_dir_entry_name = local_path_ptr -> fx_path_name_buffer; in _fx_directory_local_path_set() 113 dir_entry.fx_dir_entry_name[0] = (CHAR)0; in _fx_directory_local_path_set() 142 local_path_ptr -> fx_path_directory.fx_dir_entry_name[0] = (CHAR)0; in _fx_directory_local_path_set() 267 dir_entry.fx_dir_entry_name[0] = (CHAR)0; in _fx_directory_local_path_set() 281 … local_path_ptr -> fx_path_directory.fx_dir_entry_name = local_path_ptr -> fx_path_name_buffer; in _fx_directory_local_path_set() 288 … local_path_ptr -> fx_path_directory.fx_dir_entry_name[j] = dir_entry.fx_dir_entry_name[j]; in _fx_directory_local_path_set() 421 dir_entry.fx_dir_entry_name[0] = (CHAR)0; in _fx_directory_local_path_set() 429 … local_path_ptr -> fx_path_directory.fx_dir_entry_name = local_path_ptr -> fx_path_name_buffer; in _fx_directory_local_path_set() 436 … local_path_ptr -> fx_path_directory.fx_dir_entry_name[j] = dir_entry.fx_dir_entry_name[j]; in _fx_directory_local_path_set()
|
D | fx_directory_search.c | 137 last_dir_ptr -> fx_dir_entry_name[0] = 0; in _fx_directory_search() 160 …FX_PATH *)_tx_thread_current_ptr -> tx_thread_filex_ptr) -> fx_path_directory.fx_dir_entry_name[0]) in _fx_directory_search() 184 if (media_ptr -> fx_media_default_path.fx_path_directory.fx_dir_entry_name[0]) in _fx_directory_search() 390 temp_ptr = entry_ptr -> fx_dir_entry_name; in _fx_directory_search() 396 entry_ptr -> fx_dir_entry_name = temp_ptr; in _fx_directory_search() 427 destination_name_ptr = last_dir_ptr -> fx_dir_entry_name; in _fx_directory_search() 433 last_dir_ptr -> fx_dir_entry_name = destination_name_ptr; in _fx_directory_search() 436 source_name_ptr = media_ptr -> fx_media_last_found_directory.fx_dir_entry_name; in _fx_directory_search() 564 destination_name_ptr = last_dir_ptr -> fx_dir_entry_name; in _fx_directory_search() 570 last_dir_ptr -> fx_dir_entry_name = destination_name_ptr; in _fx_directory_search() [all …]
|
D | fx_directory_next_entry_find.c | 107 entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_directory_next_entry_find() 138 if (path_ptr -> fx_path_directory.fx_dir_entry_name[0]) in _fx_directory_next_entry_find() 165 if (media_ptr -> fx_media_default_path.fx_path_directory.fx_dir_entry_name[0]) in _fx_directory_next_entry_find() 285 …if (((UCHAR)entry.fx_dir_entry_name[0] == (UCHAR)FX_DIR_ENTRY_FREE) && (entry.fx_dir_entry_short_n… in _fx_directory_next_entry_find() 292 else if ((UCHAR)entry.fx_dir_entry_name[0] != (UCHAR)FX_DIR_ENTRY_DONE) in _fx_directory_next_entry_find() 298 for (i = 0; entry.fx_dir_entry_name[i]; i++) in _fx_directory_next_entry_find() 301 *directory_name = entry.fx_dir_entry_name[i]; in _fx_directory_next_entry_find() 342 while ((v < FX_MAX_LAST_NAME_LEN) && (entry.fx_dir_entry_name[j])) in _fx_directory_next_entry_find() 346 media_ptr -> fx_media_last_found_name[v] = entry.fx_dir_entry_name[j]; in _fx_directory_next_entry_find() 388 …media_ptr -> fx_media_last_found_entry.fx_dir_entry_name = media_ptr -> fx_media_last_found_file_… in _fx_directory_next_entry_find() [all …]
|
D | fx_directory_create.c | 155 dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_directory_create() 158 … search_directory.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN * 2; in _fx_directory_create() 217 if (_fx_directory_name_extract(work_ptr, &dir_entry.fx_dir_entry_name[0])) in _fx_directory_create() 342 _fx_directory_name_extract(work_ptr, &dir_entry.fx_dir_entry_name[0]); in _fx_directory_create() 366 if (dir_entry.fx_dir_entry_name[0] == '.') in _fx_directory_create() 553 … sub_dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + (FX_MAX_LONG_NAME_LEN * 3); in _fx_directory_create() 556 work_ptr = &sub_dir_entry.fx_dir_entry_name[0]; in _fx_directory_create() 565 sub_dir_entry.fx_dir_entry_name[0] = '.'; in _fx_directory_create() 566 sub_dir_entry.fx_dir_entry_name[1] = 0; in _fx_directory_create() 591 if (search_directory.fx_dir_entry_name[0]) in _fx_directory_create() [all …]
|
D | fx_directory_next_full_entry_find.c | 117 entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_directory_next_full_entry_find() 147 if (path_ptr -> fx_path_directory.fx_dir_entry_name[0]) in _fx_directory_next_full_entry_find() 174 if (media_ptr -> fx_media_default_path.fx_path_directory.fx_dir_entry_name[0]) in _fx_directory_next_full_entry_find() 298 …if (((UCHAR)entry.fx_dir_entry_name[0] == (UCHAR)FX_DIR_ENTRY_FREE) && (entry.fx_dir_entry_short_n… in _fx_directory_next_full_entry_find() 307 else if ((UCHAR)entry.fx_dir_entry_name[0] != (UCHAR)FX_DIR_ENTRY_DONE) in _fx_directory_next_full_entry_find() 313 for (i = 0; entry.fx_dir_entry_name[i]; i++) in _fx_directory_next_full_entry_find() 316 *directory_name = entry.fx_dir_entry_name[i]; in _fx_directory_next_full_entry_find() 421 while ((v < FX_MAX_LAST_NAME_LEN) && (entry.fx_dir_entry_name[j])) in _fx_directory_next_full_entry_find() 425 media_ptr -> fx_media_last_found_name[v] = entry.fx_dir_entry_name[j]; in _fx_directory_next_full_entry_find() 467 …media_ptr -> fx_media_last_found_entry.fx_dir_entry_name = media_ptr -> fx_media_last_found_file_… in _fx_directory_next_full_entry_find() [all …]
|
D | fx_directory_entry_write.c | 118 if (((UCHAR)entry_ptr -> fx_dir_entry_name[0] == (UCHAR)FX_DIR_ENTRY_FREE) && in _fx_directory_entry_write() 189 for (len = 0, i = 0, dotpos = 0, dotfound = 0; entry_ptr -> fx_dir_entry_name[len]; len++) in _fx_directory_entry_write() 193 if (entry_ptr -> fx_dir_entry_name[len] == '.') in _fx_directory_entry_write() 211 if ((entry_ptr -> fx_dir_entry_name[len] != ' ') && (i < 8)) in _fx_directory_entry_write() 215 shortname[i] = entry_ptr -> fx_dir_entry_name[len]; in _fx_directory_entry_write() 231 if (entry_ptr -> fx_dir_entry_name[dotpos]) in _fx_directory_entry_write() 233 shortname[8] = entry_ptr -> fx_dir_entry_name[dotpos++]; in _fx_directory_entry_write() 235 if (entry_ptr -> fx_dir_entry_name[dotpos]) in _fx_directory_entry_write() 237 shortname[9] = entry_ptr -> fx_dir_entry_name[dotpos++]; in _fx_directory_entry_write() 239 if (entry_ptr -> fx_dir_entry_name[dotpos]) in _fx_directory_entry_write() [all …]
|
D | fx_directory_long_name_get_extended.c | 84 dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_directory_long_name_get_extended() 111 …while ((i < (FX_MAX_LONG_NAME_LEN - 1)) && (dir_entry.fx_dir_entry_name[i]) && (i < (long_file_nam… in _fx_directory_long_name_get_extended() 115 long_file_name[i] = dir_entry.fx_dir_entry_name[i]; in _fx_directory_long_name_get_extended() 125 if ((i == (long_file_name_buffer_length - 1)) && (dir_entry.fx_dir_entry_name[i])) in _fx_directory_long_name_get_extended()
|
D | fx_file_rename.c | 118 old_dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_file_rename() 119 …new_dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN * 2; in _fx_file_rename() 120 …search_directory.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN * 3; in _fx_file_rename() 369 if (_fx_directory_name_extract(new_name_ptr, &new_dir_entry.fx_dir_entry_name[0])) in _fx_file_rename() 402 _fx_directory_name_extract(new_name_ptr, &new_dir_entry.fx_dir_entry_name[0]); in _fx_file_rename() 430 if (new_dir_entry.fx_dir_entry_name[0] == '.') in _fx_file_rename() 489 … search_ptr -> fx_file_dir_entry.fx_dir_entry_name[i] = new_dir_entry.fx_dir_entry_name[i]; in _fx_file_rename() 495 if (new_dir_entry.fx_dir_entry_name[i] == FX_NULL) in _fx_file_rename() 509 search_ptr -> fx_file_dir_entry.fx_dir_entry_name[i] = FX_NULL; in _fx_file_rename() 519 old_dir_entry.fx_dir_entry_name[0] = (CHAR)FX_DIR_ENTRY_FREE; in _fx_file_rename()
|
D | fx_directory_short_name_get_extended.c | 84 dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_directory_short_name_get_extended() 141 …while ((i < (FX_MAX_SHORT_NAME_LEN - 1)) && (dir_entry.fx_dir_entry_name[i]) && (i < (short_file_n… in _fx_directory_short_name_get_extended() 145 short_file_name[i] = dir_entry.fx_dir_entry_name[i]; in _fx_directory_short_name_get_extended() 155 if ((i == (short_file_name_length - 1)) && (dir_entry.fx_dir_entry_name[i])) in _fx_directory_short_name_get_extended()
|
D | fx_file_create.c | 145 dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_file_create() 148 …search_directory.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN * 2; in _fx_file_create() 207 if (_fx_directory_name_extract(name_ptr, &dir_entry.fx_dir_entry_name[0])) in _fx_file_create() 244 _fx_directory_name_extract(name_ptr, &dir_entry.fx_dir_entry_name[0]); in _fx_file_create() 267 if (dir_entry.fx_dir_entry_name[0] == '.') in _fx_file_create()
|
D | fx_directory_rename.c | 114 old_dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_directory_rename() 115 …new_dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN * 2; in _fx_directory_rename() 116 …search_directory.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN * 3; in _fx_directory_rename() 362 if (_fx_directory_name_extract(new_name_ptr, &new_dir_entry.fx_dir_entry_name[0])) in _fx_directory_rename() 395 _fx_directory_name_extract(new_name_ptr, &new_dir_entry.fx_dir_entry_name[0]); in _fx_directory_rename() 423 if (new_dir_entry.fx_dir_entry_name[0] == '.') in _fx_directory_rename() 455 old_dir_entry.fx_dir_entry_name[0] = (CHAR)FX_DIR_ENTRY_FREE; in _fx_directory_rename()
|
D | fx_unicode_directory_search.c | 140 …FX_PATH *)_tx_thread_current_ptr -> tx_thread_filex_ptr) -> fx_path_directory.fx_dir_entry_name[0]) in _fx_unicode_directory_search() 158 if (media_ptr -> fx_media_default_path.fx_path_directory.fx_dir_entry_name[0]) in _fx_unicode_directory_search() 284 …if (((UCHAR)entry_ptr -> fx_dir_entry_name[0] == (UCHAR)FX_DIR_ENTRY_FREE) && (entry_ptr -> fx_dir… in _fx_unicode_directory_search() 290 if ((UCHAR)entry_ptr -> fx_dir_entry_name[0] == (UCHAR)FX_DIR_ENTRY_DONE) in _fx_unicode_directory_search() 306 short_name_ptr = entry_ptr -> fx_dir_entry_name; in _fx_unicode_directory_search() 370 if (short_name[j] != (UCHAR)entry_ptr -> fx_dir_entry_name[j]) in _fx_unicode_directory_search() 488 short_name[j] = (UCHAR)entry_ptr -> fx_dir_entry_name[j]; in _fx_unicode_directory_search()
|
D | fx_directory_delete.c | 113 dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_directory_delete() 116 …search_directory.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN * 2; in _fx_directory_delete() 119 search_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN * 3; in _fx_directory_delete() 294 if (search_entry.fx_dir_entry_name[0] == FX_DIR_ENTRY_DONE) in _fx_directory_delete() 301 if ((UCHAR)search_entry.fx_dir_entry_name[0] != (UCHAR)FX_DIR_ENTRY_FREE) in _fx_directory_delete() 327 dir_entry.fx_dir_entry_name[0] = (CHAR)FX_DIR_ENTRY_FREE; in _fx_directory_delete()
|
D | fx_media_check.c | 238 dir_entry_ptr -> fx_dir_entry_name = (CHAR *)working_ptr; in _fx_media_check() 251 source_dir_ptr -> fx_dir_entry_name = (CHAR *)working_ptr; in _fx_media_check() 422 if (dir_entry_ptr -> fx_dir_entry_name[0] == (CHAR)FX_DIR_ENTRY_DONE) in _fx_media_check() 430 …if ((dir_entry_ptr -> fx_dir_entry_name[0] == (CHAR)FX_DIR_ENTRY_FREE) && (dir_entry_ptr -> fx_dir… in _fx_media_check() 514 dir_entry_ptr -> fx_dir_entry_name[0] = (CHAR)FX_DIR_ENTRY_FREE; in _fx_media_check() 555 dir_entry_ptr -> fx_dir_entry_name[0] = (CHAR)FX_DIR_ENTRY_FREE; in _fx_media_check()
|
D | fx_unicode_directory_entry_read.c | 275 short_name_ptr = destination_ptr -> fx_dir_entry_name; in _fx_unicode_directory_entry_read() 321 destination_ptr -> fx_dir_entry_name[i] = 0; in _fx_unicode_directory_entry_read() 382 short_name_ptr = destination_ptr -> fx_dir_entry_name; in _fx_unicode_directory_entry_read() 405 short_name_ptr = destination_ptr -> fx_dir_entry_name; in _fx_unicode_directory_entry_read() 413 destination_ptr -> fx_dir_entry_name[13 * card + j] = (CHAR)read_ptr[i]; in _fx_unicode_directory_entry_read() 612 destination_ptr -> fx_dir_entry_name[0] = (CHAR)FX_DIR_ENTRY_FREE; in _fx_unicode_directory_entry_read()
|
D | fx_directory_entry_read.c | 282 short_name_ptr = destination_ptr -> fx_dir_entry_name; in _fx_directory_entry_read() 316 destination_ptr -> fx_dir_entry_name[i] = 0; in _fx_directory_entry_read() 367 short_name_ptr = destination_ptr -> fx_dir_entry_name; in _fx_directory_entry_read() 389 short_name_ptr = destination_ptr -> fx_dir_entry_name; in _fx_directory_entry_read() 395 destination_ptr -> fx_dir_entry_name[13 * card + j] = (CHAR)read_ptr[i]; in _fx_directory_entry_read() 584 destination_ptr -> fx_dir_entry_name[0] = (CHAR)FX_DIR_ENTRY_FREE; in _fx_directory_entry_read()
|
D | fx_media_volume_set.c | 243 dir_entry1.fx_dir_entry_name = media_ptr -> fx_media_name_buffer; in _fx_media_volume_set() 269 …if ((dir_entry1.fx_dir_entry_name[0] == (CHAR)FX_DIR_ENTRY_FREE) && (dir_entry1.fx_dir_entry_short… in _fx_media_volume_set() 282 else if (dir_entry1.fx_dir_entry_name[0] == FX_DIR_ENTRY_DONE) in _fx_media_volume_set()
|
D | fx_unicode_file_create.c | 97 dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_unicode_file_create() 213 dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_unicode_file_create()
|
D | fx_unicode_directory_create.c | 96 dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_unicode_directory_create() 212 dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_unicode_directory_create()
|
D | fx_unicode_file_rename.c | 133 dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_unicode_file_rename() 274 dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_unicode_file_rename()
|
D | fx_unicode_directory_rename.c | 134 dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_unicode_directory_rename() 273 dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in _fx_unicode_directory_rename()
|
/FileX-v6.2.1/test/regression_test/ |
D | filex_directory_naming_test.c | 517 dir_entry.fx_dir_entry_name = (char*) malloc(0x100 * sizeof(char)); in ftest_0_entry() 518 dir_entry.fx_dir_entry_name[0] = '.'; in ftest_0_entry() 519 dir_entry.fx_dir_entry_name[1] = '.'; in ftest_0_entry() 520 dir_entry.fx_dir_entry_name[2] = (char)0; in ftest_0_entry() 530 dir_entry.fx_dir_entry_name[0] = (char)128; in ftest_0_entry() 531 dir_entry.fx_dir_entry_name[1] = (char)128; in ftest_0_entry() 532 dir_entry.fx_dir_entry_name[2] = (char)0; in ftest_0_entry() 541 dir_entry.fx_dir_entry_name[0] = '%'; in ftest_0_entry() 542 dir_entry.fx_dir_entry_name[1] = '%'; in ftest_0_entry() 543 dir_entry.fx_dir_entry_name[2] = (char)0; in ftest_0_entry() [all …]
|
D | filex_directory_duplicate_entries_test.c | 107 dir_entry.fx_dir_entry_name = media_ptr -> fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in delete_duplicate_entry() 112 dir_entry.fx_dir_entry_name[0] = (CHAR)FX_DIR_ENTRY_FREE; in delete_duplicate_entry() 188 dir_entry.fx_dir_entry_name = ram_disk.fx_media_name_buffer + FX_MAX_LONG_NAME_LEN; in ftest_0_entry()
|