-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix illumos managed build #44386
Fix illumos managed build #44386
Conversation
cc @stephentoub Downstream CI: build logs | build artifacts - tested .NET 6 assemblies on Open Indiana. |
* Fix CA1823 (unused private field) in `NetworkChange` partial for `UnknownUnix`. * Use official casing `illumos` in MSBuild property names (as done for iOS). * Fix Solaris version in test with SDK's PlatformDetection. * only major version is needed.
Difference between Linux and SunOS procfs is that files in latter contain binary data, so we need `read(2)` and cast into corresponding struct. Redeclaring system structs in managed code is not ideal, as they do change across the major versions of OS, which inevitably requires recompilation of binaries and replicating them in C# as is means additional/unnecessary maintenance of code.
src/libraries/Common/src/Interop/SunOS/procfs/Interop.ProcFsStat.TryReadProcessStatusInfo.cs
Outdated
Show resolved
Hide resolved
src/libraries/Common/src/Interop/SunOS/procfs/Interop.ProcFsStat.TryReadProcessStatusInfo.cs
Outdated
Show resolved
Hide resolved
src/libraries/Common/src/Interop/SunOS/procfs/Interop.ProcFsStat.TryReadProcessStatusInfo.cs
Show resolved
Hide resolved
src/libraries/Common/tests/TestUtilities/System/PlatformDetection.Unix.cs
Show resolved
Hide resolved
src/libraries/Common/src/Interop/SunOS/procfs/Interop.ProcFsStat.TryReadProcessStatusInfo.cs
Outdated
Show resolved
Hide resolved
...ries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.cs
Outdated
Show resolved
Hide resolved
@stephentoub, I have addressed the comments and resolved a merge conflict. Could you please give another pass? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks.
contain binary data, so we need
read(2)
and cast into correspondingstruct. Redeclaring system structs in managed code is not ideal, as
they do change across the major versions of OS, which inevitably
requires recompilation of binaries and replicating them in C# as is
means additional/unnecessary maintenance of code.
NetworkChange
partial forUnknownUnix
.illumos
in MSBuild property names (as done foriOS).