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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 01, 2010 at 09:49:49 -0400,
  fred smith <fredex@xxxxxxxxxxxxxxxxxxxxxx> 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.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux