Files
UnrealEngine/Engine/Source/Programs/Horde/Drivers/JobDriver/Utility/LinuxInterop.cs
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05: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();
}
}