Page MenuHomeFreeBSD

Normalize COMPAT_43 syscall declarations.
ClosedPublic

Authored by brooks on Jun 15 2018, 12:11 AM.
Tags
None
Referenced Files
F103538760: D15816.diff
Tue, Nov 26, 6:26 AM
F103470025: D15816.id43792.diff
Mon, Nov 25, 10:55 AM
Unknown Object (File)
Sat, Nov 23, 6:12 AM
Unknown Object (File)
Thu, Nov 21, 1:37 PM
Unknown Object (File)
Wed, Nov 6, 1:15 PM
Unknown Object (File)
Wed, Oct 30, 7:02 AM
Unknown Object (File)
Wed, Oct 30, 7:02 AM
Unknown Object (File)
Wed, Oct 30, 7:01 AM
Subscribers

Details

Summary

Have ogetkerninfo, ogetpagesize, ogethostname, osethostname, and oaccept
declare o<foo>_args structs rather than non-compat ones. Due to a
failure to use NOARGS in most cases this adds only one new declaration.

No changes required in freebsd32 as only ogetpagesize() is implemented and it
has a 32-bit specific implementation.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21353
Build 20680: arc lint + arc unit

Event Timeline

Remove SYSPROTO for them all, instead of patching ? It is not useful for current syscalls, and obviously even less so for compat.

Does freebsd32 need same treatment ?

In D15816#334486, @kib wrote:

Remove SYSPROTO for them all, instead of patching ? It is not useful for current syscalls, and obviously even less so for compat.

I like them as local documentation so will leave then undisturbed other than the rename where they match local style and members are used.

Does freebsd32 need same treatment ?

No, because it fails to implement all but getpagesize and that has an ofreebsd32_getpagesize() that returns IA32_PAGE_SIZE. The unimplemented cases are probably a bug, but it's not clear they matter even for aout binaries (4.4lite had already implemented all but accept() as userspace wrappers around sysctl()).

  • Rebase
  • GC duplicate, documentary definitions of _args structs.

declErations, both it the title and in the text.

This revision is now accepted and ready to land.Dec 4 2018, 9:06 AM
brooks retitled this revision from Normalize COMPAT_43 syscall declerations. to Normalize COMPAT_43 syscall declarations..Dec 4 2018, 4:30 PM
brooks edited the summary of this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.