You've already forked linux-packaging-mono
Imported Upstream version 5.2.0.175
Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
parent
4bdbaf4a88
commit
966bba02bb
14
mcs/class/corlib/corert/AddrofIntrinsics.cs
Normal file
14
mcs/class/corlib/corert/AddrofIntrinsics.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace System.Runtime.InteropServices
|
||||
{
|
||||
internal static class AddrofIntrinsics
|
||||
{
|
||||
// This method is implemented elsewhere in the toolchain
|
||||
internal static IntPtr AddrOf<T>(T ftn)
|
||||
{
|
||||
return Marshal.GetFunctionPointerForDelegate<T>(ftn);
|
||||
}
|
||||
}
|
||||
}
|
1619
mcs/class/corlib/corert/Array.Portable.cs
Normal file
1619
mcs/class/corlib/corert/Array.Portable.cs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,13 +1,20 @@
|
||||
namespace System.Diagnostics.Private
|
||||
{
|
||||
static class Debug
|
||||
static partial class Debug
|
||||
{
|
||||
public static void Assert (bool condition)
|
||||
{
|
||||
}
|
||||
internal static IDebugLogger s_logger = new MonoDebugLogger();
|
||||
|
||||
public static void Assert (bool condition, string message)
|
||||
internal sealed class MonoDebugLogger : IDebugLogger
|
||||
{
|
||||
public void ShowAssertDialog(string stackTrace, string message, string detailMessage)
|
||||
{
|
||||
// FIXME should we g_error in this case?
|
||||
}
|
||||
|
||||
public void WriteCore(string message)
|
||||
{
|
||||
// FIXME should we g_debug in this case?
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
21
mcs/class/corlib/corert/Interop.MemAllocFree.cs
Normal file
21
mcs/class/corlib/corert/Interop.MemAllocFree.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
using System;
|
||||
|
||||
internal static partial class Interop
|
||||
{
|
||||
internal static IntPtr MemAlloc(UIntPtr sizeInBytes)
|
||||
{
|
||||
if (Environment.IsRunningOnWindows)
|
||||
return Windows_MemAlloc(sizeInBytes);
|
||||
else
|
||||
return Unix_MemAlloc(sizeInBytes);
|
||||
}
|
||||
|
||||
internal static void MemFree(IntPtr allocatedMemory)
|
||||
{
|
||||
if (Environment.IsRunningOnWindows)
|
||||
Windows_MemFree(allocatedMemory);
|
||||
else
|
||||
Unix_MemFree(allocatedMemory);
|
||||
}
|
||||
}
|
14
mcs/class/corlib/corert/Interop.cs
Normal file
14
mcs/class/corlib/corert/Interop.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
using System;
|
||||
|
||||
internal partial class Interop
|
||||
{
|
||||
internal partial class mincore
|
||||
{
|
||||
static mincore()
|
||||
{
|
||||
if (!Environment.IsRunningOnWindows)
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
}
|
||||
}
|
14
mcs/class/corlib/corert/RelocatedTypeAttribute.cs
Normal file
14
mcs/class/corlib/corert/RelocatedTypeAttribute.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Internal.Runtime.CompilerServices
|
||||
{
|
||||
[Conditional ("ALWAYSREMOVED")]
|
||||
[AttributeUsage(AttributeTargets.All)]
|
||||
class RelocatedTypeAttribute : Attribute
|
||||
{
|
||||
public RelocatedTypeAttribute(String originalAssemblySimpleName)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
9
mcs/class/corlib/corert/RuntimeThread.cs
Normal file
9
mcs/class/corlib/corert/RuntimeThread.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Internal.Runtime.Augments
|
||||
{
|
||||
class RuntimeThread
|
||||
{
|
||||
public static void InitializeThreadPoolThread ()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
65
mcs/class/corlib/corert/ThreadPoolBoundHandle.cs
Normal file
65
mcs/class/corlib/corert/ThreadPoolBoundHandle.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
#if !MULTIPLEX_OS
|
||||
|
||||
namespace System.Threading
|
||||
{
|
||||
public sealed class ThreadPoolBoundHandle : IDisposable
|
||||
{
|
||||
internal ThreadPoolBoundHandle ()
|
||||
{
|
||||
}
|
||||
|
||||
public System.Runtime.InteropServices.SafeHandle Handle {
|
||||
get {
|
||||
throw new PlatformNotSupportedException ();
|
||||
}
|
||||
}
|
||||
|
||||
[System.CLSCompliantAttribute (false)]
|
||||
public unsafe System.Threading.NativeOverlapped* AllocateNativeOverlapped (System.Threading.IOCompletionCallback callback, object state, object pinData)
|
||||
{
|
||||
throw new PlatformNotSupportedException ();
|
||||
}
|
||||
|
||||
[System.CLSCompliantAttribute (false)]
|
||||
public unsafe System.Threading.NativeOverlapped* AllocateNativeOverlapped (System.Threading.PreAllocatedOverlapped preAllocated)
|
||||
{
|
||||
throw new PlatformNotSupportedException ();
|
||||
}
|
||||
|
||||
public static System.Threading.ThreadPoolBoundHandle BindHandle (System.Runtime.InteropServices.SafeHandle handle)
|
||||
{
|
||||
throw new PlatformNotSupportedException ();
|
||||
}
|
||||
|
||||
public void Dispose ()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[System.CLSCompliantAttribute (false)]
|
||||
public unsafe void FreeNativeOverlapped (System.Threading.NativeOverlapped* overlapped)
|
||||
{
|
||||
throw new PlatformNotSupportedException ();
|
||||
}
|
||||
|
||||
[System.CLSCompliantAttribute (false)]
|
||||
public static unsafe object GetNativeOverlappedState (System.Threading.NativeOverlapped* overlapped)
|
||||
{
|
||||
throw new PlatformNotSupportedException ();
|
||||
}
|
||||
}
|
||||
|
||||
public sealed partial class PreAllocatedOverlapped : IDisposable
|
||||
{
|
||||
[System.CLSCompliantAttribute (false)]
|
||||
public PreAllocatedOverlapped (System.Threading.IOCompletionCallback callback, object state, object pinData)
|
||||
{
|
||||
throw new PlatformNotSupportedException ();
|
||||
}
|
||||
|
||||
public void Dispose ()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user