[fpc-pascal] [SYSTEM]: How detecting if run as root ?
Pete Cervasio
cervasio at airmail.net
Thu Oct 12 05:33:57 CEST 2006
On Wednesday 11 October 2006 20:44, Michalis Kamburelis wrote:
> Pete Cervasio wrote:
> > The better way would be to use the geteuid function in the libc unit,
>
> It would be even better to use FpGetEUid function from the BaseUnix
> unit. See
> [http://www.freepascal.org/docs-html/rtl/baseunix/fpgeteuid.html].
DOH! Thanks for reminding me, Michalis. I always forget about seeing if a
function is already in the RTL when doing things that I know are standard C
library functions. Force of habit is my (bad) excuse. :)
Best regards,
Pete C.
More information about the fpc-pascal
mailing list