System.Data.SQLite
Check-in [a3c8ee12fc]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Attempt to fix an issue with the native library pre-loader when running on .NET Core under POSIX.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | netStandard20
Files: files | file ages | folders
SHA1: a3c8ee12fc942741c1df69670c9da7a3acde502a
User & Date: mistachkin 2018-04-06 16:32:25
Context
2018-04-06
17:10
More portability work on the native library preloader. check-in: 61d5e43af1 user: mistachkin tags: netStandard20
16:32
Attempt to fix an issue with the native library pre-loader when running on .NET Core under POSIX. check-in: a3c8ee12fc user: mistachkin tags: netStandard20
14:34
More tweaks to the Eagle script library in externals. check-in: 3fc667f990 user: mistachkin tags: netStandard20
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to System.Data.SQLite/UnsafeNativeMethods.cs.

949
950
951
952
953
954
955



956


957
958
959
960
961
962
963
      /// <param name="mode">
      /// This must be a combination of the individual bit flags RTLD_LAZY,
      /// RTLD_NOW, RTLD_GLOBAL, and/or RTLD_LOCAL.
      /// </param>
      /// <returns>
      /// The native module handle upon success -OR- IntPtr.Zero on failure.
      /// </returns>



      [DllImport("__Internal", EntryPoint = "dlopen",


          CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi,
          BestFitMapping = false, ThrowOnUnmappableChar = true,
          SetLastError = true)]
      internal static extern IntPtr dlopen(string fileName, int mode);

      /////////////////////////////////////////////////////////////////////////
      /// <summary>







>
>
>
|
>
>







949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
      /// <param name="mode">
      /// This must be a combination of the individual bit flags RTLD_LAZY,
      /// RTLD_NOW, RTLD_GLOBAL, and/or RTLD_LOCAL.
      /// </param>
      /// <returns>
      /// The native module handle upon success -OR- IntPtr.Zero on failure.
      /// </returns>
#if NET_STANDARD_20
      [DllImport("libdl",
#else
      [DllImport("__Internal",
#endif
          EntryPoint = "dlopen",
          CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi,
          BestFitMapping = false, ThrowOnUnmappableChar = true,
          SetLastError = true)]
      internal static extern IntPtr dlopen(string fileName, int mode);

      /////////////////////////////////////////////////////////////////////////
      /// <summary>