Skip to content

Conversation

marecl
Copy link
Contributor

@marecl marecl commented Aug 2, 2025

This PR changes how IOFile is handled on OS-level.
Improves compatibility and granularity with Orbis file-related kernel calls.
Existing (in-app call) behaviour and usage is not affected (I think).

Currently implemented for UNIX (POSIX calls).
Windows implementation pending.
Further tests are needed to confirm correct operation.

Subject to changes.

@marecl marecl marked this pull request as draft August 2, 2025 19:39
* Removed streams, files are handled by native file descriptor (Linux only)
* Removed FileType - unnecessary, native handlers don't divide text/binary
* Divided io_file.cpp between linux/posix and windows, selected upon compiling (reduce mess in source files)
* Files canm be accessed without changes (FileAccessMode) - target behaviour preserved, added option to truncate files on writing (Write/WriteExtended)
* Minor commenting and documentation
* Checks, modified flow of open() in file_system.cpp
marecl added 10 commits August 3, 2025 15:22
* Removed streams, files are handled by native file descriptor (Linux only)
* Removed FileType - unnecessary, native handlers don't divide text/binary
* Divided io_file.cpp between linux/posix and windows, selected upon compiling (reduce mess in source files)
* Files canm be accessed without changes (FileAccessMode) - target behaviour preserved, added option to truncate files on writing (Write/WriteExtended)
* Minor commenting and documentation
* Checks, modified flow of open() in file_system.cpp
Copy link
Collaborator

@StevenMiller123 StevenMiller123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've looked primarily at the changes to file_system.cpp in this review, since I wrote much of the code currently in there.
I haven't dug too deeply into your changes to flag handling in open, but I know there's some incorrect changes there too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants