Page MenuHomeFreeBSD

Better error checking in code example.
ClosedPublic

Authored by pauamma_gundo.com on Feb 3 2023, 2:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 25, 6:08 PM
Unknown Object (File)
Nov 15 2025, 8:39 AM
Unknown Object (File)
Nov 15 2025, 6:40 AM
Unknown Object (File)
Nov 15 2025, 3:10 AM
Unknown Object (File)
Nov 15 2025, 2:24 AM
Unknown Object (File)
Nov 14 2025, 11:05 PM
Unknown Object (File)
Nov 14 2025, 2:47 AM
Unknown Object (File)
Nov 12 2025, 3:48 AM
Subscribers

Details

Summary

Discussed with dim

Test Plan

igor # no output
man
mandoc -T lint # only unrelated warnings
clang -Wall -c example-with-static-removed.c # no errors or warnings

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 49518
Build 46408: arc lint + arc unit

Event Timeline

Seems ok to me otherwise.

share/man/man4/filemon.4
222

I don't think this cast is needed?

225

Same here. You can assume that comparing a pid_t to -1 will do the right thing.

This revision is now accepted and ready to land.Feb 3 2023, 2:36 PM
This revision now requires review to proceed.Feb 3 2023, 10:49 PM
This revision is now accepted and ready to land.Feb 4 2023, 6:27 PM
In D38367#878182, @pauamma wrote:
In D38367#872754, @pauamma wrote:

Over to mentors

ping @carlavilla @gjb

@carlavilla, @gjb, do I need to do anything to move this forward?

Can a committer take this? My commit access was revoked.