Files
2025-05-18 13:04:45 +08:00

27 lines
627 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System.Runtime.InteropServices;
namespace JobDriver.Utility
{
/// <summary>
/// Linux specific P/Invoke calls
/// </summary>
static class LinuxInterop
{
/// <summary>
/// Get user identity
/// </summary>
/// <returns>Real user ID of the calling process</returns>
[DllImport("libc", SetLastError = true)]
internal static extern uint getuid();
/// <summary>
/// Get group identity
/// </summary>
/// <returns>Real group ID of the calling process</returns>
[DllImport("libc", SetLastError = true)]
internal static extern uint getgid();
}
}