Page MenuHomeFreeBSD

compat_freebsd4: Check for errors from subyte() in freebsd4_uname()
ClosedPublic

Authored by markj on Dec 19 2023, 3:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 20, 6:52 PM
Unknown Object (File)
Fri, Apr 18, 7:21 AM
Unknown Object (File)
Wed, Apr 16, 3:46 PM
Unknown Object (File)
Sun, Apr 6, 6:03 AM
Unknown Object (File)
Mar 31 2025, 1:34 PM
Unknown Object (File)
Mar 12 2025, 3:04 AM
Unknown Object (File)
Feb 21 2025, 12:43 PM
Unknown Object (File)
Feb 3 2025, 11:58 PM
Subscribers

Details

Summary

This is in preparation for adding a __result_use_check annotation to
copyin() and related functions.

Possibly the right thing to do here is to instead suppress errors with a
cast to void, since that's more compatible with the existing behaviour.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Dec 19 2023, 3:13 AM
This revision is now accepted and ready to land.Dec 19 2023, 7:54 AM