[fpc-pascal]SetUid; PARANOIA
Michael Van Canneyt
michael.vancanneyt at wisa.be
Fri Jan 24 15:22:52 CET 2003
On Fri, 24 Jan 2003, Anton Tichawa wrote:
> hello, csaba!
>
> here you are:
>
> <quote>
> // ...
> uses
> Linux;
> // ...
> function SetUID(UID: Longint): Longint;
> var
> Regs: SysCallRegs;
> begin
> Regs.Reg2 := UID;
> SetUID := SysCall(SysCall_nr_getuid, Regs);
> end;
> //...
> </quote>
>
> written by me some months ago.
>
> a question to the fpc development team: i'm slowly getting paranoid, because
> access to hw, i/o and system seems to vanish as the years pass. what is the
> exact reason that setuid has not been implemented or wrapped in fpc?
No particular reason. It wasn't needed at the time of the linux port
It is (or should be) implemented in the new 1.1 series.
Michael.
More information about the fpc-pascal
mailing list