Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wutdevoptab: Add support for opening files with more flag combinations #322

Merged
merged 2 commits into from
Jun 20, 2023

Conversation

Maschell
Copy link
Contributor

@Maschell Maschell commented Jun 18, 2023

(O_EXCL | O_CREAT | O_RDWR) and (O_EXCL | O_CREAT | O_WRONLY)

Currently every O_CREAT needs a O_TRUNC as well because Cafe OS truncates the file when opened with w and w+. When O_EXCL is set this doesn't matter because we never touch (truncate) existing files.

O_CREAT | O_RDWR

Very similar to O_CREAT | O_WRONLY

@Maschell Maschell changed the title wutdevoptab: Add support for opening files with (O_EXCL | O_CREAT | O_RDWR) and (O_EXCL | O_CREAT | O_WRONLY) wutdevoptab: Add support for opening files with more flag combinations Jun 19, 2023
@fincs fincs merged commit 8df8e18 into devkitPro:master Jun 20, 2023
1 check passed
@Maschell Maschell deleted the file_modes branch October 18, 2023 05:55
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