Page MenuHomeFreeBSD

Normalize COMPAT_43 syscall declarations.
ClosedPublic

Authored by brooks on Jun 15 2018, 12:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 11, 10:35 PM
Unknown Object (File)
Nov 26 2024, 6:26 AM
Unknown Object (File)
Nov 25 2024, 10:55 AM
Unknown Object (File)
Nov 23 2024, 6:12 AM
Unknown Object (File)
Nov 21 2024, 1:37 PM
Unknown Object (File)
Nov 6 2024, 1:15 PM
Unknown Object (File)
Oct 30 2024, 7:02 AM
Unknown Object (File)
Oct 30 2024, 7:02 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

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

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.