Updated copyright headers and removed revision history

* Updated version number constants

* Updated copyright headers and removed revision history
This commit is contained in:
Frédéric Desbiens
2026-03-05 08:39:33 +01:00
committed by GitHub
parent dfe5084ab8
commit 61b0b06c3e
372 changed files with 14882 additions and 16676 deletions
@@ -27,17 +27,17 @@ static UCHAR *cache_buffer;
static UCHAR cache_buffer[CACHE_SIZE];
#endif
static UCHAR old_directory_name[] = {3, 0, 4, 0, 5, 0, 6, 0, 0, 0};
static UCHAR old_directory_name[] = {3, 0, 4, 0, 5, 0, 6, 0, 0, 0};
static UCHAR new_directory_name1[] = {3, 0, 4, 0, 5, 0, 6, 0, 0, 0};
static UCHAR new_directory_name2[] = {3, 0, 4, 0, 5, 0, 0, 0};
static UCHAR new_directory_name3[] = {3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 0, 0};
static UCHAR new_directory_name4[] = {2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 0, 0};
static UCHAR new_file_name5[] = {'a', 0, 'b', 0, 'c', 0, 0, 0};
static UCHAR new_file_name5_bak[] = {'a', 0, 'b', 0, 'c', 0, 0, 0};
static UCHAR new_file_name6[] = {'a', 0, 'y', 0, 'c', 0, 0, 0};
static UCHAR new_file_name7[] = {'a', 1, 'z', 0, 'c', 0, 0, 0};
static UCHAR new_file_name8[] = {'z' + 1, 0, 'z', 0, 'c', 0, 'd', 0, 0, 0};
static UCHAR new_file_name9[] = {'z' + 1, 1, 'z', 0, 'c', 0, 'd', 0, 0, 0};
static UCHAR new_directory_name4[] = {2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 0, 0};
static UCHAR new_file_name5[] = {'a', 0, 'b', 0, 'c', 0, 0, 0};
static UCHAR new_file_name5_bak[] = {'a', 0, 'b', 0, 'c', 0, 0, 0};
static UCHAR new_file_name6[] = {'a', 0, 'y', 0, 'c', 0, 0, 0};
static UCHAR new_file_name7[] = {'a', 1, 'z', 0, 'c', 0, 0, 0};
static UCHAR new_file_name8[] = {'z' + 1, 0, 'z', 0, 'c', 0, 'd', 0, 0, 0};
static UCHAR new_file_name9[] = {'z' + 1, 1, 'z', 0, 'c', 0, 'd', 0, 0, 0};
static UCHAR destination_name[100];
#define TEST_COUNT 3
@@ -64,13 +64,13 @@ void filex_unicode_directory_rename_application_define(void *first_unused_mem
#ifndef FX_STANDALONE_ENABLE
UCHAR *pointer;
/* Setup the working pointer. */
pointer = (UCHAR *) first_unused_memory;
/* Create the main thread. */
tx_thread_create(&ftest_0, "thread 0", ftest_0_entry, 0,
pointer, DEMO_STACK_SIZE,
tx_thread_create(&ftest_0, "thread 0", ftest_0_entry, 0,
pointer, DEMO_STACK_SIZE,
4, 4, TX_NO_TIME_SLICE, TX_AUTO_START);
pointer = pointer + DEMO_STACK_SIZE;
@@ -99,71 +99,71 @@ static void ftest_0_entry(ULONG thread_input)
UINT i;
UINT status, count;
ULONG length;
ULONG old_length;
ULONG old_length;
ULONG new_length;
FX_PARAMETER_NOT_USED(thread_input);
/* Print out some test information banners. */
printf("FileX Test: Unicode Directory rename test..........................");
/* Loop to test FAT 12, 16, 32. */
for (i = 0; i < TEST_COUNT; i ++)
{
if (i == 0)
{
/* Format the media with FAT12. This needs to be done before opening it! */
status = fx_media_format(&ram_disk,
status = fx_media_format(&ram_disk,
_fx_ram_driver, // Driver entry
ram_disk_memory_large, // RAM disk memory pointer
cache_buffer, // Media buffer pointer
CACHE_SIZE, // Media buffer size
CACHE_SIZE, // Media buffer size
"MY_RAM_DISK", // Volume Name
1, // Number of FATs
32, // Directory Entries
0, // Hidden sectors
256, // Total sectors
256, // Sector size
256, // Total sectors
256, // Sector size
8, // Sectors per cluster
1, // Heads
1); // Sectors per track
}
1); // Sectors per track
}
else if (i == 1)
{
/* Format the media with FAT16. This needs to be done before opening it! */
status = fx_media_format(&ram_disk,
_fx_ram_driver, // Driver entry
status = fx_media_format(&ram_disk,
_fx_ram_driver, // Driver entry
ram_disk_memory_large, // RAM disk memory pointer
cache_buffer, // Media buffer pointer
CACHE_SIZE, // Media buffer size
CACHE_SIZE, // Media buffer size
"MY_RAM_DISK", // Volume Name
1, // Number of FATs
32, // Directory Entries
0, // Hidden sectors
4200 * 8, // Total sectors
256, // Sector size
4200 * 8, // Total sectors
256, // Sector size
8, // Sectors per cluster
1, // Heads
1); // Sectors per track
}
1); // Sectors per track
}
else if (i == 2)
{
/* Format the media with FAT32. This needs to be done before opening it! */
status = fx_media_format(&ram_disk,
_fx_ram_driver, // Driver entry
status = fx_media_format(&ram_disk,
_fx_ram_driver, // Driver entry
ram_disk_memory_large, // RAM disk memory pointer
cache_buffer, // Media buffer pointer
CACHE_SIZE, // Media buffer size
CACHE_SIZE, // Media buffer size
"MY_RAM_DISK", // Volume Name
1, // Number of FATs
32, // Directory Entries
0, // Hidden sectors
70000 * 8, // Total sectors
256, // Sector size
70000 * 8, // Total sectors
256, // Sector size
8, // Sectors per cluster
1, // Heads
1); // Sectors per track
}
1); // Sectors per track
}
/* Determine if the format had an error. */
if (status)
@@ -172,7 +172,7 @@ ULONG new_length;
printf("ERROR!\n");
test_control_return(1);
}
/* Attempt to rename a directory while the media is not open */
status = fx_unicode_directory_rename(&ram_disk, (UCHAR *)"name", 1, (UCHAR *)"name", 1, (CHAR *) destination_name);
if (status != FX_MEDIA_NOT_OPEN)
@@ -192,7 +192,7 @@ ULONG new_length;
printf("ERROR!\n");
test_control_return(3);
}
/* Attempt to rename a directory that does not exist */
status = fx_unicode_directory_rename(&ram_disk, (UCHAR *)"does_not_exist", 1, (UCHAR *)"does_not_exist", 1, (CHAR *) destination_name);
if (status == FX_SUCCESS)
@@ -213,7 +213,7 @@ ULONG new_length;
printf("ERROR!\n");
test_control_return(5);
}
/* Only run this if error checking is enabled */
#ifndef FX_DISABLE_ERROR_CHECKING
/* Send null pointer to generate an error. */
@@ -283,7 +283,7 @@ ULONG new_length;
test_control_return(10);
}
/* Attempt to create the old_directory_name again. */
/* Attempt to create the old_directory_name again. */
length = fx_unicode_length_get(old_directory_name);
status = fx_unicode_directory_create(&ram_disk, old_directory_name, length, (CHAR *) destination_name);
@@ -296,7 +296,7 @@ ULONG new_length;
test_control_return(11);
}
/* Attempt to create the new_directory_name1 that same as old_directory_name again. */
/* Attempt to create the new_directory_name1 that same as old_directory_name again. */
length = fx_unicode_length_get(new_directory_name1);
status = fx_unicode_directory_create(&ram_disk, new_directory_name1, length, (CHAR *) destination_name);
@@ -310,7 +310,7 @@ ULONG new_length;
}
/* Attempt to create the new_directory_name2 again. */
/* Attempt to create the new_directory_name2 again. */
length = fx_unicode_length_get(new_directory_name2);
status = fx_unicode_directory_create(&ram_disk, new_directory_name2, length, (CHAR *) destination_name);
@@ -323,7 +323,7 @@ ULONG new_length;
test_control_return(13);
}
/* Attempt to create the new_directory_name1 again. */
/* Attempt to create the new_directory_name1 again. */
length = fx_unicode_length_get(new_directory_name3);
status = fx_unicode_directory_create(&ram_disk, new_directory_name3, length, (CHAR *) destination_name);
@@ -336,7 +336,7 @@ ULONG new_length;
test_control_return(14);
}
/* Attempt to create the new_directory_name4 again. */
/* Attempt to create the new_directory_name4 again. */
length = fx_unicode_length_get(new_directory_name4);
status = fx_unicode_directory_create(&ram_disk, new_directory_name4, length, (CHAR *) destination_name);