Skip to content

Report buffered write failures in nob_write_entire_file - #292

Open
Zaczero wants to merge 1 commit into
tsoding:mainfrom
Zaczero:submit/write-close
Open

Zaczero wants to merge 1 commit into
tsoding:mainfrom
Zaczero:submit/write-close

Conversation

@Zaczero

@Zaczero Zaczero commented Nov 23, 2026

Copy link
Copy Markdown

Writing one byte to /dev/full can return true: fwrite buffers the byte and the error surfaces at fclose. Check both results.

Supersedes the write-side fix in #195.

Supersedes the write-side fix in tsoding#195. Check the write count and fclose: a buffered write can succeed before the stream reports an error at close.
@Zaczero
Zaczero marked this pull request as ready for review November 23, 2026 17:21
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