more on identifying the system a program is running on...

Bruno Wolff III bruno at wolff.to
Thu Jul 1 13:58:08 UTC 2010


On Thu, Jul 01, 2010 at 09:49:49 -0400,
  fred smith <fredex at fcshome.stoneham.ma.us> wrote:
> 
> Can anyone suggest some resource that a PROGRAM (compiled C program) can
> examine while running to find out what platform it is runninng on ?

You could look at the source for uname and see what it does.

> can anyone suggest any other checks I could do?

What are you really trying to do? Normally you want to check to see if some
feature is supported or an ABI versiob, not really a program version.
Sometimes a program version makes a good proxy for those. It's hard to suggest
something without knowing your higher level goal.


More information about the users mailing list