You've already forked linux-packaging-mono
Imported Upstream version 6.4.0.137
Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
This commit is contained in:
parent
e9207cf623
commit
ef583813eb
@ -0,0 +1,30 @@
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
|
||||
namespace System.Runtime.InteropServices
|
||||
{
|
||||
partial class NativeLibrary
|
||||
{
|
||||
[DllImport ("libdl")]
|
||||
static extern IntPtr dlopen (string libName, int flags);
|
||||
|
||||
static IntPtr LoadLibraryByName (string libraryName, Assembly assembly, DllImportSearchPath? searchPath, bool throwOnError) => throw new NotImplementedException ();
|
||||
|
||||
static IntPtr LoadFromPath (string libraryName, bool throwOnError)
|
||||
{
|
||||
const int RTLD_LAZY = 0x001;
|
||||
|
||||
IntPtr ptr = dlopen (libraryName, RTLD_LAZY);
|
||||
if (ptr == IntPtr.Zero && throwOnError) {
|
||||
throw new DllNotFoundException();
|
||||
}
|
||||
return ptr;
|
||||
}
|
||||
|
||||
static IntPtr LoadByName (string libraryName, RuntimeAssembly callingAssembly, bool hasDllImportSearchPathFlag, uint dllImportSearchPathFlag, bool throwOnError) => throw new NotImplementedException ();
|
||||
|
||||
static void FreeLib (IntPtr handle) => throw new NotImplementedException ();
|
||||
|
||||
static IntPtr GetSymbol (IntPtr handle, string symbolName, bool throwOnError) => throw new NotImplementedException ();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user