[fpc-pascal] Get user ID for name on Linux

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Wed Jan 3 07:36:32 CET 2018

On 2018-01-03 00:12, Tobias Giesen wrote:
> Unfortunately Libc and UnixUtils don't seem to be available in 64-bit, so I can't call the
> functions getpwnam or GetUserId.

As Marco said, you can use the "users" unit. Here is an example of how I 
use in in fpGUI, and it supports 32-bit and 64-bit systems.


Note though that it only works for Linux. So other UNIX-type systems 
like FreeBSD and Solaris are not supported.


fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

My public PGP key:  http://tinyurl.com/graeme-pgp

More information about the fpc-pascal mailing list