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

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/libraries/Common/src/Interop/OSX/Interop.libproc.cs')
-rw-r--r--src/libraries/Common/src/Interop/OSX/Interop.libproc.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libraries/Common/src/Interop/OSX/Interop.libproc.cs b/src/libraries/Common/src/Interop/OSX/Interop.libproc.cs
index 929eb9acca8..dbb7fcc7e63 100644
--- a/src/libraries/Common/src/Interop/OSX/Interop.libproc.cs
+++ b/src/libraries/Common/src/Interop/OSX/Interop.libproc.cs
@@ -110,7 +110,7 @@ internal static partial class Interop
/// <param name="pBuffer">A pointer to the memory block where the PID array will start</param>
/// <param name="buffersize">The length of the block of memory allocated for the PID array</param>
/// <returns>Returns the number of elements (PIDs) in the buffer</returns>
- [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)]
+ [LibraryImport(Interop.Libraries.libproc, SetLastError = true)]
private static unsafe partial int proc_listallpids(
int* pBuffer,
int buffersize);
@@ -176,7 +176,7 @@ internal static partial class Interop
/// the data is valid. If the sizes do not match then the data is invalid, most likely due
/// to not having enough permissions to query for the data of that specific process
/// </returns>
- [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)]
+ [LibraryImport(Interop.Libraries.libproc, SetLastError = true)]
private static unsafe partial int proc_pidinfo(
int pid,
int flavor,
@@ -197,7 +197,7 @@ internal static partial class Interop
/// the data is valid. If the sizes do not match then the data is invalid, most likely due
/// to not having enough permissions to query for the data of that specific process
/// </returns>
- [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)]
+ [LibraryImport(Interop.Libraries.libproc, SetLastError = true)]
private static unsafe partial int proc_pidinfo(
int pid,
int flavor,
@@ -218,7 +218,7 @@ internal static partial class Interop
/// the data is valid. If the sizes do not match then the data is invalid, most likely due
/// to not having enough permissions to query for the data of that specific process
/// </returns>
- [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)]
+ [LibraryImport(Interop.Libraries.libproc, SetLastError = true)]
private static unsafe partial int proc_pidinfo(
int pid,
int flavor,
@@ -317,7 +317,7 @@ internal static partial class Interop
/// <param name="buffer">A pointer to an allocated block of memory that will be filled with the process path</param>
/// <param name="bufferSize">The size of the buffer, should be PROC_PIDPATHINFO_MAXSIZE</param>
/// <returns>Returns the length of the path returned on success</returns>
- [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)]
+ [LibraryImport(Interop.Libraries.libproc, SetLastError = true)]
private static unsafe partial int proc_pidpath(
int pid,
byte* buffer,
@@ -356,7 +356,7 @@ internal static partial class Interop
/// <param name="flavor">Specifies the type of struct that is passed in to <paramref>buffer</paramref>. Should be RUSAGE_INFO_V3 to specify a rusage_info_v3 struct.</param>
/// <param name="buffer">A buffer to be filled with rusage_info data</param>
/// <returns>Returns 0 on success; on fail, -1 and errno is set with the error code</returns>
- [GeneratedDllImport(Interop.Libraries.libproc, SetLastError = true)]
+ [LibraryImport(Interop.Libraries.libproc, SetLastError = true)]
private static unsafe partial int proc_pid_rusage(
int pid,
int flavor,