Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-01-10 01:56:42 +0300
committerJan Kotas <jkotas@microsoft.com>2016-01-10 02:00:42 +0300
commit9473153608f9c94e20fc667625c4171e5ef69e15 (patch)
treec5e8db32eeb5417b4443a59eaaa2ee1b164d2eb9 /src/Common
parent770d16438a6fba4bfa96d4a86f557f61ef2427ae (diff)
Unique names for CoreLibNative
CoreRT side of https://github.com/dotnet/corefx/issues/4818
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Environment.cs2
-rw-r--r--src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Libraries.cs2
-rw-r--r--src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Write.cs4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Environment.cs b/src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Environment.cs
index b47b4a236..60e4a6abe 100644
--- a/src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Environment.cs
+++ b/src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Environment.cs
@@ -9,7 +9,7 @@ internal static partial class Interop
{
internal unsafe partial class Sys
{
- [DllImport(Interop.Libraries.SystemPrivateCoreLibNative)]
+ [DllImport(Interop.Libraries.CoreLibNative, EntryPoint = "CoreLibNative_GetEnvironmentVariable")]
internal static unsafe extern int GetEnvironmentVariable(string name, out IntPtr result);
}
}
diff --git a/src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Libraries.cs b/src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Libraries.cs
index 845776d54..0c2d8c407 100644
--- a/src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Libraries.cs
+++ b/src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Libraries.cs
@@ -7,6 +7,6 @@ internal static partial class Interop
{
internal static partial class Libraries
{
- internal const string SystemPrivateCoreLibNative = "System.Private.CoreLib.Native";
+ internal const string CoreLibNative = "System.Private.CoreLib.Native";
}
}
diff --git a/src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Write.cs b/src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Write.cs
index cab0a2f3b..5bbe7fb0c 100644
--- a/src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Write.cs
+++ b/src/Common/src/Interop/Unix/System.Private.CoreLib.Native/Interop.Write.cs
@@ -16,7 +16,7 @@ internal static partial class Interop
/// <returns>
/// Returns the number of bytes written on success; otherwise, returns -1 and sets errno
/// </returns>
- [DllImport(Interop.Libraries.SystemPrivateCoreLibNative, SetLastError = true)]
- internal static unsafe extern int Write2(int fd, byte* buffer, int bufferSize);
+ [DllImport(Interop.Libraries.CoreLibNative, EntryPoint = "CoreLibNative_Write", SetLastError = true)]
+ internal static unsafe extern int Write(int fd, byte* buffer, int bufferSize);
}
}