Repository navigation
conformance: IO rows for #pwrite on disk, #ungetc, flush ranges, and the opened file - #55
Merged
Merged
Conversation
…ed-file identity The #pwrite row said its bytes are not on disk until a flush; since go-embedded-ruby/ruby#975 they are, as with pwrite(2). It is rewritten to the ruby README's current row, with the two deliberate bounds. Three rows are added, each mirroring the ruby README: - #ungetc keeps pushed-back bytes out of the file (go-embedded-ruby/ruby#977); the divergence left is MRI's 8192-byte read buffer. - a flush writes only the ranges this stream wrote (go-embedded-ruby/ruby#978); the divergence left is the 256-range bound. - a stream writes only into the file it opened, never into what its path names after an unlink, rename or symlink swap (go-embedded-ruby/ruby#978); the divergences left are the orphaned inode and the fifo window. Refs go-embedded-ruby/ruby#974 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… keeps the open's grant Follows go-embedded-ruby/ruby#978: on Unix a file stream holds a descriptor on the file it opened, so a reused inode number cannot pass for it, and #truncate on a file chmodded read-only after the open succeeds as in MRI 4.0.7. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The IO rows of
content/en/conformance.md, brought in line with what the interpreter now does after go-embedded-ruby/ruby#977 and go-embedded-ruby/ruby#978:#pwrite. The old row said a#pwrite's bytes stayed in memory. They reach the file when it returns, and only those bytes; the row now says so.#ungetc/#ungetbyte. A new row: pushed-back bytes never reach the file,#poscounts them, and MRI's 8192-byte read buffer is the remaining divergence.#truncatestill truncates a file made read-only after the open.Each row matches the README row of the same name in go-embedded-ruby/ruby at
91a523dc.The landing page names none of these, so it needs no change.
Refs go-embedded-ruby/ruby#974
Refs go-embedded-ruby/ruby#977
Refs go-embedded-ruby/ruby#978
🤖 Generated with Claude Code