Page MenuHomeFreeBSD

rpc: correct resultproc_t's type
ClosedPublic

Authored by brooks on Jan 29 2026, 12:19 PM.
Tags
None
Referenced Files
F147509422: D54941.id171020.diff
Wed, Mar 11, 12:59 PM
F147493365: D54941.id170678.diff
Wed, Mar 11, 10:14 AM
F147488228: D54941.id170766.diff
Wed, Mar 11, 9:26 AM
F147478907: D54941.id.diff
Wed, Mar 11, 7:55 AM
Unknown Object (File)
Wed, Mar 11, 7:06 AM
Unknown Object (File)
Wed, Mar 11, 6:23 AM
Unknown Object (File)
Wed, Mar 11, 3:41 AM
Unknown Object (File)
Mon, Mar 9, 1:57 PM
Subscribers

Details

Summary

It takes exactly three arguments of known type.

Tweak the types of various resultproc_t functions to match the type (mostly
added const to struct pointers) allowing us to drop casts.

Effort: CHERI upstreaming
Sponsored by: DARPA, AFRL

Diff Detail

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

Event Timeline

@brooks : not sure if my tree is out of date, but I found a few more references of potential concern:

% rg -l '\(resultproc_t\)' worktree/main/ | sort | sed -e 's,worktree/main/,,g'
...
usr.bin/rup/rup.c
usr.bin/rusers/rusers.c
usr.sbin/bootparamd/callbootd/callbootd.c
usr.sbin/ypbind/ypbind.c

Do those need to be changed?

...

Apart from that--the change looks good to go! Not spotting any obvious landmines in our $work fork either that would be hit by this change.

CC: @vangyzen

@brooks : not sure if my tree is out of date, but I found a few more references of potential concern:

% rg -l '\(resultproc_t\)' worktree/main/ | sort | sed -e 's,worktree/main/,,g'
...
usr.bin/rup/rup.c
usr.bin/rusers/rusers.c
usr.sbin/bootparamd/callbootd/callbootd.c
usr.sbin/ypbind/ypbind.c

Do those need to be changed?

Those are removed in D54940.

This revision is now accepted and ready to land.Jan 30 2026, 8:41 PM
This revision was automatically updated to reflect the committed changes.