Is it legal to call functions from libSystem.Native? #71408
-
.NET 6 provides awesome way to call some PAL functions via PInvoke even in case of single-file deployment. For instance, I have the following code: [DllImport("libSystem.Native", EntryPoint = "SystemNative_GetPwUidR", SetLastError = false)]
internal static extern int GetPwUidR(uint uid, out Passwd pwd, ref byte buf, int bufLen); // buf must be pinned, I know The immediate caller of this function is guarded by
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
libSystem.Native is implementation detail. It is not supported for use outside of the shared framework itself. |
Beta Was this translation helpful? Give feedback.
-
It depends on the states, also it might not work 😂 |
Beta Was this translation helpful? Give feedback.
libSystem.Native is implementation detail. It is not supported for use outside of the shared framework itself.