Skip to content

setreuid

Declaration

Source position: linux.pp line 487

  function setreuid(ruid: uid_t; euid: uid_t) : cint;

Description

setreuid sets the real user ID to ruid and the effective user ID to euid. Passing a value of -1 tells the system not to change that value.

Errors

On Error, -1 is returned. fpgeterrno can be used to get more detailed error information.

See also

Name Description
setregid Set Real and Effective Group ID