- There is a "Unix" unit, you can check if what you want is in there.
I want to be able to get OS version information
What does this mean exactly? You can use the output of "uname -a" (Called from TProcess), depending on your needs. There are also files like /etc/redhat-release, etc., but they may vary by distribution.
and user account type on both Windows and Linux.
Probably what you want in Unix is to see what groups the user is in. (There are various ways to do this).
I saw that there is a Windows system API, but could not find anything similar for Linux.
Linux tends to follow the "Everything is a file" approach, so somewhere there is usually a file (or pseudo-file) you can read with the information you want. In general, Unix is more flexible than Windows. For example, in Windows there is probably an API call to get the number of processors or speed in Mhz. In Linux, you can look in /dev/cpuinfo and parse that info as a text file.
There are various flavors of Unix, and even within Linux, various distributions. You can of course narrow the scope of what you want to do by supporting only certain distributions for the time being.
libc
. I don't have any idea whether or not the FPC libraries wrap that up for you. I would hope and expect that they do. – David Heffernan