Page MenuHomeFreeBSD

fflush: correct buffer handling in __sflush
ClosedPublic

Authored by emaste on Nov 7 2023, 2:56 PM.
Tags
None
Referenced Files
F107121488: D42491.diff
Fri, Jan 10, 10:59 AM
Unknown Object (File)
Dec 4 2024, 7:16 AM
Unknown Object (File)
Dec 1 2024, 9:40 PM
Unknown Object (File)
Nov 29 2024, 4:13 PM
Unknown Object (File)
Nov 25 2024, 9:57 PM
Unknown Object (File)
Nov 25 2024, 2:55 PM
Unknown Object (File)
Nov 25 2024, 3:05 AM
Unknown Object (File)
Nov 24 2024, 11:32 AM
Subscribers

Details

Summary
Two additional stdio changes followed 86a16ada1ea6 and need to be
reverted as part of the fflush fix.

This reverts commit 6e13794fbe6e82c21365d0fd66769bf8b19c0197.
This reverts commit bafaa70b6f9098d83d074968c8e6747ecec1e118.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste requested review of this revision.Nov 7 2023, 2:56 PM
emaste created this revision.

With this change there are only trivial differences between stable/12, stable/13, stable/14, and main in the three affected files
lib/libc/stdio/fflush.c
lib/libc/stdio/fvwrite.c
lib/libc/stdio/wbuf.c.

Changes are $FreeBSD$ removal and a style change (if (__fflush(fp) != 0) vs if (__fflush(fp))).
(also a leftover #include of errno.h which was missed in the revert)

This revision is now accepted and ready to land.Nov 7 2023, 4:02 PM
This revision was automatically updated to reflect the committed changes.