Sign in Join
FPDoc Onlineexperiment

FpSetgid function

In unit BaseUnix

Set the current group ID.

Declaration

pascal
function FpSetgid(gid: TGid): cint

Description

fpSetUID sets the group ID of the current process. This call will only work if it is executed as root, or the program is setgid root.

On success, zero is returned, on error -1 is returned.

Errors

Extended error information can be retrieved with fpGetErrNo.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.