Marco van de Voort marcov at stack.nl
Fri Jan 24 15:05:14 CET 2003

> 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
> setuid function but i do not know which registers are user int this
> function.

First argument in reg2 and so on. (for linux), e.g.

type uid_t=longint;

Function Sys_SetUid(uid:uid_t);
  regs : SysCallregs;

More information about the fpc-pascal mailing list