c90356730980d5e273e1b1785cb22583baf1a9fc
Added mock implementations for file/directory search operations to support both Windows and Linux in the simulation environment. Windows mocks: - FindFirstFileA: Wraps real search handle in descriptor - FindNextFileA: Forwards to real API - FindClose: Properly cleans up search handles Linux mocks: - opendir: Wraps real DIR* handle in descriptor - readdir: Forwards to real API - closedir: Properly cleans up directory handles Common changes: - Added DESC_DIRECTORY descriptor type to track directory handles - Added real_d field to Descriptor for directory handles (HANDLE on Windows, DIR* on Linux) - Updated close_desc to handle directory cleanup on both platforms - Added sys_* macros for both BUILD_TEST and non-BUILD_TEST modes - Added <dirent.h> include for Linux directory operations
Languages
C
98.4%
Shell
1%
Zig
0.4%
Batchfile
0.2%