[Overview][Constants][Types][Procedures and functions][Variables] Reference for unit 'oldlinux' (#rtl)

GetUid

Return current user ID

Declaration

Source position: linuxold.inc line 1370

function GetUid: LongInt;

Description

Get the real user ID of the currently running process.

Errors

None.

See also

GetEUid

  

Return effective user ID

Example

Program Example17;

{ Program to demonstrate the GetUid and GetEUid functions. }

Uses oldlinux;

begin
  writeln ('User Id = ',getuid,' Effective user Id = ',geteuid);
end.