28 Commits
Author SHA1 Message Date
Frédéric DesbiensandCopilot 3a17b07bf5 Flagged six FileX APIs as deprecated (#95)
Added #pragma message compile-time warnings and updated DESCRIPTION
blocks in:
  - fx_directory_long_name_get      -> use _extended (buffer size)
  - fx_directory_short_name_get     -> use _extended (buffer size)
  - fx_media_volume_get             -> use _extended (buffer size)
  - fx_unicode_length_get           -> use _extended (buffer size)
  - fx_unicode_name_get             -> use _extended (buffer size)
  - fx_unicode_short_name_get       -> use _extended (buffer size)

All six functions omit a destination buffer length parameter and use a
fixed or hardcoded limit, which can cause buffer overruns in the caller.
The corresponding _extended variants accept an explicit buffer size and
must be used instead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-28 11:06:42 -04:00
Frédéric Desbiens b3c653c0c5 Merge remote-tracking branch 'origin/master' into dev 2026-07-22 16:06:44 -04:00
Frédéric DesbiensandCodex 9da40d41d7 Updated security policy (#96)
Co-authored-by: Codex <codex@openai.com>
2026-06-30 17:34:09 -04:00
Frédéric DesbiensandCopilot 7cbe022bab Added Win64/VS 2022 port for FileX (#94)
- New port: ports/win64/vs_2022/inc/fx_port.h
  - Based on the Win32 port; updated ALIGN_TYPE to ULONG64 for 64-bit
    pointers, added FX_REGRESSION_TEST hooks from the Linux port, and
    bumped the port name string to Win64/Visual.
- New CMake infrastructure: ports/win64/vs_2022/CMakeLists.txt
  - Exposes only the inc/ directory (port is header-only).
- Updated test/cmake/CMakeLists.txt
  - Added MSVC guards: skip -m32 / GCC coverage flags; locate VS 2022
    toolchain; build ThreadX from source alongside FileX via
    THREADX_SOURCE_DIR.
- Updated test/cmake/regression/CMakeLists.txt
  - Added MSVC-compatible compile options (/W3 /Zi instead of -Wall
    -fprofile-arcs); added win64_compat include path for standalone +
    MSVC builds; added per-test TIMEOUT overrides for the two inherently
    long-running fault-tolerant tests on Windows.
- Updated test/cmake/samples/CMakeLists.txt
  - Added MSVC-compatible flag handling.
- New PowerShell scripts: scripts/build_fx.ps1, scripts/test_fx.ps1,
  scripts/fx_windows_common.ps1
  - Support all 9 build configurations; -Clean, -Config, -Verbose flags;
    modelled on the ThreadX Win64 build/test scripts.
- New Windows compatibility shims for standalone builds:
  test/regression_test/win64_compat/pthread.h
  test/regression_test/win64_compat/unistd.h
  - Minimal pthreads (CreateThread / WaitForSingleObject / TerminateThread)
    and usleep (Sleep) shims so standalone test files compile on MSVC.
- Fixed test/regression_test/fx_ram_driver_test.c and .h
  - RAM driver: added bounds check so out-of-range sector READs use a
    safe scratch buffer instead of segfaulting.
  - MSVC: large test buffers (ram_disk_memory_large, large_data_buffer,
    and standalone-mode ram_disk_memory / ram_disk_memory1) moved from
    BSS to calloc() via a .CRT\ constructor.  This avoids the MSVC
    PE image 2 GB hard limit (LNK1248) and eliminates demand-zero page-
    fault overhead that would otherwise slow the test suite.
- Bulk-fixed 93 fault-tolerant test files
  - [FAULT_TOLERANT_SIZE] -> [FAULT_TOLERANT_SIZE > 0 ? FAULT_TOLERANT_SIZE : 1]
    so that MSVC C2466 (zero-length array) is not triggered when
    FX_ENABLE_FAULT_TOLERANT is not defined.
- Fixed filextestcontrol.c: standalone test runner thread exit
  - The Win64 pthread shim makes pthread_exit() a no-op so that
    test_control_thread_entry() proceeds to exit(failed_tests),
    giving ctest the correct process exit code.
- Fixed common/src/fx_utility_logical_sector_write.c
  - Added missing bounds guard to prevent sector-write past end of
    RAM disk during fault-tolerant interrupt simulation tests.

All 9 build configurations pass 136/136 regression tests on Win64/VS 2022.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-15 13:15:22 -04:00
Frédéric Desbiens b93ac4ae77 Merge pull request #92 from eclipse-threadx/dev
Merging changes for the v.6.5.1.202602 release
2026-06-08 10:10:18 +02:00
Frédéric DesbiensandCopilot 30e1d491a9 Added copyright headers to files missing them
Applied the standard MIT license header to all project-owned C, header,
assembly, shell, and Python files that were missing a copyright notice.
Third-party, toolchain startup, and auto-generated files were excluded.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-06 21:48:17 +02:00
Frédéric DesbiensandCopilot c3e1f15536 Release 6.5.1.202602 preparation (#91)
* Updated version number constants

* Updated port version strings

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-04 17:15:54 -04:00
Frédéric DesbiensandCopilot 9940177b74 Added a release preparation script (#90)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-04 17:13:47 -04:00
Frédéric Desbiens 2ca9829ddb Merge pull request #89 from Ralino/fix-add-missing-flush-on-format
Added flush call to fx_media_format
2026-06-03 14:55:36 -04:00
Frédéric DesbiensandCopilot edc2427de6 Fixed flush call in fx_media_format to mirror fx_media_close pattern
- Added blank line after #ifndef FX_MEDIA_STATISTICS_DISABLE for style consistency
- Used local driver variable instead of media_ptr->fx_media_driver_entry
- Removed early return on flush failure so FX_DRIVER_UNINIT is always
  called after FX_DRIVER_INIT, preventing driver resource leaks

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-02 11:42:41 -04:00
Frédéric Desbiens bb6e295af0 Merge pull request #87 from eclipse-threadx/dev
Merge changes ahead of the v6.5.0.202601 release
2026-03-06 19:45:13 +01:00
Frédéric Desbiens 3ce53595c2 Updated copyright headers and version number constants (#86)
* Updated version number constants

* Updated copyright headers and removed revision history

* Updated port version number strings
2026-03-05 14:53:34 +01:00
Frédéric Desbiens 61b0b06c3e Updated copyright headers and removed revision history
* Updated version number constants

* Updated copyright headers and removed revision history
2026-03-05 08:39:33 +01:00
Frédéric Desbiens 0462b027a1 Merge pull request #83 from spir6s/master
Provided ports for Renesas RXv1/GNU, RXv2/GNU and RXv3/GNU
2026-02-05 11:00:52 -05:00
Frédéric Desbiens 454d0fed31 Merge pull request #84 from eclipse-threadx/dev
Merge changes ahead of the 202504 release
2026-01-12 17:50:04 -05:00
Frédéric Desbiens 1839526557 Updated version number constants 2026-01-12 17:44:19 -05:00
Frédéric Desbiens 693d5f7964 Merge pull request #81 from rahmanih/fix_issue_79
Update media driver status initialization FX_DRIVER_INIT request
2025-11-27 17:31:30 -05:00
Frédéric Desbiens 048a01ed64 Merge pull request #76 from eclipse-threadx/dev
Merge changes ahead of the v6.4.2.202503 release.
2025-09-29 12:32:11 +01:00
Frédéric Desbiens 584c5fff0d Updated version number and added build number and hotfix. 2025-09-29 11:57:21 +01:00
Frédéric Desbiens 047f822392 Fix typo in sample code. 2025-09-29 11:55:12 +01:00
Frédéric Desbiens fb48c62046 Merge pull request #75 from Griffin86/cmake_support_for_cortex_m33
Add CMake support for Cortex M33.
2025-09-29 11:35:17 +01:00
Frédéric Desbiens 2d11b561c3 Merge commit from fork
Ensure proper RAM Disk sizing in the FileX sample.
2025-07-28 13:58:40 -04:00
Frédéric Desbiens 42b4ee916e Ensure proper RAM Disk sizing in the FileX sample. 2025-07-28 13:55:01 -04:00
Frédéric Desbiens 84d35d9b27 Merge commit from fork
Added error handling to the sample.
2025-07-28 10:31:12 -04:00
Frédéric Desbiens 8112cd45cc Added error handling to the sample.
Signed-off-by: Frédéric Desbiens <frederic.desbiens@eclipse-foundation.org>
2025-07-21 12:38:46 -04:00
Frédéric Desbiens b1f509820d Merge pull request #59 from nflandin/boot-signature-corrections
Boot Record and FSINFO Signature Corrections
2025-06-10 09:23:17 -04:00
Frédéric Desbiens 9023227ba4 Merge pull request #70 from hnguyenHWI/master
Update minimal CMake version to 3.13
2025-05-15 10:59:02 +02:00
Frédéric Desbiens 1312f87f3b Merge pull request #66 from ayedm1/fix_file_github_action_issue
fix github filex regression test action issue
2024-12-05 03:34:16 -05:00