Page MenuHomeFreeBSD

rpc: correct resultproc_t's type
ClosedPublic

Authored by brooks on Jan 29 2026, 12:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 23, 12:33 PM
Unknown Object (File)
Wed, Feb 18, 2:23 PM
Unknown Object (File)
Tue, Feb 17, 1:50 PM
Unknown Object (File)
Tue, Feb 17, 1:50 PM
Unknown Object (File)
Sun, Feb 15, 1:48 PM
Unknown Object (File)
Fri, Feb 13, 9:07 PM
Unknown Object (File)
Mon, Feb 9, 11:40 AM
Unknown Object (File)
Thu, Feb 5, 4:12 AM
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 Not Applicable
Unit
Tests Not Applicable

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.