Page MenuHomeFreeBSD

Make makesyscalls.lua initialize 'struct sysent' entries using c99 designated identifiers
ClosedPublic

Authored by trasz on Sep 23 2020, 1:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 12 2024, 2:08 PM
Unknown Object (File)
Feb 22 2024, 1:45 AM
Unknown Object (File)
Feb 9 2024, 3:00 AM
Unknown Object (File)
Jan 21 2024, 12:41 PM
Unknown Object (File)
Jan 21 2024, 6:23 AM
Unknown Object (File)
Dec 20 2023, 5:50 AM
Unknown Object (File)
Dec 1 2023, 8:37 AM
Unknown Object (File)
Dec 1 2023, 4:05 AM
Subscribers

Details

Summary

Make makesyscalls.lua initialize 'struct sysent' entries using c99
designated identifiers. This makes it easier to modify 'struct sysent'
layout.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

trasz requested review of this revision.Sep 23 2020, 1:50 PM
trasz added a reviewer: kevans.

Tagging Brooks in as well for Cheri perspective

Seems sensible. Those are going to be some long lines, but they aren't really meant to be read.

This revision is now accepted and ready to land.Sep 23 2020, 4:55 PM
sys/tools/makesyscalls.lua
750 ↗(On Diff #77423)

All of these entries that we're initializing to 0 (maybe even NULL) should be able to go away now, no?

sys/tools/makesyscalls.lua
750 ↗(On Diff #77423)

Yeah, no need to keep them.

Drop some fields that were always 0 or NULL.

Technically I could drop some more (ie all '.sv_narg = 0'), but the output looked somewhat ugly and inconsistent.

This revision now requires review to proceed.Sep 23 2020, 9:29 PM

Sure, that's reasonable- while we don't expect people to look at the output, it is good for it to look at least somewhat clean in case we need to sanity check it.

This revision is now accepted and ready to land.Sep 23 2020, 9:32 PM