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

GetUid

Return current user ID

Declaration

Source position: oldlinux.pp 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.
The latest version of this document can be found at lazarus-ccr.sourceforge.net.