Files
ben marsh fe5c28ca98 Horde: Clean up some naming post-move of agent driver.
#rnx

[CL 33783655 by ben marsh in ue5-main branch]
2024-05-20 19:22:10 -04: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();
}
}