Re: [fpc-pascal]SetUid; PARANOIA

2003-01-24 Thread Anton Tichawa
hello, list! On Friday 24 January 2003 15:22, Michael Van Canneyt wrote: > > 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. > thanks .. this makes me feel better. but isn't it strange that google finds not a single

Re: [fpc-pascal]SetUid; PARANOIA

2003-01-24 Thread Marco van de Voort
> On Fri, 24 Jan 2003, Anton Tichawa wrote: > > > Regs.Reg2 := UID; > > SetUID := SysCall(SysCall_nr_getuid, Regs); > > end; > > //... > > > > 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 se

Re: [fpc-pascal]SetUid; PARANOIA

2003-01-24 Thread Marco van de Voort
> here you are: > > > // ... > uses > Linux; > // ... > function SetUID(UID: Longint): Longint; > var > Regs: SysCallRegs; > begin > Regs.Reg2 := UID; > SetUID := SysCall(SysCall_nr_getuid, Regs); > end; > //... > > > written by me some months ago. > > a question to the fpc developm

Re: [fpc-pascal]SetUid; PARANOIA

2003-01-24 Thread Michael Van Canneyt
On Fri, 24 Jan 2003, Anton Tichawa wrote: > hello, csaba! > > here you are: > > > // ... > uses > Linux; > // ... > function SetUID(UID: Longint): Longint; > var > Regs: SysCallRegs; > begin > Regs.Reg2 := UID; > SetUID := SysCall(SysCall_nr_getuid, Regs); > end; > //... > > > written

Re: [fpc-pascal]SetUid

2003-01-24 Thread Marco van de Voort
> I am new on maillist. I have got a question. A cannot find function called > setuid() like in c++. In the source of compiler/units a have found a section > where the linux like function declared. There is a contant called > "syscall_nr_setuid", but it is NOT used in any function. A can declare a

Re: [fpc-pascal]SetUid

2003-01-24 Thread Marco van de Voort
> > I am new on maillist. I have got a question. A cannot find function called > setuid() like in c++. > In the source of compiler/units a have found a section > where the linux like function declared. There is a contant called > "syscall_nr_setuid", but it is NOT used in any function. A can decl

Re: [fpc-pascal]SetUid; PARANOIA

2003-01-24 Thread Anton Tichawa
hello, csaba! here you are: // ... uses Linux; // ... function SetUID(UID: Longint): Longint; var Regs: SysCallRegs; begin Regs.Reg2 := UID; SetUID := SysCall(SysCall_nr_getuid, Regs); end; //... written by me some months ago. a question to the fpc development team: i'm slowly getting

[fpc-pascal]SetUid

2003-01-24 Thread Balázs Csaba
Hello masters! I am new on maillist. I have got a question. A cannot find function called setuid() like in c++. In the source of compiler/units a have found a section where the linux like function declared. There is a contant called "syscall_nr_setuid", but it is NOT used in any function. A can de