Skip to content

Conversation

@mohanson
Copy link
Collaborator

POSIX requires that opening a file with the O_APPEND flag should have no affect on the location at which pwrite() writes data. However, on Linux, if a file is opened with O_APPEND, pwrite() appends data to the end of the file, regardless of the value of offset.

See https://linux.die.net/man/2/pwrite.

@mohanson mohanson merged commit 0275285 into master Jul 13, 2025
6 checks passed
@mohanson mohanson deleted the update branch July 13, 2025 08:11
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.

1 participant