GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use explicit libpsl-native binary name for dllimport. (#5580) · PowerShell/PowerShell@47f8467

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/System.Management.Automation/utils/tracing
    • SysLogProvider.cs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/System.Management.Automation/utils/tracing/SysLogProvider.cs‎

Copy file name to clipboardExpand all lines: src/System.Management.Automation/utils/tracing/SysLogProvider.cs
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ internal enum LogLevel : uint
357357

358358
internal static class NativeMethods
359359
{
360+
const string libpslnative = "libpsl-native";
360361
/// <summary>
361362
/// Write a message to the system logger, which in turn writes the message to the system console, log files, etc.
362363
/// See man 3 syslog for more info.
@@ -365,13 +366,13 @@ internal static class NativeMethods
365366
/// The OR of a priority and facility in the SysLogPriority enum indicating the the priority and facility of the log entry.
366367
/// </param>
367368
/// <param name="message">The message to put in the log entry.</param>
368-
[DllImport("psl-native", CharSet = CharSet.Ansi, EntryPoint = "Native_SysLog")]
369+
[DllImport(libpslnative, CharSet = CharSet.Ansi, EntryPoint = "Native_SysLog")]
369370
internal static extern void SysLog(SysLogPriority priority, string message);
370371

371-
[DllImport("psl-native", CharSet = CharSet.Ansi, EntryPoint = "Native_OpenLog")]
372+
[DllImport(libpslnative, CharSet = CharSet.Ansi, EntryPoint = "Native_OpenLog")]
372373
internal static extern void OpenLog(IntPtr ident, SysLogPriority facility);
373374

374-
[DllImport("psl-native", EntryPoint = "Native_CloseLog")]
375+
[DllImport(libpslnative, EntryPoint = "Native_CloseLog")]
375376
internal static extern void CloseLog();
376377

377378
[Flags]

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.